I removed /path. Still the same problem. The version I am using is 5.5.17 and
it is win xp. 


Pid-2 wrote:
> 
> 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. 
> 
> 
>  
> 

-- 
View this message in context: 
http://www.nabble.com/Context-started-twice-tf3664516.html#a10242348
Sent from the Tomcat - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to