2 hscch hscch 于 2017.09.07 11:04 提问

为什么我的项目发布到服务器上以后访问jsp页面不显示内容,但是html页面可以显示

07-Sep-2017 10:06:49.496 信息 [http-nio-8080-exec-25] org.apache.catalina.core.ApplicationContext.log HTMLManager: list: Listing contexts for virtual host 'localhost'
07-Sep-2017 10:06:51.791 信息 [http-nio-8080-exec-15] org.apache.catalina.core.ApplicationContext.log HTMLManager: start: Starting web application '/F:newlib'
07-Sep-2017 10:06:52.007 严重 [http-nio-8080-exec-15] org.apache.catalina.core.ApplicationContext.log FAIL - Application at context path [/F:newlib] could not be started
org.apache.catalina.LifecycleException: start:
at org.apache.catalina.loader.WebappLoader.startInternal(WebappLoader.java:415)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5047)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
at org.apache.catalina.manager.ManagerServlet.start(ManagerServlet.java:1307)
at org.apache.catalina.manager.HTMLManagerServlet.start(HTMLManagerServlet.java:665)
at org.apache.catalina.manager.HTMLManagerServlet.doPost(HTMLManagerServlet.java:211)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:661)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:742)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at org.apache.catalina.filters.CsrfPreventionFilter.doFilter(CsrfPreventionFilter.java:136)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at org.apache.catalina.filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:108)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:199)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:592)
at org.apache.catalina.valves.RequestFilterValve.process(RequestFilterValve.java:319)
at org.apache.catalina.valves.RemoteAddrValve.invoke(RemoteAddrValve.java:88)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:80)
at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:624)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:342)
at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:498)
at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:796)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1366)
at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:745)
Caused by: javax.management.MalformedObjectNameException: Invalid character ':' in value part of property
at javax.management.ObjectName.construct(ObjectName.java:618)
at javax.management.ObjectName.(ObjectName.java:1382)
at org.apache.catalina.loader.WebappLoader.startInternal(WebappLoader.java:407)
... 38 more


4个回答

Small_Mouse0
Small_Mouse0   Ds   Rxr 2017.09.07 11:06
已采纳

项目都报错了,,,,看你控制台,,一堆错误

hscch
hscch 解决了,我的路径搞错了,发布的时候也有点问题,谢谢大佬
3 个月之前 回复
Small_Mouse0
Small_Mouse0 回复韩建鑫院长: 是windows【/F:newlib】这个路径也有问题,,至少也得是,,【F://newlib】或者【F:\newlib】
3 个月之前 回复
hscch
hscch 回复小鼠标丶: 恩,服务器是windows......我看一下web.xml...
3 个月之前 回复
Small_Mouse0
Small_Mouse0 回复韩建鑫院长: 启动肯定不报错,,这个是运行时错误,,,【/F:newlib】,,服务器是windows ?,,web.xml路径配置错了可能是
3 个月之前 回复
hscch
hscch 上面贴的是日志文件,控制台没有报错,下面上图
3 个月之前 回复
hscch
hscch   2017.09.07 11:11

图片说明

sunny_desmond
sunny_desmond   2017.09.07 14:03

不明觉厉,围观大佬解答~~~

qq_33727653
qq_33727653   2017.09.07 16:05

难道楼主代码里面关于路径方面的信息,楼主写了很多死值?

hscch
hscch 没有,是我发布的时候路径有问题
3 个月之前 回复
Csdn user default icon
上传中...
上传图片
插入图片