i think I know why now....i removed the axis.jar from the java/jdk/lib/ext....so it seems that if there is an axis.jar in the jdk and in your common/libs or WEB-INF/lib the applications couldnt be restarted because I think the reference to axis.jar in WEB-INF is killed and the reloaded but in the jdk not, so maybe there is a reference problem...anyway it seems to be solved now..
maarten -----Oorspronkelijk bericht----- Van: MW Janssen [mailto:[EMAIL PROTECTED] Verzonden: vrijdag 14 april 2006 14:33 Aan: [email protected] Onderwerp: RE: classloader problems?? I still get the NPE error. I am using tomcat 5.5.7 as a service on a windows box. I tried placing axis.jar in both common/lib and WEB-INF/lib. Someone?? Regards Maarten the NPE: 14:25:45,062 ERROR - java.lang.NullPointerException at org.apache.catalina.loader.WebappClassLoader.findResources(WebappClassLoader .java:946) at java.lang.ClassLoader.getResources(ClassLoader.java:1015) at org.apache.commons.discovery.jdk.JDK12Hooks.getResources(JDK12Hooks.java:150 ) at org.apache.commons.discovery.resource.DiscoverResources$1.getNextResources(D iscoverResources.java:153) at org.apache.commons.discovery.resource.DiscoverResources$1.getNextResource(Di scoverResources.java:129) at org.apache.commons.discovery.resource.DiscoverResources$1.hasNext(DiscoverRe sources.java:116) at org.apache.commons.discovery.resource.names.DiscoverNamesInFile$1.getNextCla ssNames(DiscoverNamesInFile.java:186) at org.apache.commons.discovery.resource.names.DiscoverNamesInFile$1.getNextCla ssName(DiscoverNamesInFile.java:170) at org.apache.commons.discovery.resource.names.DiscoverNamesInFile$1.hasNext(Di scoverNamesInFile.java:157) at org.apache.commons.discovery.resource.names.NameDiscoverers$1.getNextIterato r(NameDiscoverers.java:143) at org.apache.commons.discovery.resource.names.NameDiscoverers$1.hasNext(NameDi scoverers.java:126) at org.apache.commons.discovery.resource.classes.ResourceClassDiscoverImpl$1.ge tNextResource(ResourceClassDiscoverImpl.java:159) at org.apache.commons.discovery.resource.classes.ResourceClassDiscoverImpl$1.ha sNext(ResourceClassDiscoverImpl.java:147) at org.apache.axis.configuration.EngineConfigurationFactoryFinder$1.run(EngineC onfigurationFactoryFinder.java:120) at java.security.AccessController.doPrivileged(Native Method) at org.apache.axis.configuration.EngineConfigurationFactoryFinder.newFactory(En gineConfigurationFactoryFinder.java:113) at org.apache.axis.configuration.EngineConfigurationFactoryFinder.newFactory(En gineConfigurationFactoryFinder.java:160) at org.apache.axis.client.Service.getEngineConfiguration(Service.java:813) at org.apache.axis.client.Service.getAxisClient(Service.java:104) at org.apache.axis.client.Service.<init>(Service.java:113) at org.apache.axis.client.Call.<init>(Call.java:344) at org.apache.axis.soap.SOAPConnectionImpl.call(SOAPConnectionImpl.java:71) at nl.iyellow.util.GntelSOAP.runFunction(GntelSOAP.java:237) at nl.iyellow.util.GntelSOAP.doGet(GntelSOAP.java:105) 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(Application FilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:173) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:214) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:178) 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:825) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne ction(Http11Protocol.java:738) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.jav a:526) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWo rkerThread.java:80) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav a:684) at java.lang.Thread.run(Thread.java:595) nl.iyellow.util.GntelSOAP.runFunction(GntelSOAP.java:245) -----Oorspronkelijk bericht----- Van: MW Janssen [mailto:[EMAIL PROTECTED] Verzonden: donderdag 13 april 2006 21:19 Aan: [email protected]; [EMAIL PROTECTED] Onderwerp: RE: classloader problems?? I tried this (placing axis.jar in WEB-INF/lib) with no success. Maarten -----Oorspronkelijk bericht----- Van: Xingshan He [mailto:[EMAIL PROTECTED] Verzonden: donderdag 13 april 2006 20:15 Aan: [email protected] Onderwerp: RE: classloader problems?? I had this problem when I put axis.jar in shared/lib. It works fine if you put axis.jar within your application war file under WEB-INF/lib directory. I am running Tomcat 5.5. HTH, Cynthia -----Original Message----- From: MW Janssen [mailto:[EMAIL PROTECTED] Sent: Thursday, April 13, 2006 10:33 AM To: [email protected] Subject: classloader problems?? Hi all, I run axis.jar within my application (Tomcat on Winnt, set up as a service) for sending SOAP messages. When I restart the service (via services) everything works great. But when I restart (only) the apllication with the Tomcat Webapplication Manager this is not working anymore and I get a NPE. It seems to do something with the classloader.. have anyone some ideas?? the stack trace: 19:21:36,125 ERROR - java.lang.NullPointerException at org.apache.catalina.loader.WebappClassLoader.findResources(WebappClassLoader java:946) at java.lang.ClassLoader.getResources(ClassLoader.java:1015) at org.apache.commons.discovery.jdk.JDK12Hooks.getResources(JDK12Hooks.java:150 ) at org.apache.commons.discovery.resource.DiscoverResources$1.getNextResources(D iscoverResources.java:153) at org.apache.commons.discovery.resource.DiscoverResources$1.getNextResource(Di scoverResources.java:129) at org.apache.commons.discovery.resource.DiscoverResources$1.hasNext(DiscoverRe sources.java:116) at org.apache.commons.discovery.resource.names.DiscoverNamesInFile$1.getNextCla ssNames(DiscoverNamesInFile.java:186) at org.apache.commons.discovery.resource.names.DiscoverNamesInFile$1.getNextCla ssName(DiscoverNamesInFile.java:170) at org.apache.commons.discovery.resource.names.DiscoverNamesInFile$1.hasNext(Di scoverNamesInFile.java:157) at org.apache.commons.discovery.resource.names.NameDiscoverers$1.getNextIterato r(NameDiscoverers.java:143) at org.apache.commons.discovery.resource.names.NameDiscoverers$1.hasNext(NameDi scoverers.java:126) at org.apache.commons.discovery.resource.classes.ResourceClassDiscoverImpl$1.ge tNextResource(ResourceClassDiscoverImpl.java:159) at org.apache.commons.discovery.resource.classes.ResourceClassDiscoverImpl$1.ha sNext(ResourceClassDiscoverImpl.java:147) at org.apache.axis.configuration.EngineConfigurationFactoryFinder$1.run(EngineC onfigurationFactoryFinder.java:120) at java.security.AccessController.doPrivileged(Native Method) at org.apache.axis.configuration.EngineConfigurationFactoryFinder.newFactory(En gineConfigurationFactoryFinder.java:113) at org.apache.axis.configuration.EngineConfigurationFactoryFinder.newFactory(En gineConfigurationFactoryFinder.java:160) at org.apache.axis.client.Service.getEngineConfiguration(Service.java:813) at org.apache.axis.client.Service.getAxisClient(Service.java:104) at org.apache.axis.client.Service.<init>(Service.java:113) at org.apache.axis.client.Call.<init>(Call.java:344) at org.apache.axis.soap.SOAPConnectionImpl.call(SOAPConnectionImpl.java:71) at nl.iyellow.util.GntelSOAP.runFunction(GntelSOAP.java:250) at nl.iyellow.util.GntelSOAP.doGet(GntelSOAP.java:96) 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(Application FilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:173) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:214) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:178) 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:825) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne ction(Http11Protocol.java:738) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.jav a:526) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWo rkerThread.java:80) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav a:684) at java.lang.Thread.run(Thread.java:595) -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.385 / Virus Database: 268.4.1/310 - Release Date: 12-4-2006 -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.385 / Virus Database: 268.4.1/310 - Release Date: 12-4-2006 -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.385 / Virus Database: 268.4.1/310 - Release Date: 12-4-2006 -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.385 / Virus Database: 268.4.1/310 - Release Date: 12-4-2006 -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.385 / Virus Database: 268.4.1/311 - Release Date: 13-4-2006 -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.385 / Virus Database: 268.4.1/311 - Release Date: 13-4-2006 -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.385 / Virus Database: 268.4.1/311 - Release Date: 13-4-2006
