You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by sa...@gre.ac.uk on 2003/03/10 00:06:12 UTC

Process from creating files up to running the application ?

Hello,

I am quite new to using Tapestry and building web applications and I have a few 
questions regarding deploying and running my own Tapestry application. 

What are the required steps after I have created my own example with the 
necessary files HTML Template, Page Specification, Java classes, 
( .java, .application, Home.page, Home.html) in order to run them ?

The tutorial contains a JAR file with the source code, and a WAR file with the 
class files to deploy Java code etc to the server. I feel I have a good 
understanding of the Tapestry framework and it's construction. I have followed 
the documentation, ppt presentations, etc but I do not seem to find information 
about how to get from creating the application files up to compiling, deploying 
and running them. I am also not very familiar with Ant or the creation of JAR 
and WAR files.

Could someone summarise the required steps for me or let me know where to find 
information on it?

I would appreciate any advice or help,

Kind regards,

Andrea





Re: Process from creating files up to running the application ?

Posted by sa...@gre.ac.uk.
Hi Tobias, 

thank you for your reply, especially the effort to list all the files contained 
in the WAR file ! (Vielen Dank fuer Deine Muehe!!)

In the process of WAR-ing the file, did you use Ant to do this for you or did 
you put all the files into the applicable folders manually and then created the 
WAR file with java's jar facility ? 

Kind regards,

Andrea



Quoting Tobias Frech <to...@frech.info>:

> Hi Andrea,
> here is a quick'n'dirty answer to your question. I hope someone will 
> take some more time to answer it in detail.
> 
> The Tapestry framework itself is integrated into the J2EE environment as 
> a servlet. So you need a servlet container (Jetty, Tomcat or if you plan 
> to use EJBs later then you may choose JBoss). You then need to package a 
> WAR file that contains the Tapestry servlet along with all the the files 
> you created for the tapestry framework.
> 
> Just in case you are not yet familar with WARs: A WAR is simply a ZIP 
> file which you can create with the jar java utility. So are JARs and 
> EARs if you ever going to need them ;)
> 
> The directory structure for my war looks like this:
> 
> WEB-INF/
> WEB-INF/classes/
> WEB-INF/classes/info/
> WEB-INF/classes/info/frech/
> WEB-INF/classes/info/frech/components/
> WEB-INF/classes/info/frech/form/
> WEB-INF/classes/app/
> WEB-INF/classes/app/components/
> WEB-INF/classes/app/dtd/
> WEB-INF/classes/info/frech/MainServlet.class
> WEB-INF/classes/info/frech/Details.class
> WEB-INF/classes/info/frech/Uebersicht.class
> WEB-INF/classes/info/frech/DBFuellen.class
> WEB-INF/classes/info/frech/Visit.class
> WEB-INF/classes/info/frech/components/verboseUrl.class
> WEB-INF/classes/info/frech/components/displayDescription.class
> WEB-INF/classes/info/frech/components/ImageWriter.class
> WEB-INF/classes/info/frech/DetailEdit.class
> WEB-INF/classes/info/frech/form/VoraussetzungForeach.class
> WEB-INF/classes/info/frech/form/LizenzForeach.class
> WEB-INF/classes/info/frech/form/TechnologyModel.class
> WEB-INF/classes/info/frech/form/FunctionalityModel.class
> WEB-INF/classes/info/frech/FunclinkEdit.class
> WEB-INF/classes/info/frech/Image.class
> WEB-INF/classes/info/frech/TechlinkEdit.class
> WEB-INF/classes/app/funclinkedit.html
> WEB-INF/classes/app/components/verboseURL.jwc
> WEB-INF/classes/app/components/displayDescription.jwc
> WEB-INF/classes/app/components/verboseURL.html
> WEB-INF/classes/app/Main.application
> WEB-INF/classes/app/techlinkedit.html
> WEB-INF/classes/app/komponentenuebersicht.page
> WEB-INF/classes/app/komponentendetailedit.page
> WEB-INF/classes/app/komponentenuebersicht.html
> WEB-INF/classes/app/komponentendetailedit.html
> WEB-INF/classes/app/image.page
> WEB-INF/classes/app/datenbankfuellen.page
> WEB-INF/classes/app/komponentendetail.page
> WEB-INF/classes/app/image.html
> WEB-INF/classes/app/funclinkedit.page
> WEB-INF/classes/app/datenbankfuellen.html
> WEB-INF/classes/app/komponentendetail.html
> WEB-INF/classes/app/techlinkedit.page
> WEB-INF/web.xml
> index.html
> 
> MainServlet.class contains the derived servlet class.
> I use the JBoss app-server and put all the necessary libs (tapestry.jar 
> itself and the needed libs from ext/ ) into jboss/server/default/lib/  dir.
> 
> HTH,
> Tobias
> 
> 
> sa034@gre.ac.uk wrote:
> 
> >Hello,
> >
> >I am quite new to using Tapestry and building web applications and I have a
> few 
> >questions regarding deploying and running my own Tapestry application. 
> >
> >What are the required steps after I have created my own example with the 
> >necessary files HTML Template, Page Specification, Java classes, 
> >( .java, .application, Home.page, Home.html) in order to run them ?
> >
> >The tutorial contains a JAR file with the source code, and a WAR file with
> the 
> >class files to deploy Java code etc to the server. I feel I have a good 
> >understanding of the Tapestry framework and it's construction. I have
> followed 
> >the documentation, ppt presentations, etc but I do not seem to find
> information 
> >about how to get from creating the application files up to compiling,
> deploying 
> >and running them. I am also not very familiar with Ant or the creation of
> JAR 
> >and WAR files.
> >
> >Could someone summarise the required steps for me or let me know where to
> find 
> >information on it?
> >
> >I would appreciate any advice or help,
> >
> >Kind regards,
> >
> >Andrea
> >
> >
> >
> >
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> >For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> >  
> >
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> 
> 





Re: Process from creating files up to running the application ?

Posted by Tobias Frech <to...@frech.info>.
Hi Andrea,
here is a quick'n'dirty answer to your question. I hope someone will 
take some more time to answer it in detail.

The Tapestry framework itself is integrated into the J2EE environment as 
a servlet. So you need a servlet container (Jetty, Tomcat or if you plan 
to use EJBs later then you may choose JBoss). You then need to package a 
WAR file that contains the Tapestry servlet along with all the the files 
you created for the tapestry framework.

Just in case you are not yet familar with WARs: A WAR is simply a ZIP 
file which you can create with the jar java utility. So are JARs and 
EARs if you ever going to need them ;)

The directory structure for my war looks like this:

WEB-INF/
WEB-INF/classes/
WEB-INF/classes/info/
WEB-INF/classes/info/frech/
WEB-INF/classes/info/frech/components/
WEB-INF/classes/info/frech/form/
WEB-INF/classes/app/
WEB-INF/classes/app/components/
WEB-INF/classes/app/dtd/
WEB-INF/classes/info/frech/MainServlet.class
WEB-INF/classes/info/frech/Details.class
WEB-INF/classes/info/frech/Uebersicht.class
WEB-INF/classes/info/frech/DBFuellen.class
WEB-INF/classes/info/frech/Visit.class
WEB-INF/classes/info/frech/components/verboseUrl.class
WEB-INF/classes/info/frech/components/displayDescription.class
WEB-INF/classes/info/frech/components/ImageWriter.class
WEB-INF/classes/info/frech/DetailEdit.class
WEB-INF/classes/info/frech/form/VoraussetzungForeach.class
WEB-INF/classes/info/frech/form/LizenzForeach.class
WEB-INF/classes/info/frech/form/TechnologyModel.class
WEB-INF/classes/info/frech/form/FunctionalityModel.class
WEB-INF/classes/info/frech/FunclinkEdit.class
WEB-INF/classes/info/frech/Image.class
WEB-INF/classes/info/frech/TechlinkEdit.class
WEB-INF/classes/app/funclinkedit.html
WEB-INF/classes/app/components/verboseURL.jwc
WEB-INF/classes/app/components/displayDescription.jwc
WEB-INF/classes/app/components/verboseURL.html
WEB-INF/classes/app/Main.application
WEB-INF/classes/app/techlinkedit.html
WEB-INF/classes/app/komponentenuebersicht.page
WEB-INF/classes/app/komponentendetailedit.page
WEB-INF/classes/app/komponentenuebersicht.html
WEB-INF/classes/app/komponentendetailedit.html
WEB-INF/classes/app/image.page
WEB-INF/classes/app/datenbankfuellen.page
WEB-INF/classes/app/komponentendetail.page
WEB-INF/classes/app/image.html
WEB-INF/classes/app/funclinkedit.page
WEB-INF/classes/app/datenbankfuellen.html
WEB-INF/classes/app/komponentendetail.html
WEB-INF/classes/app/techlinkedit.page
WEB-INF/web.xml
index.html

MainServlet.class contains the derived servlet class.
I use the JBoss app-server and put all the necessary libs (tapestry.jar 
itself and the needed libs from ext/ ) into jboss/server/default/lib/  dir.

HTH,
Tobias


sa034@gre.ac.uk wrote:

>Hello,
>
>I am quite new to using Tapestry and building web applications and I have a few 
>questions regarding deploying and running my own Tapestry application. 
>
>What are the required steps after I have created my own example with the 
>necessary files HTML Template, Page Specification, Java classes, 
>( .java, .application, Home.page, Home.html) in order to run them ?
>
>The tutorial contains a JAR file with the source code, and a WAR file with the 
>class files to deploy Java code etc to the server. I feel I have a good 
>understanding of the Tapestry framework and it's construction. I have followed 
>the documentation, ppt presentations, etc but I do not seem to find information 
>about how to get from creating the application files up to compiling, deploying 
>and running them. I am also not very familiar with Ant or the creation of JAR 
>and WAR files.
>
>Could someone summarise the required steps for me or let me know where to find 
>information on it?
>
>I would appreciate any advice or help,
>
>Kind regards,
>
>Andrea
>
>
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>  
>