It definitely looks to complex to me.
Anyway, attached is post of guy who got it working.
Dom
-----Original Message-----
From: Liam Holohan [mailto:[EMAIL PROTECTED]]
Sent: 05 February 2002 16:48
To: Tomcat Users List
Subject: Re: deploying WARs in different locations..(web.xml error)
Cressatti, Dominique wrote:
> What does your context for your app look
> like?
>
> -----Original Message-----
> From: Liam Holohan [mailto:[EMAIL PROTECTED]]
> Sent: 05 February 2002 16:30
> To: Tomcat Users List
> Subject: deploying WARs in different locations..(web.xml error)
>
>
> Hi all ..
> I'm having difficulity in getting my wars to unpack into "non standard
> locations"
>
>
> I have tomcat4.0 + apache 1.3.22 running on Red hat Linux 7.2
> Using mod_webapp and seems to be working fine
>
> Did a search on google and mailing lists but to no avail.
> At wits end :-(
>
>
> Tomcat is installed into /home/wasp/tomcat/4.0/
> Tomcat conf files are in /home/wasp/tomcat/4.0/conf/server.xml etc..
> Apache is in /home/wasp/apache/1.3.22/ etc..
> The document root of my virtual hosts are in
> /home/wasp/vhosts/virtual_host_name
>
> I want to deploy a web app (war file "app-example.war", build with
> jbuilder and examined with jar and looks ok) into a virtual host called
> www.test.com
> i.e /home/wasp/vhosts/www.test.com/htdocs/webapps
>
>
> It seems to recognise the context "app-example" I want to set up but
> does not read the WEB-INF/web.xml file inside the war ??
>
> I keep getting an error "WEB-INF/web.xml" not found
> i.e in my
> /home/wasp/vhosts/www.test.com/logs/www.test.com-2002-02-05-app-example-context.log
> (custom log for virtual host www.test.com set up in server.xml)
>
> StandardContext[/app-example]: Configuring default Manager
> StandardContext[/app-example]: Processing standard container startup
> WebappLoader[/app-example]: Deploying class repositories to work
> directory /home/wasp/tomcat/4.0/work/www.test.com/app-example
> WebappLoader[/app-example]: Reloading checks are enabled for this Context
> StandardManager[/app-example]: Seeding random number generator class
> java.security.SecureRandom
> StandardManager[/app-example]: Seeding of random number generator has
> been completed
> ContextConfig[/app-example]: ContextConfig: Processing START
> StandardContext[/app-example]: Setting deployment descriptor public ID
> to '-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN'
> ContextConfig[/app-example]: Missing application web.xml, using defaults
> only.........
>
> StandardWrapper[/app-example:invoker]: Loading container servlet invoker
> invoker: init
> StandardWrapper[/app-example:jsp]: Using Jasper classloader for servlet jsp
> jsp: init
> Internal Error: File /WEB-INF/web.xml not found
>
>
>
> my config details are....
>
>
> in httpd.conf
> <VirtualHost 10.20.32.13>
> ServerAdmin [EMAIL PROTECTED]
> DocumentRoot /home/wasp/vhosts/www.test.com/htdocs
> ServerName www.test.com
> TransferLog /home/wasp/vhosts/www.test.com/logs/www.test.com-xferlog
> ErrorLog /home/wasp/vhosts/www.test.com/logs/www.test.com-errorlog
>
> WebAppConnection www.test.com.warpConnection-8008 warp 10.20.32.13:8008
> WebAppDeploy app-example www.test.com.warpConnection-8008 /app-example
> </VirtualHost>
>
>
>
> in server/xml ..
>
> <!-- Define an Apache-Connector Service -->
> <Service name="Tomcat-Apache Virtual Host Warp connector Service">
> <Connector
> className="org.apache.catalina.connector.warp.WarpConnector" port="8008"
> minProcessors="5" maxProcessors="75" enableLookups="false"
> acceptCount="10" debug="0"/>
> <Engine className="org.apache.catalina.connector.warp.WarpEngine"
> name="www.test.com" debug="1"
> appBase="/home/wasp/vhosts/www.test.com/htdocs/webapps">
> <Logger className="org.apache.catalina.logger.FileLogger"
> prefix="www.test.com-" suffix="-engine.log" timestamp="false"/>
> <Host name="www.test.com" debug="0"
> appBase="/home/wasp/vhosts/www.test.com/htdocs/webapps" unpackWARs="true">
> <Logger className="org.apache.catalina.logger.FileLogger"
> directory="/home/wasp/vhosts/www.test.com/logs" prefix="www.test.com-"
> suffix="-tomcat.log" timestamp="false"/>
> <Valve className="org.apache.catalina.valves.AccessLogValve"
> directory="/home/wasp/vhosts/www.test.com/logs" prefix="www.test.com-"
> suffix="-tomcat-access.log" pattern="common"/>
> <Context path=""
> docBase="/home/wasp/vhosts/www.test.com/htdocs/webapps/" debug="0"/>
> <Context path="/app-example"
> docBase="/home/wasp/vhosts/www.test.com/htdocs/webapps/app-example.war"
> debug="1" reloadable="true">
> <Logger className="org.apache.catalina.logger.FileLogger"
> directory="/home/wasp/vhosts/www.test.com/logs" prefix="www.test.com-"
> suffix="-app-example-context.log" timestamp="false"/>
> </Context>
> </Host>
> <Realm className="org.apache.catalina.realm.MemoryRealm" />
> </Engine>
> </Service>
>
>
>
> any help or pointers to sombody who has the same problem would be great !!
>
> Thx in advance
> Liam
>
>
> --
> To unsubscribe: <mailto:[EMAIL PROTECTED]>
> For additional commands: <mailto:[EMAIL PROTECTED]>
> Troubles with the list: <mailto:[EMAIL PROTECTED]>
>
>
> --
> To unsubscribe: <mailto:[EMAIL PROTECTED]>
> For additional commands: <mailto:[EMAIL PROTECTED]>
> Troubles with the list: <mailto:[EMAIL PROTECTED]>
>
The context is set up within an host element of my server.xml file
context name is "app-example" which corresponds to an app-example.war
file in /home/wasp/vhosts/www.test.com/htdocs/webapps
i.e ..
<Host name="www.test.com" debug="0"
appBase="/home/wasp/vhosts/www.test.com/htdocs/webapps" unpackWARs="true">
<Logger className="org.apache.catalina.logger.FileLogger"
directory="/home/wasp/vhosts/www.test.com/logs" prefix="www.test.com-"
suffix="-tomcat.log" timestamp="false"/>
<Valve className="org.apache.catalina.valves.AccessLogValve"
directory="/home/wasp/vhosts/www.test.com/logs" prefix="www.test.com-"
suffix="-tomcat-access.log" pattern="common"/>
<Context path=""
docBase="/home/wasp/vhosts/www.test.com/htdocs/webapps/" debug="0"/>
<Context path="/app-example"
docBase="/home/wasp/vhosts/www.test.com/htdocs/webapps/app-example.war"
debug="1" reloadable="true">
<Logger className="org.apache.catalina.logger.FileLogger"
directory="/home/wasp/vhosts/www.test.com/logs" prefix="www.test.com-"
suffix="-app-example-context.log" timestamp="false"/>
</Context>
</Host>
Do you know how to actually run the web application without unpacking
the wars at all ?
Thx
Liam
--
To unsubscribe: <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>
--- Begin Message ---
I finally got virtual hosting working with Apache and TC4.0, woo hoo!
The relevant sections from httpd.conf and server.xml are below. The
only downside with this configuration is that I haven't been able to
mount webapps in the root context specified by DocumentRoot. Instead I
had to create a subdirectory 'site' and put the servlets and JSPs in
that. Is there any way to mount the root context?
-August
httpd.conf -------------------------------------------------
NameVirtualHost 231.232.123.213
# create the webapp connection
WebAppConnection conn warp localhost:8008
WebAppInfo /webapp-info
<VirtualHost 231.232.123.213>
ServerName www.host1.com
DocumentRoot "/home/host1/www"
#depl0y webapps for this site
WebAppDeploy site conn /
</VirtualHost>
<VirtualHost 231.232.123.213>
ServerName www.host2.com
DocumentRoot "/home/host2/www"
#depl0y webapps for this site
WebAppDeploy site conn /
</VirtualHost>
server.xml --------------------------------------------
<Server port="8005" shutdown="SHUTDOWN" debug="0">
<!-- Define an Apache-Connector Service -->
<Service name="Tomcat-Apache">
<Connector
className="org.apache.catalina.connector.warp.WarpConnector"
port="8008" minProcessors="5" maxProcessors="75"
enableLookups="false"
acceptCount="10" debug="0"/>
<Engine className="org.apache.catalina.connector.warp.WarpEngine"
name="Apache" defaultHost="localhost" debug="0" > <!--
appBase="webapps" -->
<!-- Global logger unless overridden at lower levels -->
<Logger className="org.apache.catalina.logger.FileLogger"
prefix="catalina_log." suffix=".txt"
timestamp="true"/>
<!-- Because this Realm is here, an instance will be shared
globally -->
<Realm className="org.apache.catalina.realm.MemoryRealm" />
<!-- host1.com virtual host -->
<Host name="www.host1.com" debug="0" appBase="/home/host1/www"
unpackWARs="true">
<!-- Access log -->
<Valve className="org.apache.catalina.valves.AccessLogValve"
directory="logs" prefix="host1_access_log."
suffix=".txt" pattern="common"/>
<!-- Context logger -->
<Logger className="org.apache.catalina.logger.FileLogger"
directory="logs" prefix="host1_log." suffix=".txt"
timestamp="true"/>
<!-- Define webapps -->
<!-- Tomcat Root Context -->
<Context path="" docBase="site" debug="0"/>
</Host>
<!-- host2.com virtual host -->
<Host name="www.host2.com" debug="0" appBase="/home/host2/www"
unpackWARs="true">
<!-- Access log -->
<Valve className="org.apache.catalina.valves.AccessLogValve"
directory="logs" prefix="host2_access_log."
suffix=".txt" pattern="common"/>
<!-- Context logger -->
<Logger className="org.apache.catalina.logger.FileLogger"
directory="logs" prefix="host2_log." suffix=".txt"
timestamp="true"/>
<!-- Define webapps -->
<!-- Tomcat Root Context -->
<Context path="" docBase="site" debug="0"/>
</Host>
</Engine>
</Service>
</Server>
__________________________________________________
Do You Yahoo!?
Send FREE video emails in Yahoo! Mail!
http://promo.yahoo.com/videomail/
--
To unsubscribe: <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>
--- End Message ---
--
To unsubscribe: <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>