RES: ClassNotFoundException - common/lib works, shared/lib gets exception
Hi Rich, Did you have any answer? I'm with the same problem using TC559... -Mensagem original- De: Rich Mayfield [mailto:[EMAIL PROTECTED] Enviada em: sabado, 7 de maio de 2005 14:53 Para: tomcat-user@jakarta.apache.org Assunto: ClassNotFoundException - common/lib works, shared/lib gets exception So that I avoid already loaded classloader problems with jar's that front native library calls via JNI, I am following the pattern of putting the jars into shared/lib. However, I get a ClassNotFoundException. If I put this into CATALINA_HOME/common/lib, everything works fine. It's my impression, though, that one ought to put it into shared/lib. I've tried both CATALINA_HOME/shared/lib and CATALINA_BASE/shared/lib. This is on Tomcat 5.0.28. I have not changed CATALINA_HOME/conf/catalina.properties, which would imply that CATALINA_BASE/shared/lib should work. Any ideas what might be going awry? Thanks for you help. rich - Do you Yahoo!? Yahoo! Mail - Helps protect you from nasty viruses. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
help for ClassNotFoundException
Hi , Under tomcat I am integrating the uPortal and running one portlet application in a web context. I put my own classes under the WEB-INF/classes directory and also put jar files in WEB-INF/lib directory , but I am getting the error : ClassNotFoundException , When I put these jar files in tomcat/common/lib directory , its working fine. Can anyone tell me That how and where I can specify for a web application under one context that where are the jar And class files. Qaiser Mehmood
ClassNotFoundException in thread
Hi all, I've just migrated my appservers from HP-UX to Linux RedHat AS4, and I'm now stuck with a strange issue : I've 2 jar in the WEB-INF/lib directory (common.jar and statistic.jar). The common.jar contains a Watchdog that seek in the DB for job to run, start them, and those jobs are looking for classes by reflection to handle the process to be done. The statistic.jar package contains the classes that handle the process to be done. Everything was fin until I migrated. Now the jobs run OK but they fire a ClassNotFoundException as shwon : java.lang.ClassNotFoundException: com.nexans.statistic.client.model.send.intranet.handler.CreateFileProcedure at java.net.URLClassLoader$1.run(URLClassLoader.java:199) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:187) at java.lang.ClassLoader.loadClass(ClassLoader.java:289) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274) at java.lang.ClassLoader.loadClass(ClassLoader.java:235) at com.nexans.common.alert.businessmodel.jdbc.AlertJobImpl.run(AlertJobImpl.java:466) at java.lang.Thread.run(Thread.java:534) The problem persists when I extract the classes in the jar into WEB-INF/classes. So now I don't know what to do next and where to search. Does anyone have an idea ? I'm using Tomcat 4.1.31+ mod_jk 1.10 (was using tomcat 4.1.30 and jk2 on HP-ux, but I quite sure the problem is not there...) with java version 1.4.2_07 Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_07-b05) Java HotSpot(TM) Client VM (build 1.4.2_07-b05, mixed mode) on RH and java version 1.4.1.03 Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1.03-030630-19:37) Java HotSpot(TM) Server VM (build 1.4.1 1.4.1.03-030630-22:07-PA_RISC2.0 PA2.0, mixed mode) on HP-UX Thanks in advance Cyril ZEKSER - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: ClassNotFoundException in thread
On 6/2/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Everything was fin until I migrated. Now the jobs run OK but they fire a ClassNotFoundException as shwon : You double checked that com.nexans.statistic.client.model.send.intranet.handler.CreateFileProcedure is there in the jar and is in the right folder ?. Restarted Tomcat ?. Also try with a fresh copy of the jar. -- rgds Anto Paul - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Réf. : Re: ClassNotFoundException in thread
Everything was fin until I migrated. Now the jobs run OK but they fire a ClassNotFoundException as shwon : You double checked that com.nexans.statistic.client.model.send.intranet.handler.CreateFileProcedure is there in the jar and is in the right folder ?. Restarted Tomcat ?. Also try with a fresh copy of the jar. Anto, the class is there, both in the jar or in the classes directory (when I removed the jar of course). The package is well spelled, and java at the command line returns me a no main function error when I try to run it from the WEB-INF dir. Tomcat was restarted (both the server and the webapp) many times during this. I guess the problem is elsewhere :) Cyril - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Réf. : Re: ClassNotFoundException in thread
is there a static initialisation code in com.nexans.statistic.client.model.send.intranet.handler.CreateFileProcedure ? or static properties whose values are taken from other methods? If anything in the static initialisation of class com.nexans.statistic.client.model.send.intranet.handler.CreateFileProcedure throws an Exception, the class wil be considered as non-existent. (which is quite normal, sometinh that could not be create does not exist) Le Jeudi 2 Juin 2005 15:58, [EMAIL PROTECTED] a écrit : Everything was fin until I migrated. Now the jobs run OK but they fire a ClassNotFoundException as shwon : You double checked that com.nexans.statistic.client.model.send.intranet.handler.CreateFileProcedur e is there in the jar and is in the right folder ?. Restarted Tomcat ?. Also try with a fresh copy of the jar. Anto, the class is there, both in the jar or in the classes directory (when I removed the jar of course). The package is well spelled, and java at the command line returns me a no main function error when I try to run it from the WEB-INF dir. Tomcat was restarted (both the server and the webapp) many times during this. I guess the problem is elsewhere :) Cyril - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- David Delbecq Royal Meteorological Institute of Belgium - Is there life after /sbin/halt -p? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Réf. : Re: Réf. : Re: ClassNotFoundException in thread
Thanks for your answer but : is there a static initialisation code in com.nexans.statistic.client.model.send.intranet.handler.CreateFileProcedure ? or static properties whose values are taken from other methods? If anything in the static initialisation of class com.nexans.statistic.client.model.send.intranet.handler.CreateFileProcedure throws an Exception, the class wil be considered as non-existent. (which is quite normal, sometinh that could not be create does not exist) In fact, there is one static property : private static Logger myLog = Logger.getLogger( CreateFileProcedure.class ); but, as you mentionned in another mail, the Log4j.jar is not in common. this jar is in WEB-INF/lib (i've double checked ... kindda paranoid no ? :-) The line that crashed is the following : Object jobClass = Class.forName( getClassName() ).newInstance(); where getClassName() returns com.nexans.statistic.client.model.send.intranet.handler.CreateFileProcedure The problem is when the Thread try to find the class, because a test JSP can execute this without Exception. What are the possible changes between the two platforms mentioned regarding threads ? (RHAS4 with JDK 1.4.2 and HP-UX11 with JDK 1.4.1). Java has enough memory, and is started in -server mode with -Xmx512m option. Both config files (from both platform) are identical - except of course the directories. I've though also of a ISO-xxx encoding instead of UTF-8 that could cause the problem, but not... This code is a year old, and was working fine in the old platform - that crashed unfortunately... so I had to migrate. Copying the JAR seems not enough to work properly. Any other idea for me to explore ? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
SOLUTION : Réf. : Réf. : Re: Réf. : Re: ClassNotFoundException in thread
Yeepeh !!! I've found the solution : All I needed to do was changing the loading of the class by : Object jobClass = this.getClass().getClassLoader().loadClass( getClassName() ).newInstance(); //Object jobClass = Class.forName( getClassName() ).newInstance(); I guess the OS and the JVM behave differently from HP-UX to Linux, now the class is found in the Thread. I don't know why the previous code was working in the previous platform... If there is a better wy to write this, please tell me :) Hope this help others people... Cyril ZEKSER Pour : Tomcat Users List tomcat-user@jakarta.apache.org 02/06/2005 17:02 cc : Objet : Réf. : Re: Réf. : Re: ClassNotFoundException in thread(Document link: Cyril ZEKSER) Thanks for your answer but : is there a static initialisation code in com.nexans.statistic.client.model.send.intranet.handler.CreateFileProcedure ? or static properties whose values are taken from other methods? If anything in the static initialisation of class com.nexans.statistic.client.model.send.intranet.handler.CreateFileProcedure throws an Exception, the class wil be considered as non-existent. (which is quite normal, sometinh that could not be create does not exist) In fact, there is one static property : private static Logger myLog = Logger.getLogger( CreateFileProcedure.class ); but, as you mentionned in another mail, the Log4j.jar is not in common. this jar is in WEB-INF/lib (i've double checked ... kindda paranoid no ? :-) The line that crashed is the following : Object jobClass = Class.forName( getClassName() ).newInstance(); where getClassName() returns com.nexans.statistic.client.model.send.intranet.handler.CreateFileProcedure The problem is when the Thread try to find the class, because a test JSP can execute this without Exception. What are the possible changes between the two platforms mentioned regarding threads ? (RHAS4 with JDK 1.4.2 and HP-UX11 with JDK 1.4.1). Java has enough memory, and is started in -server mode with -Xmx512m option. Both config files (from both platform) are identical - except of course the directories. I've though also of a ISO-xxx encoding instead of UTF-8 that could cause the problem, but not... This code is a year old, and was working fine in the old platform - that crashed unfortunately... so I had to migrate. Copying the JAR seems not enough to work properly. Any other idea for me to explore ? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
ClassNotFoundException - common/lib works, shared/lib gets exception
So that I avoid already loaded classloader problems with jar's that front native library calls via JNI, I am following the pattern of putting the jars into shared/lib. However, I get a ClassNotFoundException. If I put this into CATALINA_HOME/common/lib, everything works fine. It's my impression, though, that one ought to put it into shared/lib. I've tried both CATALINA_HOME/shared/lib and CATALINA_BASE/shared/lib. This is on Tomcat 5.0.28. I have not changed CATALINA_HOME/conf/catalina.properties, which would imply that CATALINA_BASE/shared/lib should work. Any ideas what might be going awry? Thanks for you help. rich - Do you Yahoo!? Yahoo! Mail - Helps protect you from nasty viruses.
ClassNotFoundException - common/lib works, shared/lib gets exception
So that I avoid already loaded classloader problems with jar's that front native library calls via JNI, I am following the pattern of putting the jars into shared/lib. However, I get a ClassNotFoundException. If I put this into CATALINA_HOME/common/lib, everything works fine. It's my impression, though, that one ought to put it into shared/lib. I've tried both CATALINA_HOME/shared/lib and CATALINA_BASE/shared/lib. This is on Tomcat 5.0.28. I have not changed CATALINA_HOME/conf/catalina.properties, which would imply that CATALINA_BASE/shared/lib should work. Any ideas what might be going awry? Thanks for you help. rich - Do you Yahoo!? Yahoo! Mail - You care about security. So do we.
Re: Persistence manager ClassNotFoundException during deserialization
Although I am getting a different stacktrace, I hope #19701 will solve my issue. Thanks for spending your valuable time for me. On Tue, 22 Mar 2005 20:27:45 +, Mark Thomas [EMAIL PROTECTED] wrote: It is only a guess but it looks like you have hit http://issues.apache.org/bugzilla/show_bug.cgi?id=19701 This was fixed in the 4.1.31 release Mark Antony Paul wrote: I need to have a bug registered for this as I could convince my manager. I searched bugzilla but could'nt find one. If anyone know the relevant bug# please post it or shall I post a bug report and any one close it immediately ?. On Wed, 9 Mar 2005 15:05:13 +0530, Antony Paul [EMAIL PROTECTED] wrote: It is working in 4.1.31. Thanks for the help rgds Antony Paul On Tue, 08 Mar 2005 22:52:50 +, Mark Thomas [EMAIL PROTECTED] wrote: What happens on 4.1.31? Mark Antony Paul wrote: I created a sample application and is available at http://geocities.com/antonypaul24/web.html . Any one can download it and test. rgds Antony Paul On Tue, 8 Mar 2005 10:01:13 +0530, Antony Paul [EMAIL PROTECTED] wrote: I am waiting for some knowledgeable person to answer my questions. Meanwhile I will write a test application, download Tomcat source code and try to debug the problem. rgds Antony Paul On Mon, 7 Mar 2005 18:30:47 +0530, Antony Paul [EMAIL PROTECTED] wrote: Hi all, I am getting ClassNotFoundException when deserialising arrays/Lists stored in session. It have no problem with normal objects but have error when it is made an array or List. The set up is Tomcat 4.1.12 standalone. Sun J2SE 1.4.2_04. Using Filestore persistent manager which is set in example config. The full stack trace is given below from catalina.out. 2005-03-07 18:22:23 CoyoteAdapter An exception or error occurred in the container during the request processing java.lang.IllegalStateException: Error deserializing Session 8D30D6F68AA046F5DEB574FCA3C8E06F: java.lang.ClassNotFoundException: [Lmd.edrugstore.model.AuthenticatedWebUser; at org.apache.catalina.session.PersistentManagerBase.swapIn(PersistentManagerBase.java:717) at org.apache.catalina.session.PersistentManagerBase.findSession(PersistentManagerBase.java:593) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:173) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:380) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:533) at java.lang.Thread.run(Thread.java:534) rgds Antony Paul - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- rgds Antony Paul http://www.geocities.com/antonypaul24/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- rgds Antony Paul http://www.geocities.com/antonypaul24/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Persistence manager ClassNotFoundException during deserialization
It is only a guess but it looks like you have hit http://issues.apache.org/bugzilla/show_bug.cgi?id=19701 This was fixed in the 4.1.31 release Mark Antony Paul wrote: I need to have a bug registered for this as I could convince my manager. I searched bugzilla but could'nt find one. If anyone know the relevant bug# please post it or shall I post a bug report and any one close it immediately ?. On Wed, 9 Mar 2005 15:05:13 +0530, Antony Paul [EMAIL PROTECTED] wrote: It is working in 4.1.31. Thanks for the help rgds Antony Paul On Tue, 08 Mar 2005 22:52:50 +, Mark Thomas [EMAIL PROTECTED] wrote: What happens on 4.1.31? Mark Antony Paul wrote: I created a sample application and is available at http://geocities.com/antonypaul24/web.html . Any one can download it and test. rgds Antony Paul On Tue, 8 Mar 2005 10:01:13 +0530, Antony Paul [EMAIL PROTECTED] wrote: I am waiting for some knowledgeable person to answer my questions. Meanwhile I will write a test application, download Tomcat source code and try to debug the problem. rgds Antony Paul On Mon, 7 Mar 2005 18:30:47 +0530, Antony Paul [EMAIL PROTECTED] wrote: Hi all, I am getting ClassNotFoundException when deserialising arrays/Lists stored in session. It have no problem with normal objects but have error when it is made an array or List. The set up is Tomcat 4.1.12 standalone. Sun J2SE 1.4.2_04. Using Filestore persistent manager which is set in example config. The full stack trace is given below from catalina.out. 2005-03-07 18:22:23 CoyoteAdapter An exception or error occurred in the container during the request processing java.lang.IllegalStateException: Error deserializing Session 8D30D6F68AA046F5DEB574FCA3C8E06F: java.lang.ClassNotFoundException: [Lmd.edrugstore.model.AuthenticatedWebUser; at org.apache.catalina.session.PersistentManagerBase.swapIn(PersistentManagerBase.java:717) at org.apache.catalina.session.PersistentManagerBase.findSession(PersistentManagerBase.java:593) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:173) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:380) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:533) at java.lang.Thread.run(Thread.java:534) rgds Antony Paul - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- rgds Antony Paul http://www.geocities.com/antonypaul24/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Persistence manager ClassNotFoundException during deserialization
I need to have a bug registered for this as I could convince my manager. I searched bugzilla but could'nt find one. If anyone know the relevant bug# please post it or shall I post a bug report and any one close it immediately ?. On Wed, 9 Mar 2005 15:05:13 +0530, Antony Paul [EMAIL PROTECTED] wrote: It is working in 4.1.31. Thanks for the help rgds Antony Paul On Tue, 08 Mar 2005 22:52:50 +, Mark Thomas [EMAIL PROTECTED] wrote: What happens on 4.1.31? Mark Antony Paul wrote: I created a sample application and is available at http://geocities.com/antonypaul24/web.html . Any one can download it and test. rgds Antony Paul On Tue, 8 Mar 2005 10:01:13 +0530, Antony Paul [EMAIL PROTECTED] wrote: I am waiting for some knowledgeable person to answer my questions. Meanwhile I will write a test application, download Tomcat source code and try to debug the problem. rgds Antony Paul On Mon, 7 Mar 2005 18:30:47 +0530, Antony Paul [EMAIL PROTECTED] wrote: Hi all, I am getting ClassNotFoundException when deserialising arrays/Lists stored in session. It have no problem with normal objects but have error when it is made an array or List. The set up is Tomcat 4.1.12 standalone. Sun J2SE 1.4.2_04. Using Filestore persistent manager which is set in example config. The full stack trace is given below from catalina.out. 2005-03-07 18:22:23 CoyoteAdapter An exception or error occurred in the container during the request processing java.lang.IllegalStateException: Error deserializing Session 8D30D6F68AA046F5DEB574FCA3C8E06F: java.lang.ClassNotFoundException: [Lmd.edrugstore.model.AuthenticatedWebUser; at org.apache.catalina.session.PersistentManagerBase.swapIn(PersistentManagerBase.java:717) at org.apache.catalina.session.PersistentManagerBase.findSession(PersistentManagerBase.java:593) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:173) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:380) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:533) at java.lang.Thread.run(Thread.java:534) rgds Antony Paul - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- rgds Antony Paul http://www.geocities.com/antonypaul24/ -- rgds Antony Paul http://www.geocities.com/antonypaul24/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Persistence manager ClassNotFoundException during deserialization
It is working in 4.1.31. Thanks for the help rgds Antony Paul On Tue, 08 Mar 2005 22:52:50 +, Mark Thomas [EMAIL PROTECTED] wrote: What happens on 4.1.31? Mark Antony Paul wrote: I created a sample application and is available at http://geocities.com/antonypaul24/web.html . Any one can download it and test. rgds Antony Paul On Tue, 8 Mar 2005 10:01:13 +0530, Antony Paul [EMAIL PROTECTED] wrote: I am waiting for some knowledgeable person to answer my questions. Meanwhile I will write a test application, download Tomcat source code and try to debug the problem. rgds Antony Paul On Mon, 7 Mar 2005 18:30:47 +0530, Antony Paul [EMAIL PROTECTED] wrote: Hi all, I am getting ClassNotFoundException when deserialising arrays/Lists stored in session. It have no problem with normal objects but have error when it is made an array or List. The set up is Tomcat 4.1.12 standalone. Sun J2SE 1.4.2_04. Using Filestore persistent manager which is set in example config. The full stack trace is given below from catalina.out. 2005-03-07 18:22:23 CoyoteAdapter An exception or error occurred in the container during the request processing java.lang.IllegalStateException: Error deserializing Session 8D30D6F68AA046F5DEB574FCA3C8E06F: java.lang.ClassNotFoundException: [Lmd.edrugstore.model.AuthenticatedWebUser; at org.apache.catalina.session.PersistentManagerBase.swapIn(PersistentManagerBase.java:717) at org.apache.catalina.session.PersistentManagerBase.findSession(PersistentManagerBase.java:593) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:173) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:380) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:533) at java.lang.Thread.run(Thread.java:534) rgds Antony Paul - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- rgds Antony Paul http://www.geocities.com/antonypaul24/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Persistence manager ClassNotFoundException during deserialization
What happens on 4.1.31? Mark Antony Paul wrote: I created a sample application and is available at http://geocities.com/antonypaul24/web.html . Any one can download it and test. rgds Antony Paul On Tue, 8 Mar 2005 10:01:13 +0530, Antony Paul [EMAIL PROTECTED] wrote: I am waiting for some knowledgeable person to answer my questions. Meanwhile I will write a test application, download Tomcat source code and try to debug the problem. rgds Antony Paul On Mon, 7 Mar 2005 18:30:47 +0530, Antony Paul [EMAIL PROTECTED] wrote: Hi all, I am getting ClassNotFoundException when deserialising arrays/Lists stored in session. It have no problem with normal objects but have error when it is made an array or List. The set up is Tomcat 4.1.12 standalone. Sun J2SE 1.4.2_04. Using Filestore persistent manager which is set in example config. The full stack trace is given below from catalina.out. 2005-03-07 18:22:23 CoyoteAdapter An exception or error occurred in the container during the request processing java.lang.IllegalStateException: Error deserializing Session 8D30D6F68AA046F5DEB574FCA3C8E06F: java.lang.ClassNotFoundException: [Lmd.edrugstore.model.AuthenticatedWebUser; at org.apache.catalina.session.PersistentManagerBase.swapIn(PersistentManagerBase.java:717) at org.apache.catalina.session.PersistentManagerBase.findSession(PersistentManagerBase.java:593) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:173) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:380) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:533) at java.lang.Thread.run(Thread.java:534) rgds Antony Paul - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Persistence manager ClassNotFoundException during deserialization
Hi all, I am getting ClassNotFoundException when deserialising arrays/Lists stored in session. It have no problem with normal objects but have error when it is made an array or List. The set up is Tomcat 4.1.12 standalone. Sun J2SE 1.4.2_04. Using Filestore persistent manager which is set in example config. The full stack trace is given below from catalina.out. 2005-03-07 18:22:23 CoyoteAdapter An exception or error occurred in the container during the request processing java.lang.IllegalStateException: Error deserializing Session 8D30D6F68AA046F5DEB574FCA3C8E06F: java.lang.ClassNotFoundException: [Lmd.edrugstore.model.AuthenticatedWebUser; at org.apache.catalina.session.PersistentManagerBase.swapIn(PersistentManagerBase.java:717) at org.apache.catalina.session.PersistentManagerBase.findSession(PersistentManagerBase.java:593) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:173) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:380) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:533) at java.lang.Thread.run(Thread.java:534) rgds Antony Paul - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Persistence manager ClassNotFoundException during deserialization
I am waiting for some knowledgeable person to answer my questions. Meanwhile I will write a test application, download Tomcat source code and try to debug the problem. rgds Antony Paul On Mon, 7 Mar 2005 18:30:47 +0530, Antony Paul [EMAIL PROTECTED] wrote: Hi all, I am getting ClassNotFoundException when deserialising arrays/Lists stored in session. It have no problem with normal objects but have error when it is made an array or List. The set up is Tomcat 4.1.12 standalone. Sun J2SE 1.4.2_04. Using Filestore persistent manager which is set in example config. The full stack trace is given below from catalina.out. 2005-03-07 18:22:23 CoyoteAdapter An exception or error occurred in the container during the request processing java.lang.IllegalStateException: Error deserializing Session 8D30D6F68AA046F5DEB574FCA3C8E06F: java.lang.ClassNotFoundException: [Lmd.edrugstore.model.AuthenticatedWebUser; at org.apache.catalina.session.PersistentManagerBase.swapIn(PersistentManagerBase.java:717) at org.apache.catalina.session.PersistentManagerBase.findSession(PersistentManagerBase.java:593) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:173) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:380) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:533) at java.lang.Thread.run(Thread.java:534) rgds Antony Paul - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Persistence manager ClassNotFoundException during deserialization
I created a sample application and is available at http://geocities.com/antonypaul24/web.html . Any one can download it and test. rgds Antony Paul On Tue, 8 Mar 2005 10:01:13 +0530, Antony Paul [EMAIL PROTECTED] wrote: I am waiting for some knowledgeable person to answer my questions. Meanwhile I will write a test application, download Tomcat source code and try to debug the problem. rgds Antony Paul On Mon, 7 Mar 2005 18:30:47 +0530, Antony Paul [EMAIL PROTECTED] wrote: Hi all, I am getting ClassNotFoundException when deserialising arrays/Lists stored in session. It have no problem with normal objects but have error when it is made an array or List. The set up is Tomcat 4.1.12 standalone. Sun J2SE 1.4.2_04. Using Filestore persistent manager which is set in example config. The full stack trace is given below from catalina.out. 2005-03-07 18:22:23 CoyoteAdapter An exception or error occurred in the container during the request processing java.lang.IllegalStateException: Error deserializing Session 8D30D6F68AA046F5DEB574FCA3C8E06F: java.lang.ClassNotFoundException: [Lmd.edrugstore.model.AuthenticatedWebUser; at org.apache.catalina.session.PersistentManagerBase.swapIn(PersistentManagerBase.java:717) at org.apache.catalina.session.PersistentManagerBase.findSession(PersistentManagerBase.java:593) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:173) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:380) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:533) at java.lang.Thread.run(Thread.java:534) rgds Antony Paul - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DbcpDataSourceFactory ClassNotFoundException
My webapp has a working JDBC DataSource configured in META-INF/context.xml. The JNDI how-to mentions that the default factory for TC-managed JDBC DataSources (i.e. those configured as a Resource in the config files) is org.apache.naming.factory.DbcpDataSourceFactory, but if I configure that as my factory param for my DataSource, I get a ClassNotFoundException, so I looked in my common, shared and server folders but couldn't find it in any of the classes folders or the jars...? If I eliminate the factory param altogether, the app works fine. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat 5.5 and ClassNotFoundException: org.apache.catalina.logger.FileLogger
hi all, i just wanted to test tomcat 5.5. beta, so i downloaded the binary (jakarta-tomcat-5.5.3.tar.gz), set classpath to the jdk 1.5 and ran `./catalina.sh run`. the output i got does not look really good: Using CATALINA_BASE: /opt/jakarta-tomcat-5.5.3 Using CATALINA_HOME: /opt/jakarta-tomcat-5.5.3 Using CATALINA_TMPDIR: /opt/jakarta-tomcat-5.5.3/temp Using JAVA_HOME: /usr/lib/jvm/java-1.5.0 Oct 22, 2004 12:35:35 AM org.apache.tomcat.util.digester.Digester startElement SEVERE: Begin event threw exception java.lang.ClassNotFoundException: org.apache.catalina.logger.FileLogger at java.net.URLClassLoader$1.run(URLClassLoader.java:200) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) i took a look into jars in $CATALINA_HOME/server/lib, but none of these contained the FileLogger... the tomcat 5.0.27 installation has a catalina.jar in server/lib that contains this class, the catalina.jar of tomcat 5.5 does not. am i doing anything wrong? any help appreciated, thanx very much, martin signature.asc Description: This is a digitally signed message part
RE: ClassNotFoundException: OracleDriver
It could be possible that you are catching the Exception in you code but doing nothing with it. -Original Message- From: Java Techie [mailto:[EMAIL PROTECTED] Sent: 12 August 2004 23:08 To: Tomcat Users List; [EMAIL PROTECTED] Subject: RE: ClassNotFoundException: OracleDriver David, Thanks. Actually i had classes102.zip and nls_charset10.zip. i renamed them to classes12.jar and nls_charset12.zip and the error was gone.[is this ok..] but the values are still not inserted in the DB.[no error].. how is this possible.. do i need to have the actual classes12 and the charset.. plz advice.. --- David Short [EMAIL PROTECTED] wrote: Do you have the Oracle classes .jar (classes12.jar) loaded in your Tomcat\common\lib directory. Actually the file, as it comes from Oracle, is a .zip file (classes12.zip). Just rename it. It should reside in your C:\OraHome\jdbc\lib directory. Move the nls_charset12.zip file over as well. -Original Message- From: Java Techie [mailto:[EMAIL PROTECTED] Sent: Thursday, August 12, 2004 2:13 PM To: [EMAIL PROTECTED] Subject: ClassNotFoundException: OracleDriver Hi, in my struts-config: im using data-sources data-source type=org.apache.commons.dbcp.BasicDataSource key=UserDB set-property property=driverClassName value=oracle.jdbc.driver.OracleDriver/ set-property property=url value=jdbc:oracle:thin:@myPC:1521:newDB/ set-property property=username value=user1/ set-property property=password value=pass1/ /data-source /data-sources -- The following error occurs: 27:57[ERROR] 27:57org.apache.commons.dbcp.SQLNestedException: Cannot load JDBC driver class 'oracle.jdbc.driver.OracleDriver', cause: java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa der.java:1340) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa der.java:1189) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:140) -- I have added the zip file(D:\Oracle\Ora8i\jdbc\lib\classes102.zip) to the classpath; what else do i need to give. Thanks. __ Do you Yahoo!? Yahoo! Mail - 50x more storage than other providers! http://promotions.yahoo.com/new_mail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Any opinions expressed in this E-mail may be those of the individual and not necessarily the company. This E-mail and any files transmitted with it are confidential and solely for the use of the intended recipient. If you are not the intended recipient or the person responsible for delivering to the intended recipient, be advised that you have received this E-mail in error and that any use or copying is strictly prohibited. If you have received this E-mail in error please notify the beCogent postmaster at [EMAIL PROTECTED] Unless expressly stated, opinions in this email are those of the individual sender and not beCogent Ltd. You must take full responsibility for virus checking this email and any attachments. Please note that the content of this email or any of its attachments may contain data that falls within the scope of the Data Protection Acts and that you must ensure that any handling or processing of such data by you is fully compliant with the terms and provisions of the Data Protection Act 1984 and 1998. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
ClassNotFoundException: OracleDriver
Hi, in my struts-config: im using data-sources data-source type=org.apache.commons.dbcp.BasicDataSource key=UserDB set-property property=driverClassName value=oracle.jdbc.driver.OracleDriver/ set-property property=url value=jdbc:oracle:thin:@myPC:1521:newDB/ set-property property=username value=user1/ set-property property=password value=pass1/ /data-source /data-sources -- The following error occurs: 27:57[ERROR] 27:57org.apache.commons.dbcp.SQLNestedException: Cannot load JDBC driver class 'oracle.jdbc.driver.OracleDriver', cause: java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa der.java:1340) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa der.java:1189) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:140) -- I have added the zip file(D:\Oracle\Ora8i\jdbc\lib\classes102.zip) to the classpath; what else do i need to give. Thanks. __ Do you Yahoo!? Yahoo! Mail - 50x more storage than other providers! http://promotions.yahoo.com/new_mail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: ClassNotFoundException: OracleDriver
Do you have the Oracle classes .jar (classes12.jar) loaded in your Tomcat\common\lib directory. Actually the file, as it comes from Oracle, is a .zip file (classes12.zip). Just rename it. It should reside in your C:\OraHome\jdbc\lib directory. Move the nls_charset12.zip file over as well. -Original Message- From: Java Techie [mailto:[EMAIL PROTECTED] Sent: Thursday, August 12, 2004 2:13 PM To: [EMAIL PROTECTED] Subject: ClassNotFoundException: OracleDriver Hi, in my struts-config: im using data-sources data-source type=org.apache.commons.dbcp.BasicDataSource key=UserDB set-property property=driverClassName value=oracle.jdbc.driver.OracleDriver/ set-property property=url value=jdbc:oracle:thin:@myPC:1521:newDB/ set-property property=username value=user1/ set-property property=password value=pass1/ /data-source /data-sources -- The following error occurs: 27:57[ERROR] 27:57org.apache.commons.dbcp.SQLNestedException: Cannot load JDBC driver class 'oracle.jdbc.driver.OracleDriver', cause: java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa der.java:1340) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa der.java:1189) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:140) -- I have added the zip file(D:\Oracle\Ora8i\jdbc\lib\classes102.zip) to the classpath; what else do i need to give. Thanks. __ Do you Yahoo!? Yahoo! Mail - 50x more storage than other providers! http://promotions.yahoo.com/new_mail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: ClassNotFoundException: OracleDriver
Howdy, You need ojdbc14.jar in your CLASSPATH. -Robert Java Techie wrote: Hi, in my struts-config: im using data-sources data-source type=org.apache.commons.dbcp.BasicDataSource key=UserDB set-property property=driverClassName value=oracle.jdbc.driver.OracleDriver/ set-property property=url value=jdbc:oracle:thin:@myPC:1521:newDB/ set-property property=username value=user1/ set-property property=password value=pass1/ /data-source /data-sources -- The following error occurs: 27:57[ERROR] 27:57org.apache.commons.dbcp.SQLNestedException: Cannot load JDBC driver class 'oracle.jdbc.driver.OracleDriver', cause: java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa der.java:1340) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa der.java:1189) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:140) -- I have added the zip file(D:\Oracle\Ora8i\jdbc\lib\classes102.zip) to the classpath; what else do i need to give. Thanks. __ Do you Yahoo!? Yahoo! Mail - 50x more storage than other providers! http://promotions.yahoo.com/new_mail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: ClassNotFoundException: OracleDriver
David, Thanks. Actually i had classes102.zip and nls_charset10.zip. i renamed them to classes12.jar and nls_charset12.zip and the error was gone.[is this ok..] but the values are still not inserted in the DB.[no error].. how is this possible.. do i need to have the actual classes12 and the charset.. plz advice.. --- David Short [EMAIL PROTECTED] wrote: Do you have the Oracle classes .jar (classes12.jar) loaded in your Tomcat\common\lib directory. Actually the file, as it comes from Oracle, is a .zip file (classes12.zip). Just rename it. It should reside in your C:\OraHome\jdbc\lib directory. Move the nls_charset12.zip file over as well. -Original Message- From: Java Techie [mailto:[EMAIL PROTECTED] Sent: Thursday, August 12, 2004 2:13 PM To: [EMAIL PROTECTED] Subject: ClassNotFoundException: OracleDriver Hi, in my struts-config: im using data-sources data-source type=org.apache.commons.dbcp.BasicDataSource key=UserDB set-property property=driverClassName value=oracle.jdbc.driver.OracleDriver/ set-property property=url value=jdbc:oracle:thin:@myPC:1521:newDB/ set-property property=username value=user1/ set-property property=password value=pass1/ /data-source /data-sources -- The following error occurs: 27:57[ERROR] 27:57org.apache.commons.dbcp.SQLNestedException: Cannot load JDBC driver class 'oracle.jdbc.driver.OracleDriver', cause: java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa der.java:1340) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa der.java:1189) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:140) -- I have added the zip file(D:\Oracle\Ora8i\jdbc\lib\classes102.zip) to the classpath; what else do i need to give. Thanks. __ Do you Yahoo!? Yahoo! Mail - 50x more storage than other providers! http://promotions.yahoo.com/new_mail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: ClassNotFoundException: OracleDriver
- Original Message - From: Robert F. Hall [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, August 12, 2004 5:17 PM Subject: Re: ClassNotFoundException: OracleDriver Howdy, You need ojdbc14.jar in your CLASSPATH. -Robert Java Techie wrote: Hi, in my struts-config: im using data-sources data-source type=org.apache.commons.dbcp.BasicDataSource key=UserDB set-property property=driverClassName value=oracle.jdbc.driver.OracleDriver/ set-property property=url value=jdbc:oracle:thin:@myPC:1521:newDB/ set-property property=username value=user1/ set-property property=password value=pass1/ /data-source /data-sources -- The following error occurs: 27:57[ERROR] 27:57org.apache.commons.dbcp.SQLNestedException: Cannot load JDBC driver class 'oracle.jdbc.driver.OracleDriver', cause: java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa der.java:1340) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa der.java:1189) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:140) -- I have added the zip file(D:\Oracle\Ora8i\jdbc\lib\classes102.zip) to the classpath; what else do i need to give. Thanks. __ Do you Yahoo!? Yahoo! Mail - 50x more storage than other providers! http://promotions.yahoo.com/new_mail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
ClassNotFoundException implementing new WebappLoader
Hello, I'm trying to implement and register a new WebappLoader implementation with Tomcat 5.0.19. I've created a subclass of the standard WebappLoader class. In addition, I have added the Loader element to my Context element with my new class name specified. When starting the server, I get a ClassNotFound exception when it attempts to do a Class.forName for my class in the CreateLoaderRule.begin method. I've tried my class in tomcat-root/common/classes and also in tomcat-root/server/classes with no luck. Can anyone offer any idea what I might be doing wrong and how I might solve the problem? Thanks, Craig SEVERE: Begin event threw exception java.lang.ClassNotFoundException: com.spss.catalina.loader.SPSSWebappLoader at java/lang/Throwable.init(Throwable.java:217) at java/lang/Exception.init(Exception.java:59) at java/lang/ClassNotFoundException.init(ClassNotFoundException.java:65) at org/apache/catalina/loader/StandardClassLoader.loadClass(StandardClassLoader.java:891) at org/apache/catalina/loader/StandardClassLoader.loadClass(StandardClassLoader.java:756) at java/lang/ClassLoader.loadClassInternal(ClassLoader.java:312) at java/lang/Class.forName(Class.java:141) at org/apache/catalina/startup/CreateLoaderRule.begin(ContextRuleSet.java:314) at org/apache/commons/digester/Digester.startElement(Digester.java:1273) at org/apache/catalina/util/CatalinaDigester.startElement(CatalinaDigester.java:112) at org/apache/xerces/parsers/AbstractSAXParser.startElement(Unknown Source) at org/apache/xerces/parsers/AbstractXMLDocumentParser.emptyElement(Unknown Source) at org/apache/xerces/impl/XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source) at org/apache/xerces/impl/XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source) at org/apache/xerces/impl/XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at org/apache/xerces/parsers/XML11Configuration.parse(Unknown Source) at org/apache/xerces/parsers/XML11Configuration.parse(Unknown Source) at org/apache/xerces/parsers/XMLParser.parse(Unknown Source) at org/apache/xerces/parsers/AbstractSAXParser.parse(Unknown Source) at org/apache/commons/digester/Digester.parse(Digester.java:1567) at org/apache/catalina/core/StandardHostDeployer.install(StandardHostDeployer.java:519) at org/apache/catalina/core/StandardHost.install(StandardHost.java:906) at org/apache/catalina/startup/HostConfig.deployDescriptors(HostConfig.java:527) at org/apache/catalina/startup/HostConfig.deployApps(HostConfig.java:472) at org/apache/catalina/startup/HostConfig.start(HostConfig.java:1008) at org/apache/catalina/startup/HostConfig.lifecycleEvent(HostConfig.java:394) at org/apache/catalina/util/LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:166) at org/apache/catalina/core/ContainerBase.start(ContainerBase.java:1134) at org/apache/catalina/core/StandardHost.start(StandardHost.java:832) at org/apache/catalina/core/ContainerBase.start(ContainerBase.java:1126) at org/apache/catalina/core/StandardEngine.start(StandardEngine.java:521) at org/apache/catalina/core/StandardService.start(StandardService.java:519) at org/apache/catalina/core/StandardServer.start(StandardServer.java:2345) at org/apache/catalina/startup/Catalina.start(Catalina.java:594) at sun/reflect/NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun/reflect/DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java/lang/reflect/Method.invoke(Method.java:324) at org/apache/catalina/startup/Bootstrap.start(Bootstrap.java:297) Craig Setera Master Software Engineer, SPSS, Rochester MN Sun Certified
RE: ClassNotFoundException implementing new WebappLoader
Hi, Hmm... I'd guess it should go in the same repository as the normal WebappLoader, which is $CATALINA_HOME/server/lib. $CATALINA_HOME/server/classes should be functionally equivalent for unpacked classes, so it's strange you get the CNFE when you put your loader there. Try packaging your loader in a jar file and putting that jar in server/lib. Yoav Shapira Millennium Research Informatics -Original Message- From: Setera, Craig [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 23, 2004 11:55 AM To: [EMAIL PROTECTED] Subject: ClassNotFoundException implementing new WebappLoader Hello, I'm trying to implement and register a new WebappLoader implementation with Tomcat 5.0.19. I've created a subclass of the standard WebappLoader class. In addition, I have added the Loader element to my Context element with my new class name specified. When starting the server, I get a ClassNotFound exception when it attempts to do a Class.forName for my class in the CreateLoaderRule.begin method. I've tried my class in tomcat- root/common/classes and also in tomcat-root/server/classes with no luck. Can anyone offer any idea what I might be doing wrong and how I might solve the problem? Thanks, Craig SEVERE: Begin event threw exception java.lang.ClassNotFoundException: com.spss.catalina.loader.SPSSWebappLoader at java/lang/Throwable.init(Throwable.java:217) at java/lang/Exception.init(Exception.java:59) at java/lang/ClassNotFoundException.init(ClassNotFoundException.java:65) at org/apache/catalina/loader/StandardClassLoader.loadClass(StandardClassL oade r.java:891) at org/apache/catalina/loader/StandardClassLoader.loadClass(StandardClassL oade r.java:756) at java/lang/ClassLoader.loadClassInternal(ClassLoader.java:312) at java/lang/Class.forName(Class.java:141) at org/apache/catalina/startup/CreateLoaderRule.begin(ContextRuleSet.java: 314) at org/apache/commons/digester/Digester.startElement(Digester.java:1273) at org/apache/catalina/util/CatalinaDigester.startElement(CatalinaDigester .jav a:112) at org/apache/xerces/parsers/AbstractSAXParser.startElement(Unknown Source) at org/apache/xerces/parsers/AbstractXMLDocumentParser.emptyElement(Unknow n Source) at org/apache/xerces/impl/XMLDocumentFragmentScannerImpl.scanStartElement( Unkn own Source) at org/apache/xerces/impl/XMLDocumentFragmentScannerImpl$FragmentContentDi spat cher.dispatch(Unknown Source) at org/apache/xerces/impl/XMLDocumentFragmentScannerImpl.scanDocument(Unkn own Source) at org/apache/xerces/parsers/XML11Configuration.parse(Unknown Source) at org/apache/xerces/parsers/XML11Configuration.parse(Unknown Source) at org/apache/xerces/parsers/XMLParser.parse(Unknown Source) at org/apache/xerces/parsers/AbstractSAXParser.parse(Unknown Source) at org/apache/commons/digester/Digester.parse(Digester.java:1567) at org/apache/catalina/core/StandardHostDeployer.install(StandardHostDeplo yer. java:519) at org/apache/catalina/core/StandardHost.install(StandardHost.java:906) at org/apache/catalina/startup/HostConfig.deployDescriptors(HostConfig.jav a:52 7) at org/apache/catalina/startup/HostConfig.deployApps(HostConfig.java:472) at org/apache/catalina/startup/HostConfig.start(HostConfig.java:1008) at org/apache/catalina/startup/HostConfig.lifecycleEvent(HostConfig.java:3 94) at org/apache/catalina/util/LifecycleSupport.fireLifecycleEvent(LifecycleS uppo rt.java:166) at org/apache/catalina/core/ContainerBase.start(ContainerBase.java:1134) at org/apache/catalina/core/StandardHost.start(StandardHost.java:832) at org/apache/catalina/core/ContainerBase.start(ContainerBase.java:1126) at org/apache/catalina/core/StandardEngine.start(StandardEngine.java:521) at org/apache/catalina/core/StandardService.start(StandardService.java:519 ) at org/apache/catalina/core/StandardServer.start(StandardServer.java:2345) at org/apache/catalina/startup/Catalina.start(Catalina.java:594) at sun/reflect/NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.ja va:3 9) at sun/reflect/DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso rImp l.java:25) at java/lang/reflect/Method.invoke(Method.java:324) at org/apache/catalina/startup/Bootstrap.start(Bootstrap.java:297) Craig Setera Master Software Engineer, SPSS, Rochester MN Sun Certified Java Programmer, Developer and Web Component Developer - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only
RE: ClassNotFoundException implementing new WebappLoader
Yoav, I didn't even think to try using a jar file because it should have been the same. But, it turns out that a jar file works in this case for some reason. Thanks for the tip. Craig -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 23, 2004 11:20 AM To: Tomcat Users List Subject: RE: ClassNotFoundException implementing new WebappLoader Hi, Hmm... I'd guess it should go in the same repository as the normal WebappLoader, which is $CATALINA_HOME/server/lib. $CATALINA_HOME/server/classes should be functionally equivalent for unpacked classes, so it's strange you get the CNFE when you put your loader there. Try packaging your loader in a jar file and putting that jar in server/lib. Yoav Shapira Millennium Research Informatics - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: ClassNotFoundException implementing new WebappLoader
Did you have your class in .../server/classes/com/spss/catalina/loader or directly in .../server/classes ? If it was the former, it would probably be interesting to file a bug on that. Antonio Fiol Setera, Craig wrote: Yoav, I didn't even think to try using a jar file because it should have been the same. But, it turns out that a jar file works in this case for some reason. Thanks for the tip. Craig -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 23, 2004 11:20 AM To: Tomcat Users List Subject: RE: ClassNotFoundException implementing new WebappLoader Hi, Hmm... I'd guess it should go in the same repository as the normal WebappLoader, which is $CATALINA_HOME/server/lib. $CATALINA_HOME/server/classes should be functionally equivalent for unpacked classes, so it's strange you get the CNFE when you put your loader there. Try packaging your loader in a jar file and putting that jar in server/lib. Yoav Shapira Millennium Research Informatics - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] smime.p7s Description: S/MIME Cryptographic Signature
ClassNotFoundException Using shared/classes
I just wanted to post this info so that other users don't make the same mistake I made.I was attempting to use the catalina_home/shared/classes for some shared class files and was getting ClassNotFoundException. When I copied those files to the catalina_home/common/classes directory everything worked fine. I finally found the issue, which I didn't see documented anywhere: I created my myweb.xml file by copying either the admin.xml or manager.xml. The problem is that those files contain privileged=true. Once I reset that to false (or removed the parm), I was able to load the classes in shared/classes.
4.1.27: Manager app 'reload' causing ClassNotFoundException
Hello All: Tomcat 4.1.27 JDK 1.4.1_02 OS: Windows 2k I've thoroughly read: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/manager-howto.html http://jakarta.apache.org/tomcat/tomcat-4.1-doc/class-loader-howto.html This list for the past 16 months :) Problem: My (simple demonstration) webapp runs fine if Tomcat is started from scratch. If I use the Manager app from either the html or ant interfaces, executing the 'reload' command completes without error, yet all servlets are unavailable afterwards. Hitting a servlet results in the following being logged: 2003-10-10 12:05:06 HTMLManager: restart: Reloading web application at '/news' 2003-10-10 12:05:06 StandardContext[/news]: Reloading this Context has started 2003-10-10 12:05:06 StandardWrapper[/news:default]: Loading container servlet default 2003-10-10 12:05:06 StandardWrapper[/news:invoker]: Loading container servlet invoker 2003-10-10 12:05:06 StandardManager[/news]: Seeding random number generator class java.security.SecureRandom 2003-10-10 12:05:06 StandardManager[/news]: Seeding of random number generator has been completed 2003-10-10 12:05:06 StandardContext[/news]: Reloading this Context is completed 2003-10-10 12:05:12 StandardWrapper[/news:com.nextengine.news.servlet.CalculatorServlet]: Marking servlet com.nextengine.news.servlet.CalculatorServlet as unavailable 2003-10-10 12:05:12 StandardWrapperValve[com.nextengine.news.servlet.CalculatorServlet]: Allocate exception for servlet com.nextengine.news.servlet.CalculatorServlet javax.servlet.ServletException: Wrapper cannot find servlet class com.nextengine.news.servlet.CalculatorServlet or a class it depends on at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:891) at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:668) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210) at snip org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:601) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:392) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619) at java.lang.Thread.run(Thread.java:536) - Root Cause - java.lang.ClassNotFoundException: com.nextengine.news.servlet.CalculatorServlet at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1444) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1289) CalculatorServlet.class exists only under the directory: $TOMCAT_HOME/webapps/news/WEB-INF/classes/com/nextengine/news/servlet The only modifications made to the default installation is the appropriate additions to tomcat-users.xml. No changes were made to server.xml. Since thousands of people use this, I'm assuming there's something simple going on here. Restarting the Tomcat process results in all resources being available once again. Hoping another pair of eyes can see what's wrong... Thanks, justin Justin Ruthenbeck Software Engineer, NextEngine Inc. justinr - AT - nextengine DOT com Confidential See http://www.nextengine.com/confidentiality.php - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: 4.1.27: Manager app 'reload' causing ClassNotFoundException
My apologies ... this is covered here: http://nagoya.apache.org/bugzilla/show_bug.cgi?id=22096 Date: Fri, 10 Oct 2003 12:18:03 -0700 To: Tomcat Users List [EMAIL PROTECTED] From: Justin Ruthenbeck [EMAIL PROTECTED] Subject: 4.1.27: Manager app 'reload' causing ClassNotFoundException Hello All: Tomcat 4.1.27 JDK 1.4.1_02 OS: Windows 2k I've thoroughly read: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/manager-howto.html http://jakarta.apache.org/tomcat/tomcat-4.1-doc/class-loader-howto.html This list for the past 16 months :) Problem: My (simple demonstration) webapp runs fine if Tomcat is started from scratch. If I use the Manager app from either the html or ant interfaces, executing the 'reload' command completes without error, yet all servlets are unavailable afterwards. Hitting a servlet results in the following being logged: 2003-10-10 12:05:06 HTMLManager: restart: Reloading web application at '/news' 2003-10-10 12:05:06 StandardContext[/news]: Reloading this Context has started 2003-10-10 12:05:06 StandardWrapper[/news:default]: Loading container servlet default 2003-10-10 12:05:06 StandardWrapper[/news:invoker]: Loading container servlet invoker 2003-10-10 12:05:06 StandardManager[/news]: Seeding random number generator class java.security.SecureRandom 2003-10-10 12:05:06 StandardManager[/news]: Seeding of random number generator has been completed 2003-10-10 12:05:06 StandardContext[/news]: Reloading this Context is completed 2003-10-10 12:05:12 StandardWrapper[/news:com.nextengine.news.servlet.CalculatorServlet]: Marking servlet com.nextengine.news.servlet.CalculatorServlet as unavailable 2003-10-10 12:05:12 StandardWrapperValve[com.nextengine.news.servlet.CalculatorServlet]: Allocate exception for servlet com.nextengine.news.servlet.CalculatorServlet javax.servlet.ServletException: Wrapper cannot find servlet class com.nextengine.news.servlet.CalculatorServlet or a class it depends on at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:891) at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:668) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210) at snip org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:601) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:392) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619) at java.lang.Thread.run(Thread.java:536) - Root Cause - java.lang.ClassNotFoundException: com.nextengine.news.servlet.CalculatorServlet at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1444) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1289) CalculatorServlet.class exists only under the directory: $TOMCAT_HOME/webapps/news/WEB-INF/classes/com/nextengine/news/servlet The only modifications made to the default installation is the appropriate additions to tomcat-users.xml. No changes were made to server.xml. Since thousands of people use this, I'm assuming there's something simple going on here. Restarting the Tomcat process results in all resources being available once again. Hoping another pair of eyes can see what's wrong... Thanks, justin Justin Ruthenbeck Software Engineer, NextEngine Inc. justinr - AT - nextengine DOT com Confidential See http://www.nextengine.com/confidentiality.php - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Classloading - ClassNotFoundException: EntityProxy not found
I recently changed from Tomcat 4.1.12 to 4.1.24 and from Jboss 3.0.3 to Jboss 3.2.1 This has resulted in a Classloading failure, when I make dynamic Proxy copies of the beans from JBoss and sents them to Tomcat. I don't know whether JBoss changed something in there server, or there has been a change in the way Tomcat finds classes. How can I add the Class EntityProxy (from a jar file in JBoss) so that I can avoid the ClassNotFoundException in Tomcat. Regards Morten Andersen Morten Andersen Master of applied mathematics and computer science Research assistant (in e-learning) The Maersk Institute of Production technology at Southern Danish University www.mip.sdu.dk Campusvej 55 DK-5230 Odense M Denmark +45 6550-3654 +45 6171-1103 Jabber id: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Classloading - ClassNotFoundException: EntityProxy not found
I recently changed from Tomcat 4.1.12 to 4.1.24 and from Jboss 3.0.3 to Jboss 3.2.1 This has resulted in a Classloading failure, when I make dynamic Proxy copies of the beans from JBoss and sents them to Tomcat. I don't know whether JBoss changed something in there server, or there has been a change in the way Tomcat finds classes. How can I add the Class EntityProxy (from a jar file in JBoss) so that I can avoid the ClassNotFoundException in Tomcat. Regards Morten Andersen Morten Andersen Master of applied mathematics and computer science Research assistant (in e-learning) The Maersk Institute of Production technology at Southern Danish University www.mip.sdu.dk Campusvej 55 DK-5230 Odense M Denmark +45 6550-3654 +45 6171-1103 Jabber id: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
ClassNotFoundException
Hi! I am stuck with the following challenge. After some initial problems with my web application with regard to ClassNotFoundExceptions when trying to read blobs from a MySQL database which was caused by my lack of knowledge regarding the Tomcat class loading filosophy (which is explained very well in http://jakarta.apache.org/tomcat/tomcat-4.1-doc/class-loader-howto.html) I am stuck with the following: I started out with a web application that was fully selfcontained i.e. it did not use database or JNDI resources defined in the Tomcat container. So there was a mysql-connector-java.jar in the WEB-INF/lib of the web application and the classes were in WEB-INF/classes. While developing under Forte4J (SunONE Studio update 1, Tomcat v4.0.1, NetBeans, Windows2000) everything seemed to work fine. Then I deployed to a RedHat Linux 8.0 host running Tomcat v4.0.3 and I got the ClassNotFoundException. QUESTION: Can somebody explain - in terms of class loading - why I get the ClassNotFoundException when both the MySQL driver stuff and the web application are in the same class loader context (at least they are there from my point of view). Then I changed to running Tomcat v4.1.24 both on W2000 and RH 8.0 (with JDK 1.4.0_01), I redesigned my web application to use the Tomcat filosophy regarding JNDI and database resources and I still got the ClassNotFoundException, that is until I found the documentation about class loading... What I don't like much is that I have to move part of my web application code (the classes that are stored as blob in the database) into the container's common/lib directory. This causes deployment of my web application to be more difficult and makes my web application less portable. Of course I did NOT read all of the Tomcat documentation, so I will not say that I know all about the different ways to configure a web application in Tomcat, but sometimes a few words in the right direction helps me to focus. I'm off reading more of the Tomcat docs and hope for somebody out there to enlighten me ;-) Regards, Guus
ClassNotFoundException
Hi! I checked the mailing archive and found some mail but never any answers. Here goes I use the following software: + Tomcat 4.1.24 or Tomcat 4.0.6 + mysql-connector-java-3.0.8-stable-bin.jar (in the $CATALINE_HOME/common/lib) + MySQL database server 3.23.51 + my own web application below $CATALINE_HOME/webapps The web application I created writes a blob to the MySQL database (there is no problem here). When the web application tries to read the blob from the database a ClassNotFoundException is thrown in the com.mysql.jdbc.ResultSet.getObject method while wading the object input stream. I tried different versions of the mysql driver software (org.gjt.mm.mysql package) I tried different versions of Tomcat I tried what Sriram Narayanan writes in his message of 21 feb 2002 (put the mysql jar not only in the $CATALINE/common/lib directory but also in the $CATALINA_HOME/webapps/webapp name/WEB-INF/classes/lib directory) . I tried using the Tomcat DataSource resources . All to no avail! Is there anybody who has any ideas ...? Regards, Guus
RE: ClassNotFoundException
Howdy, I use the following software: + Tomcat 4.1.24 or Tomcat 4.0.6 Let's stick to one ;) Tomcat 4.1.24. When the web application tries to read the blob from the database a ClassNotFoundException is thrown in the com.mysql.jdbc.ResultSet.getObject method while wading the object input stream. Can you post the entire stack trace? Can you post your code that's reading the blob? What is the name of the class that not found, and is that class available in the WEB-INF/lib or WEB-INF/classes directory of your webapp? I tried what Sriram Narayanan writes in his message of 21 feb 2002 (put the mysql jar not only in the $CATALINE/common/lib directory but also in the $CATALINA_HOME/webapps/webapp name/WEB-INF/classes/lib directory) . This shouldn't be necessary. Put the mysql jar in one location, preferably WEB-INF/lib. Post the above details and hopefully we can help more. Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: ClassNotFoundException
G'day, Would help if you gave more details about the actual error like the class that can't be found. :) Regards, -- Jason Bainbridge http://jblinux.org On Mon, 16 Jun 2003 21:05, Guus Holshuijsen wrote: Hi! I checked the mailing archive and found some mail but never any answers. Here goes I use the following software: + Tomcat 4.1.24 or Tomcat 4.0.6 + mysql-connector-java-3.0.8-stable-bin.jar (in the $CATALINE_HOME/common/lib) + MySQL database server 3.23.51 + my own web application below $CATALINE_HOME/webapps The web application I created writes a blob to the MySQL database (there is no problem here). When the web application tries to read the blob from the database a ClassNotFoundException is thrown in the com.mysql.jdbc.ResultSet.getObject method while wading the object input stream. I tried different versions of the mysql driver software (org.gjt.mm.mysql package) I tried different versions of Tomcat I tried what Sriram Narayanan writes in his message of 21 feb 2002 (put the mysql jar not only in the $CATALINE/common/lib directory but also in the $CATALINA_HOME/webapps/webapp name/WEB-INF/classes/lib directory) . I tried using the Tomcat DataSource resources . All to no avail! Is there anybody who has any ideas ...? Regards, Guus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: ClassNotFoundException
Check if your MySql driver requires an LD_LIBRARY_PATH addition (and is accessible to the tomcat shell). We had the same error and issue with Oracle thick client and tomcat on Linux. -Original Message- From: Guus Holshuijsen [mailto:[EMAIL PROTECTED] Sent: 16 June 2003 14:06 To: [EMAIL PROTECTED] Subject: ClassNotFoundException Hi! I checked the mailing archive and found some mail but never any answers. Here goes I use the following software: + Tomcat 4.1.24 or Tomcat 4.0.6 + mysql-connector-java-3.0.8-stable-bin.jar (in the + $CATALINE_HOME/common/lib) MySQL database server 3.23.51 my own web + application below $CATALINE_HOME/webapps The web application I created writes a blob to the MySQL database (there is no problem here). When the web application tries to read the blob from the database a ClassNotFoundException is thrown in the com.mysql.jdbc.ResultSet.getObject method while wading the object input stream. I tried different versions of the mysql driver software (org.gjt.mm.mysql package) I tried different versions of Tomcat I tried what Sriram Narayanan writes in his message of 21 feb 2002 (put the mysql jar not only in the $CATALINE/common/lib directory but also in the $CATALINA_HOME/webapps/webapp name/WEB-INF/classes/lib directory) . I tried using the Tomcat DataSource resources . All to no avail! Is there anybody who has any ideas ...? Regards, Guus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
ClassNotFoundException and FileNotFoundException
Question: Is there a tag I need to place in a config file, web.xml file, or somewhere else to allow an applet access to use/find data/class (non-servlet) files in a local (non-ROOT) WEB-INF subdirectory? Problem: For non-servlets or servlets that have dependencies on other local classes/files, I am not able to locate files other than servlets specified in the local WEB-INF/web.xml file. Files found in the webapps/ROOT/WEB-INF/lib and webapps/ROOT/WEB-INF/classes are being found and used by my server. So I am able to make an applet dependant on certain .jar .xml or .class files work if I place those files in the proper subdirectory under ROOT/WEB-INF . The applet will work if files are place in the same base local directory as the applets' .html file, but it will not work when placed in the local WEB-INF subdirectories. Example: Using: Windows2K Pro. SP3 ; Tomcat 4.1.18 ; Java 2 SDK, SE, 1.4.0 I have a file arc.war with a structure as follows: META-INF/ META-INF/MANIFEST.MF Time.html index.html WEB-INF/ WEB-INF/data/Time.xml WEB-INF/lib/ WEB-INF/lib/jcommon-0.8.0.jar WEB-INF/classes/ WEB-INF/classes/connectionServlet.class WEB-INF/classes/arcChart.class WEB-INF/web.xml I place the .war file into the webapps directory and it expands on startup assuming it hasn't already. index.html refers to the servlet connectionServlet returning html and having no dependencies. This servlet works. Time.html containing an applet using archive=jcommon-0.8.0.jar and code=arcChart arcChart.class uses the file Time.xml The applet gives a java.lang.ClassNotFoundException or FileNotFoundException for the .jar .class and .xml files. If I move these 3 files to the arc.war base directory or the same subdirectories but using webapps/ROOT as the base directory, the applet works. From the localhost_log I get messages including: HostConfig[localhost]: Expanding web application archive arc.war StandardHost[localhost]: Installing web application at context path /arc from URL file:c:/jakarta-tomcat-4.1.18/webapps/arc WebappLoader[/arc]: Deploying class repositories to work directory C:\jakarta-tomcat-4.1.18\work\Standalone\localhost\arc WebappLoader[/arc]: Deploy class files /WEB-INF/classes to c:\jakarta-tomcat-4.1.18\webapps\arc\WEB-INF\classes WebappLoader[/arc]: Deploy JAR /WEB-INF/lib/jcommon-0.8.0.jar to c:\jakarta-tomcat-4.1.18\webapps\arc\WEB-INF\lib\jcommon-0.8.0.jar StandardManager[/arc]: Seeding random number generator class java.security.SecureRandom StandardManager[/arc]: Seeding of random number generator has been completed StandardWrapper[/arc:default]: Loading container servlet default StandardWrapper[/arc:invoker]: Loading container servlet invoker So I know the .jar file is being loaded without any error messages... - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: ClassNotFoundException and FileNotFoundException
Howdy, Question: Is there a tag I need to place in a config file, web.xml file, or somewhere else to allow an applet access to use/find data/class (non-servlet) files in a local (non-ROOT) WEB-INF subdirectory? No such option exists: it would be a violation of the servlet specification for an applet (or a browser) to directly access anything under the WEB-INF directory. If an applet needs a certain jar, you need to place that jar outside the WEB-INF directory. Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
ClassNotFoundException... ? serializable objects? help!!
I am using struts and tomcat... i am swiching from non ssl to ssl.. I have got the RSA certificates stuff ok.. and switching back and forth to sll seems to be fine.. My problem is I have a serializable object[] in the session. When i switch to SSL the object appears in the session.getAttributeNames() list... but the log reports a ClassNotFoundException ...? this makes no sense and the class is in my WEB-INF/classes/com/blah... I have an import in the page for the class and have my persistantManager config is: Manager className=org.apache.catalina.session.PersistentManager debug=0 saveOnRestart=true maxActiveSessions=-1 minIdleSwap=-1 maxIdleSwap=-1 maxIdleBackup=-1 Store className=org.apache.catalina.session.FileStore/ /Manager i'm stuck on this one.. little help?? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: javax.servlet.ServletException: ClassNotFoundException: org.postgresql.Driver
The key word is link - place the file physically in the common/lib directory. HTH -Original Message- From: Jason S. Friedman [mailto:[EMAIL PROTECTED] Sent: 14 March 2003 06:17 To: [EMAIL PROTECTED] Subject: javax.servlet.ServletException: ClassNotFoundException: org.postgresql.Driver I searched the list archives and the web and, while I found folks with a similar issue, none of those posts had an answer that worked for me. The error message is: javax.servlet.ServletException: ClassNotFoundException: org.postgresql.Driver I'm running RH8.0, Apache Tomcat/4.1.18-LE-jdk14, and Postgresql7.3. The file compiles and runs without error from my IDE (netbeans) and from the command line and I can get other servlets to run. I've tried putting a link to /usr/share/pgsql/jdbc7.2dev-1.2.jar into the directory containing my class file and also in the following directories: ./server/webapps/admin/WEB-INF/lib/ ./server/lib/ ./common/lib/ ./shared/lib/ ./common/classes I've reloaded my webapp with each change. Thank you - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
javax.servlet.ServletException: ClassNotFoundException: org.postgresql.Driver
I searched the list archives and the web and, while I found folks with a similar issue, none of those posts had an answer that worked for me. The error message is: javax.servlet.ServletException: ClassNotFoundException: org.postgresql.Driver I'm running RH8.0, Apache Tomcat/4.1.18-LE-jdk14, and Postgresql7.3. The file compiles and runs without error from my IDE (netbeans) and from the command line and I can get other servlets to run. I've tried putting a link to /usr/share/pgsql/jdbc7.2dev-1.2.jar into the directory containing my class file and also in the following directories: ./server/webapps/admin/WEB-INF/lib/ ./server/lib/ ./common/lib/ ./shared/lib/ ./common/classes I've reloaded my webapp with each change. Thank you - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
javax.servlet.ServletException: ClassNotFoundException: org.postgresql.Driver
I searched the list archives and the web and, while I found folks with a similar issue, none of those posts had an answer that worked for me. The error message is: javax.servlet.ServletException: ClassNotFoundException: org.postgresql.Driver I'm running RH8.0, Apache Tomcat/4.1.18-LE-jdk14, and Postgresql7.3. The file compiles and runs without error from my IDE (netbeans) and from the command line and I can get other servlets to run. I've tried putting a link to /usr/share/pgsql/jdbc7.2dev-1.2.jar into the directory containing my class file and also in the following directories: ./server/webapps/admin/WEB-INF/lib/ ./server/lib/ ./common/lib/ ./shared/lib/ ./common/classes I've reloaded my webapp with each change. Thank you - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Error when starting Up Tomcat........ClassNotFoundException: org.apache.catalina.mbeans.Ser
When I run catalina.sh on Win 2000, I get the following errors: ERROR reading C:\jakarta-tomcat-4.1.18\conf\server.xml At Line 24 /Server/Listener/ className=org.apache.catalina.mbeans.ServerLifecycl eListener debug=0 Catalina.start: java.lang.ClassNotFoundException: org.apache.catalina.mbeans.Ser verLifecycleListener java.lang.ClassNotFoundException: org.apache.catalina.mbeans.ServerLifecycleList ener at java.net.URLClassLoader$1.run(URLClassLoader.java:200) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:299) at java.lang.ClassLoader.loadClass(ClassLoader.java:255) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:120) at org.apache.catalina.util.xml.ObjectCreate.start(XmlMapper.java:616) at org.apache.catalina.util.xml.XmlMapper.matchStart(XmlMapper.java:412) at org.apache.catalina.util.xml.XmlMapper.startElement(XmlMapper.java:91 ) at org.xml.sax.helpers.XMLReaderAdapter.startElement(XMLReaderAdapter.ja va:333) at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1490) at org.apache.crimson.parser.Parser2.content(Parser2.java:1779) at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1507) at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:500) at org.apache.crimson.parser.Parser2.parse(Parser2.java:305) at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442) at org.xml.sax.helpers.XMLReaderAdapter.parse(XMLReaderAdapter.java:223) at javax.xml.parsers.SAXParser.parse(SAXParser.java:362) at javax.xml.parsers.SAXParser.parse(SAXParser.java:301) at org.apache.catalina.util.xml.XmlMapper.readXml(XmlMapper.java:228) at org.apache.catalina.startup.Catalina.start(Catalina.java:725) at org.apache.catalina.startup.Catalina.execute(Catalina.java:681) at org.apache.catalina.startup.Catalina.process(Catalina.java:179) at java.lang.reflect.Method.invoke(Native Method) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243 What am I doing wrong? -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Tomcat 4.1.12 ClassNotFoundException
sounds like you need to allow the WEB-INF/classes permission in your catalina.policy file Charlie -Original Message- From: Jeremy Cavagnolo [mailto:jcavagnolo;hotmail.com] Sent: Wednesday, October 23, 2002 12:31 PM To: [EMAIL PROTECTED] Subject: Tomcat 4.1.12 ClassNotFoundException Hello: I am building a Struts-based web application and, among other classes, have written a LoginForm bean for my login.jsp. When this class is in /var/tomcat4/webapps/myApp/WEB-INF/classes, and after I restart tomcat I get the following stack trace in the host log file when I try to access login.jsp (see trace at the end of the message). Further, when I put the classes in /var/tomcat4/common/classes, everything works. Any ideas would be much appreciated. Thanks, Jeremy 2002-10-22 14:13:16 StandardWrapperValve[jsp]: Servlet.service() for servlet jsp threw exception org.apache.jasper.JasperException: Exception creating bean of class org.alf.msq.data.ClassReg: java.lang.ClassNotFoundException: org.alf.msq.data.ClassReg at org.apache.jasper.servlet.JspServletWrapper.service(Unknown Source) at org.apache.jasper.servlet.JspServlet.serviceJspFile(Unknown Source) at org.apache.jasper.servlet.JspServlet.service(Unknown Source) at javax.servlet.http.HttpServlet.service(HttpServlet.java) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilt er(Unknown Source) at org.apache.catalina.core.ApplicationFilterChain.doFilter(Unkno wn Source) at org.apache.catalina.core.StandardWrapperValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline$StandardPipelineValv eContext.invokeNext(Unknown Source) at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source) at org.apache.catalina.core.ContainerBase.invoke(Unknown Source) at org.apache.catalina.core.StandardContextValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline$StandardPipelineValv eContext.invokeNext(Unknown Source) at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source) at org.apache.catalina.core.ContainerBase.invoke(Unknown Source) at org.apache.catalina.core.StandardContext.invoke(Unknown Source) at org.apache.catalina.core.StandardHostValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline$StandardPipelineValv eContext.invokeNext(Unknown Source) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline$StandardPipelineValv eContext.invokeNext(Unknown Source) at org.apache.catalina.valves.ErrorReportValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline$StandardPipelineValv eContext.invokeNext(Unknown Source) at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source) at org.apache.catalina.core.ContainerBase.invoke(Unknown Source) at org.apache.catalina.core.StandardEngineValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline$StandardPipelineValv eContext.invokeNext(Unknown Source) at org.apache.catalina.valves.RequestDumperValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline$StandardPipelineValv eContext.invokeNext(Unknown Source) at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source) at org.apache.catalina.core.ContainerBase.invoke(Unknown Source) at org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:458) at org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:551) at java.lang.Thread.run(Thread.java:536) - Root Cause - javax.servlet.ServletException: Exception creating bean of class org.alf.msq.data.ClassReg: java.lang.ClassNotFoundException: org.alf.msq.data.ClassReg at org.apache.jasper.runtime.PageContextImpl.handlePageException(Unknown Source) at org.apache.jsp.login_jsp._jspService(login_jsp.java:90) at org.apache.jasper.runtime.HttpJspBase.service(Unknown Source) at javax.servlet.http.HttpServlet.service(HttpServlet.java) at org.apache.jasper.servlet.JspServletWrapper.service(Unknown Source) at org.apache.jasper.servlet.JspServlet.serviceJspFile(Unknown Source) at org.apache.jasper.servlet.JspServlet.service(Unknown Source) at javax.servlet.http.HttpServlet.service(HttpServlet.java) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilt er(Unknown Source) at org.apache.catalina.core.ApplicationFilterChain.doFilter(Unkno wn Source) at org.apache.catalina.core.StandardWrapperValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline$StandardPipelineValv eContext.invokeNext(Unknown Source
ClassNotFoundException JMX related?
I'm trying to create an MBean from within a Servlet with Tomcat 4.1.10 and I keep getting a ClassNotFoundException. The class in question is in the classpath and it's visible from the Servlet trying make the createMBean call. I've tried putting the the jar which has the MBean .class file in these places: a.. webapps/webapp_name/web-inf/lib b.. shared/lib c.. common/lib None of them worked. Creating this same MBean worked fine in Tomcat 4.0.x when I included the jmxri.jar in the webapp classpath. Does anyone know how to modify the classpath used by the JMX component of Tomcat 4.1.x? Here's the log entry showing the exception: 2002-09-17 17:33:23 agent: AgentServlet init()2002-09-17 17:33:24 agent: initalizing local server instance: mx4j.server.MBeanServerImpl@1a611722002-09-17 17:33:24 agent: OBJECT NAME: Adaptor:name=html,port=80832002-09-17 17:33:24 agent: OBJECT NAME: MBeanInfo:name=SimpleStandard2002-09-17 17:33:24 agent: MBean class: class org.jfa.example.SimpleStandard2002-09-17 17:33:24 agent: !!! Could not create the HTML adaptor !!!2002-09-17 17:33:24 javax.management.ReflectionException: nested exception is java.lang.ClassNotFoundException: org.jfa.example.SimpleStandardjava.lang.ClassNotFoundException: org.jfa.example.SimpleStandard at mx4j.server.DefaultClassLoaderRepository.loadClassWithout(DefaultClassLoaderRepository.java:43) at mx4j.server.DefaultClassLoaderRepository.loadClass(DefaultClassLoaderRepository.java:26) at mx4j.server.MBeanServerImpl.createMBean(MBeanServerImpl.java:464) at mx4j.server.MBeanServerImpl.createMBean(MBeanServerImpl.java:456) at org.jfa.example.AgentServlet.doInit(Unknown Source) at org.jfa.example.AgentServlet.init(Unknown Source) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:924) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:813) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3342) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3534) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188) at org.apache.catalina.core.StandardHost.start(StandardHost.java:738) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347) at org.apache.catalina.core.StandardService.start(StandardService.java:497) at org.apache.catalina.core.StandardServer.start(StandardServer.java:2191) at org.apache.catalina.startup.Catalina.start(Catalina.java:510) at org.apache.catalina.startup.Catalina.execute(Catalina.java:400) at org.apache.catalina.startup.Catalina.process(Catalina.java:180) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
Re: Tomcat 4.0.4 MyApp as default context - ClassNotFoundException: org.hsql.jdbcDriver
Jakarta Tomcat Newsgroup (@Basebeans.com) wrote: Subject: Tomcat 4.0.4 MyApp as default context - ClassNotFoundException: org.hsql.jdbcDriver From: Matt Raible [EMAIL PROTECTED] === I have an entry for my web-application in server.xml so I can use a JDBCRealm and a JNDI Datasource. When I change my context's path from Context path=/myAppName docBase=myAppName ... / to: Context path= docBase=myAppName .../ I get the following exception?! And I never even refer to this JDBC Driver. I did some browsing on the mailing lists, and this appears to be a well-known error, but I couldn't find the solution. TyrexDataSourceFactory: Cannot create DataSource, Exception java.lang.ClassNotFoundException: org.hsql.jdbcDriver at org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader .java:1127) at org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader .java:992) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:310) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:115) at org.apache.naming.factory.TyrexDataSourceFactory.getObjectInstance(TyrexData SourceFactor .java:210) Thanks, I had this problem, and couldn't solve it using Tomcat 4.0 at all :-( It seems that Tyrex is broken (or, at least, cannot be successfully configured). Reading elsewhere, it seems that Tyrex doesn't provide any connection pooling, either, so it's a bit of a Waste of Space (IMHO). I 'solved' the problem by moving to Tomcat 4.1, which uses the Jakarta-commons dbcp. This works! This is the relevant part of my server.xml file: Resource name=jdbc/RadiationDB auth=Container type=javax.sql.DataSource / ResourceParams name=jdbc/RadiationDB parameter namefactory/name valueorg.apache.commons.dbcp.BasicDataSourceFactory/value /parameter parameter namemaxActive/name value100/value /parameter parameter namemaxIdle/name value3/value /parameter parameter namemaxWait/name value100/value /parameter parameter nameusername/name valueme/value /parameter parameter namepassword/name valuemypassword/value /parameter parameter namedriverClassName/name valueorg.gjt.mm.mysql.Driver/value /parameter parameter nameurl/name valuejdbc:mysql://localhost/radiation/value /parameter /ResourceParams NOTE that the user is identified by username, and not user - this had me stuck for a while! Hope this helps, Martin -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Tomcat 4.0.4 MyApp as default context - ClassNotFoundException: org.hsql.jdbcDriver
Subject: Re: Tomcat 4.0.4 MyApp as default context - ClassNotFoundException: org.hsql.jdbcDriver From: Matt Raible [EMAIL PROTECTED] === I've been using Tyrex on 4.0.1 for over 6 months, I was just making an attempt to make my application accessible from http://localhost/ rather than from http://localhost/myAppName. I was under the impression that the way to do this was to change the Context path to . Thanks, Matt Martin Jacobson [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]... Jakarta Tomcat Newsgroup (@Basebeans.com) wrote: Subject: Tomcat 4.0.4 MyApp as default context - ClassNotFoundException: org.hsql.jdbcDriver From: Matt Raible [EMAIL PROTECTED] === I have an entry for my web-application in server.xml so I can use a JDBCRealm and a JNDI Datasource. When I change my context's path from Context path=/myAppName docBase=myAppName ... / to: Context path= docBase=myAppName .../ I get the following exception?! And I never even refer to this JDBC Driver. I did some browsing on the mailing lists, and this appears to be a well-known error, but I couldn't find the solution. TyrexDataSourceFactory: Cannot create DataSource, Exception java.lang.ClassNotFoundException: org.hsql.jdbcDriver at org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader .java:1127) at org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader .java:992) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:310) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:115) at org.apache.naming.factory.TyrexDataSourceFactory.getObjectInstance(TyrexData SourceFactor .java:210) Thanks, I had this problem, and couldn't solve it using Tomcat 4.0 at all :-( It seems that Tyrex is broken (or, at least, cannot be successfully configured). Reading elsewhere, it seems that Tyrex doesn't provide any connection pooling, either, so it's a bit of a Waste of Space (IMHO). I 'solved' the problem by moving to Tomcat 4.1, which uses the Jakarta-commons dbcp. This works! This is the relevant part of my server.xml file: Resource name=jdbc/RadiationDB auth=Container type=javax.sql.DataSource / ResourceParams name=jdbc/RadiationDB parameter namefactory/name valueorg.apache.commons.dbcp.BasicDataSourceFactory/value /parameter parameter namemaxActive/name value100/value /parameter parameter namemaxIdle/name value3/value /parameter parameter namemaxWait/name value100/value /parameter parameter nameusername/name valueme/value /parameter parameter namepassword/name valuemypassword/value /parameter parameter namedriverClassName/name valueorg.gjt.mm.mysql.Driver/value /parameter parameter nameurl/name valuejdbc:mysql://localhost/radiation/value /parameter /ResourceParams NOTE that the user is identified by username, and not user - this had me stuck for a while! Hope this helps, Martin -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Tomcat 4.0.4 MyApp as default context - ClassNotFoundException: org.hsql.jdbcDriver
Subject: Tomcat 4.0.4 MyApp as default context - ClassNotFoundException: org.hsql.jdbcDriver From: Matt Raible [EMAIL PROTECTED] === I have an entry for my web-application in server.xml so I can use a JDBCRealm and a JNDI Datasource. When I change my context's path from Context path=/myAppName docBase=myAppName ... / to: Context path= docBase=myAppName .../ I get the following exception?! And I never even refer to this JDBC Driver. I did some browsing on the mailing lists, and this appears to be a well-known error, but I couldn't find the solution. TyrexDataSourceFactory: Cannot create DataSource, Exception java.lang.ClassNotFoundException: org.hsql.jdbcDriver at org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader .java:1127) at org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader .java:992) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:310) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:115) at org.apache.naming.factory.TyrexDataSourceFactory.getObjectInstance(TyrexData SourceFactor .java:210) Thanks, Matt -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: ClassNotFoundException
I don't' believe what you are trying to do is possible. Class loaders are created in a hierarchical manner with the children knowing about their parents, but not the parents knowing about the children. This makes it impossible for the current class loader (using Class.forName) to find the class file loaded by a child class loader (which the WEB-INF is). I see that you have three options: 1. Engineer another solution to your problem 2. Move MyServletClass into common 3. Move MyBaseServletClass into all the WEB-INFs. Personally the order of approach I would take is 3, 2, and then 1. Randy -Original Message- From: Ken Ramirez [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 27, 2002 12:11 AM To: [EMAIL PROTECTED] Subject: ClassNotFoundException Hope someone can help: I have a TOMCAT app containing a servlet as follows: TOMCAT_HOME/webapps/MyApp/WEB-INF/classes/com/mycomp/MyServl etClass.cl ass This class extends a base class that provides common functionality for all of my apps, and is stored in: TOMCAT_HOME/common/classes/com/mycomp/MyBaseServletClass.cla ss (which extends HttpServlet) Through some context information, the MyBaseServletClass receives the classname of a class stored in my app's classes directory, which it is responsible for creating an instance of, using Class.forName(). This is the path of the class to be created: TOMCAT_HOME/webapps/MyApp/WEB-INF/classes/com/mycomp/MyOther Class.clas s When the MyServletClass calls Class.forName, it fails with a ClassNotFoundException, but if I move the MyServletClass to the MyApp/WEB-INF/classes path, everything works fine. What gives? I thought that Tomcat reads adds the classes directory for all of the apps deployed in the server.xml (with Context info), which I defined as follows: Context path=/MyApp docBase=MyApp debug=0 reloadable=true / Thanks, Ken Ramirez - Principal/CTO [EMAIL PROTECTED] Master-Mind Consulting Services http://www.mastermind.com http://www.mastermind.com/ Ph - 570-688-9600 Fx - 208-275-2301 -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: ClassNotFoundException
To deal with a situation like this, I have seen #1 below implemented by providing an object that is loaded in the webapp classloader to the base class. A good candidate would be this from MyServletClass. MyBaseServletClass can obtain the classloader of this object to gain access to the webapp classloader. Cheers, Larry -Original Message- From: Randy Layman [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 27, 2002 6:51 AM To: 'Tomcat Users List' Subject: RE: ClassNotFoundException I don't' believe what you are trying to do is possible. Class loaders are created in a hierarchical manner with the children knowing about their parents, but not the parents knowing about the children. This makes it impossible for the current class loader (using Class.forName) to find the class file loaded by a child class loader (which the WEB-INF is). I see that you have three options: 1. Engineer another solution to your problem 2. Move MyServletClass into common 3. Move MyBaseServletClass into all the WEB-INFs. Personally the order of approach I would take is 3, 2, and then 1. Randy -Original Message- From: Ken Ramirez [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 27, 2002 12:11 AM To: [EMAIL PROTECTED] Subject: ClassNotFoundException Hope someone can help: I have a TOMCAT app containing a servlet as follows: TOMCAT_HOME/webapps/MyApp/WEB-INF/classes/com/mycomp/MyServl etClass.cl ass This class extends a base class that provides common functionality for all of my apps, and is stored in: TOMCAT_HOME/common/classes/com/mycomp/MyBaseServletClass.cla ss (which extends HttpServlet) Through some context information, the MyBaseServletClass receives the classname of a class stored in my app's classes directory, which it is responsible for creating an instance of, using Class.forName(). This is the path of the class to be created: TOMCAT_HOME/webapps/MyApp/WEB-INF/classes/com/mycomp/MyOther Class.clas s When the MyServletClass calls Class.forName, it fails with a ClassNotFoundException, but if I move the MyServletClass to the MyApp/WEB-INF/classes path, everything works fine. What gives? I thought that Tomcat reads adds the classes directory for all of the apps deployed in the server.xml (with Context info), which I defined as follows: Context path=/MyApp docBase=MyApp debug=0 reloadable=true / Thanks, Ken Ramirez - Principal/CTO [EMAIL PROTECTED] Master-Mind Consulting Services http://www.mastermind.com http://www.mastermind.com/ Ph - 570-688-9600 Fx - 208-275-2301 -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: ClassNotFoundException
Just a question, Would Thread.currentThread().getContextClassLoader().loadClass(myclassname) help ? I don't have TC 3.3, but this works for me in TC 4.0.1 Sriram 2/27/02 6:45:11 PM, Larry Isaacs [EMAIL PROTECTED] wrote: To deal with a situation like this, I have seen #1 below implemented by providing an object that is loaded in the webapp classloader to the base class. A good candidate would be this from MyServletClass. MyBaseServletClass can obtain the classloader of this object to gain access to the webapp classloader. Cheers, Larry _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: ClassNotFoundException
I haven't actually tried it, but I believe it would work in Tomcat 3.3 as well. Thanks. Cheers, Larry -Original Message- From: Sriram Narayanan [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 27, 2002 10:08 AM To: Tomcat Users List Subject: RE: ClassNotFoundException Just a question, Would Thread.currentThread().getContextClassLoader().loadClass(mycl assname) help ? I don't have TC 3.3, but this works for me in TC 4.0.1 Sriram 2/27/02 6:45:11 PM, Larry Isaacs [EMAIL PROTECTED] wrote: To deal with a situation like this, I have seen #1 below implemented by providing an object that is loaded in the webapp classloader to the base class. A good candidate would be this from MyServletClass. MyBaseServletClass can obtain the classloader of this object to gain access to the webapp classloader. Cheers, Larry _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: ClassNotFoundException
Totally awesome. This worked like a charm. Thanks, Ken Ramirez - Principal/CTO [EMAIL PROTECTED] Master-Mind Consulting Services http://www.mastermind.com Ph - 570-688-9600 Fx - 208-275-2301 -Original Message- From: Sriram Narayanan [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 27, 2002 10:08 AM To: Tomcat Users List Subject: RE: ClassNotFoundException Just a question, Would Thread.currentThread().getContextClassLoader().loadClass(myclassname) help ? I don't have TC 3.3, but this works for me in TC 4.0.1 Sriram 2/27/02 6:45:11 PM, Larry Isaacs [EMAIL PROTECTED] wrote: To deal with a situation like this, I have seen #1 below implemented by providing an object that is loaded in the webapp classloader to the base class. A good candidate would be this from MyServletClass. MyBaseServletClass can obtain the classloader of this object to gain access to the webapp classloader. Cheers, Larry _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: ClassNotFoundException
Thanks to all who answerd. That was my problem. Cheers, Andrew -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Unable to compile class for JSP not ClassNotFoundException
Sorry wrong subject -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
ClassNotFoundException
Hope someone can help: I have a TOMCAT app containing a servlet as follows: TOMCAT_HOME/webapps/MyApp/WEB-INF/classes/com/mycomp/MyServletClass.cl ass This class extends a base class that provides common functionality for all of my apps, and is stored in: TOMCAT_HOME/common/classes/com/mycomp/MyBaseServletClass.class (which extends HttpServlet) Through some context information, the MyBaseServletClass receives the classname of a class stored in my app's classes directory, which it is responsible for creating an instance of, using Class.forName(). This is the path of the class to be created: TOMCAT_HOME/webapps/MyApp/WEB-INF/classes/com/mycomp/MyOtherClass.clas s When the MyServletClass calls Class.forName, it fails with a ClassNotFoundException, but if I move the MyServletClass to the MyApp/WEB-INF/classes path, everything works fine. What gives? I thought that Tomcat reads adds the classes directory for all of the apps deployed in the server.xml (with Context info), which I defined as follows: Context path=/MyApp docBase=MyApp debug=0 reloadable=true / Thanks, Ken Ramirez - Principal/CTO [EMAIL PROTECTED] Master-Mind Consulting Services http://www.mastermind.com http://www.mastermind.com/ Ph - 570-688-9600 Fx - 208-275-2301
Apparent ClassLoader, ClassNotFoundException when using Apache Soap and Toplink
Tomcat 3.2 on NT 4.0. Apache Soap 2.2, http://xml.apache.org/soap/ Toplink 3.0.5 The root of this entire problem seems to be that the Apache Soap services/classes cannot be found, ClassNotFoundException, unless the classes are explicitly in the classpath tomcat.bat, startup, classpath. So says the installation notes. Now, make sure you have the jar files from the lib directory of this distribution on your classpath and start up tomcat. Also, you will want to have on the classpath any of your code that you want to deploy as services http://xml.apache.org/soap/docs/index.html This is a problem when using a package such as Toplink, which requires these classes to not be in the classpath because the webapp cannot find them. The object, 'com.cis.business.AddressModel' of class, 'class java.lang.String' could not be converted to 'class java.lang.Class', INTERNAL EXCEPTION: java.lang.ClassNotFoundException: This makes sense, the webapp classes should not have to be in the tomcat path. What if there are conficts between two apps. These classes should be in the webapp path, as Toplink assumes. Given these restictions, we cannot recieve a transaction through soap, and insert it into the database. Bottom Line: With soap classes in the classppath, it can't find our business object classes which aren't in the path. With soap classes in the classpath and our business objects in the path, it still cannot find the business objects because of Toplink problems. Without soap classes in path, it can't find the soap services. That said, I'll do what I have to in order to get this to work. Anybody know how? or have any suggestions other than prayer. Thanks, Dave Brunkow -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: ClassNotFoundException
I have the same problem under 4.0.1 and the reason I posted this to the Tomcat group was that the exact same website with absolutely no changes works on the Solaris box. And the class not being found is actually a JINI bass class that I use in multiple other non web based apps on NT with not problems. Thanks again for at least looking:) guess I'll just have to make sure I deploy on Unix boxes for the time being. Lance -Original Message- From: Remy Maucherat [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 01, 2001 3:28 PM To: Tomcat Users List Subject: Re: ClassNotFoundException HELP!!! :-) I am running on win2kpro, java version 1.3.1_01, Apache Tomcat/4.0-b7 Please upgrade :) hint4.0.1/hint There may be a problem if the Tomcat directory contains spaces (bug 4543 - http://nagoya.apache.org/bugzilla/show_bug.cgi?id=4543). I may be wrong, but this bug doesn't look to me like a Tomcat bug. Remy -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: ClassNotFoundException when using war file (Tomcat 3.2.3)
I got my web application to work in tomcat 4.0.1 (Catalina). In Tomcat 4.0.1, the order of the contents in the web.xml seems to matter (E.g. All servlet definition must be before the servlet-mapping etc.). Except for the change in the web.xml, my war seems to working in Tomcat 4.0.1. This makes me wonder if the feature of loading the classes from jar files in WEB-INF/lib/ was fully functional in 3.2.3 release at all !!!. Has anyone had any success with this in Tomcat 3.2.3 ? Thanks Abi - Paul DuBois wrote: The examples that gets shipped with the tomcat.zip file also uses Web-inf Maybe the developers never used anything but Windows boxes (case-insensitive file system)? [EMAIL PROTECTED] wrote: I'm new to tomcat but shouldn't it bet WEB-INF? isn't it case sensitive? Scott Archer [EMAIL PROTECTED] Abinesh S PuthenpurackalTo: [EMAIL PROTECTED] abinesh.puthenpurackal cc: @sdrc.comSubject: ClassNotFoundException when using war file (Tomcat 3.2.3) 10/31/2001 09:45 AM Please respond to Tomcat Users List Hi, I am trying to use a war which has some jar files in it for my web application in tomcat 3.2.3. The war file is structured as follows WarFile.war Web-inf/lib/jarfile1.jar Web-inf/lib/jarfile2.jar Web-inf/lib/jarfile3.jar When running the application I get ClassNotFoundException for the classes in the jar file. Also I noticed that empty directories (that follows my package structure) were created under lib directory. E.g. I see the following empty directories %TOMCAT_HOME%/webapps/webapplication/Web-inf/lib/examples/addressbook/. A workaround is to place the jar files in the tomcat/lib directory. This will result in the the jars to be added to the classpath and everything works fine. I was wondering if anyone knows about a cleaner solution or point out if there is something that I need to do to get this working (perhaps something in manifest file or web.xml file etc.). Any help is greatly appreciated. Thanks, Abi - -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
AW: ClassNotFoundException when using war file (Tomcat 3.2.3)
I'm running Tomcat 3.2.3 and am successfully loading classes from jars in WEB-INF/lib. -Rebecca- -Ursprüngliche Nachricht- Von: Abinesh S Puthenpurackal [mailto:[EMAIL PROTECTED]] Gesendet: Donnerstag, 1. November 2001 15:34 An: Tomcat Users List Betreff: Re: ClassNotFoundException when using war file (Tomcat 3.2.3) I got my web application to work in tomcat 4.0.1 (Catalina). In Tomcat 4.0.1, the order of the contents in the web.xml seems to matter (E.g. All servlet definition must be before the servlet-mapping etc.). Except for the change in the web.xml, my war seems to working in Tomcat 4.0.1. This makes me wonder if the feature of loading the classes from jar files in WEB-INF/lib/ was fully functional in 3.2.3 release at all !!!. Has anyone had any success with this in Tomcat 3.2.3 ? Thanks Abi - Paul DuBois wrote: The examples that gets shipped with the tomcat.zip file also uses Web-inf Maybe the developers never used anything but Windows boxes (case-insensitive file system)? [EMAIL PROTECTED] wrote: I'm new to tomcat but shouldn't it bet WEB-INF? isn't it case sensitive? Scott Archer [EMAIL PROTECTED] Abinesh S PuthenpurackalTo: [EMAIL PROTECTED] abinesh.puthenpurackal cc: @sdrc.comSubject: ClassNotFoundException when using war file (Tomcat 3.2.3) 10/31/2001 09:45 AM Please respond to Tomcat Users List Hi, I am trying to use a war which has some jar files in it for my web application in tomcat 3.2.3. The war file is structured as follows WarFile.war Web-inf/lib/jarfile1.jar Web-inf/lib/jarfile2.jar Web-inf/lib/jarfile3.jar When running the application I get ClassNotFoundException for the classes in the jar file. Also I noticed that empty directories (that follows my package structure) were created under lib directory. E.g. I see the following empty directories %TOMCAT_HOME%/webapps/webapplication/Web-inf/lib/examples/addressbook/. A workaround is to place the jar files in the tomcat/lib directory. This will result in the the jars to be added to the classpath and everything works fine. I was wondering if anyone knows about a cleaner solution or point out if there is something that I need to do to get this working (perhaps something in manifest file or web.xml file etc.). Any help is greatly appreciated. Thanks, Abi - -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: ClassNotFoundException when using war file (Tomcat 3.2.3)
So far, I haven't had any fundamental problems with using jar files in WEB-INF/lib, though there can always be issues. For example, in Tomcat 3.2.x, there are problems if your web app wants an XML parser different from the one being used by the server. There is one very big difference between Tomcat 3.x and Tomcat 4.x with respect to class loading. Tomcat 3.x follows the JDK behavior where classloaders delegate to their parent classloader first before searching their own classes. Tomcat 4.x follows the recommendation in the Servlet 2.3 spec that classloaders search their own classes first before delegating. It is possible your web application is happier in this latter environment and needs some work to get it to work in the former. Cheers, Larry -Original Message- From: Abinesh S Puthenpurackal [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 01, 2001 9:34 AM To: Tomcat Users List Subject: Re: ClassNotFoundException when using war file (Tomcat 3.2.3) I got my web application to work in tomcat 4.0.1 (Catalina). In Tomcat 4.0.1, the order of the contents in the web.xml seems to matter (E.g. All servlet definition must be before the servlet-mapping etc.). Except for the change in the web.xml, my war seems to working in Tomcat 4.0.1. This makes me wonder if the feature of loading the classes from jar files in WEB-INF/lib/ was fully functional in 3.2.3 release at all !!!. Has anyone had any success with this in Tomcat 3.2.3 ? Thanks Abi - Paul DuBois wrote: The examples that gets shipped with the tomcat.zip file also uses Web-inf Maybe the developers never used anything but Windows boxes (case-insensitive file system)? [EMAIL PROTECTED] wrote: I'm new to tomcat but shouldn't it bet WEB-INF? isn't it case sensitive? Scott Archer [EMAIL PROTECTED] Abinesh S PuthenpurackalTo: [EMAIL PROTECTED] abinesh.puthenpurackal cc: @sdrc.comSubject: ClassNotFoundException when using war file (Tomcat 3.2.3) 10/31/2001 09:45 AM Please respond to Tomcat Users List Hi, I am trying to use a war which has some jar files in it for my web application in tomcat 3.2.3. The war file is structured as follows WarFile.war Web-inf/lib/jarfile1.jar Web-inf/lib/jarfile2.jar Web-inf/lib/jarfile3.jar When running the application I get ClassNotFoundException for the classes in the jar file. Also I noticed that empty directories (that follows my package structure) were created under lib directory. E.g. I see the following empty directories %TOMCAT_HOME%/webapps/webapplication/Web-inf/lib/examples/addr essbook/. A workaround is to place the jar files in the tomcat/lib directory. This will result in the the jars to be added to the classpath and everything works fine. I was wondering if anyone knows about a cleaner solution or point out if there is something that I need to do to get this working (perhaps something in manifest file or web.xml file etc.). Any help is greatly appreciated. Thanks, Abi - -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
ClassNotFoundException
HELP!!! :-) I am running on win2kpro, java version 1.3.1_01, Apache Tomcat/4.0-b7 I am getting the following stack trace: java.rmi.ServerException: RemoteException occurred in server thread; nested exception is: java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is: java.lang.ClassNotFoundException: net.jini.lookup.ServiceDiscoveryManager$LookupCacheImplLookupListener_Stub java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is: java.lang.ClassNotFoundException: net.jini.lookup.ServiceDiscoveryManager$LookupCacheImpl$LookupListener_Stub java.lang.ClassNotFoundException: net.jini.lookup.ServiceDiscoveryManager$LookupCacheImpl$LookupListener_Stub at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteC all.java:245) at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:220) at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:122) at sun.rmi.server.ActivatableRef.invoke(ActivatableRef.java:120) at com.sun.jini.reggie.RegistrarImpl_Stub.notify(Unknown Source) at com.sun.jini.reggie.RegistrarProxy.notify(RegistrarProxy.java:116) at net.jini.lookup.ServiceDiscoveryManager.registerListener(ServiceDiscoveryMan ager.java:2238) at net.jini.lookup.ServiceDiscoveryManager.access$13(ServiceDiscoveryManager.ja va:2228) at net.jini.lookup.ServiceDiscoveryManager$LookupCacheImpl$RegisterListenerTask .exec(ServiceDiscoveryManager.java:405) at net.jini.lookup.ServiceDiscoveryManager$LookupCacheImpl.execTasks(ServiceDis coveryManager.java:987) at net.jini.lookup.ServiceDiscoveryManager$TaskThread.run(ServiceDiscoveryManag er.java:330) The jar file that contains the class complained about I have copied into: ${TOMCAT_ROOT}/common/lib ${TOMCAT_ROOT}/lib ${TOMCAT_ROOT}/webapps/app/WEB-INF/lib and am still getting the exception. any ideas? Thanks in advance for any help! OBTW: this app runs fine under Solaris with the same Tomcat version and just having the jar file in ${TOMCAT_ROOT}/webapps/app/WEB-INF/lib Lance -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: ClassNotFoundException
HELP!!! :-) I am running on win2kpro, java version 1.3.1_01, Apache Tomcat/4.0-b7 Please upgrade :) hint4.0.1/hint There may be a problem if the Tomcat directory contains spaces (bug 4543 - http://nagoya.apache.org/bugzilla/show_bug.cgi?id=4543). I may be wrong, but this bug doesn't look to me like a Tomcat bug. Remy -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
ClassNotFoundException when using war file (Tomcat 3.2.3)
Hi, I am trying to use a war which has some jar files in it for my web application in tomcat 3.2.3. The war file is structured as follows WarFile.war Web-inf/lib/jarfile1.jar Web-inf/lib/jarfile2.jar Web-inf/lib/jarfile3.jar When running the application I get ClassNotFoundException for the classes in the jar file. Also I noticed that empty directories (that follows my package structure) were created under lib directory. E.g. I see the following empty directories %TOMCAT_HOME%/webapps/webapplication/Web-inf/lib/examples/addressbook/. A workaround is to place the jar files in the tomcat/lib directory. This will result in the the jars to be added to the classpath and everything works fine. I was wondering if anyone knows about a cleaner solution or point out if there is something that I need to do to get this working (perhaps something in manifest file or web.xml file etc.). Any help is greatly appreciated. Thanks, Abi -
Re: ClassNotFoundException when using war file (Tomcat 3.2.3)
I'm new to tomcat but shouldn't it bet WEB-INF? isn't it case sensitive? Scott Archer [EMAIL PROTECTED] Abinesh S PuthenpurackalTo: [EMAIL PROTECTED] abinesh.puthenpurackal cc: @sdrc.comSubject: ClassNotFoundException when using war file (Tomcat 3.2.3) 10/31/2001 09:45 AM Please respond to Tomcat Users List Hi, I am trying to use a war which has some jar files in it for my web application in tomcat 3.2.3. The war file is structured as follows WarFile.war Web-inf/lib/jarfile1.jar Web-inf/lib/jarfile2.jar Web-inf/lib/jarfile3.jar When running the application I get ClassNotFoundException for the classes in the jar file. Also I noticed that empty directories (that follows my package structure) were created under lib directory. E.g. I see the following empty directories %TOMCAT_HOME%/webapps/webapplication/Web-inf/lib/examples/addressbook/. A workaround is to place the jar files in the tomcat/lib directory. This will result in the the jars to be added to the classpath and everything works fine. I was wondering if anyone knows about a cleaner solution or point out if there is something that I need to do to get this working (perhaps something in manifest file or web.xml file etc.). Any help is greatly appreciated. Thanks, Abi - -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: ClassNotFoundException when using war file (Tomcat 3.2.3)
WEB-INF is case sensitive, it can not be Web-inf or other... Bo Oct.31, 2001 [EMAIL PROTECTED] wrote: I'm new to tomcat but shouldn't it bet WEB-INF? isn't it case sensitive? Scott Archer [EMAIL PROTECTED] [...] Hi, I am trying to use a war which has some jar files in it for my web application in tomcat 3.2.3. The war file is structured as follows WarFile.war Web-inf/lib/jarfile1.jar Web-inf/lib/jarfile2.jar Web-inf/lib/jarfile3.jar When running the application I get ClassNotFoundException for the classes in the jar file. Also I noticed that empty directories (that follows my package structure) were created under lib directory. E.g. I see the following empty directories %TOMCAT_HOME%/webapps/webapplication/Web-inf/lib/examples/addressbook/. A workaround is to place the jar files in the tomcat/lib directory. This will result in the the jars to be added to the classpath and everything works fine. I was wondering if anyone knows about a cleaner solution or point out if there is something that I need to do to get this working (perhaps something in manifest file or web.xml file etc.). Any help is greatly appreciated. Thanks, Abi - -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: ClassNotFoundException when using war file (Tomcat 3.2.3)
I doubt it. Sounds like you are on a Windows machine and explorer presents all filenames like that. I'd suggest going to a DOS session and looking at the directories to see the truth. Also check the option 'Allow all uppercase names' in the View tab under the 'View|Folder Options' menu item of My Computer. --David Smith On Wednesday 31 October 2001 11:01 am, you wrote: The examples that gets shipped with the tomcat.zip file also uses Web-inf [EMAIL PROTECTED] wrote: I'm new to tomcat but shouldn't it bet WEB-INF? isn't it case sensitive? Scott Archer [EMAIL PROTECTED] Abinesh S PuthenpurackalTo: [EMAIL PROTECTED] abinesh.puthenpurackal cc: @sdrc.comSubject: ClassNotFoundException when using war file (Tomcat 3.2.3) 10/31/2001 09:45 AM Please respond to Tomcat Users List Hi, I am trying to use a war which has some jar files in it for my web application in tomcat 3.2.3. The war file is structured as follows WarFile.war Web-inf/lib/jarfile1.jar Web-inf/lib/jarfile2.jar Web-inf/lib/jarfile3.jar When running the application I get ClassNotFoundException for the classes in the jar file. Also I noticed that empty directories (that follows my package structure) were created under lib directory. E.g. I see the following empty directories %TOMCAT_HOME%/webapps/webapplication/Web-inf/lib/examples/addressbook/... .. A workaround is to place the jar files in the tomcat/lib directory. This will result in the the jars to be added to the classpath and everything works fine. I was wondering if anyone knows about a cleaner solution or point out if there is something that I need to do to get this working (perhaps something in manifest file or web.xml file etc.). Any help is greatly appreciated. Thanks, Abi - -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: ClassNotFoundException when using war file (Tomcat 3.2.3)
I have found that WinZip always displays WEB-INF as Web-inf when viewing the contents of a WAR file. It doesn't seem to cause a problem when the WAR is expanded. It is incorrect to see extra directories created under WEB-INF/lib. This suggests that the WAR is packaged incorrectly. I can't tell what might be wrong from the information available so far. You can use the supplied WAR files as examples of what a WAR internally might look like. Note that Tomcat 3.2.x will not overwrite a web application directory if it already exists. You have to delete the directory first and then restart Tomcat 3.2.x to have the WAR file re-expanded. For those using Tomcat 3.3, you can avoid needing to delete the directory by adding redeploy=true to the AutoDeploy module in the server.xml. When Tomcat is started, it will re-expand the WAR file. Also, if the ReloadInterceptor is present, which it is by default, updating the WAR file while Tomcat is running will trigger redeploy and restart the web application the next time it is accessed. Cheers, Larry -Original Message- From: Abinesh S Puthenpurackal [mailto:[EMAIL PROTECTED]] Sent: Wednesday, October 31, 2001 11:02 AM To: Tomcat Users List Subject: Re: ClassNotFoundException when using war file (Tomcat 3.2.3) The examples that gets shipped with the tomcat.zip file also uses Web-inf [EMAIL PROTECTED] wrote: I'm new to tomcat but shouldn't it bet WEB-INF? isn't it case sensitive? Scott Archer [EMAIL PROTECTED] Abinesh S PuthenpurackalTo: [EMAIL PROTECTED] abinesh.puthenpurackal cc: @sdrc.comSubject: ClassNotFoundException when using war file (Tomcat 3.2.3) 10/31/2001 09:45 AM Please respond to Tomcat Users List Hi, I am trying to use a war which has some jar files in it for my web application in tomcat 3.2.3. The war file is structured as follows WarFile.war Web-inf/lib/jarfile1.jar Web-inf/lib/jarfile2.jar Web-inf/lib/jarfile3.jar When running the application I get ClassNotFoundException for the classes in the jar file. Also I noticed that empty directories (that follows my package structure) were created under lib directory. E.g. I see the following empty directories %TOMCAT_HOME%/webapps/webapplication/Web-inf/lib/examples/addr essbook/. A workaround is to place the jar files in the tomcat/lib directory. This will result in the the jars to be added to the classpath and everything works fine. I was wondering if anyone knows about a cleaner solution or point out if there is something that I need to do to get this working (perhaps something in manifest file or web.xml file etc.). Any help is greatly appreciated. Thanks, Abi - -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: ClassNotFoundException when using war file (Tomcat 3.2.3)
I did the following based on the inputs I received (thanks for replying), however, I am still not successful in getting it to work * I made sure that the web-inf directory was in upper case (WEB-INF). * Winzip shows that all the jar files are in WEB-INF/lib/ directory. But for some reason winzip shows the web.xml file is in web-inf/web.xml although when extracted it the file is in WEB-INF/web.xml. Is this wrong ?? * When checked using winzip, I do not see the empty sub directories under WEB-INF/lib. However, when running tomcat, these empty sub directories gets created. Please let me know if there is anything else that I can do to make it work Thanks in advance. Abi - Larry Isaacs wrote: I have found that WinZip always displays WEB-INF as Web-inf when viewing the contents of a WAR file. It doesn't seem to cause a problem when the WAR is expanded. It is incorrect to see extra directories created under WEB-INF/lib. This suggests that the WAR is packaged incorrectly. I can't tell what might be wrong from the information available so far. You can use the supplied WAR files as examples of what a WAR internally might look like. Note that Tomcat 3.2.x will not overwrite a web application directory if it already exists. You have to delete the directory first and then restart Tomcat 3.2.x to have the WAR file re-expanded. For those using Tomcat 3.3, you can avoid needing to delete the directory by adding redeploy=true to the AutoDeploy module in the server.xml. When Tomcat is started, it will re-expand the WAR file. Also, if the ReloadInterceptor is present, which it is by default, updating the WAR file while Tomcat is running will trigger redeploy and restart the web application the next time it is accessed. Cheers, Larry -Original Message- From: Abinesh S Puthenpurackal [mailto:[EMAIL PROTECTED]] Sent: Wednesday, October 31, 2001 11:02 AM To: Tomcat Users List Subject: Re: ClassNotFoundException when using war file (Tomcat 3.2.3) The examples that gets shipped with the tomcat.zip file also uses Web-inf [EMAIL PROTECTED] wrote: I'm new to tomcat but shouldn't it bet WEB-INF? isn't it case sensitive? Scott Archer [EMAIL PROTECTED] Abinesh S PuthenpurackalTo: [EMAIL PROTECTED] abinesh.puthenpurackal cc: @sdrc.comSubject: ClassNotFoundException when using war file (Tomcat 3.2.3) 10/31/2001 09:45 AM Please respond to Tomcat Users List Hi, I am trying to use a war which has some jar files in it for my web application in tomcat 3.2.3. The war file is structured as follows WarFile.war Web-inf/lib/jarfile1.jar Web-inf/lib/jarfile2.jar Web-inf/lib/jarfile3.jar When running the application I get ClassNotFoundException for the classes in the jar file. Also I noticed that empty directories (that follows my package structure) were created under lib directory. E.g. I see the following empty directories %TOMCAT_HOME%/webapps/webapplication/Web-inf/lib/examples/addr essbook/. A workaround is to place the jar files in the tomcat/lib directory. This will result in the the jars to be added to the classpath and everything works fine. I was wondering if anyone knows about a cleaner solution or point out if there is something that I need to do to get this working (perhaps something in manifest file or web.xml file etc.). Any help is greatly appreciated. Thanks, Abi - -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: ClassNotFoundException when using war file (Tomcat 3.2.3)
The WEB-INF directory is where web.xml belongs, so that is correct. It is likely that it isn't Tomcat, but something in the web application itself that is creating the empty subdirectories under WEB-INF/lib. /examples/addressbook/ doesn't ring any bells with me. It does seem like a strange place to be creating new directories, though. As far as the ClassNotFoundException, you will need to supply more information about the error before there will be much chance of determining the problem. A stack trace wouldn't hurt. Cheers, Larry -Original Message- From: Abinesh S Puthenpurackal [mailto:[EMAIL PROTECTED]] Sent: Wednesday, October 31, 2001 2:41 PM To: Tomcat Users List Subject: Re: ClassNotFoundException when using war file (Tomcat 3.2.3) I did the following based on the inputs I received (thanks for replying), however, I am still not successful in getting it to work * I made sure that the web-inf directory was in upper case (WEB-INF). * Winzip shows that all the jar files are in WEB-INF/lib/ directory. But for some reason winzip shows the web.xml file is in web-inf/web.xml although when extracted it the file is in WEB-INF/web.xml. Is this wrong ?? * When checked using winzip, I do not see the empty sub directories under WEB-INF/lib. However, when running tomcat, these empty sub directories gets created. Please let me know if there is anything else that I can do to make it work Thanks in advance. Abi - Larry Isaacs wrote: I have found that WinZip always displays WEB-INF as Web-inf when viewing the contents of a WAR file. It doesn't seem to cause a problem when the WAR is expanded. It is incorrect to see extra directories created under WEB-INF/lib. This suggests that the WAR is packaged incorrectly. I can't tell what might be wrong from the information available so far. You can use the supplied WAR files as examples of what a WAR internally might look like. Note that Tomcat 3.2.x will not overwrite a web application directory if it already exists. You have to delete the directory first and then restart Tomcat 3.2.x to have the WAR file re-expanded. For those using Tomcat 3.3, you can avoid needing to delete the directory by adding redeploy=true to the AutoDeploy module in the server.xml. When Tomcat is started, it will re-expand the WAR file. Also, if the ReloadInterceptor is present, which it is by default, updating the WAR file while Tomcat is running will trigger redeploy and restart the web application the next time it is accessed. Cheers, Larry -Original Message- From: Abinesh S Puthenpurackal [mailto:[EMAIL PROTECTED]] Sent: Wednesday, October 31, 2001 11:02 AM To: Tomcat Users List Subject: Re: ClassNotFoundException when using war file (Tomcat 3.2.3) The examples that gets shipped with the tomcat.zip file also uses Web-inf [EMAIL PROTECTED] wrote: I'm new to tomcat but shouldn't it bet WEB-INF? isn't it case sensitive? Scott Archer [EMAIL PROTECTED] Abinesh S PuthenpurackalTo: [EMAIL PROTECTED] abinesh.puthenpurackal cc: @sdrc.comSubject: ClassNotFoundException when using war file (Tomcat 3.2.3) 10/31/2001 09:45 AM Please respond to Tomcat Users List Hi, I am trying to use a war which has some jar files in it for my web application in tomcat 3.2.3. The war file is structured as follows WarFile.war Web-inf/lib/jarfile1.jar Web-inf/lib/jarfile2.jar Web-inf/lib/jarfile3.jar When running the application I get ClassNotFoundException for the classes in the jar file. Also I noticed that empty directories (that follows my package structure) were created under lib directory. E.g. I see the following empty directories %TOMCAT_HOME%/webapps/webapplication/Web-inf/lib/examples/addr essbook/. A workaround is to place the jar files in the tomcat/lib directory. This will result in the the jars to be added to the classpath and everything works fine. I was wondering if anyone knows about a cleaner solution or point out if there is something that I need to do to get this working (perhaps something in manifest file or web.xml file etc.). Any help is greatly appreciated. Thanks, Abi - -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto
Re: ClassNotFoundException when using war file (Tomcat 3.2.3)
The examples that gets shipped with the tomcat.zip file also uses Web-inf Maybe the developers never used anything but Windows boxes (case-insensitive file system)? [EMAIL PROTECTED] wrote: I'm new to tomcat but shouldn't it bet WEB-INF? isn't it case sensitive? Scott Archer [EMAIL PROTECTED] Abinesh S PuthenpurackalTo: [EMAIL PROTECTED] abinesh.puthenpurackal cc: @sdrc.comSubject: ClassNotFoundException when using war file (Tomcat 3.2.3) 10/31/2001 09:45 AM Please respond to Tomcat Users List Hi, I am trying to use a war which has some jar files in it for my web application in tomcat 3.2.3. The war file is structured as follows WarFile.war Web-inf/lib/jarfile1.jar Web-inf/lib/jarfile2.jar Web-inf/lib/jarfile3.jar When running the application I get ClassNotFoundException for the classes in the jar file. Also I noticed that empty directories (that follows my package structure) were created under lib directory. E.g. I see the following empty directories %TOMCAT_HOME%/webapps/webapplication/Web-inf/lib/examples/addressbook/. A workaround is to place the jar files in the tomcat/lib directory. This will result in the the jars to be added to the classpath and everything works fine. I was wondering if anyone knows about a cleaner solution or point out if there is something that I need to do to get this working (perhaps something in manifest file or web.xml file etc.). Any help is greatly appreciated. Thanks, Abi - -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Getting ClassNotFoundException for JasperLoader12 and AdaptiveClassLoader12
First, here is my system: SuSE: 7.2 Apache: Apache/1.3.19 (Unix) (SuSE/Linux) Java: JDK1.3 Jakarta: Jakarta-3.2.1 I'm running a JSP engine/Apache web server environment. Everything seems to be working fine except I get the following exception while it's loading the initial applets. Despite getting this exception, tomcat does not die and proceeds to operate OK. Just wondering if anyone knew what this meant. The exception is: java.lang.ClassNotFoundException: org.apache.tomcat.loader.AdaptiveClassLoader12 at java.net.URLClassLoader$1.run(URLClassLoader.java:200) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:297) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286) at java.lang.ClassLoader.loadClass(ClassLoader.java:253) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:120) at org.apache.tomcat.loader.AdaptiveServletLoader.getClassLoader(AdaptiveServletLoader.java) at org.apache.tomcat.loader.AdaptiveServletLoader.loadClass(AdaptiveServletLoader.java) at org.apache.tomcat.core.ServletWrapper.loadServlet(ServletWrapper.java) at org.apache.tomcat.core.ServletWrapper.init(ServletWrapper.java) at org.apache.tomcat.context.LoadOnStartupInterceptor.contextInit(LoadOnStartupInterceptor.java) at org.apache.tomcat.core.ContextManager.initContext(ContextManager.java) at org.apache.tomcat.core.ContextManager.init(ContextManager.java) at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java) at org.apache.tomcat.startup.Tomcat.main(Tomcat.java) java.lang.ClassNotFoundException: org.apache.jasper.servlet.JasperLoader12 at java.net.URLClassLoader$1.run(URLClassLoader.java:200) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:297) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286) at java.lang.ClassLoader.loadClass(ClassLoader.java:253) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:120) at org.apache.jasper.servlet.JspServlet.init(JspServlet.java) at org.apache.tomcat.core.ServletWrapper.doInit(ServletWrapper.java) at org.apache.tomcat.core.Handler.init(Handler.java) at org.apache.tomcat.core.ServletWrapper.init(ServletWrapper.java) at org.apache.tomcat.context.LoadOnStartupInterceptor.contextInit(LoadOnStartupInterceptor.java) at org.apache.tomcat.core.ContextManager.initContext(ContextManager.java) at org.apache.tomcat.core.ContextManager.init(ContextManager.java) at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java) at org.apache.tomcat.startup.Tomcat.main(Tomcat.java) Thanks for any help, Chris Yunker __ Do You Yahoo!? Get email alerts NEW webcam video instant messaging with Yahoo! Messenger. http://im.yahoo.com
RE: That annoying ClassNotFoundException again
I haven't yet played with JDK1.4 yet. However, comments I have heard suggest that it may come with an XML parser built in. I think Tomcat 3.1 requires xml.jar be used which may be conflicting with the build in XML parser. I would recommend upgrading your Tomcat. Larry -Original Message- From: David Epstein [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 15, 2001 12:15 AM To: [EMAIL PROTECTED] Subject: That annoying ClassNotFoundException again I'm having the same problem others have had, yet none of the fixes seem to work. I'm running an installation that worked just fine on Win2K Server, JDK1.3.1, and Tomcat 2.1. When I upgraded to JDK1.4 I started getting: java.lang.ClassNotFoundException: com/sun/xml/parser/Parser at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Unknown Source) at org.xml.sax.helpers.ParserFactory.makeParser(Unknown Source) at org.apache.tomcat.util.xml.XmlMapper.readXml(XmlMapper.java:191) at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:143) at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:163) FATAL: configuration error java.lang.Exception: Error creating sax parser at org.apache.tomcat.util.xml.XmlMapper.readXml(XmlMapper.java:207) at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:143) at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:163) None of the .jar files has been moved from the TOMCAT_HOME\lib directory, and this worked fine before. In particular, I have xml.jar in the classpath, which has the requested com/sun/xml/parser/Parser class in it. After reading the archived newsgroups I tried: 1. adding a parser.jar file to TOMCAT_HOME\lib 2. checking all other .jar's in the classpath for a conflict on the Parser.class file 3. moving xml.jar to the JAVA_HOME/lib/ext directory Nothing seems to help. Anyone have a good idea, other than just returning to the old JDK version? Any hints greatly appreciated. David Epstein 420 West 118th Street Columbia University New York, NY 10027 212-854-7566 (voice) 212-222-0598 (fax) http://paradocs.pols.columbia.edu/myweb
That annoying ClassNotFoundException again
I'm having the same problem others have had, yet none of the fixes seem to work. I'm running an installation that worked just fine on Win2K Server, JDK1.3.1, and Tomcat 2.1. When I upgraded to JDK1.4 I started getting: java.lang.ClassNotFoundException: com/sun/xml/parser/Parser at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Unknown Source) at org.xml.sax.helpers.ParserFactory.makeParser(Unknown Source) at org.apache.tomcat.util.xml.XmlMapper.readXml(XmlMapper.java:191) at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:143) at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:163) FATAL: configuration error java.lang.Exception: Error creating sax parser at org.apache.tomcat.util.xml.XmlMapper.readXml(XmlMapper.java:207) at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:143) at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:163) None of the .jar files has been moved from the TOMCAT_HOME\lib directory, and this worked fine before. In particular, I have xml.jar in the classpath, which has the requested com/sun/xml/parser/Parser class in it. After reading the archived newsgroups I tried: 1. adding a parser.jar file to TOMCAT_HOME\lib 2. checking all other .jar's in the classpath for a conflict on the Parser.class file 3. moving xml.jar to the JAVA_HOME/lib/ext directory Nothing seems to help. Anyone have a good idea, other than just returning to the old JDK version? Any hints greatly appreciated. David Epstein 420 West 118th Street Columbia University New York, NY 10027 212-854-7566 (voice) 212-222-0598 (fax) http://paradocs.pols.columbia.edu/myweb
RE: (application library) ClassNotFoundException
On Mon, 9 Jul 2001, Kevin HaleBoyes wrote: Herein lies your problem. The classes12.jar(it has to be a jar not a zip), has to be in TOMCAT_HOME/lib, not your webapps lib folder. Think of it this way. Where do you configure the JDBCRealm? In TOMCAT_HOME/conf/server.xml. The server.xml file is parsed at startup and therefore the Realm is created before the context(s) have been loaded. Yes, of course!!! I had it in my head ... but this is the way I did it before but I had forgotten that I had copied the classes111.jar (for 8i) into the server/lib directory. So, this leads me to a follow up question. I know that I've got the jar file in the server/lib directory, is there any way to use that from my application. If not then I have to have the exact same jar file in my WEB-INF/lib directory to use Oracle JDBC in my application. JAR files in the $CATALINA_HOME/server/lib directory are visible only to internal Catalina classes. Because JDBCRealm lives inside Catalina, this is necessary in order to use an Oracle database. If you want to make your JDBC driver visible to web application as well, make another copy of classes111.jar in the $CATALINA_HOME/lib directory. Alternatively, you can include classes111.jar inside the /WEB-INF/lib directory of each web app that needs it (some drivers won't work when installed globally -- I haven't tried the Oracle one so I don't know about it specifically). Thanks very much for your help, Kevin. Craig McClanahan
(application library) ClassNotFoundException
I've been running Tomcat 4.0b5 since it was released and had the JDBCRealm stuff working just fine. I've been using Oracle 8.1.7 (8i) on Linux RedHat 6.2. I upgraded just recently to RedHat 7.1 and Oracle 9i (9.0.1) and tried to get my application working again but it is failing on the JDBCRealm initialization. Specifically, the first call to open() fails with a ClassNotFoundException for the oracle JDBC driver. The relavent part of the server.xml file is Realm className=org.apache.catalina.realm.JDBCRealm debug=99 driverName=oracle.jdbc.OracleDriver connectionURL=jdbc:oracle:thin:@castor:1521:orasid9i connectionName=opf connectionPassword=opf userTable=opf_user_cred userNameCol=user_name userCredCol=password userRoleTable=opf_user_roles roleNameCol=role_name digest=MD5 / The only change I made for 9i was to change the driverName from oracle.jdbc.driver.OracleDriver to oracle.jdbc.OracleDriver as recommended by Oracle. In my application lib directory I made a link to the classes12.zip (and .jar file) and rebuilt. I've confirmed that the classes12.{jar,zip} files are in /usr/local/jakarta/jakarta-tomcat-4.0-b5/src/build/webapps/opf/WEB-INF/lib/ directory and tried to start Tomcat.: I get the following message Starting service Tomcat-Standalone Apache Tomcat/4.0-b5 Catalina.start: LifecycleException: Exception opening database connection: java.sql.SQLException: oracle.jdbc.OracleDriver LifecycleException: Exception opening database connection: java.sql.SQLException: oracle.jdbc.OracleDriver at org.apache.catalina.realm.JDBCRealm.start(JDBCRealm.java:621) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1108) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:278) at org.apache.catalina.core.StandardService.start(StandardService.java:353) at org.apache.catalina.core.StandardServer.start(StandardServer.java:458) at org.apache.catalina.startup.Catalina.start(Catalina.java:725) at org.apache.catalina.startup.Catalina.execute(Catalina.java:647) at org.apache.catalina.startup.Catalina.process(Catalina.java:177) at java.lang.reflect.Method.invoke(Native Method) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:196) - Root Cause - java.sql.SQLException: oracle.jdbc.OracleDriver at org.apache.catalina.realm.JDBCRealm.open(JDBCRealm.java:534) at org.apache.catalina.realm.JDBCRealm.start(JDBCRealm.java:619) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1108) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:278) at org.apache.catalina.core.StandardService.start(StandardService.java:353) at org.apache.catalina.core.StandardServer.start(StandardServer.java:458) at org.apache.catalina.startup.Catalina.start(Catalina.java:725) at org.apache.catalina.startup.Catalina.execute(Catalina.java:647) at org.apache.catalina.startup.Catalina.process(Catalina.java:177) at java.lang.reflect.Method.invoke(Native Method) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:196) You'll notice something odd about the message. It doesn't say what the exception actually was!!! So, I edited JDBCRealm.java and put in a few log() calls to get the following: 2001-07-09 13:47:17 JDBCRealm[Standalone]: open():- opening a DB connection 2001-07-09 13:47:17 JDBCRealm[Standalone]: open():- instantiating a new driver: name=oracle.jdbc.OracleDriver, instance=null 2001-07-09 13:47:17 JDBCRealm[Standalone]: open():- instantiation exception: java.lang.ClassNotFoundException: oracle.jdbc.OracleDriver at org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:) at org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:976) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:120) at org.apache.catalina.realm.JDBCRealm.open(JDBCRealm.java:529) at org.apache.catalina.realm.JDBCRealm.start(JDBCRealm.java:619) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1108) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:278) at org.apache.catalina.core.StandardService.start(StandardService.java:353) at org.apache.catalina.core.StandardServer.start(StandardServer.java:458) at org.apache.catalina.startup.Catalina.start(Catalina.java:725) at org.apache.catalina.startup.Catalina.execute(Catalina.java:647) at org.apache.catalina.startup.Catalina.process(Catalina.java:177) at java.lang.reflect.Method.invoke(Native Method) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:196
RE: (application library) ClassNotFoundException
The only change I made for 9i was to change the driverName from oracle.jdbc.driver.OracleDriver to oracle.jdbc.OracleDriver as recommended by Oracle. In my application lib directory I made a link to the classes12.zip (and .jar file) and rebuilt. I've confirmed that the classes12.{jar,zip} files are in /usr/local/jakarta/jakarta-tomcat-4.0-b5/src/build/webapps/opf /WEB-INF/lib/ Herein lies your problem. The classes12.jar(it has to be a jar not a zip), has to be in TOMCAT_HOME/lib, not your webapps lib folder. Think of it this way. Where do you configure the JDBCRealm? In TOMCAT_HOME/conf/server.xml. The server.xml file is parsed at startup and therefore the Realm is created before the context(s) have been loaded. --- Michael Wentzel Software Developer Software As We Think - http://www.aswethink.com
Re: (application library) ClassNotFoundException
Hey Mike, Your advice helped immensely. Can you help me with this one too, we use HTTP Apache based authentification. So we need to pass a HREF in HTML with the syntax username:password@URL. But thing is, this URL is a JSP page that invalidates the session of a USER. So what we did is call the JSP page in the URL, and redirect in that JSP page with the username:password. You cannot put this information in the redirect JSP command or forward. How would I solve this? Warmest Regards, Eric Dunn Software Engineer ZBE [EMAIL PROTECTED] - Original Message - From: Michael Wentzel [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, July 09, 2001 10:34 AM Subject: RE: (application library) ClassNotFoundException The only change I made for 9i was to change the driverName from oracle.jdbc.driver.OracleDriver to oracle.jdbc.OracleDriver as recommended by Oracle. In my application lib directory I made a link to the classes12.zip (and .jar file) and rebuilt. I've confirmed that the classes12.{jar,zip} files are in /usr/local/jakarta/jakarta-tomcat-4.0-b5/src/build/webapps/opf /WEB-INF/lib/ Herein lies your problem. The classes12.jar(it has to be a jar not a zip), has to be in TOMCAT_HOME/lib, not your webapps lib folder. Think of it this way. Where do you configure the JDBCRealm? In TOMCAT_HOME/conf/server.xml. The server.xml file is parsed at startup and therefore the Realm is created before the context(s) have been loaded. --- Michael Wentzel Software Developer Software As We Think - http://www.aswethink.com
RE: (application library) ClassNotFoundException
Herein lies your problem. The classes12.jar(it has to be a jar not a zip), has to be in TOMCAT_HOME/lib, not your webapps lib folder. Think of it this way. Where do you configure the JDBCRealm? In TOMCAT_HOME/conf/server.xml. The server.xml file is parsed at startup and therefore the Realm is created before the context(s) have been loaded. Yes, of course!!! I had it in my head ... but this is the way I did it before but I had forgotten that I had copied the classes111.jar (for 8i) into the server/lib directory. So, this leads me to a follow up question. I know that I've got the jar file in the server/lib directory, is there any way to use that from my application. If not then I have to have the exact same jar file in my WEB-INF/lib directory to use Oracle JDBC in my application. Thanks very much for your help, Kevin. Do You Yahoo!? Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk or your free @yahoo.ie address at http://mail.yahoo.ie
RE: (application library) ClassNotFoundException
So, this leads me to a follow up question. I know that I've got the jar file in the server/lib directory, is there any way to use that from my application. If not then I have to have the exact same jar file in my WEB-INF/lib directory to use Oracle JDBC in my application. You could always alter you startup script to so that the TOMCAT CLASSPATH contains the fully qualified oracle jar. --- Michael Wentzel Software Developer Software As We Think - http://www.aswethink.com
RE: (application library) ClassNotFoundException
From: Michael Wentzel So, this leads me to a follow up question. I know that I've got the jar file in the server/lib directory, is there any way to use that from my application. If not then I have to have the exact same jar file in my WEB-INF/lib directory to use Oracle JDBC in my application. You could always alter you startup script to so that the TOMCAT CLASSPATH contains the fully qualified oracle jar. Ok that works, but is that the right thing to do? K. Do You Yahoo!? Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk or your free @yahoo.ie address at http://mail.yahoo.ie
RE: (application library) ClassNotFoundException
You could always alter you startup script to so that the TOMCAT CLASSPATH contains the fully qualified oracle jar. Ok that works, but is that the right thing to do? K. No, not really, but if you don't want to have multiple file copies (which shouldn't be that much of a problem really) this is the only way to do it, unless you want to rewrite some of tomcats class loading/classpath setting mechanism(s). --- Michael Wentzel Software Developer Software As We Think - http://www.aswethink.com
javax.servlet.jsp.JspTagException: ClassNotFoundException Error
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hay TomCatters, I have some really wired behaviour on my Tomcat 3.2.1 Installation. We have some classes laying around in the deployment classes folder: $TOMCAT_HOME/webapps/APPNAME/WEB-INF/classes/ 1.) The classes are physically there. 2.) The classpath is build properly and included on startup. (see $1) and I get the ClassNotFoundException :((( the Class is loaded dynamically with: Beans.instantiate(classLoader, com.eproduction.ResourceProvider); So My question (for hours now) ...where to put the class so that the classLoader can allocate it? I have no (more) clue? ok. There is a workaround. I can put those classes under: $TOMCAT_HOME/classes then the whole thing works. But this is exactly not what I wanted. I want to pack the application and keep those helper classes in the application's classes folder under WEB-INF. Any suggestions? thx. roman SERVER.XML - - !-- The App Context -- Context path=/eJob docBase=webapps/eJob crossContext=false debug=0 reloadable=true /Context CLASSPATH: - - Classpath according to the Servlet Engine is: /usr/local/tomcat/webapps/eJob/WEB-INF/classes:/usr/local/tomcat/webap ps/eJob/WEB-INF/lib/US_export_policy.jar:/usr/local/tomcat/webapps/eJo b/WEB-INF/lib/local_policy.jar:/usr/local/tomcat/webapps/eJob/WEB-INF/ lib/jce1_2_1.jar:/usr/local/tomcat/webapps/eJob/WEB-INF/lib/ivjdab.jar :/usr/local/tomcat/webapps/eJob/WEB-INF/lib/db2java.jar:/usr/local/tom cat/webapps/eJob/WEB-INF/lib/jasper.jar:/usr/local/tomcat/webapps/eJob /WEB-INF/lib/jce.jar:/usr/local/tomcat/webapps/eJob/WEB-INF/lib/sunjce _provider.jar:/usr/local/tomcat/webapps/eJob/WEB-INF/lib/webserver.jar And errormessage: - -- Error: 500 Location: /eJob/web/ErrorMessage.jsp Internal Servlet Error: javax.servlet.ServletException: ClassNotFoundException Error : com.eproduction.ResourceProvider at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageCont extImpl.java:459) at web._0002fweb_0002fErrorMessage_0002ejspErrorMessage_jsp_0._jspService (_0002fweb_0002fErrorMessage_0002ejspErrorMessage_jsp_0.java:296) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServ let.java:177) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:31 8) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:40 4) at org.apache.tomcat.core.Handler.service(Handler.java:286) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.facade.RequestDispatcherImpl.forward(RequestDispatch erImpl.java:194) at org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java :421) at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageCont extImpl.java:446) at web._0002fweb_0002fController_0002ejspController_jsp_0._jspService(_00 02fweb_0002fController_0002ejspController_jsp_0.java:772) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServ let.java:177) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:31 8) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:40 4) at org.apache.tomcat.core.Handler.service(Handler.java:286) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.j ava:797) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) at org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConn ection(Ajp12ConnectionHandler.java:166) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:4 16) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java: 498) at java.lang.Thread.run(Thread.java:484) Root cause: javax.servlet.jsp.JspTagException: ClassNotFoundException Error : com.eproduction.ResourceProvider at com.eproduction.LabelTag.doEndTag(LabelTag.java:70) at web._0002fweb_0002fErrorMessage_0002ejspErrorMessage_jsp_0._jspService (_0002fweb_0002fErrorMessage_0002ejspErrorMessage_jsp_0.java:283
Re: javax.servlet.jsp.JspTagException: ClassNotFoundException Error
If you run it on windows 9x/Me, please see http://rogerwei.com/install_secret.txt - Original Message - From: Gerteis, Roman [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, July 01, 2001 6:46 PM Subject: javax.servlet.jsp.JspTagException: ClassNotFoundException Error -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hay TomCatters, I have some really wired behaviour on my Tomcat 3.2.1 Installation. We have some classes laying around in the deployment classes folder: $TOMCAT_HOME/webapps/APPNAME/WEB-INF/classes/ 1.) The classes are physically there. 2.) The classpath is build properly and included on startup. (see $1) and I get the ClassNotFoundException :((( the Class is loaded dynamically with: Beans.instantiate(classLoader, com.eproduction.ResourceProvider); So My question (for hours now) ...where to put the class so that the classLoader can allocate it? I have no (more) clue? ok. There is a workaround. I can put those classes under: $TOMCAT_HOME/classes then the whole thing works. But this is exactly not what I wanted. I want to pack the application and keep those helper classes in the application's classes folder under WEB-INF. Any suggestions? thx. roman SERVER.XML - - !-- The App Context -- Context path=/eJob docBase=webapps/eJob crossContext=false debug=0 reloadable=true /Context CLASSPATH: - - Classpath according to the Servlet Engine is: /usr/local/tomcat/webapps/eJob/WEB-INF/classes:/usr/local/tomcat/webap ps/eJob/WEB-INF/lib/US_export_policy.jar:/usr/local/tomcat/webapps/eJo b/WEB-INF/lib/local_policy.jar:/usr/local/tomcat/webapps/eJob/WEB-INF/ lib/jce1_2_1.jar:/usr/local/tomcat/webapps/eJob/WEB-INF/lib/ivjdab.jar :/usr/local/tomcat/webapps/eJob/WEB-INF/lib/db2java.jar:/usr/local/tom cat/webapps/eJob/WEB-INF/lib/jasper.jar:/usr/local/tomcat/webapps/eJob /WEB-INF/lib/jce.jar:/usr/local/tomcat/webapps/eJob/WEB-INF/lib/sunjce _provider.jar:/usr/local/tomcat/webapps/eJob/WEB-INF/lib/webserver.jar And errormessage: - -- Error: 500 Location: /eJob/web/ErrorMessage.jsp Internal Servlet Error: javax.servlet.ServletException: ClassNotFoundException Error : com.eproduction.ResourceProvider at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageCont extImpl.java:459) at web._0002fweb_0002fErrorMessage_0002ejspErrorMessage_jsp_0._jspService (_0002fweb_0002fErrorMessage_0002ejspErrorMessage_jsp_0.java:296) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServ let.java:177) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:31 8) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:40 4) at org.apache.tomcat.core.Handler.service(Handler.java:286) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.facade.RequestDispatcherImpl.forward(RequestDispatch erImpl.java:194) at org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java :421) at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageCont extImpl.java:446) at web._0002fweb_0002fController_0002ejspController_jsp_0._jspService(_00 02fweb_0002fController_0002ejspController_jsp_0.java:772) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServ let.java:177) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:31 8) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:40 4) at org.apache.tomcat.core.Handler.service(Handler.java:286) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.j ava:797) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) at org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConn ection(Ajp12ConnectionHandler.java:166) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:4 16) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java: 498) at java.lang.Thread.run(Thread.java:484) Root cause: javax.servlet.jsp.JspTagException: ClassNotFoundException Error : com.eproduction.ResourceProvider at com.eproduction.LabelTag.doEndTag
AW: javax.servlet.jsp.JspTagException: ClassNotFoundException Error
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hai Roger, it's not a web.xml thing or unmapped servlets or anything. I talk a about helperclasses or packages which ARE on the classpath and not accessible by the classloader somehow. Same to the packages. The loading of a Context does (at least in my case) not properly bind the ressources in WEB-INF/classes and WEB-INF/lib onto my Web-Application. hmm.m still searching. thanxs anyways. roman - -Ursprüngliche Nachricht- Von: Roger Wei [mailto:[EMAIL PROTECTED]] Gesendet: Montag, 2. Juli 2001 01:29 An: [EMAIL PROTECTED] Betreff: Re: javax.servlet.jsp.JspTagException: ClassNotFoundException Error If you run it on windows 9x/Me, please see http://rogerwei.com/install_secret.txt - - Original Message - From: Gerteis, Roman [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, July 01, 2001 6:46 PM Subject: javax.servlet.jsp.JspTagException: ClassNotFoundException Error -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hay TomCatters, I have some really wired behaviour on my Tomcat 3.2.1 Installation. We have some classes laying around in the deployment classes folder: $TOMCAT_HOME/webapps/APPNAME/WEB-INF/classes/ 1.) The classes are physically there. 2.) The classpath is build properly and included on startup. (see $1) and I get the ClassNotFoundException :((( the Class is loaded dynamically with: Beans.instantiate(classLoader, com.eproduction.ResourceProvider); So My question (for hours now) ...where to put the class so that the classLoader can allocate it? I have no (more) clue? ok. There is a workaround. I can put those classes under: $TOMCAT_HOME/classes then the whole thing works. But this is exactly not what I wanted. I want to pack the application and keep those helper classes in the application's classes folder under WEB-INF. Any suggestions? thx. roman SERVER.XML - - !-- The App Context -- Context path=/eJob docBase=webapps/eJob crossContext=false debug=0 reloadable=true /Context CLASSPATH: - - Classpath according to the Servlet Engine is: /usr/local/tomcat/webapps/eJob/WEB-INF/classes:/usr/local/tomcat/web ap ps/eJob/WEB-INF/lib/US_export_policy.jar:/usr/local/tomcat/webapps/e Jo b/WEB-INF/lib/local_policy.jar:/usr/local/tomcat/webapps/eJob/WEB-IN F/ lib/jce1_2_1.jar:/usr/local/tomcat/webapps/eJob/WEB-INF/lib/ivjdab.j ar :/usr/local/tomcat/webapps/eJob/WEB-INF/lib/db2java.jar:/usr/local/t om cat/webapps/eJob/WEB-INF/lib/jasper.jar:/usr/local/tomcat/webapps/eJ ob /WEB-INF/lib/jce.jar:/usr/local/tomcat/webapps/eJob/WEB-INF/lib/sunj ce _provider.jar:/usr/local/tomcat/webapps/eJob/WEB-INF/lib/webserver.j ar And errormessage: - -- Error: 500 Location: /eJob/web/ErrorMessage.jsp Internal Servlet Error: javax.servlet.ServletException: ClassNotFoundException Error : com.eproduction.ResourceProvider at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageCo nt extImpl.java:459) at web._0002fweb_0002fErrorMessage_0002ejspErrorMessage_jsp_0._jspServi ce (_0002fweb_0002fErrorMessage_0002ejspErrorMessage_jsp_0.java:296) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspSe rv let.java:177) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java: 31 8) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java: 40 4) at org.apache.tomcat.core.Handler.service(Handler.java:286) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:37 2) at org.apache.tomcat.facade.RequestDispatcherImpl.forward(RequestDispat ch erImpl.java:194) at org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.ja va :421) at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageCo nt extImpl.java:446) at web._0002fweb_0002fController_0002ejspController_jsp_0._jspService(_ 00 02fweb_0002fController_0002ejspController_jsp_0.java:772) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspSe rv let.java:177) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java: 31 8) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java: 40 4) at org.apache.tomcat.core.Handler.service(Handler.java:286
Tomcat3.2.1 -ClassNotFoundException error when using Third-party libraries
Hi there: I'm having the following configuration and I'm using mod_jk instead of mod_jserv and starting Tomcat using startup.sh script provided. Tomcat 3.2.1+Apache1.3.9+Sun Solaris2.7 I have a servlet (TopicServlet) which is using a thirdparty library(PANJA.jar). When I'm running the same code but using main() I could be able to get the code work but when I tried to run it as a servlet I'm getting the following error. I could reach the servlet (configured server.xml and web.xml) and even put PANJA.jar in WEB-INF/lib of Tomcat. Also I included it(PANJA.jar) in CLASSPATH while running the startup.sh srcipt. I don't know where I'm going wrong. Please help. PS: PANJA.MtClass.mtInitializer(MtClass.java:163) - I'm calling MtClass's mtInitializer("Topic"). Topic and TopicList are my classes. Thanks, Srujan java.lang.ClassNotFoundException: Topic at java.net.URLClassLoader$1.run(URLClassLoader.java:200) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:297) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286) at java.lang.ClassLoader.loadClass(ClassLoader.java:253) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:120) at PANJA.MtClass.mtInitializer(MtClass.java:163) at Topic.mtClass(Topic.java:45) at Topic.openInstanceCursor(Topic.java:35) at TopicList.getTopics(TopicList.java:16) at TopicServlet.doGet(TopicServlet.java:42) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404) at org.apache.tomcat.core.Handler.service(Handler.java:286) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) at org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection(Ajp12ConnectionHandler.java:166) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498) at java.lang.Thread.run(Thread.java:484) --== Sent via Deja.com ==-- http://www.deja.com/
ClassNotFoundException
I've new to servlets and jsp and have just installed Tomcat so forgive me if I'm missing something really simple here. I've searched the archives and not found any answers. I've created a new webapp as detailed in the instructions that I downloaded. The servlets and html files work fine but when I try to load a jsp the browser diplays a 404 error and I get a ClassNotFoundException in the command window. I'm running Tommcat 3.2.1 with Linux/Apache. Can anyone help me out. Michael Garthwaite
RE: ClassNotFoundException
Title: RE: ClassNotFoundException What directories are your HTML and your JSP files and your Servlets. Generally JSP files are in the HTML directory or directories below it while servlets are in your web-inf/classes directory. What are you typing on the browser window === Gary Grewal -Original Message- From: Michael Garthwaite [mailto:[EMAIL PROTECTED]] Sent: Monday, March 26, 2001 1:24 PM To: [EMAIL PROTECTED] Subject: ClassNotFoundException I've new to servlets and jsp and have just installed Tomcat so forgive me if I'm missing something really simple here. I've searched the archives and not found any answers. I've created a new webapp as detailed in the instructions that I downloaded. The servlets and html files work fine but when I try to load a jsp the browser diplays a 404 error and I get a ClassNotFoundException in the command window. I'm running Tommcat 3.2.1 with Linux/Apache. Can anyone help me out. Michael Garthwaite
Re: ClassNotFoundException
The directory structure is /usr/local/jakarta-tomcat/myapp/WEB-INF/classes. I'm placing the jsp and html files in myapp and the servlets in classes. I have defined a context for myapp in server.xml. In the browser I type http://myserver/myapp/index.jsp. "Grewal, Gary" wrote: What directories are your HTML and your JSP files and your Servlets. Generally JSP files are in the HTML directory or directories below it while servlets are in your web-inf/classes directory. What are you typing on the browser window === Gary Grewal -Original Message- From: Michael Garthwaite [mailto:[EMAIL PROTECTED]] Sent: Monday, March 26, 2001 1:24 PM To: [EMAIL PROTECTED] Subject: ClassNotFoundException I've new to servlets and jsp and have just installed Tomcat so forgive me if I'm missing something really simple here. I've searched the archives and not found any answers. I've created a new webapp as detailed in the instructions that I downloaded. The servlets and html files work fine but when I try to load a jsp the browser diplays a 404 error and I get a ClassNotFoundException in the command window. I'm running Tommcat 3.2.1 with Linux/Apache. Can anyone help me out. Michael Garthwaite
ClassNotFoundException
I've new to servlets and jsp and have just installed Tomcat so forgive me if I'm missing something really simple here. I've searched the archives and not found any answers. I've created a new webapp as detailed in the instructions that I downloaded. The servlets and html files work fine but when I try to load a jsp the browser diplays a 404 error and I get a ClassNotFoundException in the command window. I'm running Tommcat 3.2.1 with Linux/Apache. Can anyone help me out. he directory structure is /usr/local/jakarta-tomcat/myapp/WEB-INF/classes. I'm placing the jsp and html files in myapp and the servlets in classes. I have defined a context for myapp in server.xml. In the browser I type http://myserver/myapp/index.jsp. Michael Garthwaite
Re: ClassNotFoundException
Michael, I had a problem similar to this tonight. After a little searching I found out that it was related to classpath. Make sure your classes folder is in your classpath. Good luck, Sam At 3/26/2001 10:17 PM, you wrote: I've new to servlets and jsp and have just installed Tomcat so forgive me if I'm missing something really simple here. I've searched the archives and not found any answers. I've created a new webapp as detailed in the instructions that I downloaded. The servlets and html files work fine but when I try to load a jsp the browser diplays a 404 error and I get a ClassNotFoundException in the command window. I'm running Tommcat 3.2.1 with Linux/Apache. Can anyone help me out. he directory structure is /usr/local/jakarta-tomcat/myapp/WEB-INF/classes. I'm placing the jsp and html files in myapp and the servlets in classes. I have defined a context for myapp in server.xml. In the browser I type http://myserver/myapp/index.jsp. Michael Garthwaite