tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Asher Tarnopolski <msata...@mscc.huji.ac.il>
Subject context loaded twice
Date Thu, 18 Nov 2004 13:02:08 GMT
hi,
a strange thing i can't find a sollution for.

i have a web app that runs in tomcat's root (placed in \webapps\ROOT).
don't ask me why, it's just there.
the controller servlet of the app has <load-on-startup>1..
it also prints in output "START INIT" when loaded.

when i start tomcat i see this:

code:
--------------------------------------------------------------------------------

Apache Tomcat/4.1.31WebappLoader[]: Deploying class repositories to work
directory
C:\jakarta-tomcat-4.1.31\webapps\ROOT\work\org\apache\jspWebappLoader[]:
Deploy class files /WEB-INF/classes to
C:\jakarta-tomcat-4.1.31\webapps\ROOT\WEB-INF\classesWebappLoader[]:
Reloading checks are enabled for this ContextStandardManager[]: Seeding
random number generator class java.security.SecureRandomStandardManager[]:
Seeding of random number generator has been completedStandardWrapper[
efault]: Loading container servlet defaultSTART INIT

--------------------------------------------------------------------------------


and then once more the same thing:

code:
--------------------------------------------------------------------------------

 WebappLoader[/]: Deploying class repositories to work directory
C:\jakarta-tomcat-4.1.31\webapps\ROOT\work\org\apache\jspWebappLoader[/]:
Deploy class files /WEB-INF/classes to
C:\jakarta-tomcat-4.1.31\webapps\ROOT\WEB-INF\classesWebappLoader[/]:
Reloading checks are enabled for this ContextStandardManager[/]: Seeding
random number generator class
java.security.SecureRandomStandardManager[/]: Seeding of random number
generator has been completedStandardWrapper[/  efault]: Loading container
servlet defaultSTART INIT

--------------------------------------------------------------------------------


tomcat not only prints the report twice, it loads the webapp twice,
because right after the second time i get a nasty exception:

code:
--------------------------------------------------------------------------------

  ServerLifecycleListener: processContainerAddChild:
Throwablejavax.management.InstanceAlreadyExistsException:
Catalina:type=Context,path=/,host=localhost,service=Tomcat-Standalone	at
mx4j.server.MBeanServerImpl.register(MBeanServerImpl.java:1123)	at
mx4j.server.MBeanServerImpl.registerImpl(MBeanServerImpl.java:1054)	at
mx4j.server.MBeanServerImpl.registerMBeanImpl(MBeanServerImpl.java:1002)
at mx4j.server.MBeanServerImpl.registerMBean(MBeanServerImpl.java:978)

--------------------------------------------------------------------------------



tomcat doesn't die, and the application runs ok. but still, i don't wanna
leave it as it is,, knowing that something is wrong.
any ideas?
thanks

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message