回覆︰ Tomcat 8 webapp failed to start on Windows reboot

2015-06-21 Thread James Cheung
Hi Chris, 

 
 
 
Christopher Schultz ch...@christopherschultz.net 於 2015年06月19日 (週五) 3:16 AM 
寫道﹕ 
-BEGIN PGP SIGNED MESSAGE- 
Hash: SHA256 
 
James, 
 
On 6/18/15 4:56 AM, James Cheung wrote: 
 Environment 
 
 --- Tomcat 8.0.21 x64 bit, JDK 8u31, Windows 2008 R2 x64 
 bit 
 
 
 Problem --- After upgrading from tomcat 7.0.42 to 8.0.21, my 
 webapp(gih-ws) failed to startup every time the machine is 
 rebooted. In the tomcat catalina log, it did not show any error, 
 but in my webapp(gih-ws) access log, it showed below error. 
 
 
 ERROR 08 6月 2015 03:20:39,329 (AxisEngine.java:219) -[]- The 
 service cannot be found for the endpoint reference (EPR) 
 /gih-ws/services/GIH3Service/keywordSearchWithIndex?maxNoOfResult=11k 
eyword=North%20Point%20Government%20OfficesstartIndex=0response=applic 
ation%2Fjsonlang=enextent=839266.674348%2C816651.312098%2C839765.32565 
2%2C817436.687902 
  org.apache.axis2.AxisFault: The service cannot be found for the 
 endpoint reference (EPR) 
 /gih-ws/services/GIH3Service/keywordSearchWithIndex?maxNoOfResult=11k 
eyword=North%20Point%20Government%20OfficesstartIndex=0response=applic 
ation%2Fjsonlang=enextent=839266.674348%2C816651.312098%2C839765.32565 
2%2C817436.687902 
  at 
 org.apache.axis2.engine.DispatchPhase.checkPostConditions(DispatchPhas 
e.java:78) 
 
This looks like you are trying to call a web service that does not 
exist. Is the gih-ws service failing to start because it can't access 
a remote web service, or is the local Axis service logging that the 
gih-ws service hasn't been deployed? 
 

We didn't make change to the web servcie. They worked fine before our upgrade. 

 at org.apache.axis2.engine.Phase.invoke(Phase.java:329) at 
 org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:262) at 
 org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:168) at 
 org.apache.axis2.transport.http.util.RESTUtil.invokeAxisEngine(RESTUti 
l.java:144) 
  at 
 org.apache.axis2.transport.http.util.RESTUtil.processURLRequest(RESTUt 
il.java:139) 
  at 
 org.apache.axis2.transport.http.AxisServlet$RestRequestProcessor.proce 
ssURLRequest(AxisServlet.java:837) 
  at 
 org.apache.axis2.transport.http.AxisServlet.doGet(AxisServlet.java:273 
) 
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:622) at 
 javax.servlet.http.HttpServlet.service(HttpServlet.java:729) at 
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appli 
cationFilterChain.java:291) 
  at 
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFi 
lterChain.java:206) 
  at 
 org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) 
  at 
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appli 
cationFilterChain.java:239) 
  at 
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFi 
lterChain.java:206) 
  at 
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperVa 
lve.java:219) 
  at 
 org.apache.catalina.core.StandardContextValve.invoke(StandardContextVa 
lve.java:106) 
  at 
 org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authenticat 
orBase.java:502) 
  at 
 org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.ja 
va:142) 
  at 
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.ja 
va:79) 
  at 
 org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAcces 
sLogValve.java:610) 
  at 
 org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValv 
e.java:88) 
  at 
 org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java 
:518) 
  at 
 org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp1 
1Processor.java:1091) 
  at 
 org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(A 
bstractProtocol.java:668) 
  at 
 org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.pro 
cess(Http11AprProtocol.java:283) 
  at 
 org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.doRun(AprEndpoi 
nt.java:2463) 
  at 
 org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint 
.java:2452) 
  at 
 java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.j 
ava:1142) 
  at 
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor. 
java:617) 
  at 
 org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThr 
ead.java:61) 
  at java.lang.Thread.run(Thread.java:745) 
 
 
 Our finding --- We stopped the tomcat 8 service and then 
 started it again and the webapp(gih-ws) can startup and there was 
 no error in the gih-ws access log. It is so weird. Is there any 
 tomcat 8 service startup issue every time the machine is rebooted? 
 Should we start the Tomcat 8 service in Startup(Delayed) mode? I 
 also include below tomcat catalina log for your reference. Thanks. 
 
 
 Tomcat catalina log --- 
 
 10-Jun-2015 10:04:20.250 INFO [Thread-25] 
 org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler 
 

回覆︰ Tomcat 8 webapp failed to start on Windows reboot

2015-06-18 Thread James Cheung
Hi Chris, 

 
 
 
Christopher Schultz ch...@christopherschultz.net 於 2015年06月19日 (週五) 3:16 AM 
寫道﹕ 
-BEGIN PGP SIGNED MESSAGE- 
Hash: SHA256 
 
James, 
 
On 6/18/15 4:56 AM, James Cheung wrote: 
 Environment 
 
 --- Tomcat 8.0.21 x64 bit, JDK 8u31, Windows 2008 R2 x64 
 bit 
 
 
 Problem --- After upgrading from tomcat 7.0.42 to 8.0.21, my 
 webapp(gih-ws) failed to startup every time the machine is 
 rebooted. In the tomcat catalina log, it did not show any error, 
 but in my webapp(gih-ws) access log, it showed below error. 
 
 
 ERROR 08 6月 2015 03:20:39,329 (AxisEngine.java:219) -[]- The 
 service cannot be found for the endpoint reference (EPR) 
 /gih-ws/services/GIH3Service/keywordSearchWithIndex?maxNoOfResult=11k 
eyword=North%20Point%20Government%20OfficesstartIndex=0response=applic 
ation%2Fjsonlang=enextent=839266.674348%2C816651.312098%2C839765.32565 
2%2C817436.687902 
  org.apache.axis2.AxisFault: The service cannot be found for the 
 endpoint reference (EPR) 
 /gih-ws/services/GIH3Service/keywordSearchWithIndex?maxNoOfResult=11k 
eyword=North%20Point%20Government%20OfficesstartIndex=0response=applic 
ation%2Fjsonlang=enextent=839266.674348%2C816651.312098%2C839765.32565 
2%2C817436.687902 
  at 
 org.apache.axis2.engine.DispatchPhase.checkPostConditions(DispatchPhas 
e.java:78) 
 
This looks like you are trying to call a web service that does not 
exist. Is the gih-ws service failing to start because it can't access 
a remote web service, or is the local Axis service logging that the 
gih-ws service hasn't been deployed? 
 

We didn't make change to the web servcie. They worked fine before our upgrade. 

 at org.apache.axis2.engine.Phase.invoke(Phase.java:329) at 
 org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:262) at 
 org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:168) at 
 org.apache.axis2.transport.http.util.RESTUtil.invokeAxisEngine(RESTUti 
l.java:144) 
  at 
 org.apache.axis2.transport.http.util.RESTUtil.processURLRequest(RESTUt 
il.java:139) 
  at 
 org.apache.axis2.transport.http.AxisServlet$RestRequestProcessor.proce 
ssURLRequest(AxisServlet.java:837) 
  at 
 org.apache.axis2.transport.http.AxisServlet.doGet(AxisServlet.java:273 
) 
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:622) at 
 javax.servlet.http.HttpServlet.service(HttpServlet.java:729) at 
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appli 
cationFilterChain.java:291) 
  at 
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFi 
lterChain.java:206) 
  at 
 org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) 
  at 
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appli 
cationFilterChain.java:239) 
  at 
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFi 
lterChain.java:206) 
  at 
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperVa 
lve.java:219) 
  at 
 org.apache.catalina.core.StandardContextValve.invoke(StandardContextVa 
lve.java:106) 
  at 
 org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authenticat 
orBase.java:502) 
  at 
 org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.ja 
va:142) 
  at 
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.ja 
va:79) 
  at 
 org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAcces 
sLogValve.java:610) 
  at 
 org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValv 
e.java:88) 
  at 
 org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java 
:518) 
  at 
 org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp1 
1Processor.java:1091) 
  at 
 org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(A 
bstractProtocol.java:668) 
  at 
 org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.pro 
cess(Http11AprProtocol.java:283) 
  at 
 org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.doRun(AprEndpoi 
nt.java:2463) 
  at 
 org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint 
.java:2452) 
  at 
 java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.j 
ava:1142) 
  at 
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor. 
java:617) 
  at 
 org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThr 
ead.java:61) 
  at java.lang.Thread.run(Thread.java:745) 
 
 
 Our finding --- We stopped the tomcat 8 service and then 
 started it again and the webapp(gih-ws) can startup and there was 
 no error in the gih-ws access log. It is so weird. Is there any 
 tomcat 8 service startup issue every time the machine is rebooted? 
 Should we start the Tomcat 8 service in Startup(Delayed) mode? I 
 also include below tomcat catalina log for your reference. Thanks. 
 
 
 Tomcat catalina log --- 
 
 10-Jun-2015 10:04:20.250 INFO [Thread-25] 
 org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler