Stuggy,
After setting the account and password properties, did you uninstall
and then reinstall the
service? After starting the service, check the task manager to make
sure it is running as the
correct user.
Another possibility is an environment problem. Try setting your
wrapper.java.command
property to an absolute value to make sure you are running the correct
JVM. It may be
finding a different JVM when running as a service. You can see this if
you run with the
wrapper.debug=true property set.
Cheers,
Leif
struggy wrote:
> Hello,
>
> I have nearly the same problem Williams had:
> http://www.nabble.com/App-runs-as-console-but-not-service-tf1781585.html
>
> but the offered solution did not match.
>
> I?m using wrapper_win32_3.1.2 to install a service with Tomcat 5.5.17 and
> jdk1.5.0_01 on Windows Server 2003.
>
> The Application starts some JMX-MBeans. The wrapper logs when starting from
> console or as service are the same.
>
> Using jconsole to connect to the JMX service only works, when i run from
> console.
> Then the "Connect to Agent" dialog shows:
>
> 6172 org.tanukisoftware.wrapper.WrapperStartStopApp
> org.apache.catalina.startup.Bootstrap 1 startd
> org.apache.catalina.startup.Bootstrap true 1 stopd
>
> When i run the application as service, either using the service manager or
> from the console with -t flag jconsole did not show any entry inside the
> "Connect to Agent" dialog:(
>
> I changed the SYSTEM account to my login account without success. I tried
> both ways: From service manager and with wrapper.ntservice.account
> /wrapper.ntservice.password
>
> Did somebody have another idea what could go wrong?!
>
> Thanks in advance, leif
>
>
>
|