|
From: Mehul N. S. <meh...@gm...> - 2006-11-10 21:58:05
|
'allo,
I came across JWS a couple of days ago because I was looking for a way to
start up Apache Geronimo as a service on Windows XP Pro. It took me a couple
of days to figure out the wrapper.conf that I had come across on Google, and
using the documentation on the JWS website, have managed to get things to the
point where I can start Geronimo for the console.
Trying to start it as a service though does not seem to be working. It
just seems to stop unexpectedly. I am not sure if it is JWS, or Geronimo or
WinXP. I am attaching my conf file for wrapper (geronimo.conf), and can
provide logs if needed.
Here is what I do to start the service:
wrapper.exe -t ..\conf\geronimo.conf
which does tell me that it started successfully. Then when I do a query
wrapper.exe -q ..\conf\geronimo.conf
it shows that the service is not running. Doing a "net start" to see
what services are running also does not show the service as running. Geronimo
takes a little while to start up, so I have already set the time-out delay
settings that I gathered from the documentation. Doesn't seem to be related to
that. Anyway to get information as to what is happening when the service is
starting ?
cheers,
mehul
--
Mehul N. Sanghvi
email: meh...@gm...
|
|
From: Leif M. <le...@ta...> - 2006-11-10 22:49:59
|
Mehul,
The best place to look for the cause is your wrapper.log file. In
most cases, the
problem is pretty obvious. I am not able to make many guesses without
seeing your
geronimo.conf file. (It wasn't attached).
If the application is working correctly in console mode, but failing
as a service, the
cause is most likely an environment problem. The most common causes are
due to
differences in the PATH and JAVA_HOME environment variables. When running
as a console, you will be running as the user you are logged in as.
When running as
a service however, you will be running as the SYSTEM user by default.
If you set wrapper.debug=true in your conf file, you will get even
more detailed info
in your wrapper.log file.
Cheers,
Leif
Mehul N. Sanghvi wrote:
> 'allo,
>
> I came across JWS a couple of days ago because I was looking for a way to
> start up Apache Geronimo as a service on Windows XP Pro. It took me a couple
> of days to figure out the wrapper.conf that I had come across on Google, and
> using the documentation on the JWS website, have managed to get things to the
> point where I can start Geronimo for the console.
>
> Trying to start it as a service though does not seem to be working. It
> just seems to stop unexpectedly. I am not sure if it is JWS, or Geronimo or
> WinXP. I am attaching my conf file for wrapper (geronimo.conf), and can
> provide logs if needed.
>
> Here is what I do to start the service:
>
>
> wrapper.exe -t ..\conf\geronimo.conf
>
> which does tell me that it started successfully. Then when I do a query
>
> wrapper.exe -q ..\conf\geronimo.conf
>
> it shows that the service is not running. Doing a "net start" to see
> what services are running also does not show the service as running. Geronimo
> takes a little while to start up, so I have already set the time-out delay
> settings that I gathered from the documentation. Doesn't seem to be related to
> that. Anyway to get information as to what is happening when the service is
> starting ?
>
>
> cheers,
>
> mehul
>
>
|
|
From: Mehul N. S. <meh...@gm...> - 2006-11-11 01:54:21
Attachments:
wrapper-geronimo.log
wrapper-geronimo.conf
|
Leif,
Sorry about that. I've attached my wrapper-geronimo.conf file and am
also including my wrapper-geronimo.log file with the wrapper.debug=true
property set. The wrapper-geronimo.log file has a 'wrapper -t' followed by a
'wrapper -q' followed by a 'wrapper -c'. Despite having
wrapper.logfile.loglevel=DEBUG, I did not get any DEBUG information when I was
starting the service using 'wrapper -t'.
How do I set environment variables for the service ? I don't think I
saw anything in the documentation about a property to do that.
cheers,
mehul
Leif Mortenson said the following on 11/10/2006 5:49 PM:
> Mehul,
> The best place to look for the cause is your wrapper.log file. In
> most cases, the
> problem is pretty obvious. I am not able to make many guesses without
> seeing your
> geronimo.conf file. (It wasn't attached).
>
> If the application is working correctly in console mode, but failing
> as a service, the
> cause is most likely an environment problem. The most common causes are
> due to
> differences in the PATH and JAVA_HOME environment variables. When running
> as a console, you will be running as the user you are logged in as.
> When running as
> a service however, you will be running as the SYSTEM user by default.
>
> If you set wrapper.debug=true in your conf file, you will get even
> more detailed info
> in your wrapper.log file.
>
> Cheers,
> Leif
>
> Mehul N. Sanghvi wrote:
>> 'allo,
>>
>> I came across JWS a couple of days ago because I was looking for
>> a way to start up Apache Geronimo as a service on Windows XP Pro. It
>> took me a couple of days to figure out the wrapper.conf that I had
>> come across on Google, and using the documentation on the JWS website,
>> have managed to get things to the point where I can start Geronimo for
>> the console.
>>
>> Trying to start it as a service though does not seem to be
>> working. It just seems to stop unexpectedly. I am not sure if it is
>> JWS, or Geronimo or WinXP. I am attaching my conf file for wrapper
>> (geronimo.conf), and can provide logs if needed.
>>
>> Here is what I do to start the service:
>>
>>
>> wrapper.exe -t ..\conf\geronimo.conf
>>
>> which does tell me that it started successfully. Then when I
>> do a query
>>
>> wrapper.exe -q ..\conf\geronimo.conf
>>
>> it shows that the service is not running. Doing a "net start"
>> to see what services are running also does not show the service as
>> running. Geronimo takes a little while to start up, so I have already
>> set the time-out delay settings that I gathered from the
>> documentation. Doesn't seem to be related to that. Anyway to get
>> information as to what is happening when the service is starting ?
>>
>>
>> cheers,
>>
>> mehul
>>
>>
>
>
--
Mehul N. Sanghvi
email: meh...@gm...
|
|
From: Mehul N. S. <meh...@gm...> - 2006-11-12 16:43:55
|
Leif,
I was able to get it started by increasing the wrapper.startup.timeout and
wrapper.startup.delay.service to both be 300. This seems to have solved the
problem as far as I can tell. That along with a bunch of permission type problems.
cheers,
mehul
Leif Mortenson said the following on 11/10/2006 5:49 PM:
> Mehul,
> The best place to look for the cause is your wrapper.log file. In
> most cases, the
> problem is pretty obvious. I am not able to make many guesses without
> seeing your
> geronimo.conf file. (It wasn't attached).
>
> If the application is working correctly in console mode, but failing
> as a service, the
> cause is most likely an environment problem. The most common causes are
> due to
> differences in the PATH and JAVA_HOME environment variables. When running
> as a console, you will be running as the user you are logged in as.
> When running as
> a service however, you will be running as the SYSTEM user by default.
>
> If you set wrapper.debug=true in your conf file, you will get even
> more detailed info
> in your wrapper.log file.
>
> Cheers,
> Leif
>
> Mehul N. Sanghvi wrote:
>> 'allo,
>>
>> I came across JWS a couple of days ago because I was looking for
>> a way to start up Apache Geronimo as a service on Windows XP Pro. It
>> took me a couple of days to figure out the wrapper.conf that I had
>> come across on Google, and using the documentation on the JWS website,
>> have managed to get things to the point where I can start Geronimo for
>> the console.
>>
>> Trying to start it as a service though does not seem to be
>> working. It just seems to stop unexpectedly. I am not sure if it is
>> JWS, or Geronimo or WinXP. I am attaching my conf file for wrapper
>> (geronimo.conf), and can provide logs if needed.
>>
>> Here is what I do to start the service:
>>
>>
>> wrapper.exe -t ..\conf\geronimo.conf
>>
>> which does tell me that it started successfully. Then when I
>> do a query
>>
>> wrapper.exe -q ..\conf\geronimo.conf
>>
>> it shows that the service is not running. Doing a "net start"
>> to see what services are running also does not show the service as
>> running. Geronimo takes a little while to start up, so I have already
>> set the time-out delay settings that I gathered from the
>> documentation. Doesn't seem to be related to that. Anyway to get
>> information as to what is happening when the service is starting ?
>>
>>
>> cheers,
>>
>> mehul
>>
>>
>
>
--
Mehul N. Sanghvi
email: meh...@gm...
|