tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hassan Schroeder" <hassan.schroe...@gmail.com>
Subject Re: Virtual Host problem with classpath
Date Fri, 19 May 2006 14:49:03 GMT
On 5/19/06, adamm@blic.net <adamm@blic.net> wrote:

> 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.

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

The appBase is where you place your webapps: ROOT, widgets, etc.
So your default app would go in 'webapps/mysite/ROOT', widgets (if
it's a separate all) 'webapps/mysite/widgets', and so on.

{appBase}/{docBase}/WEB-INF
                                  /index.jsp
                                  ...

Try that and see if your classpath issues disappear.

And for troubleshooting at least, it may help to use absolute paths in
your configs to avoid confusion...

HTH,
-- 
Hassan Schroeder ------------------------ hassan.schroeder@gmail.com

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


Mime
View raw message