Java Mailing List Archive

http://www.gg3721.com/

Home » users.tapestry »

Tapestry 5, WAR files and deployment

photos

2008-11-06

Replies: Find Java Web Hosting

Author LoginPost Reply
Hi,

Having gone through the Tapestry tutorials, got to grips with it,
developed a small application and have got it running well I'd like to
actually deploy it.

I notice there are no documents, examples or tutorials (as far as I
can see) that address how to do this. Even the "Tapestry 5" book is
pretty silent on the issue (apart from telling me what a WAR file is -
and even I know that). Perhaps someone could whip up a Wiki entry?


I'm using Eclipse. I'd like to:

1) create a WAR from my project

2) deploy it on a server that has Jetty running.


Do I need something like the following build.xml:

<project name="war_demo" default="build_war">
<target name="build_war">
 <war destfile="dportal.war" webxml="src/main/webapp/WEB-INF">
    <classes dir="target"/>
  </war>
</target>
</project>

Is there anthing else I need to do for this Ant target?

Or do I use Maven? And is that something like a command line call:
mvn war:war
or are there other things I need to do first?


I then place the resulting WAR in the "webapps" directory under Jetty
and start Jetty.

Correct?


p.





---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@(protected)
For additional commands, e-mail: users-help@(protected)

©2008 gg3721.com - Jax Systems, LLC, U.S.A.