ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tino Schöllhorn <>
Subject Re: CREATING WAR-Files
Date Fri, 23 Jan 2004 20:47:40 GMT
Thanks for your proposal, but it still doesn't work. But if it is 
working for you I think I have made a mistake. Perhaps the 
directory-layout of my web-application isn't correct. It is like this:


I already tried to delete the server.ini, log* and policy.ini files so 
that there is only the web.xml file left. But still it doesn't work.

Do you have any more ideas?

(I am using windows xp)


Chappell, Simon P wrote:
> Hmmmm, interesting one. Have you considered an alternative usage of the <war> task?
Here's what we use, and it works for us.
>    <target name="build" depends="javadoc" description="Create the WAR and EAR build
>         <war destfile="${}.war" webxml="webApplication/WEB-INF/web.xml">
>              <fileset dir="${dist}" excludes="WEB-INF/web.xml" />
>         </war>
>         <ear destfile="${}" appxml="application.xml">
>              <fileset dir="." includes="sorterx.war" />
>         </ear>
>    </target>
> As you can see, we also make an EAR file, because our WAS admin refusesto accept WAR
files, but they're almost as easy as a WAR file to make.
> Hope this helps.
> Simon
> -----------------------------------------------------------------
> Simon P. Chappell           
> Java Programming Specialist            
> Lands' End, Inc.                                   (608) 935-4526
> "Wisdom is not the prerogative of the academics." - Peter Chappell
>>-----Original Message-----
>>From: news []On Behalf Of Tino Schöllhorn
>>Sent: Friday, January 23, 2004 5:07 AM
>>Subject: CREATING WAR-Files
>>I have a weird problem with ant (1.5.4 and 1.6.0). I am trying 
>>to create 
>>a quite simple JAR-file with the follwing target:
>><target name="create-war">
>>	<property name="war-base value="${local-tomcat}/webapps/kos"/>
>>	<war destfile="dist/kos.war" 
>>			<classes dir="${war-base}/WEB-INF/classes"/>
>>			<classes dir="${war-base}/WEB-INF/lib"/>	
>>		</war>
>>	</target>
>>The target executes fine - but the entry in the WAR-File for the 
>>web.xml-File is not in the path WEB-INF but in the path web-inf. So I 
>>can't deploy this JAR-File in Tomcat (Tomcat says that it 
>>can't find the 
>>Any suggestions?
>>To unsubscribe, e-mail:
>>For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message