gpt4 book ai didi

java - tomcat 6 崩溃新的 webapp

转载 作者:行者123 更新时间:2023-11-28 23:29:58 24 4
gpt4 key购买 nike

我被要求接管 Java webapp 的托管,我以前从未使用过 Java,我被告知 Tomcat 是可行的方法,所以我有一个装有 Tomcat 6 的 Windows 服务器,我已经上传了网站并创建了虚拟主机,网站似乎对我来说工作正常,然后我接到一个电话,在 editlead.jsp 上的语言验证存在问题,并在 tomcat 的引导中添加 -xverify:none 解决了这个问题,

现在今天服务器崩溃了,我无法重新启动服务我不得不任务管理器旧服务并重新启动它,在这种情况发生两次之后服务器停止崩溃,甚至试图复制他们可能在办公室看看我是否可以导致它崩溃但没有。

我已经尝试阅读日志,但它让我感到困惑,所以如果有人可以提供帮助,我将它们粘贴在下面。

2015-08-04 11:29:15 Commons Daemon procrun stderr initialized   
Aug 04, 2015 11:29:16 AM org.apache.catalina.core.AprLifecycleListener init
INFO: Loaded APR based Apache Tomcat Native library 1.1.33 using APR version 1.5.1.
Aug 04, 2015 11:29:16 AM org.apache.catalina.core.AprLifecycleListener init
INFO: APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true].
Aug 04, 2015 11:29:16 AM org.apache.tomcat.util.digester.SetPropertiesRule begin
WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'debug' to '0' did not find a matching property.
Aug 04, 2015 11:29:17 AM org.apache.catalina.core.AprLifecycleListener initializeSSL
INFO: OpenSSL successfully initialized with version OpenSSL 1.0.1m 19 Mar 2015
Aug 04, 2015 11:29:17 AM org.apache.coyote.http11.Http11AprProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-80
Aug 04, 2015 11:29:17 AM org.apache.coyote.ajp.AjpAprProtocol init
INFO: Initializing Coyote AJP/1.3 on ajp-8009
Aug 04, 2015 11:29:17 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 2007 ms
Aug 04, 2015 11:29:17 AM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Aug 04, 2015 11:29:17 AM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.44
Aug 04, 2015 11:29:17 AM org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor CMD.xml
Aug 04, 2015 11:29:19 AM org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor host-manager.xml
Aug 04, 2015 11:29:19 AM org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor manager.xml
Aug 04, 2015 11:29:20 AM org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor ROOT.xml
Aug 04, 2015 11:29:20 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory BIN
Aug 04, 2015 11:29:20 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory docs
Aug 04, 2015 11:29:20 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory examples
Aug 04, 2015 11:29:22 AM org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor CMD.xml
Aug 04, 2015 11:29:23 AM org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor host-manager.xml
Aug 04, 2015 11:29:23 AM org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor manager.xml
Aug 04, 2015 11:29:23 AM org.apache.catalina.startup.HostConfig deployDescriptor
WARNING: A docBase C:\Tomcat 6.0\webapps\manager inside the host appBase has been specified, and will be ignored
Aug 04, 2015 11:29:23 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory BIN
Aug 04, 2015 11:29:23 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory docs
Aug 04, 2015 11:29:23 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory examples
Aug 04, 2015 11:29:23 AM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextInitialized()
Aug 04, 2015 11:29:23 AM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextInitialized()
Aug 04, 2015 11:29:23 AM org.apache.coyote.http11.Http11AprProtocol start
INFO: Starting Coyote HTTP/1.1 on http-80
Aug 04, 2015 11:29:23 AM org.apache.coyote.ajp.AjpAprProtocol start
INFO: Starting Coyote AJP/1.3 on ajp-8009
Aug 04, 2015 11:29:23 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 6129 ms
Aug 04, 2015 11:29:58 AM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet LeadHandlerServlet threw exception
java.lang.IllegalStateException: Cannot forward after response has been committed
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:312)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302)
at LeadHandlerServlet.doPost(LeadHandlerServlet.java:338)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:643)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:615)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:879)
at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:617)
at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1778)
at java.lang.Thread.run(Unknown Source)

最佳答案

如果不了解 LeadHandlerServlet 中的情况,就很难判断这里发生了什么。我猜你在 doPost() 中的第 338 行附近有这样的东西:

RequestDispatcher appDispatcher = getServletContext().getRequestDispatcher(someURL);appDispatcher.forward(请求,响应);

我看不到代码。但这可能是对 forward() 的第二次调用。如果是的话,它会吹垫圈。通常,在调用 forward() 之后,您需要让脏兮兮的小手远离响应。通常人们会在调用后立即粘贴 return 语句,并让后续传入的线程处理底层可能存在的任何逻辑。

关于java - tomcat 6 崩溃新的 webapp,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31818124/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com