The point of WEB-INF/classes and WEB-INF/lib is that they contain classes only visible to that web application. This is accomplished in Tomcat 3.2.x by creating a new classloader that has the "CLASSPATH" classloader as its parent. By adding these WEB-INF directories to the CLASSPATH, you defeat this separation and all web applications can access all other web applications classes. If doing this makes something work, then something else is misconfigured or you have hit a limitation of Tomcat 3.2.x. Both Tomcat 3.3 and Tomcat 4.x use a more complicated classloader arrangement to avoid some of the limitations in Tomcat 3.2.x.
As far as serving JSP source, if Apache can serve static resources from /webmail's directory and the Tomcat connector configuration doesn't tell Apache to send the JSP request to Tomcat, the Apache will be very happy to serve the JSP as a static file. Something needs to be configured differently to have those JSP requests be sent to Tomcat. I can't say much more without additional details. Larry > -----Original Message----- > From: August Detlefsen [mailto:[EMAIL PROTECTED]] > Sent: Thursday, November 29, 2001 9:55 PM > To: [EMAIL PROTECTED] > Subject: Webapp configuration > > > I am having trouble configuring my server to run webapps. I am trying > to setup my server (Tomcat 3.2 with Apache 1.3.20 on RedHat 7.1) to > share a webapp, /webmail, across multiple virtual hosts. > > The webapp runs fine if I access it with lynx from the localhost: > > lynx http://localhost:8080/webmail > > But if I try to hit the full URL with IE I only get the source code of > the jsp page. This sounds like a simple configuration issue, > but I have > no idea what it is. > > Is there any way to access the webapps without specifying the port > number? > > Also, I had to update the tomcat startup script to include the > classpath of the webapps. I thought this was done automatically.. This > is the code I added to tomcat.sh to set the classpaths, maybe it will > be useful to someone: > > # Set classpath for webapps > # add this after the section: > # 'Backdoor classpath setting for development purposes' > # and before: > # export CLASSPATH > for app in ${TOMCAT_HOME}/webapps/* ; do > if [ -d ${app}/WEB-INF/lib/ ]; then > for i in ${app}/WEB-INF/lib/* ; do > if [ "$CLASSPATH" != "" ]; then > CLASSPATH=${CLASSPATH}:$i > else > CLASSPATH=$i > fi > done > fi > done > > Thanks, > -August > > > __________________________________________________ > Do You Yahoo!? > Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month. > http://geocities.yahoo.com/ps/info1 > > -- > To unsubscribe: <mailto:[EMAIL PROTECTED]> > For additional commands: <mailto:[EMAIL PROTECTED]> > Troubles with the list: <mailto:[EMAIL PROTECTED]> > -- To unsubscribe: <mailto:[EMAIL PROTECTED]> For additional commands: <mailto:[EMAIL PROTECTED]> Troubles with the list: <mailto:[EMAIL PROTECTED]>
