You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Mark Silva <ms...@authenex.com> on 2002/11/02 00:04:04 UTC

RE: [OT] Run Java App as a Win Service

sorry, i was typing too fast in my subject, Web --> Win.  i guess this deadline is making me nervous.  and you noticed my [OT].

this is not an application server, this is a java application.

-----Original Message-----
From: Karr, David [mailto:david.karr@attws.com]
Sent: Friday, November 01, 2002 3:02 PM
To: Struts Users Mailing List
Subject: RE: [OT] Run Java App as a Web Service


Let's see.  First of all, this question is only barely relevant to this mailing list.  Second, your subject line talks about something completely different from what you describe in your note.  A "web service" has nothing to do with running a Windows application as a service.  Assuming you really meant the latter, I suggest you read the documentation for your application server to determine how to run it as a Windows service.

> -----Original Message-----
> From: Mark Silva [mailto:msilva@authenex.com]
> Sent: Friday, November 01, 2002 2:58 PM
> To: Struts Users Mailing List
> Subject: [OT] Run Java App as a Web Service
> 
> 
> ok, i have this new requirement that has just come down today 
> for a release next week.  these things arren't supposed to 
> happen but they do!
> 
> the java app i am providing needs to run as a WIN2000 Service.  
> 
> has anybody done thid before?  can you point me in the right 
> direfction?
> 
> thanks,
> mark
> 
> 
> --
> To unsubscribe, e-mail:   
> <ma...@jakarta.apache.org>
> For additional commands, e-mail: 
> <ma...@jakarta.apache.org>
> 

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: [OT] Run Java App as a Win Service [FIXED]

Posted by Robert Taylor <rt...@mulework.com>.
I tripped over this post after searching google for a couple hours:

http://www.zerosleep.com/work/docs/jbossasservice.jsp

It seemed to fix the problem. Too bad its not documented by JNT.

robert

> -----Original Message-----
> From: Robert Taylor [mailto:rtaylor@mulework.com]
> Sent: Thursday, January 23, 2003 4:41 PM
> To: Struts Users Mailing List; andrew.david.hill@gridnode.com
> Subject: RE: [OT] Run Java App as a Win Service
>
>
> Andrew, in your experience with JNT did your applications define a
> shutdown.method? Was it ever called successfully? I can get JNT to install
> my app as an NT service, but when I try and start it, it shuts
> down immediately. It appears that it (Windows) never invokes my
> application
> although when I run the application from the command line it runs
> perfectly.
>
> Any ideas?
>
> robert
>
> > -----Original Message-----
> > From: Andrew Hill [mailto:andrew.david.hill@gridnode.com]
> > Sent: Saturday, November 02, 2002 11:45 AM
> > To: Struts Users Mailing List
> > Subject: RE: [OT] Run Java App as a Win Service
> >
> >
> > Ive used a simple freeware program called JNT to run java stuff
> as windows
> > services. Dont know if it can be used on an app server but worth a try.
> > http://www.eworksmart.com/JNT/
> >
> > oops. Just been looking through the links below - one of them points
> > (indirectly) to JNT already. Oh well. Guess thats 2 votes?
> >
> > I dont think this subject is "barely relevant". Sure its not
> > struts-specific
> > and would be better placed on something like the tomcat list or a
> > j2ee list
> > but its one of those things that those of us developing struts apps are
> > likely to deal with more than occasionally... (I would class it
> as "almost
> > relevant" hehe)
> >
> > I think Ill need to deal with this requirement soon for the
> struts app Im
> > working on so am also interested in the responses to this question.
> >
> > -----Original Message-----
> > From: Max Cooper [mailto:max@maxcooper.com]
> > Sent: Saturday, November 02, 2002 09:43
> > To: Struts Users Mailing List
> > Subject: Re: [OT] Run Java App as a Win Service
> >
> >
> > Here's a few from a Google search for "Windows service wrapper":
> >
> > http://wrapper.sourceforge.net/doc/english/introduction.html
> > http://pharos.inria.fr/Java/display.jsp?id=c_6232
> > http://playstation2.idv.tw/serviceagent/index.php3
> >
> > -Max
> >
> > ----- Original Message -----
> > From: "Mark Silva" <ms...@authenex.com>
> > To: "Struts Users Mailing List" <st...@jakarta.apache.org>
> > Sent: Friday, November 01, 2002 3:04 PM
> > Subject: RE: [OT] Run Java App as a Win Service
> >
> >
> > sorry, i was typing too fast in my subject, Web --> Win.  i guess this
> > deadline is making me nervous.  and you noticed my [OT].
> >
> > this is not an application server, this is a java application.
> >
> > -----Original Message-----
> > From: Karr, David [mailto:david.karr@attws.com]
> > Sent: Friday, November 01, 2002 3:02 PM
> > To: Struts Users Mailing List
> > Subject: RE: [OT] Run Java App as a Web Service
> >
> >
> > Let's see.  First of all, this question is only barely relevant to this
> > mailing list.  Second, your subject line talks about something
> completely
> > different from what you describe in your note.  A "web service"
> > has nothing
> > to do with running a Windows application as a service.  Assuming
> > you really
> > meant the latter, I suggest you read the documentation for your
> > application
> > server to determine how to run it as a Windows service.
> >
> > > -----Original Message-----
> > > From: Mark Silva [mailto:msilva@authenex.com]
> > > Sent: Friday, November 01, 2002 2:58 PM
> > > To: Struts Users Mailing List
> > > Subject: [OT] Run Java App as a Web Service
> > >
> > >
> > > ok, i have this new requirement that has just come down today
> > > for a release next week.  these things arren't supposed to
> > > happen but they do!
> > >
> > > the java app i am providing needs to run as a WIN2000 Service.
> > >
> > > has anybody done thid before?  can you point me in the right
> > > direfction?
> > >
> > > thanks,
> > > mark
> > >
> > >
> > > --
> > > To unsubscribe, e-mail:
> > > <ma...@jakarta.apache.org>
> > > For additional commands, e-mail:
> > > <ma...@jakarta.apache.org>
> > >
> >
> > --
> > To unsubscribe, e-mail:
> > <ma...@jakarta.apache.org>
> > For additional commands, e-mail:
> > <ma...@jakarta.apache.org>
> >
> >
> > --
> > To unsubscribe, e-mail:
> > <ma...@jakarta.apache.org>
> > For additional commands, e-mail:
> > <ma...@jakarta.apache.org>
> >
> >
> >
> >
> >
> > --
> > To unsubscribe, e-mail:
> > <ma...@jakarta.apache.org>
> > For additional commands, e-mail:
> > <ma...@jakarta.apache.org>
> >
> >
> > --
> > To unsubscribe, e-mail:
> <ma...@jakarta.apache.org>
> For additional commands, e-mail:
> <ma...@jakarta.apache.org>
>
>
> --
> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: [OT] Run Java App as a Win Service

Posted by Robert Taylor <rt...@mulework.com>.
Andrew, in your experience with JNT did your applications define a
shutdown.method? Was it ever called successfully? I can get JNT to install
my app as an NT service, but when I try and start it, it shuts
down immediately. It appears that it (Windows) never invokes my application
although when I run the application from the command line it runs perfectly.

Any ideas?

robert

> -----Original Message-----
> From: Andrew Hill [mailto:andrew.david.hill@gridnode.com]
> Sent: Saturday, November 02, 2002 11:45 AM
> To: Struts Users Mailing List
> Subject: RE: [OT] Run Java App as a Win Service
>
>
> Ive used a simple freeware program called JNT to run java stuff as windows
> services. Dont know if it can be used on an app server but worth a try.
> http://www.eworksmart.com/JNT/
>
> oops. Just been looking through the links below - one of them points
> (indirectly) to JNT already. Oh well. Guess thats 2 votes?
>
> I dont think this subject is "barely relevant". Sure its not
> struts-specific
> and would be better placed on something like the tomcat list or a
> j2ee list
> but its one of those things that those of us developing struts apps are
> likely to deal with more than occasionally... (I would class it as "almost
> relevant" hehe)
>
> I think Ill need to deal with this requirement soon for the struts app Im
> working on so am also interested in the responses to this question.
>
> -----Original Message-----
> From: Max Cooper [mailto:max@maxcooper.com]
> Sent: Saturday, November 02, 2002 09:43
> To: Struts Users Mailing List
> Subject: Re: [OT] Run Java App as a Win Service
>
>
> Here's a few from a Google search for "Windows service wrapper":
>
> http://wrapper.sourceforge.net/doc/english/introduction.html
> http://pharos.inria.fr/Java/display.jsp?id=c_6232
> http://playstation2.idv.tw/serviceagent/index.php3
>
> -Max
>
> ----- Original Message -----
> From: "Mark Silva" <ms...@authenex.com>
> To: "Struts Users Mailing List" <st...@jakarta.apache.org>
> Sent: Friday, November 01, 2002 3:04 PM
> Subject: RE: [OT] Run Java App as a Win Service
>
>
> sorry, i was typing too fast in my subject, Web --> Win.  i guess this
> deadline is making me nervous.  and you noticed my [OT].
>
> this is not an application server, this is a java application.
>
> -----Original Message-----
> From: Karr, David [mailto:david.karr@attws.com]
> Sent: Friday, November 01, 2002 3:02 PM
> To: Struts Users Mailing List
> Subject: RE: [OT] Run Java App as a Web Service
>
>
> Let's see.  First of all, this question is only barely relevant to this
> mailing list.  Second, your subject line talks about something completely
> different from what you describe in your note.  A "web service"
> has nothing
> to do with running a Windows application as a service.  Assuming
> you really
> meant the latter, I suggest you read the documentation for your
> application
> server to determine how to run it as a Windows service.
>
> > -----Original Message-----
> > From: Mark Silva [mailto:msilva@authenex.com]
> > Sent: Friday, November 01, 2002 2:58 PM
> > To: Struts Users Mailing List
> > Subject: [OT] Run Java App as a Web Service
> >
> >
> > ok, i have this new requirement that has just come down today
> > for a release next week.  these things arren't supposed to
> > happen but they do!
> >
> > the java app i am providing needs to run as a WIN2000 Service.
> >
> > has anybody done thid before?  can you point me in the right
> > direfction?
> >
> > thanks,
> > mark
> >
> >
> > --
> > To unsubscribe, e-mail:
> > <ma...@jakarta.apache.org>
> > For additional commands, e-mail:
> > <ma...@jakarta.apache.org>
> >
>
> --
> To unsubscribe, e-mail:
> <ma...@jakarta.apache.org>
> For additional commands, e-mail:
> <ma...@jakarta.apache.org>
>
>
> --
> To unsubscribe, e-mail:
> <ma...@jakarta.apache.org>
> For additional commands, e-mail:
> <ma...@jakarta.apache.org>
>
>
>
>
>
> --
> To unsubscribe, e-mail:
> <ma...@jakarta.apache.org>
> For additional commands, e-mail:
> <ma...@jakarta.apache.org>
>
>
> --
> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: [OT] Run Java App as a Win Service

Posted by Andrew Hill <an...@gridnode.com>.
Ive used a simple freeware program called JNT to run java stuff as windows
services. Dont know if it can be used on an app server but worth a try.
http://www.eworksmart.com/JNT/

oops. Just been looking through the links below - one of them points
(indirectly) to JNT already. Oh well. Guess thats 2 votes?

I dont think this subject is "barely relevant". Sure its not struts-specific
and would be better placed on something like the tomcat list or a j2ee list
but its one of those things that those of us developing struts apps are
likely to deal with more than occasionally... (I would class it as "almost
relevant" hehe)

I think Ill need to deal with this requirement soon for the struts app Im
working on so am also interested in the responses to this question.

-----Original Message-----
From: Max Cooper [mailto:max@maxcooper.com]
Sent: Saturday, November 02, 2002 09:43
To: Struts Users Mailing List
Subject: Re: [OT] Run Java App as a Win Service


Here's a few from a Google search for "Windows service wrapper":

http://wrapper.sourceforge.net/doc/english/introduction.html
http://pharos.inria.fr/Java/display.jsp?id=c_6232
http://playstation2.idv.tw/serviceagent/index.php3

-Max

----- Original Message -----
From: "Mark Silva" <ms...@authenex.com>
To: "Struts Users Mailing List" <st...@jakarta.apache.org>
Sent: Friday, November 01, 2002 3:04 PM
Subject: RE: [OT] Run Java App as a Win Service


sorry, i was typing too fast in my subject, Web --> Win.  i guess this
deadline is making me nervous.  and you noticed my [OT].

this is not an application server, this is a java application.

-----Original Message-----
From: Karr, David [mailto:david.karr@attws.com]
Sent: Friday, November 01, 2002 3:02 PM
To: Struts Users Mailing List
Subject: RE: [OT] Run Java App as a Web Service


Let's see.  First of all, this question is only barely relevant to this
mailing list.  Second, your subject line talks about something completely
different from what you describe in your note.  A "web service" has nothing
to do with running a Windows application as a service.  Assuming you really
meant the latter, I suggest you read the documentation for your application
server to determine how to run it as a Windows service.

> -----Original Message-----
> From: Mark Silva [mailto:msilva@authenex.com]
> Sent: Friday, November 01, 2002 2:58 PM
> To: Struts Users Mailing List
> Subject: [OT] Run Java App as a Web Service
>
>
> ok, i have this new requirement that has just come down today
> for a release next week.  these things arren't supposed to
> happen but they do!
>
> the java app i am providing needs to run as a WIN2000 Service.
>
> has anybody done thid before?  can you point me in the right
> direfction?
>
> thanks,
> mark
>
>
> --
> To unsubscribe, e-mail:
> <ma...@jakarta.apache.org>
> For additional commands, e-mail:
> <ma...@jakarta.apache.org>
>

--
To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>


--
To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>





--
To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: [OT] Run Java App as a Win Service

Posted by Max Cooper <ma...@maxcooper.com>.
Here's a few from a Google search for "Windows service wrapper":

http://wrapper.sourceforge.net/doc/english/introduction.html
http://pharos.inria.fr/Java/display.jsp?id=c_6232
http://playstation2.idv.tw/serviceagent/index.php3

-Max

----- Original Message -----
From: "Mark Silva" <ms...@authenex.com>
To: "Struts Users Mailing List" <st...@jakarta.apache.org>
Sent: Friday, November 01, 2002 3:04 PM
Subject: RE: [OT] Run Java App as a Win Service


sorry, i was typing too fast in my subject, Web --> Win.  i guess this
deadline is making me nervous.  and you noticed my [OT].

this is not an application server, this is a java application.

-----Original Message-----
From: Karr, David [mailto:david.karr@attws.com]
Sent: Friday, November 01, 2002 3:02 PM
To: Struts Users Mailing List
Subject: RE: [OT] Run Java App as a Web Service


Let's see.  First of all, this question is only barely relevant to this
mailing list.  Second, your subject line talks about something completely
different from what you describe in your note.  A "web service" has nothing
to do with running a Windows application as a service.  Assuming you really
meant the latter, I suggest you read the documentation for your application
server to determine how to run it as a Windows service.

> -----Original Message-----
> From: Mark Silva [mailto:msilva@authenex.com]
> Sent: Friday, November 01, 2002 2:58 PM
> To: Struts Users Mailing List
> Subject: [OT] Run Java App as a Web Service
>
>
> ok, i have this new requirement that has just come down today
> for a release next week.  these things arren't supposed to
> happen but they do!
>
> the java app i am providing needs to run as a WIN2000 Service.
>
> has anybody done thid before?  can you point me in the right
> direfction?
>
> thanks,
> mark
>
>
> --
> To unsubscribe, e-mail:
> <ma...@jakarta.apache.org>
> For additional commands, e-mail:
> <ma...@jakarta.apache.org>
>

--
To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>


--
To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>





--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: [OT] Run Java App as a Win Service

Posted by Hue Holleran <hu...@softwareskills.net>.
Hi Mark,

There may be another way but I like SrvAny that has served us well - a
really nice example of getting and using is given here:
http://yakko.bme.virginia.edu/lab/mercury_as_service.htm

Basically you run InstSrv.exe - using SrvAny.exe to create the service -
hack the registry and the service is run through SrvAny.exe, i.e. any
command line you like - java too, I guess (although never tried it with java
BTW). (There may be an easier and java-specific way of achieving this though
but thought this might help).

Hue.

-----Original Message-----
From: Mark Silva [mailto:msilva@authenex.com]
Sent: 01 November 2002 23:04
To: Struts Users Mailing List
Subject: RE: [OT] Run Java App as a Win Service


sorry, i was typing too fast in my subject, Web --> Win.  i guess this
deadline is making me nervous.  and you noticed my [OT].

this is not an application server, this is a java application.

-----Original Message-----
From: Karr, David [mailto:david.karr@attws.com]
Sent: Friday, November 01, 2002 3:02 PM
To: Struts Users Mailing List
Subject: RE: [OT] Run Java App as a Web Service


Let's see.  First of all, this question is only barely relevant to this
mailing list.  Second, your subject line talks about something completely
different from what you describe in your note.  A "web service" has nothing
to do with running a Windows application as a service.  Assuming you really
meant the latter, I suggest you read the documentation for your application
server to determine how to run it as a Windows service.

> -----Original Message-----
> From: Mark Silva [mailto:msilva@authenex.com]
> Sent: Friday, November 01, 2002 2:58 PM
> To: Struts Users Mailing List
> Subject: [OT] Run Java App as a Web Service
>
>
> ok, i have this new requirement that has just come down today
> for a release next week.  these things arren't supposed to
> happen but they do!
>
> the java app i am providing needs to run as a WIN2000 Service.
>
> has anybody done thid before?  can you point me in the right
> direfction?
>
> thanks,
> mark
>
>
> --
> To unsubscribe, e-mail:
> <ma...@jakarta.apache.org>
> For additional commands, e-mail:
> <ma...@jakarta.apache.org>
>

--
To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>


--
To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>