Hi,
thanks. This was exactly the problem I think I am going to switch to an
OS which supports case-sensitive file names. Then such faulty
error-reporting cannot happen again.
Tino
Conelly, Luis (PS, GNF, Contractor) wrote:
> Tino,
> Got a question: are you checking first the structure of your .war file using WinZip
(or some Win-based compression) tool? I mean, prior to deploy to Tomcat. If so, you might
have been experiencing one trouble described in the Ant Manual [1]
>
> <quote>
> We regulary receive bug reports that this task is creating the WEB-INF directory, and
thus it is our fault your webapp doesn't work. The cause of these complaints lies in WinZip,
which turns an all upper-case directory into an all lower case one in a fit of helpfulness.
Please check that jar xvf yourwebapp.war shows the same behaviour
> </quote>
>
> Give it a try.
>
> jar -xvf kos.war
>
> HTH
> Luis
>
> [1] http://ant.apache.org/manual/CoreTasks/war.html
>
>
> -----Original Message-----
> From: Tino Schöllhorn [mailto:t.schoellhorn@tiscali.de]
> Sent: Friday, January 23, 2004 2:48 PM
> To: user@ant.apache.org
> Subject: Re: CREATING WAR-Files
>
>
> 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
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
|