Tomcat Initializing Servlet Twice
Uncategorized - 1 Comment » - Posted on May, 28 at 12:44 pm
A web application is configured using tomcat’s server.xml and the context.xml. There some configurations that cause web applications to initialize twice like
- Duplicate definition of context in context.xml and server.xml
- Bugs in tomcat launchers for eclipse that create duplicate context definitions
- Duplicate definition of contexts when defining multiple hosts
In my case I had a proper definition of the context and the problem was I was using a exploded war deployment format and my root directory was named
The problem vanished after removing the .war extension to the directory. This happened to me on tomcat 6.0.16
Posted in Uncategorized | 1 Comment »
Good tip