You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Rizalino <rv...@magma.ca> on 2006/10/26 08:47:19 UTC
Re: Question regarding appBase/docBase and default context.
Please disregard this post, it looks like Charles has answered my questions
from a previous thread... which I found on nabble instead.
Thanks again Charles, and for all of you guys who helped in solving my case.
Rizalino
Rizalino DeVilleres wrote:
>
> Guys,
>
>
>
> We would like both appBase and docBase to be the same for the default
> Context (is this possible?)
>
>
>
> *Basically, all the WAR/JSPs/Servlets will all go/served by tomcat from
> the public_html folder?*
>
>
>
> Here is the current setup that worked and resolved the other issue but
> it
>
> created issues in serving WAR/JSP pages.
>
>
>
> $CATALINA_BASE/conf/Engine/Host/ROOT.xml:
>
>
>
> <Context docBase="/path/to/public_html" debug="0" swallowOutput="true">
>
> </Context>
>
>
>
> $CATALINA_BASE/conf/server.xml:
>
>
>
> <Host name="Host" appBase="/path/to/public_html/servlet"
>
> unpackWARs="true" autoDeploy="true"
>
> xmlValidation="false" xmlNamespaceAware="false">
>
>
>
> No Context path defined in it.
>
>
>
> *If I set the appBase to be the same as the docBase, I errors regarding
> appBase supposed to be within docBase.*
>
>
>
> ---
>
>
>
> If we drop a Hello World JSP script in /path/to/public_html/servlet
>
>
>
> (web server has a URL mapping to pass all request that matches servlet
>
> OR .jsp extensions to Tomcat)
>
>
>
> http://domain.com/helloworld.jsp -works.
>
> http://domain.com/servlet/helloworld.jsp -doesnt work and generates a
>
> 404 error;
>
>
>
> The requested resource (/servlet/helloworld.jsp) is not available.
>
>
>
> This works if Tomcat is set as follows but it breaks the other setup
>
> above.
>
>
>
> server.xml:
>
> <Host name="Host" appBase="/path/to/public_html"
>
> unpackWARs="true" autoDeploy="true"
>
> xmlValidation="false" xmlNamespaceAware="false">
>
>
>
> <Context path="" docBase="" debug="0"/>
>
>
>
> and remove $CATALINA_BASE/conf/Engine/Host/ROOT.xml
>
>
>
>
>
> Thanks,
>
> Rizalino de Villeres
>
>
>
--
View this message in context: http://www.nabble.com/Question-regarding-appBase-docBase-and-default-context.-tf2496750.html#a7005966
Sent from the Tomcat - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org