From tomcat-user-return-9854-qmlist-jakarta-archive-tomcat-user=jakarta.apache.org@jakarta.apache.org Tue Feb 05 16:17:38 2002 Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@apache.org Received: (qmail 35135 invoked from network); 5 Feb 2002 16:17:38 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 5 Feb 2002 16:17:38 -0000 Received: (qmail 9943 invoked by uid 97); 5 Feb 2002 16:17:06 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-user@jakarta.apache.org Received: (qmail 9884 invoked by uid 97); 5 Feb 2002 16:17:05 -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 9873 invoked from network); 5 Feb 2002 16:17:05 -0000 Message-ID: <3C601272.7020308@mail.smartframeworks.com> Date: Tue, 05 Feb 2002 17:12:18 +0000 From: Liam Holohan Reply-To: liam@mail.smartframeworks.com Organization: Smart Frameworks Ltd. User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.7) Gecko/20011221 X-Accept-Language: en-gb, en-us MIME-Version: 1.0 To: Tomcat Users List Subject: Re: deploying WARs in different locations..(web.xml error) References: <44B71BF277010E48BE207DA8FC0797E107044A@venus.lansa.co.uk> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Cressatti, Dominique wrote: > Oh as far as .war are concerned, tomcat will > automatically unpack them. If you want to keep > your app in a packed format it has to be in .jar > format (which you put normally under webapps/yourapp/WEB-INF/lib) > > 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? >> >>-----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) >> >> >>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 >> >> 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 >> >> WebAppConnection www.test.com.warpConnection-8008 warp 10.20.32.13:8008 >> WebAppDeploy app-example www.test.com.warpConnection-8008 /app-example >> >> >> >> >>in server/xml .. >> >> >> >> >className="org.apache.catalina.connector.warp.WarpConnector" port="8008" >>minProcessors="5" maxProcessors="75" enableLookups="false" >>acceptCount="10" debug="0"/> >> >name="www.test.com" debug="1" >>appBase="/home/wasp/vhosts/www.test.com/htdocs/webapps"> >> >prefix="www.test.com-" suffix="-engine.log" timestamp="false"/> >> >appBase="/home/wasp/vhosts/www.test.com/htdocs/webapps" unpackWARs="true"> >> >directory="/home/wasp/vhosts/www.test.com/logs" prefix="www.test.com-" >>suffix="-tomcat.log" timestamp="false"/> >> >directory="/home/wasp/vhosts/www.test.com/logs" prefix="www.test.com-" >>suffix="-tomcat-access.log" pattern="common"/> >> >docBase="/home/wasp/vhosts/www.test.com/htdocs/webapps/" debug="0"/> >> >docBase="/home/wasp/vhosts/www.test.com/htdocs/webapps/app-example.war" >>debug="1" reloadable="true"> >> >directory="/home/wasp/vhosts/www.test.com/logs" prefix="www.test.com-" >>suffix="-app-example-context.log" timestamp="false"/> >> >> >> >> >> >> >> >> >>any help or pointers to sombody who has the same problem would be great !! >> >>Thx in advance >>Liam >> >> >>-- >>To unsubscribe: >>For additional commands: >>Troubles with the list: >> >> >>-- >>To unsubscribe: >>For additional commands: >>Troubles with the list: >> > > > 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 .. > > > > appBase="/home/wasp/vhosts/www.test.com/htdocs/webapps" unpackWARs="true"> > > directory="/home/wasp/vhosts/www.test.com/logs" prefix="www.test.com-" > suffix="-tomcat.log" timestamp="false"/> > > directory="/home/wasp/vhosts/www.test.com/logs" prefix="www.test.com-" > suffix="-tomcat-access.log" pattern="common"/> > > docBase="/home/wasp/vhosts/www.test.com/htdocs/webapps/" debug="0"/> > > docBase="/home/wasp/vhosts/www.test.com/htdocs/webapps/app-example.war" > debug="1" reloadable="true"> > directory="/home/wasp/vhosts/www.test.com/logs" prefix="www.test.com-" > suffix="-app-example-context.log" timestamp="false"/> > > > > > > Do you know how to actually run the web application without unpacking > the wars at all ? > > > Thx > Liam > > > -- > To unsubscribe: > For additional commands: > Troubles with the list: > > > -- > To unsubscribe: > For additional commands: > Troubles with the list: > Thx ... Liam Will look at the example you sent ... -- To unsubscribe: For additional commands: Troubles with the list: