You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Juan Pablo Romero Méndez <jp...@gmail.com> on 2009/07/30 19:10:51 UTC

Deploying grails application

Hello all,

I'm stuck here: After deploying a war created by grails, everything
seems fine (tomcat says OK), but the application is not available in
the path it should be. The log files give no warning at all. Where
could I search for the problem?

Regards,

  Juan Pablo

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Deploying grails application

Posted by Mark Thomas <ma...@apache.org>.
Christopher Schultz wrote:
> On 8/3/2009 6:06 PM, Mark Thomas wrote:
>> Nope. Deployment via the manager app is synchronous. Time taken to
>> deploy will depend how big the war is and how long your app takes to start.
> 
> Good to know. I wonder what Juan meant when he said "instantaneous":

I think he must have been using one of those 'special' computers that
have infinite CPU, infinite storage and infinite memory where everything
happens instantly :)

> I had assumed that the response came back from the server, but the app
> wasn't yet deployed. Maybe he thought that as soon as the mouse was
> clicked, the application would immediately be available, rather than
> having to wait until the response was received.

Maybe.

> Is there a possibility for an asynchronous deploy? I ask because I've
> seen some (badly written) applications that take several minutes to
> initialize.

Anything is possible.

> In these cases, could a request timeout break a deployment?

No. If you are connected directly to Tomcat, Tomcat won't timeout the
request (your client might). If you go via a proxy it will depend on
proxy settings. Either way, if the request does time out, the deployment
will still carry on and complete normally.

Mark



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Deploying grails application

Posted by Christopher Schultz <ch...@christopherschultz.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Mark,

On 8/3/2009 6:06 PM, Mark Thomas wrote:
> Christopher Schultz wrote:
>> Juan,
>>
>> On 7/30/2009 4:39 PM, Juan Pablo Romero Méndez wrote:
>>> It turned out there is some delay between clicking the link to deploy
>>> and the application being available. I somehow expected this process
>>> to be almost instantaneous.
>>
>> I won't use the manager app, so I've never really noticed that the
>> deployment process is not synchronous. I'm not surprised, though: the
>> manager app is probably just saying to Tomcat "please deploy this
>> application". Tomcat responds by saying "okay, I'll do my best" and then
>> the manager app responds to you (the user). Tomcat does the deployment
>> at its leisure.
> 
> Nope. Deployment via the manager app is synchronous. Time taken to
> deploy will depend how big the war is and how long your app takes to start.

Good to know. I wonder what Juan meant when he said "instantaneous": I
had assumed that the response came back from the server, but the app
wasn't yet deployed. Maybe he thought that as soon as the mouse was
clicked, the application would immediately be available, rather than
having to wait until the response was received.

Is there a possibility for an asynchronous deploy? I ask because I've
seen some (badly written) applications that take several minutes to
initialize. In these cases, could a request timeout break a deployment?

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkp3YIsACgkQ9CaO5/Lv0PDYnACfeJBiP6tblTaLSDYZwmT0C2wU
I+wAnjxAppfwjaoBJqhUMXlp/9Xt2sip
=6t5o
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Deploying grails application

Posted by Mark Thomas <ma...@apache.org>.
Christopher Schultz wrote:
> Juan,
> 
> On 7/30/2009 4:39 PM, Juan Pablo Romero Méndez wrote:
>> It turned out there is some delay between clicking the link to deploy
>> and the application being available. I somehow expected this process
>> to be almost instantaneous.
> 
> I won't use the manager app, so I've never really noticed that the
> deployment process is not synchronous. I'm not surprised, though: the
> manager app is probably just saying to Tomcat "please deploy this
> application". Tomcat responds by saying "okay, I'll do my best" and then
> the manager app responds to you (the user). Tomcat does the deployment
> at its leisure.

Nope. Deployment via the manager app is synchronous. Time taken to
deploy will depend how big the war is and how long your app takes to start.

Mark



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Deploying grails application

Posted by Christopher Schultz <ch...@christopherschultz.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Juan,

On 7/30/2009 4:39 PM, Juan Pablo Romero Méndez wrote:
> It turned out there is some delay between clicking the link to deploy
> and the application being available. I somehow expected this process
> to be almost instantaneous.

I won't use the manager app, so I've never really noticed that the
deployment process is not synchronous. I'm not surprised, though: the
manager app is probably just saying to Tomcat "please deploy this
application". Tomcat responds by saying "okay, I'll do my best" and then
the manager app responds to you (the user). Tomcat does the deployment
at its leisure.

> By the way, what is the preferred way to deploy war files to a tomcat
> installation? from the admin console? copying the file directly?

It all depends on your environment, really. We only do webapp
deployments when we do a release... maybe every 3-6 months. Since we
don't need any fancy continuous service or anything like that, we just
shut down Tomcat, delete the deployment directory, unwar the new
version, and start Tomcat again.

Your requirements may warrant a more complicated solution.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkp3XUEACgkQ9CaO5/Lv0PCLrACgjsZLNAEoMrSS7zYDGoZaiROq
oWkAn0eJhy3vCn7fS0Xt5X5Ni28rEbQg
=l2GS
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Deploying grails application

Posted by Juan Pablo Romero Méndez <jp...@gmail.com>.
It turned out there is some delay between clicking the link to deploy
and the application being available. I somehow expected this process
to be almost instantaneous.

But the application is running fine now. Thanks!

By the way, what is the preferred way to deploy war files to a tomcat
installation? from the admin console? copying the file directly?

My setup:
Tomcat 6.0.20
os: Windows Server Enterprise 2008
JVM: 1.6.0_14-b08
Grails 1.1.1

Regards,

  Juan Pabllo

2009/7/30 Christopher Schultz <ch...@christopherschultz.net>:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Juan,
>
> On 7/30/2009 1:10 PM, Juan Pablo Romero Méndez wrote:
>> I'm stuck here: After deploying a war created by grails, everything
>> seems fine (tomcat says OK), but the application is not available in
>> the path it should be. The log files give no warning at all. Where
>> could I search for the problem?
>
> You could start by telling us:
>
> 1. Your Tomcat version
> 2. What your server.xml has configured in it
> 3. How you did your deployment
> 4. What error(s) you actually get when you try to access the app
> 5. Any error or warning messages in catalina.out
>
> - -chris
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.9 (MingW32)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>
> iEYEARECAAYFAkpx8W8ACgkQ9CaO5/Lv0PBvJgCdGdUPZzjgoCzeHS9WOij1Xgar
> RqQAnRBQUuqQPcHWmVN1xcyj0WB4xHAb
> =baQM
> -----END PGP SIGNATURE-----
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Deploying grails application

Posted by Christopher Schultz <ch...@christopherschultz.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Juan,

On 7/30/2009 1:10 PM, Juan Pablo Romero Méndez wrote:
> I'm stuck here: After deploying a war created by grails, everything
> seems fine (tomcat says OK), but the application is not available in
> the path it should be. The log files give no warning at all. Where
> could I search for the problem?

You could start by telling us:

1. Your Tomcat version
2. What your server.xml has configured in it
3. How you did your deployment
4. What error(s) you actually get when you try to access the app
5. Any error or warning messages in catalina.out

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkpx8W8ACgkQ9CaO5/Lv0PBvJgCdGdUPZzjgoCzeHS9WOij1Xgar
RqQAnRBQUuqQPcHWmVN1xcyj0WB4xHAb
=baQM
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org