|
From: <php...@li...> - 2009-09-08 18:38:21
|
We have been running the JavaBridge on Tomcat for a few months now. Just had an issue where our PHP application stopped recognizing the JavaBridge. When we checked Tomcat, it showed JavaBridge as not running. When we tried to restart it, we got: Message: FAIL - Application at context path /JavaBridge could not be started Any ideas? - Chris ERROR LOGS: admin: [nothing] catalina: Sep 8, 2009 10:44:38 AM org.apache.catalina.core.StandardContext start SEVERE: Context [/JavaBridge] startup failed due to previous errors host: [nothing] localhost: Sep 8, 2009 10:44:38 AM org.apache.catalina.core.StandardContext listenerStop SEVERE: Exception sending context destroyed event to listener instance of class php.java.servlet.ContextLoaderListener java.lang.NoClassDefFoundError: java/io/Closeable at php.java.servlet.ContextLoaderListener.destroyScriptEngines(ContextLoaderListener.java:86) at php.java.servlet.ContextLoaderListener.contextDestroyed(ContextLoaderListener.java:102) at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:3804) at org.apache.catalina.core.StandardContext.stop(StandardContext.java:4352) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4241) at org.apache.catalina.manager.ManagerServlet.start(ManagerServlet.java:1175) at org.apache.catalina.manager.HTMLManagerServlet.start(HTMLManagerServlet.java:527) at org.apache.catalina.manager.HTMLManagerServlet.doGet(HTMLManagerServlet.java:104) at javax.servlet.http.HttpServlet.service(HttpServlet.java:689) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:524) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) at java.lang.Thread.run(Thread.java:568) manager: Sep 8, 2009 10:44:38 AM org.apache.catalina.core.ApplicationContext log INFO: HTMLManager: start: Starting web application at '/JavaBridge' |
|
From: <php...@li...> - 2009-09-08 19:45:02
|
Hi, > java.lang. NoClassDefFoundError A simple file system copy operation may trigger this Java bug. If cleaning catalina_home/Work and temp doesn't solve the problem, you need to remove all .jar and .class files on this computer (yes, all of them) and install java and tomcat again. After that tomcat will work again, until someone copies .jar files or class files around again. There are several attempts which try to solve java's "dll hell", the best proposal is the one from rice.edu, the most practical is the osgi package system, while sun seems to favor its own breed for java 7. Please do not copy jar or class files around after you have compiled a java "program", until it is possible to link java modules to java programs. At the moment Java has to search the computer file system at run-time to find a class. If you modify the computer file system after the compilation phase, Java may mix up class versions, causing strange error messages at run-time. Regards, Jost Boekemeier 8. Sep 2009 8:38 nachm. schrieb am < php...@li...>: We have been running the JavaBridge on Tomcat for a few months now. Just had an issue where our PHP application stopped recognizing the JavaBridge. When we checked Tomcat, it showed JavaBridge as not running. When we tried to restart it, we got: Message: FAIL - Application at context path /JavaBridge could not be started Any ideas? - Chris ERROR LOGS: admin: [nothing] catalina: Sep 8, 2009 10:44:38 AM org.apache.catalina.core.StandardContext start SEVERE: Context [/JavaBridge] startup failed due to previous errors host: [nothing] localhost: Sep 8, 2009 10:44:38 AM org.apache.catalina.core.StandardContext listenerStop SEVERE: Exception sending context destroyed event to listener instance of class php.java.servlet.ContextLoaderListener java.lang.NoClassDefFoundError: java/io/Closeable at php.java.servlet.ContextLoaderListener.destroyScriptEngines(ContextLoaderListener.java:86) at php.java.servlet.ContextLoaderListener.contextDestroyed(ContextLoaderListener.java:102) at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:3804) at org.apache.catalina.core.StandardContext.stop(StandardContext.java:4352) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4241) at org.apache.catalina.manager.ManagerServlet.start(ManagerServlet.java:1175) at org.apache.catalina.manager.HTMLManagerServlet.start(HTMLManagerServlet.java:527) at org.apache.catalina.manager.HTMLManagerServlet.doGet(HTMLManagerServlet.java:104) at javax.servlet.http.HttpServlet.service(HttpServlet.java:689) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:524) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) at java.lang.Thread.run(Thread.java:568) manager: Sep 8, 2009 10:44:38 AM org.apache.catalina.core.ApplicationContext log INFO: HTMLManager: start: Starting web application at '/JavaBridge' ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ php-java-bridge-users mailing list php...@li... https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users |
|
From: <php...@li...> - 2009-09-09 08:26:15
|
Hi again, I just saw that the cvs head contains a workaround for this problem. To avoid this problem in version 5.4.4.2 please either upgrade to Java 1.6 or higher or never touch a running JavaBridge web application so that tomcat doesn't have to restart it while running or remove the ContextLoaderListener declaration from your WEB-INF/web.xml. Regards, Jost Boekemeier 8. Sep 2009 8:38 nachm. schrieb am < php...@li...>: > > We have been running the JavaBridge on Tomcat for a few months now. > Just had an issue where o... |
|
From: <php...@li...> - 2009-09-12 16:36:45
|
Hi, Version 5.5.2 now contains a try/catch (see http://php-java-bridge.cvs.sourceforge.net/viewvc/php-java-bridge/php-java-bridge/server/php/java/servlet/ContextLoaderListener.java?r1=1.8&r2=1.9) so that NoClassDefFoundErrors in Java 1.4 or below do not stop the shutdown process. Regards, Jost Boekemeier |