Re: Virtual Host problem with classpath

2006-05-19 Thread Hassan Schroeder

On 5/19/06, [EMAIL PROTECTED] [EMAIL PROTECTED] 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  [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Virtual Host problem with classpath

2006-05-19 Thread Mladen Adamovic

Hassan Schroeder wrote:

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.

Hassan, thank you very much.
I have resolved the problem by putting everything (subdirectories) in 
'webapps/mysite/ROOT'  and changed the Host Context into :

Context path= docBase=ROOT/
And now www.mysite.com/widgetX/index.jsp works :).

thanx x10

--
Mladen Adamovic
http://home.blic.net/adamm
http://www.shortopedia.com 
http://www.froola.com 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]