> From: sc [mailto:[EMAIL PROTECTED]
> Subject: Re: Context started twice
>
> This is my first time using nabble.com and surprised
> to see how prompt I can get response.
Nabble has nothing to do with it - it's merely a web-based GUI for
several mailing lists, includ
On 4/30/07, sc <[EMAIL PROTECTED]> wrote:
All my mistake. I apologize for my stupidity. It turns out it wasn't invoked
twice. It just prints twice. I had the following in log4j.properties.
log4j.rootLogger=ERROR, TRIP
log4j.logger.org.hibernate=WARN, TRIP
log4j.logger.net.sf.hibernate=INFO, TRI
en I
>> started
>> > tomcat and shutdown it.
>> > The log showed the following entries:
>> > 2007-04-30 12:35:27,968 [main] INFO com.cutetrip.view.TestServlet -
>> > TestServlet init
>> > 2007-04-30 12:35:27,968 [main] INFO com.cutetrip.view.TestServlet -
I tested your code, the init is called exactly once, when Tomcat starts.
Try one of these:
1) Change
log.info("TestServlet init");
log.info("TestServlet destroy");
to something else like
log.info("TestServlet init ## ");
log.info("TestServlet destroy ##")
On 4/30/07, sc <[EMAIL PROTECTED]> wrote:
As you suggested, I started from scratch. I downloaded tomcat 6 from
apache.org. changed $catalina_home to point to the new directory. Under
$catalina_home/webapps, I created a new folder, which only has one servlet
TestServlet
Do a global search on y
Can you post your dummyservlet Code ?
Thanks
Guru
-Original Message-
From: sc [mailto:[EMAIL PROTECTED]
Sent: 29 April 2007 06:21
To: users@tomcat.apache.org
Subject: Context started twice
There was a thread on this
"http://www.nabble.com/Context-starts-twice-t1351694
; enableLookups="false" redirectPort="8443" acceptCount="100"
>> connectionTimeout="2" disableUploadTimeout="true" />
>>
>>>
> From: sc [mailto:[EMAIL PROTECTED]
> Subject: RE: Context started twice
>
> prefix="local_cutetrip." suffix=".log"
> timestamp="true"/>
Note the following from the 5.5 doc:
"An important consequence for Tomcat 5
Please ignore my previous post.
Sorry, when you mentioned context.xml I was thinking of the one
located under the project's META-INF folder.
Chuck is right, there's no need to move the contents of the
conf/context.xml file anywhere.
Whenever configuration gets messed up (happens very rarely), I
ote:
>
>> From: Rashmi Rubdi [mailto:[EMAIL PROTECTED]
>> Subject: Re: Context started twice
>>
>> Seems to me that the Context is defined in 2 places First:
>> > context.xml is empty except this line
>> > WEB-INF/web.xml
>>
>> I would suggest
> From: Rashmi Rubdi [mailto:[EMAIL PROTECTED]
> Subject: Re: Context started twice
>
> Seems to me that the Context is defined in 2 places First:
> > context.xml is empty except this line
> > WEB-INF/web.xml
>
> I would suggest moving
> WEB-INF/web.xml also
l entry to
In my web.xml, I have the following entry,
dummy
com.trip.view.DummyServlet
1
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
in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy. Thank you.
- Original Message -
From: "sc" <[EMAIL PROTECTED]>
To:
Sent: Sunday, April 29, 2007 10:41 AM
Subject: Re: Context started twice
I remo
; Won't fix your problem tho.
> Which version of Tomcat, OS? etc
>
>
> p
>
>
>
>> In my web.xml, I have the following entry,
>>
>>
>> dummy
>> com.trip.view.DummyServlet
>> 1
>>
>>
>> When Dum
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
WEB-INF/web.xml
under $CATALINA_HOME/Catal
ble.com/Context-started-twice-tf3664516.html#a10239122
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 additio
16 matches
Mail list logo