ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tino Schöllhorn <t.schoellh...@tiscali.de>
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:

->mywebapp
	->temp
	->commons
	->WEB-INF
		->server.ini
		->log-properties.xml
		->policy.ini
		->web.xml
		->classes
		->lib


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)

Tino


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
products.">
>         <war destfile="${ant.project.name}.war" webxml="webApplication/WEB-INF/web.xml">
>              <fileset dir="${dist}" excludes="WEB-INF/web.xml" />
>         </war>
>         <ear destfile="${ear.name.dev}" 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                     simon.chappell@landsend.com
> Java Programming Specialist                      www.landsend.com
> Lands' End, Inc.                                   (608) 935-4526
> 
> "Wisdom is not the prerogative of the academics." - Peter Chappell
> 
> 
>>-----Original Message-----
>>From: news [mailto:news@sea.gmane.org]On Behalf Of Tino Schöllhorn
>>Sent: Friday, January 23, 2004 5:07 AM
>>To: user@ant.apache.org
>>Subject: CREATING WAR-Files
>>
>>
>>Hi,
>>
>>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" 
>>webxml="${war-base}/WEB-INF/web.xml">
>>			<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 
>>web.xml-File).
>>
>>Any suggestions?
>>
>>Tino
>>
>>
>>
>>---------------------------------------------------------------------
>>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