By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,779 Members | 1,111 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,779 IT Pros & Developers. It's quick & easy.

two hosts setup, jsp won't work on Tomcat 5

P: n/a

I run Tomcat5.0.24 on Fedora Core 1. I have two hosts defined in
server.xml in a following way:

<Host name ="" debug="0" appBase="webapps"
unpackWARs="true" autoDeploy="true" xmlValidation="false"
<Context path="" docBase="WebTest1" debug="5"/>

<Logger className="org.apache.catalina.logger.FileLogger"
prefix="localhost_WebTest1_log." suffix=".txt"

<Host name ="" debug="0"
appBase="webapps" unpackWARs="true" autoDeploy="true"
xmlValidation="false" xmlNamespaceAware="false">

<Context path="/WebTest2" docBase="WebTest2" debug="0"

<Logger className="org.apache.catalina.logger.FileLogger"
prefix="localhost_WebTest2_log." suffix=".txt"


I have proper DNS entries on my DNS server for both hosts.
First host is a simple http website and a second host is a jsp
I'm able to access both sites but when I run the jsp application (
WebTest2) I'm able to go through some jsp pages and then I get an

org.apache.jasper.JasperException: Unable to compile class for JSP

An error occurred at line: -1 in the jsp file: null

Generated servlet error:
[javac] Compiling 1 source file

package does not exist
1 error

I have about 5 jar files containing* in

I copied the above jars to
/var/tomcat5/webapps/WebTest2/WEB-INF/classes just in case and got the
same error.
Does this have anything to do with the hosts I've defined? Did I
create a wrong directory structure?
My jsps are in /var/tomcat5/webapps/WebTest2
Everything below /var/tomcat5/webapps is owned by tomcat5 user. My
Tomcat is running as root since I need it to be listening on port 80.
Cat it be a permissions problem?

Any help would be appreciated.
Thanks in advance
Jul 17 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.