You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by michel <co...@videotron.ca> on 2010/07/14 01:33:05 UTC

Seem to have it fixed ...

I changed appBase="webapps/supergrow"

to

<Host name="localhost" appBase="webapps"
unpackWARs="true" autoDeploy="true"
xmlValidation="false" xmlNamespaceAware="false" reloadable="true">

and I added
<Context docBase="supergrow" path=""/>

and the jsp that was in supergrow/canscale with "<%@ page 
import="compukat.io.FileUtil" %>" worked.



Thanks for the great help!

Michel












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


Re: Seem to have it fixed ...

Posted by michel <co...@videotron.ca>.
----- Original Message ----- 
From: "michel" <co...@videotron.ca>
To: "Tomcat Users List" <us...@tomcat.apache.org>
Sent: Tuesday, July 13, 2010 9:29 PM
Subject: Re: Seem to have it fixed ...


>
> ----- Original Message ----- 
> From: "Caldarale, Charles R" <Ch...@unisys.com>
> To: "Tomcat Users List" <us...@tomcat.apache.org>
> Sent: Tuesday, July 13, 2010 7:42 PM
> Subject: RE: Seem to have it fixed ...
>
>
>> From: michel [mailto:compukat@videotron.ca]
>> Subject: Seem to have it fixed ...
>>
>> <Host name="localhost" appBase="webapps"
>> unpackWARs="true" autoDeploy="true"
>> xmlValidation="false" xmlNamespaceAware="false" reloadable="true">
>>
>> and I added
>> <Context docBase="supergrow" path=""/>
>
> Almost ok.  With Tomcat 5.0 and above, putting <Context> elements in 
> server.xml is strongly discouraged, since it requires restarting Tomcat 
> whenever the webapp configuration is updated, and violates the servlet 
> spec principal of webapp independence.  Your particular <Context> element 
> is so simple it's actually not needed at all.  When one is needed, the 
> proper location is in the file META-INF/context.xml inside the webapp, or 
> in conf/Catalina/[host]/[appName.xml].  When you do so, leave out the 
> docBase and path attributes, since those are illegal (unless the <Context> 
> is in server.xml).
>
> http://tomcat.apache.org/tomcat-6.0-doc/config/context.html
>
> - Chuck
>
> Chuck, I just took a look at these two options for the last few hours and 
> I will admit to being nervous about changing what works. I will continue 
> to read about them, but I may leave it as it is for now.
>
>
> Much thanks for the help!
>
>
> Michel

Got it set up and working with

... tomcat/conf/Catalina/localhost/supergrow.xml

Thanks!




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


Re: Seem to have it fixed ...

Posted by michel <co...@videotron.ca>.
----- Original Message ----- 
From: "Caldarale, Charles R" <Ch...@unisys.com>
To: "Tomcat Users List" <us...@tomcat.apache.org>
Sent: Tuesday, July 13, 2010 7:42 PM
Subject: RE: Seem to have it fixed ...


> From: michel [mailto:compukat@videotron.ca]
> Subject: Seem to have it fixed ...
>
> <Host name="localhost" appBase="webapps"
> unpackWARs="true" autoDeploy="true"
> xmlValidation="false" xmlNamespaceAware="false" reloadable="true">
>
> and I added
> <Context docBase="supergrow" path=""/>

Almost ok.  With Tomcat 5.0 and above, putting <Context> elements in 
server.xml is strongly discouraged, since it requires restarting Tomcat 
whenever the webapp configuration is updated, and violates the servlet spec 
principal of webapp independence.  Your particular <Context> element is so 
simple it's actually not needed at all.  When one is needed, the proper 
location is in the file META-INF/context.xml inside the webapp, or in 
conf/Catalina/[host]/[appName.xml].  When you do so, leave out the docBase 
and path attributes, since those are illegal (unless the <Context> is in 
server.xml).

http://tomcat.apache.org/tomcat-6.0-doc/config/context.html

 - Chuck

Chuck, I just took a look at these two options for the last few hours and I 
will admit to being nervous about changing what works. I will continue to 
read about them, but I may leave it as it is for now.


Much thanks for the help!


Michel 


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


RE: Seem to have it fixed ...

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: michel [mailto:compukat@videotron.ca]
> Subject: Seem to have it fixed ...
> 
> <Host name="localhost" appBase="webapps"
> unpackWARs="true" autoDeploy="true"
> xmlValidation="false" xmlNamespaceAware="false" reloadable="true">
> 
> and I added
> <Context docBase="supergrow" path=""/>

Almost ok.  With Tomcat 5.0 and above, putting <Context> elements in server.xml is strongly discouraged, since it requires restarting Tomcat whenever the webapp configuration is updated, and violates the servlet spec principal of webapp independence.  Your particular <Context> element is so simple it's actually not needed at all.  When one is needed, the proper location is in the file META-INF/context.xml inside the webapp, or in conf/Catalina/[host]/[appName.xml].  When you do so, leave out the docBase and path attributes, since those are illegal (unless the <Context> is in server.xml).

http://tomcat.apache.org/tomcat-6.0-doc/config/context.html

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.


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