tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <ad...@blic.net>
Subject Virtual Host problem with classpath
Date Fri, 19 May 2006 08:43:09 GMT
Short description :
Without virtual host everything works fine.
But, when I set my Virtual Host http://www.mysite.com
then http://www.mysite.com/widget/index.jsp doesn't find imported classes and
can't compile.

Longer description : 
In server.xml I have something like :
<Host name="www.mysite.com" debug="0" appBase="webapps/mysite"
unpackWARs="false" autoDeploy="true">
<Context path="" docBase="."/>
</Host>

When I access http://www.mysite.com/index.jsp everything is OK, but when I try to
access 
http://www.mysite.com/widget/index.jsp

I've got classpath related problem :

*exception*

org.apache.jasper.JasperException: Unable to compile class for JSP
An error occurred at line: 14 in the jsp file: /index.jsp
Generated servlet error: common.MyCommonClass cannot be resolved

In the begin of mysite/widget/index.jsp I have import="common.*";
So Tomcat don't look for classes where I expect it to seek. 

How to solve this problem ? I played a bit with Context tag but without success.





---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message