sc wrote:
There was a thread on this "http://www.nabble.com/Context-starts-twice-t1351694.html". But my configuration is a bit different.this is my configuration: server.xml doesn't have context definition.context.xml is empty except this line <WatchedResource>WEB-INF/web.xml</WatchedResource>under $CATALINA_HOME/Catalina/localhost, I defined a context xml file, trip.xml <?xml version='1.0' encoding='utf-8'?> <Context docBase="d:/dev/trip/main/build" path="/trip"><Resource name="jdbc/trip" auth="Container" ..........</Context>
Note: path attribute should not be set unless context is defined in server.xml, which is *strongly* discouraged.
<?xml version='1.0' encoding='utf-8'?>
<Context docBase="d:/dev/trip/main/build">
<Resource name="jdbc/trip" auth="Container"
..........
</Context>
Won't fix your problem tho.
Which version of Tomcat, OS? etc
p
In my web.xml, I have the following entry,
<servlet>
<servlet-name>dummy</servlet-name>
<servlet-class>com.trip.view.DummyServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
When DummyServlet starts, it init twice. Any help is appreciated.
smime.p7s
Description: S/MIME Cryptographic Signature
