TomCat 404提示错误?

我今天用ssm写一个简单的小项目遇到了一个问题。这是我的拦截器代码,使用转发访问“loginPage”就报404错误,但下图路径就正常,使用重定向两个路径都不能访问
图片说明
这是我的视图解析器代码,访问后台页面正常,但就是不能访问前台loginPage
图片说明
我的页面结构,看了半天...
图片说明
报错...
图片说明

3个回答

图片说明我的控制器会报这个警告,但是可以访问到后台页面

图片说明打印了uri

/WEB-INF/views/loginPage.jsp 换成WEB-INF/views/loginPage.jsp试试!你只给出了页面信息,比较难分析出问题在哪里!

qq_43075631
小菜狮子 没有用哎...我一直在纠结为什么我的拦截器里的重定向loginPage不会被视图解析器加上前缀和后缀去寻找...然后用请求转发访问完整的路径就可以。意思是我的视图解析器没有作用吗?
11 个月之前 回复
Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
tomcat servlet 404 错误
今天刚开始学JAVA 用的书籍是 可是跟这个书上写的rnServlet 例子写就是会出现 404错误 整了一天了,挺郁闷的.希望大家帮忙解决下.话不多说了rn看源码:rnweb.xml:rn路径:D:\Documents and Settings\Kang\My Documents\workspace\Simple\WEB-INF\Web.xmlrn[code=XML]rnrnrn rn SimpleServletrn test.SimpleServlet rn rn rn SimpleServletrn /GetAddressrn rnrn[/code]rnrnrnSimpleServlet.java:rn路径:D:\Documents and Settings\Kang\My Documents\workspace\Simple\WEB-INF\src\test\SimpleServlet.javarn[code=Java]rnpackage test;rnrnimport java.io.IOException;rnimport java.io.PrintWriter;rnrnimport javax.servlet.ServletConfig;rnimport javax.servlet.ServletException;rnimport javax.servlet.http.HttpServlet;rnimport javax.servlet.http.HttpServletRequest;rnimport javax.servlet.http.HttpServletResponse;rnrnpublic class SimpleServlet extends HttpServlet rnrn /**rn * rn */rn private static final long serialVersionUID = 8953883459006060897L;rnrn public void init(ServletConfig config) throws ServletException rn super.init(config);rn rnrn public void doGet(HttpServletRequest request, HttpServletResponse response)rn throws ServletException, IOException rn doPost(request, response);rn rnrn public void doPost(HttpServletRequest request, HttpServletResponse response)rn throws ServletException, IOException rn response.setContentType("text/html");rn PrintWriter out = response.getWriter();rn out.println("");rn out.println(" Servlet 实例");rn out.println("");rn out.println("你的地址是:" + request.getRemoteAddr());rn out.println("");rn out.println("");rn rnrn[/code]rnrn不知道为什么老是会出现以下错误:rnHTTP Status 404 - /Simple/GetAddressrnrn--------------------------------------------------------------------------------rnrntype Status reportrnrnmessage /Simple/GetAddressrnrndescription The requested resource (/Simple/GetAddress) is not available.rnrnrn--------------------------------------------------------------------------------rnrnApache Tomcat/6.0.18rnrn我在项目里建一个HelloJSP.jsp访问都没问题rn让我很不明白...
Tomcat 问题 出现404 错误
今天本人从5.0 换到了 6.0rn配置了server.xmlrn在server.xml下rn加了句rn rn然后在rnF:\Web\WebRoot下的Web.xml 修改了一下rn如下:rnrnrnrnrn Welcome to Tomcatrn rn Welcome to Tomcatrn rn rn rnrnrn rnrnrnrn然后重启Tomcat rn可以看到服务器下有这个文件夹rn点击这个文件夹下的index.jsprn还是出现404错误rn请教下到底是出现了什么问题?
Tomcat http status 404 错误
请教:demo是我建的web工程 server.xml配置了demorn在地址栏中输入本机地址能看到tomcat欢迎页面,.输入http://localhost:8080/demo出现HTTP Status 404 - /demo/ 但输入http://localhost:8080/demo/myjsp.jsp可用!
tomcat启动时,提示错误
tomcat启动时,提示如下:rn[DEBUG][main] 2006-07-21 00:40:44,494 message:Initializing, config='org.apache.struts.action.ActionResources', returnNull=truern[DEBUG][main] 2006-07-21 00:40:44,603 message:Scanning web.xml for controller servlet mappingrn[DEBUG][main] 2006-07-21 00:40:44,634 message:getMessage(zh_CN,configWebXml)rn[DEBUG][main] 2006-07-21 00:40:44,634 message:loadLocale(zh_CN)rn[DEBUG][main] 2006-07-21 00:40:44,635 message: Loading resource 'org/apache/struts/action/ActionResources_zh_CN.properties'rn[DEBUG][main] 2006-07-21 00:40:44,636 message: Loading resource completedrn[DEBUG][main] 2006-07-21 00:40:44,637 message:loadLocale(zh)rn[DEBUG][main] 2006-07-21 00:40:44,637 message: Loading resource 'org/apache/struts/action/ActionResources_zh.properties'rn[DEBUG][main] 2006-07-21 00:40:44,639 message: Loading resource completedrn[DEBUG][main] 2006-07-21 00:40:44,639 message:loadLocale()rn[DEBUG][main] 2006-07-21 00:40:44,640 message: Loading resource 'org/apache/struts/action/ActionResources.properties'rn[DEBUG][main] 2006-07-21 00:40:44,642 message: Loading resource completedrn[DEBUG][main] 2006-07-21 00:40:44,642 message: Saving message key '.initProcessorrn[DEBUG][main] 2006-07-21 00:40:44,643 message: Saving message key '.destroyDataSourcern[DEBUG][main] 2006-07-21 00:40:44,643 message: Saving message key '.configWebXmlrn[DEBUG][main] 2006-07-21 00:40:44,643 message: Saving message key '.configMissingrn[DEBUG][main] 2006-07-21 00:40:44,643 message: Saving message key '.verifyForwardConfig.invalidrn[DEBUG][main] 2006-07-21 00:40:44,644 message: Saving message key '.unhandledExceptionrn[DEBUG][main] 2006-07-21 00:40:44,644 message: Saving message key '.dataSource.initrn[DEBUG][main] 2006-07-21 00:40:44,644 message: Saving message key '.verifyPlugInConfigs.missingrn[DEBUG][main] 2006-07-21 00:40:44,645 message: Saving message key '.dataSource.destroyrn[DEBUG][main] 2006-07-21 00:40:44,646 message: Saving message key '.processInvalidrn[DEBUG][main] 2006-07-21 00:40:44,646 message: Saving message key '.notAuthorizedrn[DEBUG][main] 2006-07-21 00:40:44,646 message: Saving message key '.verifyMessageResourcesConfigs.missingrn[DEBUG][main] 2006-07-21 00:40:44,647 message: Saving message key '.verifyMessageResourcesConfigs.keyrn[DEBUG][main] 2006-07-21 00:40:44,647 message: Saving message key '.noInputrn[DEBUG][main] 2006-07-21 00:40:44,647 message: Saving message key '.configIOrn[DEBUG][main] 2006-07-21 00:40:44,648 message: Saving message key '.reloadingrn[DEBUG][main] 2006-07-21 00:40:44,648 message: Saving message key '.processPathrn[DEBUG][main] 2006-07-21 00:40:44,648 message: Saving message key '.configInitrn[DEBUG][main] 2006-07-21 00:40:44,648 message: Saving message key '.configVerifyingrn[DEBUG][main] 2006-07-21 00:40:44,649 message: Saving message key '.sessionCreatern[DEBUG][main] 2006-07-21 00:40:44,649 message: Saving message key '.verifyForwardConfig.missingrn[DEBUG][main] 2006-07-21 00:40:44,649 message: Saving message key '.configCompletedrn[DEBUG][main] 2006-07-21 00:40:44,649 message: Saving message key '.verifyActionMappingClass.invalidrn[DEBUG][main] 2006-07-21 00:40:44,650 message: Saving message key '.initDataSourcern[DEBUG][main] 2006-07-21 00:40:44,650 message: Saving message key '.configMappingrn[DEBUG][main] 2006-07-21 00:40:44,650 message: Saving message key '.requestDispatcherrn[DEBUG][main] 2006-07-21 00:40:44,651 message: Saving message key '.configParsern[DEBUG][main] 2006-07-21 00:40:44,651 message: Saving message key '.finalizingrn[DEBUG][main] 2006-07-21 00:40:44,651 message: Saving message key '.formBeanrn[DEBUG][main] 2006-07-21 00:40:44,651 message: Saving message key '.verifyActionMappingClass.missingrn[DEBUG][main] 2006-07-21 00:40:44,652 message: Saving message key '.verifyPlugInConfigs.invalidrn[DEBUG][main] 2006-07-21 00:40:44,652 message: Saving message key '.applicationLoadingrn[DEBUG][main] 2006-07-21 00:40:44,652 message: Saving message key '.mappingTypern[DEBUG][main] 2006-07-21 00:40:44,652 message: Saving message key '.actionCreatern[DEBUG][main] 2006-07-21 00:40:44,653 message: Saving message key '.applicationResourcesrn[DEBUG][main] 2006-07-21 00:40:44,653 message: Saving message key '.configFatalrn[DEBUG][main] 2006-07-21 00:40:44,653 message: Saving message key '.verifyMessageResourcesConfigs.invalid
解决eclipse中tomcat提示404问题
引言    在配置项目环境的时候遇到这么一个问题,在jdk maven tomcat都配置完成以后,在浏览器中输入: localhost:8080来准备启动tomcat的时候,提示404错误。重新检查所有的配置仍然没有解决问题,其实在这我们习 惯性的忘记了检查Tomcat服务器的server location的配置。因为之前我们使用的myeclipse帮助我们开发人员
tomcat请求含有中文参数的url提示404
<Connector port="80" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8443" <!-- queryString的编码规则 --&gt...
Tomcat中404/500 错误,自定义错误页面
Tomcat中404/500 错误,自定义错误页面   当服务器出现404、500错误时候希望能够给用户友好的现实界面 只需要在项目的web.xml中添加一些配置   <!-- 400错误 --> <error-page> <error-code>400</error-code> <location>/error.jsp&...
大牛求助:tomcat文件访问错误(404)
在tomcat容器中部署了一个工程。rn现在比如访问/project/test/001.swfrn工程中 通过filter拦截了这个请求,在test这个文件中将第一页的内容单独生成一个001.swf文件rn(文件放在project/test/001.swf)生成完了后文件是的确存在的,但是总是报404。如果在生成文件后休眠5s总是能成功。rnrn因为生成文件是调用第三方进程生成的,所以目前怀疑是不是第三方进程或线程文件没有及时释放或资源未写完,但是file.exists()为true。rnrn比较郁闷!rnrn求助各位大牛知道怎么问题是什么原因吗?非常感谢。
捕捉 404/500 错误,自定义Tomcat错误页面
当服务器出现404、500错误时候希望能够给用户友好的现实界面 只需要在项目的web.xml中添加一些配置 [code="java"] 400 /error.jsp 404 /error.jsp 500 /error.jsp java.lang.Exception /error.jsp java.lang.Nul...
eclipse自动部署项目到tomcat出现“404”错误
 部署成功,启动成功,输入地址:http://localhost:8080/gbss-trade-webapp,显示“HTTP Status 404”错误。 查看tomcat的webapps,发现里面没项目部署进来。   初步判断是eclipse里面的tomcat servers配置问题。   在servers下面选择tomcat服务器。双击点击后出现如下提示:   这里看到Se...
tomcat +eclipse 出现错误HTTP Status 404
我是java初学者,昨天按照教程安装了tomcat6.0,通过在地址栏输入http://localhost/8080成功登陆了tomcat的主页,并且通过eclipse里面也能登陆tomcat主页,后来卸载了tomcat6.0,在安装tomcat6.0之后,在地址栏输入http://localhost/8080之后能过登录主页,但是在eclipse里面创建test文件之后,不能够打开主页提示出现错误 HTTP Status 404 rnrn望各位高手给与解答
tomcat关于网页的404路径错误
tomcat可以正常运行,页面也可以访问tomcat。通过myeclipse部署到tomcat却访问不了。老是提示HTTP Status 404 - description The requested resource () is not available.谁知道这是什么问题。rn我的请求是:http://localhost:8080/jsp/servlet/hellorn我的hello,servlet文件路径为C:\Program Files (x86)\Apache Software Foundation\Tomcat 7.0\webapps\Servlet\WEB-INF\classes\com\hsp\servletrn另外servlet项目的xml里面部署[img=https://img-bbs.csdn.net/upload/201508/17/1439791738_804622.png][/img][img=https://img-bbs.csdn.net/upload/201508/17/1439791752_979791.png][/img]rnrn我感觉没有问题啊,怎么就是显示404错误呢??? 有没有大神帮我一把!!急急急
错误404
Struts2当M去掉即class里的文件找不到,会出现错误404
错误:404
  大概一个状况就是:加入springsecurity权限控制之后,访问接口,一直报404, 原因:我把package里面写成具体类了
404 错误
报404错误都是连接接口写错了,这种错误虽然很低级,但对于新手来说却是经常会犯的错误,所以一定要细心, 会显示出哪里出错,按照指示去找错误就行了,如图 点击进去的时候会显示哪里错了 很明显是异步提交的连接写错了,这个不是代码写错,而是少写了一条斜杠,正确的写法是这样的 这些错误就是不够细心犯的错,这些基础一定要牢记,还有一些报404错的可能是你的代码写错了,控制器那边的异步提交对应不上也是会...
eclipse启动tomcat提示错误
首先说明:网上有人说改时间,我改了,没用。rn整个工程dynamic web project 只是在webcontent中新建了一个jsp文件,jsp文件中的内容只有显示两行字符串,所以我认为不存在工程过大的情况rnrnrn错误提示:rnServer Tomcat v7.0 Server at localhost was unable to start within 45 seconds. If the server requires more time, try increasing the timeout in the server editor.rnrn然后是console中的错误提示:rn[code=text]十一月 06, 2014 11:40:29 下午 org.apache.catalina.startup.Catalina startrn严重: Catalina.start: rnorg.apache.catalina.LifecycleException: Failed to start component [StandardServer[8005]]rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:152)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:621)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)rn at java.lang.reflect.Method.invoke(Method.java:483)rn at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:322)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:450)rnCaused by: org.apache.catalina.LifecycleException: Failed to start component [StandardService[Catalina]]rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:152)rn at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:727)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:148)rn ... 7 morernCaused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina]]rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:152)rn at org.apache.catalina.core.StandardService.startInternal(StandardService.java:443)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:148)rn ... 9 morernCaused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost]]rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:152)rn at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1033)rn at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:291)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:148)rn ... 11 morernCaused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/webtesttest]]rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:152)rn at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1033)rn at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:774)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:148)rn ... 14 morernCaused by: org.apache.tomcat.util.bcel.classfile.ClassFormatException: Invalid byte tag in constant pool: 15rn at org.apache.tomcat.util.bcel.classfile.Constant.readConstant(Constant.java:131)rn at org.apache.tomcat.util.bcel.classfile.ConstantPool.(ConstantPool.java:60)rn at org.apache.tomcat.util.bcel.classfile.ClassParser.readConstantPool(ClassParser.java:209)rn at org.apache.tomcat.util.bcel.classfile.ClassParser.parse(ClassParser.java:119)rn at org.apache.catalina.startup.ContextConfig.processAnnotationsStream(ContextConfig.java:1967)rn at org.apache.catalina.startup.ContextConfig.processAnnotationsJar(ContextConfig.java:1858)rn at org.apache.catalina.startup.ContextConfig.processAnnotationsUrl(ContextConfig.java:1826)rn at org.apache.catalina.startup.ContextConfig.processAnnotations(ContextConfig.java:1812)rn at org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1306)rn at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:896)rn at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:322)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)rn at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)rn at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5103)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:148)rn ... 17 more[/code]rnrn有谁知道这个是什么情况不???rnrn
Tomcat重新部署的时候提示错误
我在配置Tomcat应用的时候使用了如下代码:rnrnrn然后每当修改Java文件,就会出现如下提示:rnrn[color=#FF0000]严重: The web application [/test] created a ThreadLocal with key of type [com.opensymphony.xwork2.inject.ContainerImpl$10] (value [com.opensymphony.xwork2.inject.ContainerImpl$10@f5e12]) and a value of type [com.opensymphony.xwork2.inject.InternalContext[]] (value [[Lcom.opensymphony.xwork2.inject.InternalContext;@12471dc]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak. rn2011-10-6 16:45:28 org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaksrn严重: The web application [/test] created a ThreadLocal with key of type [com.opensymphony.xwork2.inject.ContainerImpl$10] (value [com.opensymphony.xwork2.inject.ContainerImpl$10@f5e12]) and a value of type [com.opensymphony.xwork2.inject.InternalContext[]] (value [[Lcom.opensymphony.xwork2.inject.InternalContext;@1af5350]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak. [/color]rnrnrn看代码似乎是有资源没有释放,我代码中只有一个位置用到static变量,不知道是否这个原因,请高手指教。rnrnweb.xmlrnrn[code=XML]rnrnrn rn index.jsprn rn rn contextConfigLocationrn rn /WEB-INF/applicationContext-*.xml,classpath*:applicationContext-*.xmlrn rn rn rn rn org.springframework.web.context.ContextLoaderListenerrn rn rn rnrn rn encodingFilterrn rn org.springframework.web.filter.CharacterEncodingFilterrn rn rn encodingrn UTF-8rn rn rn forceEncodingrn truern rn rn rn encodingFilterrn /*rn rnrn rn struts-cleanuprn rn org.apache.struts2.dispatcher.ActionContextCleanUprn rn rn rn struts-cleanuprn /*rn rnrnrnrn rn struts2rn rn org.apache.struts2.dispatcher.FilterDispatcherrn rn rn rn struts2rn /*rn rn rn rn rn rnrn[/code]rnrn一个工厂rn[code=Java]rnrnpublic class EjbRemoteFactory rn public static Context getInitialContext() rn Context jndiContext = null;rn try rn Properties props = new Properties();rn props.put(Context.INITIAL_CONTEXT_FACTORY,rn "org.jnp.interfaces.NamingContextFactory");rn props.put(Context.URL_PKG_PREFIXES,rn "org.jboss.naming:org.jnp.interfaces");rn props.put(Context.PROVIDER_URL, "jnp://localhost:1099");rn jndiContext = new InitialContext(props);rn catch (NamingException e) rn throw new RuntimeException("Context Initial Failed...");rn rn return jndiContext;rn rnrn public UserRemote getUserRemote() rn return (UserRemote) getRemote(UserRemote.class, "UserBean");rn rnrnrn[/code]rnrn
Tomcat连接池提示驱动错误
tomcat中的server.xmlrn...rn rn...rnrnrnrntomcat中的webdemo3.xmlrnrn rnrnrnrnrn项目里的web.xmlrnrnrn webdemo3rn rn index.htmlrn index.htmrn index.jsprn default.htmlrn default.htmrn default.jsprn rn rn viewDictoryrn webdemo3.chapter04.ViewDictionaryrn rn rn viewDictoryrn /servlet/ViewDictionaryrn rn rn DB Connectionrn jdbc/webdb2rn javax.sql.DataSourcern Containerrn rnrnrnrnrn项目中的ViewDictionary.javarnpackage webdemo3.chapter04;rnrnimport java.io.IOException;rnimport java.io.PrintWriter;rnimport java.sql.Connection;rnimport java.sql.PreparedStatement;rnimport java.sql.ResultSet;rnrnimport javax.servlet.ServletException;rnimport javax.servlet.http.HttpServlet;rnimport javax.servlet.http.HttpServletRequest;rnimport javax.servlet.http.HttpServletResponse;rnrn/**rn * Servlet implementation class ViewDictionaryrn */rnpublic class ViewDictionary extends HttpServlet rn private static final long serialVersionUID = 1L;rn rn /**rn * @see HttpServlet#HttpServlet()rn */rn public ViewDictionary() rn super();rn // TODO Auto-generated constructor stubrn rnrn /**rn * @see HttpServlet#doGet(HttpServletRequest request, HttpServletResponse response)rn */rn protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException rn response.setContentType("text/html;charset=UTF-8");rn PrintWriter out=response.getWriter();rn tryrn javax.naming.Context ctx=new javax.naming.InitialContext();rn javax.sql.DataSource ds=(javax.sql.DataSource)ctx.lookup("java:/comp/env/jdbc/webdb2");rn Connection conn=ds.getConnection();rn rn rn PreparedStatement pstmt=conn.prepareStatement("select * from t_dictionary");rn rn ResultSet rs=pstmt.executeQuery();rn rn StringBuilder table=new StringBuilder();rn table.append(" ");rn table.append(" 书名 价格");rn while(rs.next())rn table.append(" "+rs.getString("english")+" "+rs.getString("chinese")+"");rn rn table.append("");rn out.println(table.toString());rn pstmt.close();rn catch(Exception e)rn e.printStackTrace();rn out.println(e.getMessage());rn rn rnrn /**rn * @see HttpServlet#doPost(HttpServletRequest request, HttpServletResponse response)rn */rn protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException rn // TODO Auto-generated method stubrn rnrnrnrnrnrn控制台错误信息:rnjava.sql.SQLException: Cannot create JDBC driver of class '' for connect URL 'null'rn at org.apache.tomcat.dbcp.dbcp2.BasicDataSource.createConnectionFactory(BasicDataSource.java:2065)rn at org.apache.tomcat.dbcp.dbcp2.BasicDataSource.createDataSource(BasicDataSource.java:1939)rn at org.apache.tomcat.dbcp.dbcp2.BasicDataSource.getConnection(BasicDataSource.java:1412)rn at webdemo3.chapter04.ViewDictionary.doGet(ViewDictionary.java:37)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:622)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219)rn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)rn at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:142)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)rn at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:617)rn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)rn at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:518)rn at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1091)rn at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:668)rn at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1521)rn at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1478)rn at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)rn at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)rn at java.lang.Thread.run(Thread.java:744)rnCaused by: java.sql.SQLException: No suitable driverrn at java.sql.DriverManager.getDriver(DriverManager.java:315)rn at org.apache.tomcat.dbcp.dbcp2.BasicDataSource.createConnectionFactory(BasicDataSource.java:2049)rn ... 26 morernrnrnrnjar包好用,在项目和tomcat都有rnrnrnrn还有个问题一直没有解决,不知道和这个有没有关:rnconn=DriverManager.getConnection("jdbc:mysql://localhost:3360/newsmanager","root","sa123456");rnconn=DriverManager.getConnection("jdbc:mysql://localhost:3306/newsmanager?user=root&password=sa123456");rn第一个不好使 第二个好使 为什么rnrn
tomcat启动java_home提示错误
Tomcat每次启动都提示:  The JAVA_HOME environment variable is not defined correctly  This environment variable is needed to run this program  NB: JAVA_HOME should point to a JDK not a JRE   已经在...
重启tomcat提示错误(图):
错误如图所示:[img=C:\Documents and Settings\Administrator\桌面\2.JPG][/img]rnrn有的人建议重装,遇到过这种错误的请解释一下原因,有什么好的解决办法没,谢过了!
tomcat启动后提示错误
[code=java]2013-1-23 10:08:19 org.apache.coyote.http11.Http11Protocol initrn信息: Initializing Coyote HTTP/1.1 on http-8083rn2013-1-23 10:08:19 org.apache.catalina.startup.Catalina loadrn信息: Initialization processed in 1687 msrn2013-1-23 10:08:19 org.apache.catalina.core.StandardService startrn信息: Starting service Catalinarn2013-1-23 10:08:19 org.apache.catalina.core.StandardEngine startrn信息: Starting Servlet Engine: Apache Tomcat/5.0.28rn2013-1-23 10:08:19 org.apache.catalina.core.StandardHost startrn信息: XML validation disabledrn2013-1-23 10:08:19 org.apache.catalina.core.StandardHost getDeployerrn信息: Create Host deployer for direct deployment ( non-jmx ) rn2013-1-23 10:08:19 org.apache.catalina.core.StandardHostDeployer installrn信息: Processing Context configuration file URL file:D:\tomcat5\conf\Catalina\localhost\admin.xmlrn2013-1-23 10:08:20 org.apache.struts.util.PropertyMessageResources rn信息: Initializing, config='org.apache.struts.util.LocalStrings', returnNull=truern2013-1-23 10:08:20 org.apache.struts.util.PropertyMessageResources rn信息: Initializing, config='org.apache.struts.action.ActionResources', returnNull=truern2013-1-23 10:08:21 org.apache.struts.util.PropertyMessageResources rn信息: Initializing, config='org.apache.webapp.admin.ApplicationResources', returnNull=truern2013-1-23 10:08:23 org.apache.catalina.core.StandardHostDeployer installrn信息: Processing Context configuration file URL file:D:\tomcat5\conf\Catalina\localhost\manager.xmlrn2013-1-23 10:08:23 org.apache.catalina.core.StandardHostDeployer installrn信息: Installing web application at context path /NetMonitor from URL file:D:\tomcat5\webapps\NetMonitorrnlog4j:WARN No appenders could be found for logger (org.apache.commons.beanutils.ConvertUtils).rnlog4j:WARN Please initialize the log4j system properly.rn2013-1-23 10:08:24 org.apache.catalina.core.StandardContext listenerStartrn严重: Skipped installing application listeners due to previous error(s)rn2013-1-23 10:08:24 org.apache.catalina.core.StandardContext startrn严重: Error listenerStartrn2013-1-23 10:08:24 org.apache.catalina.core.StandardContext startrn严重: Context startup failed due to previous errorsrnWARN: The method class org.apache.commons.logging.impl.SLF4JLogFactory#release() was invoked.rnWARN: Please see http://www.slf4j.org/codes.html#release for an explanation.rn2013-1-23 10:08:24 org.apache.coyote.http11.Http11Protocol startrn信息: Starting Coyote HTTP/1.1 on http-8083rn2013-1-23 10:08:24 org.apache.jk.common.ChannelSocket initrn信息: JK2: ajp13 listening on /0.0.0.0:8009rn2013-1-23 10:08:24 org.apache.jk.server.JkMain startrn信息: Jk running ID=0 time=0/47 config=D:\tomcat5\conf\jk2.propertiesrn2013-1-23 10:08:24 org.apache.catalina.startup.Catalina startrn信息: Server startup in 5656 msrn[/code]
布署tomcat错误和提示“Tomcat JDK name”错误
修改java项目名称后布署tomcat错误和提示“Tomcat JDK name”错误
Tomcat 404 页面重定向
修改 /conf/web.xml  在 </web-app> 前添加代码   <error-page>         <error-code>404</error-code>         <location>/error.html</location> </error-page>   403,4
Tomcat 404问题详解
我这里说的404问题 是可以访问localhost:8080,但是访问不了项目的问题。 如果访问不了项目 你就要去看看 tomcat的webapps文件夹里面有没有项目名的文件夹了 。 我想应该是没有的。 问题所在: 我安装的 tomcat的时候 总想着自己是固态硬盘 所以就直接选择c盘安装了。但是 ,往c盘进行读写的时候都需要管理员权限 。这个时候 ,如果我们在tomcat下编译 ,
tomcat 404 配置的问题
今天配置tomcat的404页面发现IE和国产浏览器的极速模式都不生效,只有firefox生效,一直找不到原因,但是基本上能确定是客户端的问题。后来终于把这个问题找出来了。        IE和浏览器极速模式在返回状态为404的时候,如果页面内容长度小于512bytes,它会用浏览器自己的默认错误页面代替响应页面的内容。     不晓得是哪个定的规矩   ...
自定义Tomcat 404错误页面
自定义Tomcat 404错误页面
nginx配置tomcat的404页面
直接贴代码 首先是nginx.conf 的配置 http { include /etc/nginx/mime.types; default_type application/octet-stream; log_format main '$remote_addr - $remote_user [$time_local] "$request" ' ...
tomcat 404的解决方案
HTTP Status 404 - /hotel8/rnrn--------------------------------------------------------------------------------rnrntype Status reportrnrnmessage /hotel8/rnrndescription The requested resource (/hotel8/) is not available.rnrnrn--------------------------------------------------------------------------------rnrnApache Tomcat/5.5.25
tomcat 404 找不到工程
HTTP Status 404 - /hotel8/rnrn--------------------------------------------------------------------------------rnrntype Status reportrnrnmessage /hotel8/rnrndescription The requested resource (/hotel8/) is not available.rnrnrn--------------------------------------------------------------------------------rnrnApache Tomcat/5.5.25
配置tomcat的404页
当访问某个域名下不存在的服务时,也不会报错,不会将服务器的相关信息显示在客户端。为了安全。也为了为了交互友好,美观。
ubuntu tomcat 404
rn 最近在ubuntu server 12下做tomcat的部署,rn 部署成功之后过一段时间不访问,rn 再次访问tomcat就会出现404,输入帐号密码登录ubuntu 系统后,tomcat访问变的正常了。rnrn 有哪位高手知道这个原因吗?rn
HTTP Status 404 -tomcat
我的配置文件如下:rnapplicationContext.xmlrnrnrnrnrnrn rn classpath:apppatent.propertiesrn rn rn rn rn rn $jdbc.driverClassNamern rn rn $jdbc.urlrn rn rn $jdbc.usernamern rn rn $jdbc.passwordrn rn rnrn rn rn rn rn rn rn rnrnrndwr.xmlrnrnrnrnrn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rnrnrnweb.xmlrnrnrn Spec Builderrn rn contextConfigLocationrn /WEB-INF/classes/applicationContext.xmlrn rn rn response-filterrn com.luceneheritrixbook.searchengine.filter.SetResponseFilterrn rnrn rn response-filterrn /*rn rn rn rn org.springframework.web.context.ContextLoaderListenerrn rn rn rn rn DWR Servletrn dwr-invokerrn uk.ltd.getahead.dwr.DWRServletrn rn debugrn truern rn rn rn rn rn rn rn dwr-invokerrn /dwr/*rn rn rn rn rn rn 5rn rn rn speclist.jsprn index.htmrn index.jsprn default.htmlrn default.htmrn default.jsprn rnrn我看了好多次,还是没发现什么问题啊,大家帮我看看哈,谢谢了!
tomcat 404 问题
tomcat,在emplice里启动成功,网页中输入http://localhost:8080成功出现小猫,但是,打开网页文件时总是出现404错误,文件路径没问题,求高手
tomcat 404 问题及解决方法
昨天晚上用tomcat 实验一个小程序,没想到的是一直提示404错误。我已经确认目录下有我的html文件,但仍然是404。今天就总结一下tomcat 404 的几种常见问题及解决方法。 问题一: 指定目录下没有访问的文件,这是最常见的,也是最容易解决的。只需要将访问的文件(如:a.html)放到指定目录下即可。 问题二: 将访问的文件(如...
tomcat 配置404页面
在Tomcat文件夹下找到conf文件夹,找到web.xml文件,在最后面配置 <error-page> <exception-type>404</exception-type> <location>/error.jsp</location> </error-page> 这样就ok了  ...
tomcat下的项目,访问404
部署war包到tomcat的webapps下面,成功启动,控制台无错误信息,但是访问不了,一直404; 解决:打开tomcat的logs,里面有报错信息
404多个提示页面
分享多个404页面,有图片和HTML页面,打包给大家使用。
好看的404提示页
漂亮的404提示页,使用方便,易于替换html模板,向大家推荐
404的低级错误
404问题更新(2)今天在eclipes上部署新项目是出现新404,问题是xml文件里面没有进行设置,图片如下:xml文件内容:更改后xml文件内容
HTTP Status 404 错误!!!
问题3:我的JAVA_HOME=C:\JBuilder6\jdk1.3.1rnTOMCAT_HOME=C:\JBuilder6\jakarta-tomcat-4.0.1rn启动TOMCAT没有问题,用BROWSE浏览TOMCAT的起始画面也行。rn现在我将我的JSP程序放置在C:\JBuilder6\jakarta-tomcat-4.0.1\webapps\chat中(数据库适用MYSQL)rn可是为什么当我运行http:\\localhost:8080\\chat\login.jsp却出现:rn rnApache Tomcat/4.0.4 - HTTP Status 404 - /login.jsprn-----------------------------------------------------rntype Status reportrnrnmessage /login.jsprnrndescription The requested resource (/login.jsp) is not available.rnrn----------------------------------------------------------------rn
相关热词 c# 标准差 计算 c#siki第五季 c#入门推荐书 c# 解码海康数据流 c# xml的遍历循环 c# 取 查看源码没有的 c#解决高并发 委托 c#日期转化为字符串 c# 显示问号 c# 字典对象池