You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by janylj <ja...@gmail.com> on 2008/10/01 18:41:17 UTC
Build failed when packaging the WAR
Hello,
I am trying to package a WAR with some xml in the WEB-INF folder.
<war destfile="${deploy.path}/${ant.project.name}.war"
webxml="web/WEB-INF/web.xml">
<lib dir="${deploy.path}/war/lib"/>
<classes dir="${deploy.path}/war/classes"/>
<webinf>
<fileset dir="web/WEB-INF">
<include name="*.xml"/>
<exclude name="web.xml"/>
</fileset>
</webinf>
</war>
The build failed because:
BUILD FAILED
build-custom.xml:51: The following error occurred while executing this line:
build-custom.xml:92: problem opening
/home/SomeProject/web/WEB-INF/restlet-servlet.xml
I checked restlet-servlet.xml permission. It's fine. Then I don't know how
to put the restlet-servlet.xml into the WEB-INF folder in the WAR. Please
help. Thank you.
--
View this message in context: http://www.nabble.com/Build-failed-when-packaging-the-WAR-tp19764478p19764478.html
Sent from the Ant - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
Re: Build failed when packaging the WAR
Posted by janylj <ja...@gmail.com>.
Just answer my own question in case that someone else meets the same problem.
The <webinf> should be:
<webinf dir="web/WEB-INF">
<include name="*.xml"/>
<exclude name="web.xml"/>
</webinf>
janylj wrote:
>
> Hello,
>
> I am trying to package a WAR with some xml in the WEB-INF folder.
>
> <war destfile="${deploy.path}/${ant.project.name}.war"
> webxml="web/WEB-INF/web.xml">
> <lib dir="${deploy.path}/war/lib"/>
> <classes dir="${deploy.path}/war/classes"/>
> <webinf>
> <fileset dir="web/WEB-INF">
> <include name="*.xml"/>
> <exclude name="web.xml"/>
> </fileset>
> </webinf>
> </war>
>
> The build failed because:
> BUILD FAILED
> build-custom.xml:51: The following error occurred while executing this
> line:
> build-custom.xml:92: problem opening
> /home/SomeProject/web/WEB-INF/restlet-servlet.xml
>
> The problem is at <webinf> element. I checked restlet-servlet.xml
> permission. It's fine. Then I don't know how to put the
> restlet-servlet.xml into the WEB-INF folder in the WAR. Please help. Thank
> you.
>
--
View this message in context: http://www.nabble.com/Build-failed-when-packaging-the-WAR-tp19764478p19765564.html
Sent from the Ant - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org