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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to