On 4/29/07, sc <[EMAIL PROTECTED]> 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.

Seems to me that the Context is defined in 2 places First:
context.xml is empty except this line
<WatchedResource>WEB-INF/web.xml</WatchedResource>


Second (modified) :

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="">
    <Resource name="jdbc/trip" auth="Container"
..........
</Context>


I would suggest moving
<WatchedResource>WEB-INF/web.xml</WatchedResource> also inside
trip.xml

And change the /META-INF/context.xml entry to <Context/>



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#a10239122
Sent from the Tomcat - User mailing list archive at Nabble.com.

-Rashmi

---------------------------------------------------------------------
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