You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2003/03/03 10:36:50 UTC
DO NOT REPLY [Bug 17581] New: -
Servlet loading twice on startup
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=17581>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=17581
Servlet loading twice on startup
Summary: Servlet loading twice on startup
Product: Tomcat 4
Version: 4.0 Beta 1
Platform: PC
OS/Version: Other
Status: UNCONFIRMED
Severity: Critical
Priority: Other
Component: Webapps:Administration
AssignedTo: tomcat-dev@jakarta.apache.org
ReportedBy: anoopv@quinnox.com
Hi,
I have a requirement in which i need to load the servlet on startup. The
Servlet then performs some database activities.
But when i try to it, my servlet loads twice and later on give the following
error.
TyrexDataSourceFactory: Cannot create DataSource, Exception
java.lang.ClassNotFoundException: org.hsql.jdbcDriver
at org.apache.catalina.loader.StandardClassLoader.loadClass
(StandardClass
Loader.java:1127)
at org.apache.catalina.loader.StandardClassLoader.loadClass
(StandardClass
Loader.java:992)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:322)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:130)
at org.apache.naming.factory.TyrexDataSourceFactory.getObjectInstance
(Tyr
exDataSourceFactory.java:210)
at org.apache.naming.factory.ResourceFactory.getObjectInstance
(ResourceFa
ctory.java:165)
at javax.naming.spi.NamingManager.getObjectInstance
(NamingManager.java:31
1)
at org.apache.naming.NamingContext.lookup(NamingContext.java:835)
at org.apache.naming.NamingContext.lookup(NamingContext.java:181)
at org.apache.naming.NamingContext.lookup(NamingContext.java:822)
at org.apache.naming.NamingContext.lookup(NamingContext.java:194)
at com.necpc.db.ConnectionManager.createConnection
(ConnectionManager.java
:44)
at com.necpc.store.ServiceStore.getDBConnection(ServiceStore.java:52)
at com.necpc.store.ServiceStore.<init>(ServiceStore.java:41)
at com.necpc.util.requestInfoValidation.VerifyService
(requestInfoValidati
on.java:92)
at com.necpc.util.TimerHttpTest.run(TimerHttpTest.java:51)
at java.util.TimerThread.mainLoop(Timer.java:432)
at java.util.TimerThread.run(Timer.java:382)
javax.naming.NamingException: Exception creating DataSource: org.hsql.jdbcDriver
at org.apache.naming.factory.TyrexDataSourceFactory.getObjectInstance
(Tyr
exDataSourceFactory.java:233)
at org.apache.naming.factory.ResourceFactory.getObjectInstance
(ResourceFa
ctory.java:165)
at javax.naming.spi.NamingManager.getObjectInstance
(NamingManager.java:31
1)
at org.apache.naming.NamingContext.lookup(NamingContext.java:835)
at org.apache.naming.NamingContext.lookup(NamingContext.java:181)
at org.apache.naming.NamingContext.lookup(NamingContext.java:822)
at org.apache.naming.NamingContext.lookup(NamingContext.java:194)
at com.necpc.db.ConnectionManager.createConnection
(ConnectionManager.java
:44)
at com.necpc.store.ServiceStore.getDBConnection(ServiceStore.java:52)
at com.necpc.store.ServiceStore.<init>(ServiceStore.java:41)
at com.necpc.util.requestInfoValidation.VerifyService
(requestInfoValidati
on.java:92)
at com.necpc.util.TimerHttpTest.run(TimerHttpTest.java:51)
at java.util.TimerThread.mainLoop(Timer.java:432)
at java.util.TimerThread.run(Timer.java:382)
In case u have the solution or fix i would be obliged if you provide me woth
the same.
I feel this could be because the servlet is getting oinvoked twice on load.
Please Suggest??
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org