  | |  | CREATING WAR-Files | CREATING WAR-Files 2004-01-23 - By Chappell, Simon P
Back We use IBM 's WSAD, so our directory structure is:
./webApplication
/WEB-INF
struts-config.xml
web.xml
etc etc etc
/lib
/classes
We also have our compiled classes in a directory called dist
./dist
Hope this helps.
Simon
>-- --Original Message-- --
>From: news [mailto:news@(protected)]On Behalf Of Tino Sch�llhorn
>Sent: Friday, January 23, 2004 2:48 PM
>To: user@(protected)
>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@(protected)
> > 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@(protected)]On Behalf Of Tino Sch�llhorn
> > >Sent: Friday, January 23, 2004 5:07 AM
> > >To: user@(protected)
> > >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@(protected)
> > >For additional commands, e-mail: user-help@(protected)
> > >
> >
> > >
>
>
>
>-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
>To unsubscribe, e-mail: user-unsubscribe@(protected)
>For additional commands, e-mail: user-help@(protected)
>
>
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)
|
|
 |