Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@apache.org Received: (qmail 28822 invoked from network); 5 Feb 2002 16:08:04 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 5 Feb 2002 16:08:04 -0000 Received: (qmail 23860 invoked by uid 97); 5 Feb 2002 16:07:27 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-user@jakarta.apache.org Received: (qmail 23838 invoked by uid 97); 5 Feb 2002 16:07:27 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 23827 invoked from network); 5 Feb 2002 16:07:26 -0000 content-class: urn:content-classes:message Subject: RE: deploying WARs in different locations..(web.xml error) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----_=_NextPart_001_01C1AE5F.370AA387" Date: Tue, 5 Feb 2002 16:07:31 -0000 X-MimeOLE: Produced By Microsoft Exchange V6.0.5762.3 Message-ID: <44B71BF277010E48BE207DA8FC0797E1070449@venus.lansa.co.uk> X-MS-Has-Attach: yes X-MS-TNEF-Correlator: Thread-Topic: deploying WARs in different locations..(web.xml error) Thread-Index: AcGuXTHqabI75tLYRg2MiMjXbzzLfgAAcq5g From: "Cressatti, Dominique" To: "Tomcat Users List" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N ------_=_NextPart_001_01C1AE5F.370AA387 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable It definitely looks to complex to me. Anyway, attached is post of guy who got it working. Dom -----Original Message----- From: Liam Holohan [mailto:liam@mail.smartframeworks.com] 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? >=20 > -----Original Message----- > From: Liam Holohan [mailto:liam@mail.smartframeworks.com] > Sent: 05 February 2002 16:30 > To: Tomcat Users List > Subject: deploying WARs in different locations..(web.xml error) >=20 >=20 > Hi all .. > I'm having difficulity in getting my wars to unpack into "non standard = > locations" >=20 >=20 > I have tomcat4.0 + apache 1.3.22 running on Red hat Linux 7.2 > Using mod_webapp and seems to be working fine >=20 > Did a search on google and mailing lists but to no avail. > At wits end :-( >=20 >=20 > 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=20 > /home/wasp/vhosts/virtual_host_name >=20 > I want to deploy a web app (war file "app-example.war", build with=20 > jbuilder and examined with jar and looks ok) into a virtual host = called=20 > www.test.com > i.e /home/wasp/vhosts/www.test.com/htdocs/webapps >=20 >=20 > It seems to recognise the context "app-example" I want to set up but=20 > does not read the WEB-INF/web.xml file inside the war ?? >=20 > I keep getting an error "WEB-INF/web.xml" not found > i.e in my=20 > = /home/wasp/vhosts/www.test.com/logs/www.test.com-2002-02-05-app-example-c= ontext.log > (custom log for virtual host www.test.com set up in server.xml) >=20 > StandardContext[/app-example]: Configuring default Manager > StandardContext[/app-example]: Processing standard container startup > WebappLoader[/app-example]: Deploying class repositories to work=20 > 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=20 > java.security.SecureRandom > StandardManager[/app-example]: Seeding of random number generator has=20 > 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=20 > only......... >=20 > 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 >=20 >=20 >=20 > my config details are.... >=20 >=20 > in httpd.conf > > ServerAdmin tester@test.com > 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 >=20 > WebAppConnection www.test.com.warpConnection-8008 warp = 10.20.32.13:8008 > WebAppDeploy app-example www.test.com.warpConnection-8008 = /app-example > >=20 >=20 >=20 > in server/xml .. >=20 > > > className=3D"org.apache.catalina.connector.warp.WarpConnector" = port=3D"8008"=20 > minProcessors=3D"5" maxProcessors=3D"75" enableLookups=3D"false"=20 > acceptCount=3D"10" debug=3D"0"/> > name=3D"www.test.com" debug=3D"1"=20 > appBase=3D"/home/wasp/vhosts/www.test.com/htdocs/webapps"> > prefix=3D"www.test.com-" suffix=3D"-engine.log" timestamp=3D"false"/> > appBase=3D"/home/wasp/vhosts/www.test.com/htdocs/webapps" = unpackWARs=3D"true"> > directory=3D"/home/wasp/vhosts/www.test.com/logs" = prefix=3D"www.test.com-"=20 > suffix=3D"-tomcat.log" timestamp=3D"false"/> > directory=3D"/home/wasp/vhosts/www.test.com/logs" = prefix=3D"www.test.com-"=20 > suffix=3D"-tomcat-access.log" pattern=3D"common"/> > docBase=3D"/home/wasp/vhosts/www.test.com/htdocs/webapps/" = debug=3D"0"/> > = docBase=3D"/home/wasp/vhosts/www.test.com/htdocs/webapps/app-example.war"= =20 > debug=3D"1" reloadable=3D"true"> > directory=3D"/home/wasp/vhosts/www.test.com/logs" = prefix=3D"www.test.com-"=20 > suffix=3D"-app-example-context.log" timestamp=3D"false"/> > > > > > >=20 >=20 >=20 > any help or pointers to sombody who has the same problem would be = great !! >=20 > Thx in advance > Liam >=20 >=20 > -- > To unsubscribe: > For additional commands: > Troubles with the list: >=20 >=20 > -- > To unsubscribe: > For additional commands: > Troubles with the list: >=20 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=20 file in /home/wasp/vhosts/www.test.com/htdocs/webapps i.e .. Do you know how to actually run the web application without unpacking=20 the wars at all ? Thx Liam -- To unsubscribe: For additional commands: Troubles with the list: ------_=_NextPart_001_01C1AE5F.370AA387 Content-Type: message/rfc822 Content-Transfer-Encoding: 7bit Received: from nagoya.betaversion.org ([192.18.49.131]) by venus.lansa.co.uk with Microsoft SMTPSVC(5.0.2195.2966); Tue, 15 Jan 2002 03:04:45 +0000 Received: (qmail 17582 invoked by uid 97); 15 Jan 2002 03:04:34 -0000 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: Solved: TC4 + Apache virtual host configuration Date: Tue, 15 Jan 2002 03:04:26 -0000 X-MimeOLE: Produced By Microsoft Exchange V6.0.5762.3 Message-ID: <20020115030426.60932.qmail@web11503.mail.yahoo.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Solved: TC4 + Apache virtual host configuration Thread-Index: AcGdcWNYrVTACnGNTq6a1Ixpim2VZg== List-Help: List-Subscribe: List-Unsubscribe: From: "August Detlefsen" To: "Tomcat Users List" Reply-To: "Tomcat Users List" 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?=20 -August httpd.conf ------------------------------------------------- NameVirtualHost 231.232.123.213 # create the webapp connection WebAppConnection conn warp localhost:8008 WebAppInfo /webapp-info ServerName www.host1.com DocumentRoot "/home/host1/www" #depl0y webapps for this site WebAppDeploy site conn / ServerName www.host2.com DocumentRoot "/home/host2/www" #depl0y webapps for this site WebAppDeploy site conn / server.xml -------------------------------------------- __________________________________________________ Do You Yahoo!? Send FREE video emails in Yahoo! Mail! http://promo.yahoo.com/videomail/ -- To unsubscribe: For additional commands: Troubles with the list: ------_=_NextPart_001_01C1AE5F.370AA387 Content-Type: text/plain; charset=us-ascii -- To unsubscribe: For additional commands: Troubles with the list: ------_=_NextPart_001_01C1AE5F.370AA387--