reloading, 5.0, context.xml
I'm running a 5.0 of some vintage. I'm currently in a developing phase where I need reloading. It is cumbersome to restart the server for every little source change. I've read through the archived messages and find that reloading = false is the default in 5.x. And that one had to set reloadable=true in context.xml. Seems like there was no context.xml with the 5.0 release I got. Where should I put the statement? Should I create a context.xml? Should I do it in server.xml? Or in the respective web.xml? Also in this phase I don't want to do an upgrade to anything current. So I need a quick help how to enable reloading. Thank you. -- Chris Christoph P. U. Kukulies kuku_at_kukulies.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: reloading, 5.0, context.xml
You should do this ... Create a file called mywebapp.xml (matching your webapp's name of course) and whack it in tomcat/conf/Catalina/localhost In that file Context path= docBase=/mywebapp reloadable=true / Note this is for 5.0.x NOT 5.5.x which removes the path attribute. Restart. -Original Message- From: Christoph Kukulies [mailto:[EMAIL PROTECTED] Sent: 03 December 2004 11:21 To: [EMAIL PROTECTED] Subject: reloading, 5.0, context.xml I'm running a 5.0 of some vintage. I'm currently in a developing phase where I need reloading. It is cumbersome to restart the server for every little source change. I've read through the archived messages and find that reloading = false is the default in 5.x. And that one had to set reloadable=true in context.xml. Seems like there was no context.xml with the 5.0 release I got. Where should I put the statement? Should I create a context.xml? Should I do it in server.xml? Or in the respective web.xml? Also in this phase I don't want to do an upgrade to anything current. So I need a quick help how to enable reloading. Thank you. -- Chris Christoph P. U. Kukulies kuku_at_kukulies.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE --- QAS Ltd. Developers of QuickAddress Software a href=http://www.qas.com;www.qas.com/a Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- /FONT - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: reloading, 5.0, context.xml
On Fri, Dec 03, 2004 at 11:29:00AM -, Allistair Crossley wrote: You should do this ... Create a file called mywebapp.xml (matching your webapp's name of course) and whack it in tomcat/conf/Catalina/localhost In that file Context path= docBase=/mywebapp reloadable=true / Note this is for 5.0.x NOT 5.5.x which removes the path attribute. Restart. I tried that. stdout.log: Dec 3, 2004 5:13:14 PM org.apache.catalina.core.StandardContext resourcesStart SEVERE: Cannot find message associated with key standardContext.resourcesStart java.lang.IllegalArgumentException: Document base /servlets does not exist or is not a read able directory at org.apache.naming.resources.FileDirContext.setDocBase(FileDirContext.java:185) at org.apache.catalina.core.StandardContext.resourcesStart(StandardContext.java:3756) ... /usr/local/jakarta-tomcat5.0/conf/Catalina/localhost/servlets.xml: Context path= docBase=/servlets reloadable=true / I guess that all classes in the classes directory of that webapps, which is in: /usr/local/jakarta-tomcat5.0/webapps/servlets/WEB-INF/classes I don't know whether servlets mapping plays a role here. -- Chris Christoph P. U. Kukulies kuku_at_kukulies.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: reloading, 5.0, context.xml
Hi, Unfortunately the leading / on docBase is misleading and not likely what you want: it implies an absolute path, i.e. /servlets on your file system. You probably want just servlets relative to your appBase, i.e. $CATALINA_HOME/webapps/servlets. For that, put docBase=servlets without a leading slash. Yoav Shapira http://www.yoavshapira.com -Original Message- From: Christoph P. Kukulies [mailto:[EMAIL PROTECTED] Sent: Friday, December 03, 2004 11:29 AM To: Tomcat Users List Subject: Re: reloading, 5.0, context.xml On Fri, Dec 03, 2004 at 11:29:00AM -, Allistair Crossley wrote: You should do this ... Create a file called mywebapp.xml (matching your webapp's name of course) and whack it in tomcat/conf/Catalina/localhost In that file Context path= docBase=/mywebapp reloadable=true / Note this is for 5.0.x NOT 5.5.x which removes the path attribute. Restart. I tried that. stdout.log: Dec 3, 2004 5:13:14 PM org.apache.catalina.core.StandardContext resourcesStart SEVERE: Cannot find message associated with key standardContext.resourcesStart java.lang.IllegalArgumentException: Document base /servlets does not exist or is not a read able directory at org.apache.naming.resources.FileDirContext.setDocBase(FileDirContext.ja va:1 85) at org.apache.catalina.core.StandardContext.resourcesStart(StandardContext .jav a:3756) ... /usr/local/jakarta-tomcat5.0/conf/Catalina/localhost/servlets.xml: Context path= docBase=/servlets reloadable=true / I guess that all classes in the classes directory of that webapps, which is in: /usr/local/jakarta-tomcat5.0/webapps/servlets/WEB-INF/classes I don't know whether servlets mapping plays a role here. -- Chris Christoph P. U. Kukulies kuku_at_kukulies.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: reloading, 5.0, context.xml
docBase=/servlets You're telling Tomcat to look in the root directory of your file system for the servlets directory. try: docBase=servlets On Fri, 2004-12-03 at 11:29, Christoph P. Kukulies wrote: On Fri, Dec 03, 2004 at 11:29:00AM -, Allistair Crossley wrote: You should do this ... Create a file called mywebapp.xml (matching your webapp's name of course) and whack it in tomcat/conf/Catalina/localhost In that file Context path= docBase=/mywebapp reloadable=true / Note this is for 5.0.x NOT 5.5.x which removes the path attribute. Restart. I tried that. stdout.log: Dec 3, 2004 5:13:14 PM org.apache.catalina.core.StandardContext resourcesStart SEVERE: Cannot find message associated with key standardContext.resourcesStart java.lang.IllegalArgumentException: Document base /servlets does not exist or is not a read able directory at org.apache.naming.resources.FileDirContext.setDocBase(FileDirContext.java:185) at org.apache.catalina.core.StandardContext.resourcesStart(StandardContext.java:3756) ... /usr/local/jakarta-tomcat5.0/conf/Catalina/localhost/servlets.xml: Context path= docBase=/servlets reloadable=true / I guess that all classes in the classes directory of that webapps, which is in: /usr/local/jakarta-tomcat5.0/webapps/servlets/WEB-INF/classes I don't know whether servlets mapping plays a role here. -- Chris Christoph P. U. Kukulies kuku_at_kukulies.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: reloading, 5.0, context.xml
On Fri, Dec 03, 2004 at 11:30:47AM -0500, Shapira, Yoav wrote: Hi, Unfortunately the leading / on docBase is misleading and not likely what you want: it implies an absolute path, i.e. /servlets on your file system. You probably want just servlets relative to your appBase, i.e. $CATALINA_HOME/webapps/servlets. For that, put docBase=servlets without a leading slash. OK, Context path= docBase=servlets reloadable=true / What does the empty path= mean? -- Chris Christoph P. U. Kukulies kuku_at_kukulies.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: reloading, 5.0, context.xml
What does the empty path= mean? It means it's the default app. http://localhost:8080; will bring that app up. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: reloading, 5.0, context.xml
On Fri, Dec 03, 2004 at 11:30:47AM -0500, Shapira, Yoav wrote: Thanks for all the hellp. At least the server now starts up again without error: INFO: Processing Context configuration file URL file:/usr/local/jakarta-tomcat5.0/conf/Catalina/localhost/servlets.xml Now, when I formerly restarted tomcat/apache from within an xterm I got the RELOAD! message written to that xterm. I'm missing this message. Where can I see that the app got reloaded ? Is it still there this RELOAD message? -- Chris Christoph P. U. Kukulies kuku_at_kukulies.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]