You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by SriChakra <sr...@misys.com> on 2009/12/27 22:13:55 UTC
knowing the status using Tomcat's start ant task
Hi,
I am using Tomcat 6.0.16 on JDK 1.5.09.
I am using Tomcat's ant task "start" to start an application.
If I use the ant task, I always get "OK - Started application at context
path ...".
But if the application is already running, I get appname] "has already been
started" message on the tomcat's console but not through the ant task.
Please let me know how I can get the correct status through the "start"
task.
The start task, does not have outputproperty/errorproperty attribute to get
the current status. Is there any other way of getting this information?
Thanks
Srikanth
--
View this message in context: http://old.nabble.com/knowing-the-status-using-Tomcat%27s-start-ant-task-tp26937227p26937227.html
Sent from the Tomcat - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: knowing the status using Tomcat's start ant task
Posted by SriChakra <sr...@misys.com>.
Hi,
I am trying to start an application running inside Tomcat.
Once the application is started, if I try to start it again, then I shd be
able to give out a message saying, that it is already started and running.
Regards,
Srikanth
Pid Ster wrote:
>
> On 28/12/2009 16:33, SriChakra wrote:
>>
>> Reno,
>> Thanks for your reply.
>>
>> I started the whole exercise from the same link. The startTask APIs do
>> not
>> mention about the outputproperty. Hence I had not tried. Now after your
>> reply I have tried using this attribute for the start task. Yet I do not
>> get
>> the output message I expect "...already started".
>> The link also lists the messages that can be possibly output from the
>> start
>> task and it does not include "...already started" as one of the messages.
>>
>> Right now, I am using the outputmessage to check if the application name
>> exists in it and has running: against it to see if it is already running.
>> I
>> think this is a work around.
>>
>> I am looking for a more straight forward solution to this.
>
> Are you trying to tell whether an application, running inside the Tomcat
> servlet container is running, or whether Tomcat is running?
>
>
> p
>
>
>> Regards,
>> Srikanth
>>
>>
>> reno.rkcrew wrote:
>>>
>>> srikanth,
>>>
>>> did you read this:
>>> http://tomcat.apache.org/tomcat-5.5-doc/manager-howto.html#Executing%20Manager%20Commands%20With%20Ant?
>>>
>>> it may help you :-)
>>>
>>> regards
>>>
>>> supareno
>>>
>>>>
>>>> Hi,
>>>>
>>>> I am using Tomcat 6.0.16 on JDK 1.5.09.
>>>> I am using Tomcat's ant task "start" to start an application.
>>>>
>>>> If I use the ant task, I always get "OK - Started application at
>>>> context
>>>> path ...".
>>>> But if the application is already running, I get appname] "has already
>>>> been
>>>> started" message on the tomcat's console but not through the ant task.
>>>>
>>>> Please let me know how I can get the correct status through the "start"
>>>> task.
>>>>
>>>> The start task, does not have outputproperty/errorproperty attribute to
>>>> get
>>>> the current status. Is there any other way of getting this information?
>>>>
>>>> Thanks
>>>> Srikanth
>>>> --
>>>> View this message in context:
>>>>
>>> http://old.nabble.com/knowing-the-status-using-Tomcat%27s-start-ant-task-tp26937227p26937227.html
>>>> Sent from the Tomcat - User mailing list archive at Nabble.com.
>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> 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
>>>
>>>
>>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
>
--
View this message in context: http://old.nabble.com/knowing-the-status-using-Tomcat%27s-start-ant-task-tp26937227p26945658.html
Sent from the Tomcat - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: knowing the status using Tomcat's start ant task
Posted by Pid <pi...@pidster.com>.
On 28/12/2009 16:33, SriChakra wrote:
>
> Reno,
> Thanks for your reply.
>
> I started the whole exercise from the same link. The startTask APIs do not
> mention about the outputproperty. Hence I had not tried. Now after your
> reply I have tried using this attribute for the start task. Yet I do not get
> the output message I expect "...already started".
> The link also lists the messages that can be possibly output from the start
> task and it does not include "...already started" as one of the messages.
>
> Right now, I am using the outputmessage to check if the application name
> exists in it and has running: against it to see if it is already running. I
> think this is a work around.
>
> I am looking for a more straight forward solution to this.
Are you trying to tell whether an application, running inside the Tomcat
servlet container is running, or whether Tomcat is running?
p
> Regards,
> Srikanth
>
>
> reno.rkcrew wrote:
>>
>> srikanth,
>>
>> did you read this:
>> http://tomcat.apache.org/tomcat-5.5-doc/manager-howto.html#Executing%20Manager%20Commands%20With%20Ant?
>>
>> it may help you :-)
>>
>> regards
>>
>> supareno
>>
>>>
>>> Hi,
>>>
>>> I am using Tomcat 6.0.16 on JDK 1.5.09.
>>> I am using Tomcat's ant task "start" to start an application.
>>>
>>> If I use the ant task, I always get "OK - Started application at context
>>> path ...".
>>> But if the application is already running, I get appname] "has already
>>> been
>>> started" message on the tomcat's console but not through the ant task.
>>>
>>> Please let me know how I can get the correct status through the "start"
>>> task.
>>>
>>> The start task, does not have outputproperty/errorproperty attribute to
>>> get
>>> the current status. Is there any other way of getting this information?
>>>
>>> Thanks
>>> Srikanth
>>> --
>>> View this message in context:
>>>
>> http://old.nabble.com/knowing-the-status-using-Tomcat%27s-start-ant-task-tp26937227p26937227.html
>>> Sent from the Tomcat - User mailing list archive at Nabble.com.
>>>
>>>
>>> ---------------------------------------------------------------------
>>> 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
>>
>>
>>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: knowing the status using Tomcat's start ant task
Posted by SriChakra <sr...@misys.com>.
Reno,
Thanks for your reply.
I started the whole exercise from the same link. The startTask APIs do not
mention about the outputproperty. Hence I had not tried. Now after your
reply I have tried using this attribute for the start task. Yet I do not get
the output message I expect "...already started".
The link also lists the messages that can be possibly output from the start
task and it does not include "...already started" as one of the messages.
Right now, I am using the outputmessage to check if the application name
exists in it and has running: against it to see if it is already running. I
think this is a work around.
I am looking for a more straight forward solution to this.
Regards,
Srikanth
reno.rkcrew wrote:
>
> srikanth,
>
> did you read this:
> http://tomcat.apache.org/tomcat-5.5-doc/manager-howto.html#Executing%20Manager%20Commands%20With%20Ant?
>
> it may help you :-)
>
> regards
>
> supareno
>
>>
>> Hi,
>>
>> I am using Tomcat 6.0.16 on JDK 1.5.09.
>> I am using Tomcat's ant task "start" to start an application.
>>
>> If I use the ant task, I always get "OK - Started application at context
>> path ...".
>> But if the application is already running, I get appname] "has already
>> been
>> started" message on the tomcat's console but not through the ant task.
>>
>> Please let me know how I can get the correct status through the "start"
>> task.
>>
>> The start task, does not have outputproperty/errorproperty attribute to
>> get
>> the current status. Is there any other way of getting this information?
>>
>> Thanks
>> Srikanth
>> --
>> View this message in context:
>>
> http://old.nabble.com/knowing-the-status-using-Tomcat%27s-start-ant-task-tp26937227p26937227.html
>> Sent from the Tomcat - User mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> 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
>
>
>
--
View this message in context: http://old.nabble.com/knowing-the-status-using-Tomcat%27s-start-ant-task-tp26937227p26944899.html
Sent from the Tomcat - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: knowing the status using Tomcat's start ant task
Posted by re...@free.fr.
srikanth,
did you read this:
http://tomcat.apache.org/tomcat-5.5-doc/manager-howto.html#Executing%20Manager%20Commands%20With%20Ant?
it may help you :-)
regards
supareno
>
> Hi,
>
> I am using Tomcat 6.0.16 on JDK 1.5.09.
> I am using Tomcat's ant task "start" to start an application.
>
> If I use the ant task, I always get "OK - Started application at context
> path ...".
> But if the application is already running, I get appname] "has already been
> started" message on the tomcat's console but not through the ant task.
>
> Please let me know how I can get the correct status through the "start"
> task.
>
> The start task, does not have outputproperty/errorproperty attribute to get
> the current status. Is there any other way of getting this information?
>
> Thanks
> Srikanth
> --
> View this message in context:
>
http://old.nabble.com/knowing-the-status-using-Tomcat%27s-start-ant-task-tp26937227p26937227.html
> Sent from the Tomcat - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> 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