Apache Geronimo > Discussion Forums  User List | Dev List | Wiki | Issue Tracker  

What are the specifics steps for manual deployment ?

View: New views
6 Messages — Rating Filter:   Alert me  

What are the specifics steps for manual deployment ?

by caof2005 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello folks,

With a newbe questions/request:

Can anybody refer me to any document/link which indicate me which are the steps to do a manual deployment without using the deployment tool (deploy ) ?

I'm using Geronimo 2.1.3 with Tomcat 6

I tried to follow the oldie/classic example of building a dynamic project by hand (no IDE's, nor deploy tool at all) just using the java, javac and jar command line tools.

So I tried to manually define the basic directory deployment structure shown in 4.X, 5.X versions of Tomcat:

webapps
--MyApp_Directory
---WEB-INF
----web.xml
----geronimo-web.xml
----lib
----classes
----com
----example
-------web
----------classA.class
-------model
----------classB.class
 
But I couldn't find any "tomcat" directory in Geronimo installation directory which I can define inside that structure.

So the question is .... am I assuming correctly that I can manually define the deployment structure as I can do it in older versions of Tomcat?
Or do I have to use the deployment tool (deploy) in order to manually deploy any application ?

Any guidance would be very appreciated.
Regards
Carlos

Re: What are the specifics steps for manual deployment ?

by viola.lu :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

You should use deploy command or hot deploy(just copy your app to deloy folder like in tomcat)  to deploy  your application following http://cwiki.apache.org/GMOxDOC22/deploying-and-undeploying-applications.html

And in geronimo, tomcat is in $your_geronimo_install_Dir\repository\org\apache\tomcat

Your web app structure seems fine(geronimo web app structure same as tomcat, just an extra geronimo-web.xml. which is geronimo specific deployment plan), i recommend your can use Geronimo Eclipse plugin in eclipse to simplify your develop work, you can install GEP follwoing  http://cwiki.apache.org/GMOxDOC21/how-to-install-geronimo-eclipse-plugin.html, and how to develop in it follwoing http://cwiki.apache.org/GMOxDOC21/how-to-use-geronimo-eclipse-plugin.html#HowtoUseGeronimoEclipsePlugin-DeployRunUndeployandRedeployanApplication.

You can find out more help from Geronimo 2.1 doc link: http://cwiki.apache.org/GMOxDOC21/ in your development process.


Your

I think whether
caof2005 wrote:
Hello folks,

With a newbe questions/request:

Can anybody refer me to any document/link which indicate me which are the steps to do a manual deployment without using the deployment tool (deploy ) ?

I'm using Geronimo 2.1.3 with Tomcat 6

I tried to follow the oldie/classic example of building a dynamic project by hand (no IDE's, nor deploy tool at all) just using the java, javac and jar command line tools.

So I tried to manually define the basic directory deployment structure shown in 4.X, 5.X versions of Tomcat:

webapps
--MyApp_Directory
---WEB-INF
----web.xml
----geronimo-web.xml
----lib
----classes
----com
----example
-------web
----------classA.class
-------model
----------classB.class
 
But I couldn't find any "tomcat" directory in Geronimo installation directory which I can define inside that structure.

So the question is .... am I assuming correctly that I can manually define the deployment structure as I can do it in older versions of Tomcat?
Or do I have to use the deployment tool (deploy) in order to manually deploy any application ?

Any guidance would be very appreciated.
Regards
Carlos

Re: What are the specifics steps for manual deployment ?

by djencks :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


On Jun 19, 2009, at 6:04 PM, caof2005 wrote:

>
> Hello folks,
>
> With a newbe questions/request:
>
> Can anybody refer me to any document/link which indicate me which  
> are the
> steps to do a manual deployment without using the deployment tool  
> (deploy )
> ?
>
> I'm using Geronimo 2.1.3 with Tomcat 6
>
> I tried to follow the oldie/classic example of building a dynamic  
> project by
> hand (no IDE's, nor deploy tool at all) just using the java, javac  
> and jar
> command line tools.

Why?  I can't begin to enumerate all the mistakes you can make setting  
up even a simple javaee project with these tools. At least use maven,  
it will make it much more plausible that you will end up with a  
correct artifact structure.

Since you seem to be interested in using spec-compliant tools you  
should use our jsr-88 deployer.  This is the only spec-compliant way  
to deploy an ee application to an ee server.  The command line  
interface of our deployer is not specified by the spec but the  
communication between the tool and the server is, so you can use  
another jsr-88 deployer if you can find one.

>
> So I tried to manually define the basic directory deployment  
> structure shown
> in 4.X, 5.X versions of Tomcat:
>
> webapps
> --MyApp_Directory
> ---WEB-INF
> ----web.xml
> ----geronimo-web.xml
> ----lib
> ----classes
> ----com
> ----example
> -------web
> ----------classA.class
> -------model
> ----------classB.class
>
> But I couldn't find any "tomcat" directory in Geronimo installation
> directory which I can define inside that structure.

Tomcat's deployment mechanism is proprietary and not related to any ee  
specs.  We don't use it.

>
> So the question is .... am I assuming correctly that I can manually  
> define
> the deployment structure as I can do it in older versions of Tomcat?
no.  When an app is deployed in geronimo it constructs a geronimo  
plugin which in particular includes a file of serialized component  
configuration.  You can't construct one of these without deploying the  
app in geronimo.

> Or do I have to use the deployment tool (deploy) in order to  
> manually deploy
> any application ?
>

There's a hot deploy directory but I really recommend against using  
it.  It's really not tooling friendly: for example there's no way to  
tell if deployment has started, finished, or failed without using  
something like the deploy tool with more complicated instructions that  
deploying the app would use.

You can use the gshell based deploy commands, deploy from maven, the  
command line deployer, the console.

My favorite is to build a geronimo plugin using maven and the car-
maven-plugin and assemble a server around your application that has  
exactly the functionality needed for the app.

I hope this relates to your questions....

thanks
david jencks


> Any guidance would be very appreciated.
> Regards
> Carlos
> --
> View this message in context: http://www.nabble.com/What-are-the-specifics-steps-for-manual-deployment---tp24120872s134p24120872.html
> Sent from the Apache Geronimo - Users mailing list archive at  
> Nabble.com.
>

Re: What are the specifics steps for manual deployment ?

by caof2005 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thanks viola
So just to confirm.

I can see the $your_geronimo_install_Dir\repository\org\apache\tomcat  directory you indicate me,... but please excuse my clumsiness because I see inside "tomcat" directory others subdirectories:

-catalina
----6.0.14-G614585
-------catalina-6.0.14-G614585
-catalina-ha
-coyote
-extras
-jasper
-jasper-el
-jasper-dt
-juli
-tribes

So I found difficult to know which is the correct one... (I mean the one that I should consider as CATALINA_HOME/webapps ).

If I use catalina as CATALINA_HOME, do I have to define inside the webapps directory ?

Could you just guide me on this, please?

Thank you.
Carlos



You should use deploy command or hot deploy(just copy your app to deloy folder like in tomcat)  to deploy  your application following http://cwiki.apache.org/GMOxDOC22/deploying-and-undeploying-applications.html

And in geronimo, tomcat is in $your_geronimo_install_Dir\repository\org\apache\tomcat

Your web app structure seems fine(geronimo web app structure same as tomcat, just an extra geronimo-web.xml. which is geronimo specific deployment plan), i recommend your can use Geronimo Eclipse plugin in eclipse to simplify your develop work, you can install GEP follwoing  http://cwiki.apache.org/GMOxDOC21/how-to-install-geronimo-eclipse-plugin.html, and how to develop in it follwoing http://cwiki.apache.org/GMOxDOC21/how-to-use-geronimo-eclipse-plugin.html#HowtoUseGeronimoEclipsePlugin-DeployRunUndeployandRedeployanApplication.

You can find out more help from Geronimo 2.1 doc link: http://cwiki.apache.org/GMOxDOC21/ in your development process.


Your

I think whether
caof2005 wrote:
Hello folks,

With a newbe questions/request:

Can anybody refer me to any document/link which indicate me which are the steps to do a manual deployment without using the deployment tool (deploy ) ?

I'm using Geronimo 2.1.3 with Tomcat 6

I tried to follow the oldie/classic example of building a dynamic project by hand (no IDE's, nor deploy tool at all) just using the java, javac and jar command line tools.

So I tried to manually define the basic directory deployment structure shown in 4.X, 5.X versions of Tomcat:

webapps
--MyApp_Directory
---WEB-INF
----web.xml
----geronimo-web.xml
----lib
----classes
----com
----example
-------web
----------classA.class
-------model
----------classB.class
 
But I couldn't find any "tomcat" directory in Geronimo installation directory which I can define inside that structure.

So the question is .... am I assuming correctly that I can manually define the deployment structure as I can do it in older versions of Tomcat?
Or do I have to use the deployment tool (deploy) in order to manually deploy any application ?

Any guidance would be very appreciated.
Regards
Carlos


Re: What are the specifics steps for manual deployment ?

by kevan :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


On Jun 21, 2009, at 12:09 AM, caof2005 wrote:

>
> Thanks viola
> So just to confirm.
>
> I can see the $your_geronimo_install_Dir\repository\org\apache\tomcat
> directory you indicate me,... but please excuse my clumsiness  
> because I see
> inside "tomcat" directory others subdirectories:
>
> -catalina
> ----6.0.14-G614585
> -------catalina-6.0.14-G614585
> -catalina-ha
> -coyote
> -extras
> -jasper
> -jasper-el
> -jasper-dt
> -juli
> -tribes
>
> So I found difficult to know which is the correct one... (I mean the  
> one
> that I should consider as CATALINA_HOME/webapps ).
>
> If I use catalina as CATALINA_HOME, do I have to define inside the  
> webapps
> directory ?

There is no "webapps" directory in Geronimo. However, you can treat  
the <geronimo-home>/deploy directory as the equivalent. Place your war  
or MyApp_Directory in the <geronimo-home>/deploy/ directory, instead.

--kevan

Re: What are the specifics steps for manual deployment ?

by caof2005 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

David

Thanks for the clarification, I will try to follow the hints, Viola and you gave me.

Regards
Carlos


djencks wrote:
On Jun 19, 2009, at 6:04 PM, caof2005 wrote:

>
> Hello folks,
>
> With a newbe questions/request:
>
> Can anybody refer me to any document/link which indicate me which  
> are the
> steps to do a manual deployment without using the deployment tool  
> (deploy )
> ?
>
> I'm using Geronimo 2.1.3 with Tomcat 6
>
> I tried to follow the oldie/classic example of building a dynamic  
> project by
> hand (no IDE's, nor deploy tool at all) just using the java, javac  
> and jar
> command line tools.

Why?  I can't begin to enumerate all the mistakes you can make setting  
up even a simple javaee project with these tools. At least use maven,  
it will make it much more plausible that you will end up with a  
correct artifact structure.

Since you seem to be interested in using spec-compliant tools you  
should use our jsr-88 deployer.  This is the only spec-compliant way  
to deploy an ee application to an ee server.  The command line  
interface of our deployer is not specified by the spec but the  
communication between the tool and the server is, so you can use  
another jsr-88 deployer if you can find one.

>
> So I tried to manually define the basic directory deployment  
> structure shown
> in 4.X, 5.X versions of Tomcat:
>
> webapps
> --MyApp_Directory
> ---WEB-INF
> ----web.xml
> ----geronimo-web.xml
> ----lib
> ----classes
> ----com
> ----example
> -------web
> ----------classA.class
> -------model
> ----------classB.class
>
> But I couldn't find any "tomcat" directory in Geronimo installation
> directory which I can define inside that structure.

Tomcat's deployment mechanism is proprietary and not related to any ee  
specs.  We don't use it.

>
> So the question is .... am I assuming correctly that I can manually  
> define
> the deployment structure as I can do it in older versions of Tomcat?
no.  When an app is deployed in geronimo it constructs a geronimo  
plugin which in particular includes a file of serialized component  
configuration.  You can't construct one of these without deploying the  
app in geronimo.

> Or do I have to use the deployment tool (deploy) in order to  
> manually deploy
> any application ?
>

There's a hot deploy directory but I really recommend against using  
it.  It's really not tooling friendly: for example there's no way to  
tell if deployment has started, finished, or failed without using  
something like the deploy tool with more complicated instructions that  
deploying the app would use.

You can use the gshell based deploy commands, deploy from maven, the  
command line deployer, the console.

My favorite is to build a geronimo plugin using maven and the car-
maven-plugin and assemble a server around your application that has  
exactly the functionality needed for the app.

I hope this relates to your questions....

thanks
david jencks


> Any guidance would be very appreciated.
> Regards
> Carlos
> --
> View this message in context: http://www.nabble.com/What-are-the-specifics-steps-for-manual-deployment---tp24120872s134p24120872.html
> Sent from the Apache Geronimo - Users mailing list archive at  
> Nabble.com.
>