ok, i figured it out. the "KEY" was the "catalina" parameter in the JavaService command:
JavaService.exe -install JBoss30 c:\jdk\javasoft\jre\bin\server\jvm.dll -Djava.class.path=c:\jboss\lib\crimson.jar;c:\jdk\lib\tools.jar;run.jar;c:\server\jars\myserver.jar -start org.jboss.Main -params "catalina" -stop org.jboss.Main -method systemExit -out out.txt -current c:\jboss\bin
I'm attempting to use JavaService to make an NT Service out of an older version of JBoss, namely JBoss 2.4.4.
While I can start the service without issue, stopping the service is causing me no end of grief. Here's the appropriate snippet from my install line (I've added the line breaks for readability):
Now, the error message I get when stopping is
Based on my command-line above, it is because the Shutdown class is in a different classpath, namely %2\lib\ext\jboss.jar;. When I try to use this however, I get all kinds of exceptions on startup.
Sadly, all the JavaService docs out there seem to use JBoss 3.0 and above. Has anyone had any luck using JavaService with older JBoss versions?
we extracted the jar to the bin directory.
this solves the problem.