RE: classpath error when changing context
Btw, the problem I am having is with tomcat 4.1.27, on both WindowsXP and Linux. -Original Message- From: Richard Musser Sent: Tuesday, August 26, 2003 2:03 PM To: [EMAIL PROTECTED] Subject: classpath error when changing context My web app is up and running, but when I added a context definition () for it suddenly the jsp compiler can't find the classes in WEB-INF/classes. What gives? My jsp files are in a subdirectory of the web app, like such: $CATALINA_HOME/webapps/foo/bar/index.jsp. I added an xml file to the web apps directory to add the context definition so instead of hitting url http://localhost:8080/foo/bar/index.jsp I could just hit http://localhost:8080/bar/index.jsp. The context definition is like: But when I use that new url, the compiler complains about not being able to find the classes (in WEB-INF/classes). If I hit the original url, it works fine. Thanks! - 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]
classpath error when changing context
My web app is up and running, but when I added a context definition () for it suddenly the jsp compiler can't find the classes in WEB-INF/classes. What gives? My jsp files are in a subdirectory of the web app, like such: $CATALINA_HOME/webapps/foo/bar/index.jsp. I added an xml file to the web apps directory to add the context definition so instead of hitting url http://localhost:8080/foo/bar/index.jsp I could just hit http://localhost:8080/bar/index.jsp. The context definition is like: But when I use that new url, the compiler complains about not being able to find the classes (in WEB-INF/classes). If I hit the original url, it works fine. Thanks! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Processing .html files like JSPs
Thanks, this works perfectly! -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 20, 2003 12:27 PM To: Tomcat Users List Subject: Re: Processing .html files like JSPs The quick way (but there are other ways too) In $TOMCAT_HOME/conf/web.xml jsp *.jsp ADD jsp *.html -Tim [EMAIL PROTECTED] wrote: > In the app I'm working on there's a number JSP files that actually have the > extension .html. Is there a way to configure Tomcat to treat these files just as if > they had the standard .jsp extension, or do I need to rely on Apache rewrite rules? > > I'm using Tomcat 4.1.27 on Linux. > - 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]
Processing .html files like JSPs
In the app I'm working on there's a number JSP files that actually have the extension .html. Is there a way to configure Tomcat to treat these files just as if they had the standard .jsp extension, or do I need to rely on Apache rewrite rules? I'm using Tomcat 4.1.27 on Linux. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]