ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tim Davidson" <tim.david...@greenhatconsulting.com>
Subject RE: WAR file not deflating when tomcat starts up when built with Ant
Date Wed, 30 Jul 2003 10:02:54 GMT
Apologies if this is off topic,

 how do you get a war file to unpack as a different name?
I have a war file like "../webapps/myWarFile200304847-1_2_3.war", which I put under webapps,
but when tomcat unpacks it I would like "../webapps/friendlyName/", not "../webapps/myWarFile200304847-1_2_3/"
how do I do this?

Thanks in advance

-----Original Message-----
From: McDonnell Colm [mailto:Colm.McDonnell@uk.mizuho-sc.com]
Sent: Wednesday, July 30, 2003 10:25 AM
To: 'Ant Users List'
Subject: RE: WAR file not deflating when tomcat starts up when built
with Ant


> So the issue I'm having is that when I start Tomcat up the ROOT.war file
> that's present in the $CATALINA_BASE/webapps directory is not deflating.
> Is there something wrong with my WAR file?

Apologies if this is off topic but if you want Tomcat to explode/deflate a
WAR file when it first encounters it use the unpackWARs attribute of the
Host tag in your server.xml e.g.

      <Host name="localhost" debug="0" appBase="webapps" unpackWARs="true">
	...
	...
      </Host>

Of course this is will cause all WARs on this host to be unpacked.

> -----Original Message-----
> From:	Billy Bacon [SMTP:billy.bacon@thirty3.net]
> Sent:	Monday, July 28, 2003 9:49 PM
> To:	Ant Users List
> Subject:	Re: WAR file not deflating when tomcat starts up when built
> with  Ant
> 
> Could you attach that server.xml file David? I didn't see it come through
> the wire.
> 
> There was already a ROOT directory in my webapps directory but I deleted
> it
> trying different tests. I don't think my server.xml file is set up
> properly.
> 
> I looked at the Ant core/optional tasks and I can't find anything to
> deflate
> the WAR file myself. Could I just use the <exec> tag for 'jar -xvf
> ROOT.war'? Or is this method not recommended?
> 
> On 7/28/03 1:47 PM, "David McTavish" <dmctavish@sandvine.com> wrote:
> 
> > Do any other wars deploy successfully? I'm wondering if perhaps its a
> > misconfigured Tomcat? Or, it could be the .war file, but I would have
> > expected that to be deployed.
> > 
> > Find attached a copy of my server.xml file located under $CATALINA/conf
> > directory.
> > 
> > Also, are there any logs that display when you start Tomcat up?
> > 
> > d.
> > 
> > 
> > -----Original Message-----
> > From: Billy Bacon [mailto:billy.bacon@thirty3.net]
> > Sent: Monday, July 28, 2003 3:41 PM
> > To: Ant Users List
> > Subject: Re: WAR file not deflating when tomcat starts up when built
> > with Ant
> > 
> > 
> > After generating the WAR file I use the <chmod> task to change the file
> and
> > directory permissions.
> > 
> > The following is the result after the task is called...
> > 
> > drwxrwxrwx   3 vnb      vnb          512 Jul 28 13:21 webapps
> > -rwxrwxrwx   1 vnb      vnb      21911865 Jul 28 13:29 ROOT.war
> > 
> > When I fire up tomcat, I still don't get a ROOT/ directory created.
> > 
> > Is there anything else I'm missing?
> > 
> > - Billy -
> > 
> > 
> > On 7/28/03 12:05 PM, "David McTavish" <dmctavish@sandvine.com> wrote:
> > 
> >> I had this problem on BSD when the tomcat process did not have adequate
> >> permissions to the webapps directory, OR, the .war file in particular.
> >> try chmod 777 on /webapps and your war file and see if that works.
> >> 
> >> d.
> >> 
> >> 
> >> -----Original Message-----
> >> From: Billy Bacon [mailto:billy.bacon@thirty3.net]
> >> Sent: Monday, July 28, 2003 2:04 PM
> >> To: Ant Users List
> >> Subject: WAR file not deflating when tomcat starts up when built with
> >> Ant
> >> 
> >> 
> >> I can't seem to figure this out and I'm hoping someone out there can
> see
> > my
> >> error...
> >> 
> >> I have a nightly build shell script that calls a bunch of Ant targets
> and
> >> finally generates a WAR file and puts it in the servers
> >> $CATALINA_BASE/webapps directory.
> >> 
> >> The contents of the WAR file seem to be valid and constructed
> correctly.
> > I'm
> >> only going to paste some of the content listings of the WAR file since
> the
> >> log file is about 512Kb... But I get the following from doing a 'jar
> -xvf
> >> ROOT.war'
> >> 
> >> ============================
> >> 
> >>    0 Mon Jul 28 10:33:04 MDT 2003 META-INF/
> >>   55 Mon Jul 28 10:33:04 MDT 2003 META-INF/MANIFEST.MF
> >>    0 Mon Jul 28 10:30:30 MDT 2003 WEB-INF/
> >>    0 Mon Jul 28 10:29:42 MDT 2003 WEB-INF/lib/
> >>    0 Mon Jul 28 10:31:06 MDT 2003 WEB-INF/classes/
> >>    0 Mon Jul 28 10:30:44 MDT 2003 WEB-INF/classes/com/
> >>    0 Mon Jul 28 10:29:54 MDT 2003 WEB-INF/classes/com/fatwire/
> >> 9466 Mon Jul 28 10:30:28 MDT 2003 jsp/kmoBrowseAttachmentsBody.jsp
> >>  412 Mon Jul 28 10:30:28 MDT 2003 jsp/taglibs.jsp
> >> 8376 Mon Jul 28 10:30:28 MDT 2003 jsp/adminEditBody.jsp
> >>  765 Mon Jul 28 10:30:28 MDT 2003 jsp/kmoCommentsCompletedBody.jsp
> >> 18754 Mon Jul 28 10:30:28 MDT 2003 jsp/mdTreeHeader.jsp
> >> 8508 Mon Jul 28 10:30:28 MDT 2003 jsp/mdTreeFrame.jsp
> >> 4519 Mon Jul 28 10:30:28 MDT 2003 jsp/loginBody.jsp
> >>  447 Mon Jul 28 10:30:28 MDT 2003 jsp/error.jsp
> >>  143 Mon Jul 28 10:30:28 MDT 2003 jsp/previewHeader.jsp
> >> 1526 Mon Jul 28 10:30:28 MDT 2003 jsp/kmoNonsolarisBody.jsp
> >> 19270 Mon Jul 28 10:30:28 MDT 2003 jsp/browseQueueBody.jsp
> >> 2519 Mon Jul 28 10:30:28 MDT 2003 jsp/adminDownloadBody.jsp
> >> 2901 Mon Jul 28 10:30:28 MDT 2003 jsp/kmoCreateChoiceBody.jsp
> >>  932 Mon Jul 28 10:30:28 MDT 2003 jsp/import/listMissingUUID.jsp
> >> 3168 Mon Jul 28 10:30:28 MDT 2003 jsp/import/deleteAsset.jsp
> >>  638 Mon Jul 28 10:30:28 MDT 2003 jsp/import/setUserForHistory.jsp
> >>  954 Mon Jul 28 10:30:28 MDT 2003 jsp/import/dropTable.jsp
> >> 3206 Mon Jul 28 10:30:28 MDT 2003 jsp/import/ImportKMSUsers.jsp
> >> 1294 Mon Jul 28 10:30:30 MDT 2003 jsp/import/ObsoleteTA.jsp
> >> 1616 Mon Jul 28 10:30:30 MDT 2003 jsp/import/DocXForm.jsp
> >> 1437 Mon Jul 28 10:30:30 MDT 2003 jsp/import/deleteTestGroups.jsp
> >> 2885 Mon Jul 28 10:30:30 MDT 2003 jsp/import/transformSimple.jsp
> >> 2207 Mon Jul 28 10:30:30 MDT 2003 jsp/import/ImportVGroup.jsp
> >>  133 Mon Jul 28 10:30:28 MDT 2003 jsp/help.jsp
> >> 1921 Mon Jul 28 10:30:28 MDT 2003 jsp/utilExportBody.jsp
> >>  250 Mon Jul 28 10:30:28 MDT 2003 jsp/index.jsp
> >> 1284 Mon Jul 28 10:30:28 MDT 2003 jsp/adminCacheBody.jsp
> >> 1359 Mon Jul 28 10:30:28 MDT 2003 jsp/browseQueueActions.jsp
> >> 2986 Mon Jul 28 10:30:28 MDT 2003 jsp/masthead.jsp
> >> 2462 Mon Jul 28 10:30:28 MDT 2003 jsp/kmoDeleteAttachmentsBody.jsp
> >> 5973 Mon Jul 28 10:30:28 MDT 2003 jsp/mastheadTabs.jsp
> >> 1047 Mon Jul 28 10:30:28 MDT 2003 jsp/previewBody.jsp
> >> 3511 Mon Jul 28 10:30:28 MDT 2003 jsp/kmoAddAttachmentsBody.jsp
> >> 1075 Mon Jul 28 10:30:28 MDT 2003 jsp/searchSimpleBody.jsp
> >> 1017 Mon Jul 28 10:30:28 MDT 2003 jsp/browseKEControls.jsp
> >> 1771 Mon Jul 28 10:30:28 MDT 2003 jsp/kmoCommentsBody.jsp
> >> 1899 Mon Jul 28 10:30:28 MDT 2003 jsp/commentsBody.jsp
> >> 1294 Mon Jul 28 10:30:28 MDT 2003 jsp/cleanMasthead.jsp
> >> 1514 Mon Jul 28 10:30:30 MDT 2003 jsp/nagBody.jsp
> >>  956 Mon Jul 28 10:30:30 MDT 2003 jsp/addWordToDict.jsp
> >> 2976 Mon Jul 28 10:30:30 MDT 2003 jsp/kmoViewMetadata.jsp
> >> 1748 Mon Jul 28 10:30:30 MDT 2003 jsp/kmoAttachments.jsp
> >> 1968 Mon Jul 28 10:30:30 MDT 2003 jsp/utilImportBody.jsp
> >> 1200 Mon Jul 28 10:30:30 MDT 2003 jsp/kmoSolarisSwanInsBody.jsp
> >>  288 Mon Jul 28 10:30:30 MDT 2003 jsp/searchResultsBody.jsp
> >> 1334 Mon Jul 28 10:30:30 MDT 2003 jsp/newUserBody.jsp
> >> 3356 Mon Jul 28 10:30:30 MDT 2003 jsp/processBody.jsp
> >> 1781 Mon Jul 28 10:30:30 MDT 2003 jsp/historyBody.jsp
> >> 13124 Mon Jul 28 10:30:30 MDT 2003 jsp/kmoWorkflowBody.jsp
> >> 7730 Mon Jul 28 10:30:30 MDT 2003 jsp/kmoSelectRecipient.jsp
> >> 5402 Mon Jul 28 10:30:30 MDT 2003 jsp/kmoModifyAttachmentsBody.jsp
> >> 4743 Mon Jul 28 10:30:30 MDT 2003 jsp/kmoMetadata.jsp
> >> 6660 Mon Jul 28 10:30:30 MDT 2003 jsp/adminGroupPermBody.jsp
> >> 10962 Mon Jul 28 10:30:30 MDT 2003 jsp/advanceReassignBody.jsp
> >> 5431 Mon Jul 28 10:30:30 MDT 2003 jsp/summaryBody.jsp
> >> 10071 Mon Jul 28 10:30:30 MDT 2003 jsp/kmoViewBody.jsp
> >> 8356 Mon Jul 28 10:30:30 MDT 2003 jsp/kmoCreateComplexBody.jsp
> >>  169 Mon Jul 28 10:30:30 MDT 2003 jsp/err_notLoggedIn.jsp
> >>  969 Mon Jul 28 10:30:30 MDT 2003 jsp/errorBody.jsp
> >> 8282 Mon Jul 28 10:30:30 MDT 2003 jsp/kmoCreateSimpleBody.jsp
> >>  110 Mon Jul 28 10:30:30 MDT 2003 jsp/spellCheckFrame.jsp
> >>  355 Mon Jul 28 10:30:30 MDT 2003 jsp/closeFooter.jsp
> >> 7856 Mon Jul 28 10:30:30 MDT 2003 jsp/spellCheck.jsp
> >> 1712 Mon Jul 28 10:30:30 MDT 2003 jsp/kmoViewAttachments.jsp
> >> 9710 Mon Jul 28 10:30:30 MDT 2003 jsp/adminUserPermBody.jsp
> >> 3500 Mon Jul 28 10:30:28 MDT 2003 html/wcl_instructions.html
> >>   15 Mon Jul 28 10:30:30 MDT 2003 html/emptyWindow.html
> >>  949 Mon Jul 28 10:30:28 MDT 2003 purge.jsp
> >> 58672 Mon Jul 28 10:30:28 MDT 2003 dtds/supportdoc_v1.dtd
> >>  178 Mon Jul 28 10:30:28 MDT 2003 layouts/emptyBody.jsp
> >>  105 Mon Jul 28 10:30:28 MDT 2003 layouts/masthead.jsp
> >>   98 Mon Jul 28 10:30:28 MDT 2003 layouts/tabs.jsp
> >> 2923 Mon Jul 28 10:30:28 MDT 2003 layouts/commentsLayout.jsp
> >>  103 Mon Jul 28 10:30:30 MDT 2003 layouts/footer.jsp
> >> 2769 Mon Jul 28 10:30:30 MDT 2003 layouts/stdLayout.jsp
> >>  269 Mon Jul 28 10:30:28 MDT 2003 index.jsp
> >> 6618 Mon Jul 28 10:30:28 MDT 2003
> templates/template.kmo.troubleshoot.sxw
> >> 6475 Mon Jul 28 10:30:28 MDT 2003 templates/template.kmo.infodoc.sxw
> >> 6764 Mon Jul 28 10:30:30 MDT 2003 templates/template.kmo.srdb.sxw
> >> 7104 Mon Jul 28 10:30:28 MDT 2003 webdav/ses/ABCDEFGH/doc-1.sxw
> >>   61 Mon Jul 28 10:30:28 MDT 2003 webdav/ses/ABCDEFGH/doc-1.gke
> >> 5228 Mon Jul 28 10:30:28 MDT 2003 css/voyager.css
> >> 6578 Mon Jul 28 10:30:28 MDT 2003 css/sunsolvestyles.css
> >> 1770 Mon Jul 28 10:30:28 MDT 2003 mem.jsp
> >>  269 Mon Jul 28 10:30:28 MDT 2003 control/index.jsp
> >> 4673 Mon Jul 28 10:30:28 MDT 2003 control/mdTreeData.jsp
> >>  240 Mon Jul 28 10:30:30 MDT 2003 control/mdTreeBody.jsp
> >>  758 Mon Jul 28 10:30:30 MDT 2003 control/mdTreeFooter.jsp
> >> 12034 Mon Jul 28 10:30:28 MDT 2003 js/voyager.js
> >>  915 Mon Jul 28 10:30:28 MDT 2003 content.jsp
> >>  528 Mon Jul 28 10:30:28 MDT 2003 README.txt
> >>  972 Mon Jul 28 10:30:30 MDT 2003 props.jsp
> >>  152 Mon Jul 28 10:31:12 MDT 2003 UpdateEngine.properties
> >> 
> >> ===============================
> >> 
> >> There is also a web.xml file in the WEB-INF/ directory that's not
> listed
> >> above. 
> >> 
> >> So the issue I'm having is that when I start Tomcat up the ROOT.war
> file
> >> that's present in the $CATALINA_BASE/webapps directory is not
> deflating.
> > Is
> >> there something wrong with my WAR file?
> >> 
> >> Any help would be appreciated. Thanks for your time.
> >> 
> >> - Billy -
> >> 
> >> 
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> >> For additional commands, e-mail: user-help@ant.apache.org
> >> 
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> >> For additional commands, e-mail: user-help@ant.apache.org
> >> 
> >> 
> > 
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> > For additional commands, e-mail: user-help@ant.apache.org
> > 
> > 
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> > For additional commands, e-mail: user-help@ant.apache.org
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org


This message and any files transmitted with it are confidential and intended solely for the
use of 
the individual or entity to whom they are addressed.  If you have received this message in
error 
please delete it and any files transmitted with it, after notifying postmaster@uk.mizuho-sc.com
Any opinions expressed in this message may be those of the author and not necessarily those
of 
the company.  The company accepts no responsibility for the accuracy or completeness of any

information contained herein.  This message is not intended to create legal relations between
the 
company and the recipient.
Recipients should please note that messages sent via the Internet may be intercepted and that

caution should therefore be exercised before dispatching to the company any confidential or

sensitive information.

Mizuho International plc
Bracken House, One Friday Street, London EC4M 9JA. TEL. 020 7236 1090
Registered in England No. 1203696. Registered office as above. Authorised and regulated by
the Financial 
Services Authority. A member of the London Stock Exchange. A member of Mizuho Financial Group
headed 
by Mizuho Financial Group, Inc. 


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message