RE: Context started twice

2007-04-30 Thread Raghupathy, Gurumoorthy
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.html

Re: Context started twice

2007-04-30 Thread Rashmi Rubdi
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

Re: Context started twice

2007-04-30 Thread Rashmi Rubdi
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 ##);

Re: Context started twice

2007-04-30 Thread sc
this message in context: http://www.nabble.com/Context-started-twice-tf3664516.html#a10264243 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

Re: Context started twice

2007-04-30 Thread Rashmi Rubdi
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, TRIP

RE: Context started twice

2007-04-30 Thread Caldarale, Charles R
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, including Tomcat-user. My personal

Re: Context started twice

2007-04-29 Thread Pid
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

Re: Context started twice

2007-04-29 Thread sc
-on-startup1/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

Re: Context started twice

2007-04-29 Thread Martin Gainty
by telephone or email and destroy the original message without making a copy. Thank you. - Original Message - From: sc [EMAIL PROTECTED] To: users@tomcat.apache.org Sent: Sunday, April 29, 2007 10:41 AM Subject: Re: Context started twice I removed /path. Still the same problem

Re: Context started twice

2007-04-29 Thread Rashmi Rubdi
servlet-classcom.trip.view.DummyServlet/servlet-class load-on-startup1/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

RE: Context started twice

2007-04-29 Thread Caldarale, Charles R
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 WatchedResourceWEB-INF/web.xml/WatchedResource I would suggest moving WatchedResourceWEB-INF/web.xml

RE: Context started twice

2007-04-29 Thread sc
xmlValidation=false xmlNamespaceAware=false /Host /Engine /Service /Server $CATALINA_HOME/conf/context.xml is: Context /Context Caldarale, Charles R wrote: From: Rashmi Rubdi [mailto:[EMAIL PROTECTED] Subject: Re: Context started twice Seems to me that the Context

Re: Context started twice

2007-04-29 Thread Rashmi Rubdi
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),

RE: Context started twice

2007-04-29 Thread Caldarale, Charles R
From: sc [mailto:[EMAIL PROTECTED] Subject: RE: Context started twice Logger className=org.apache.catalina.logger.FileLogger prefix=local_cutetrip. suffix=.log timestamp=true/ Note the following from the 5.5 doc: An important consequence for Tomcat 5.5

Re: Context started twice

2007-04-29 Thread sc
PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Context-started-twice-tf3664516.html#a10248444 Sent from the Tomcat - User mailing list archive at Nabble.com

Context started twice

2007-04-28 Thread sc
-namedummy/servlet-name servlet-classcom.trip.view.DummyServlet/servlet-class load-on-startup1/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