[
https://issues.apache.org/jira/browse/DAEMON-335?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15636423#comment-15636423
]
Volker Berlin commented on DAEMON-335:
--------------------------------------
Which type of sample do you want? Do you want a java source file? Or a jar
file? Or a command line for creating the service?
I think the main difference to a simple sample and the complex product tomcat
is that tomcat does not return the main thread. Can this the cause of
terminating?
I have try with tomcat and it work like you described. If I only change the
classpath, start class and working dir to my server then it does not work. Any
ideas?
> prunsrv does not start with jvm mode
> ------------------------------------
>
> Key: DAEMON-335
> URL: https://issues.apache.org/jira/browse/DAEMON-335
> Project: Commons Daemon
> Issue Type: Bug
> Components: Procrun
> Affects Versions: 1.0.11, 1.0.12, 1.0.13, 1.0.14, 1.0.15
> Environment: Windows 8.1 with Java 8 64bit
> Reporter: Volker Berlin
> Priority: Critical
>
> If I start my service in the jvm mode then it terminate immediate. in the log
> I see:
> [info] ( prunsrv.c:1127) [ 4060] Starting service...
> [debug] ( javajni.c:233 ) [ 4060] loading jvm 'C:\jre\bin\server\jvm.dll'
> [debug] ( javajni.c:704 ) [ 5972] Jvm Option[0] -Djava.class.path=foo.jar
> [debug] ( javajni.c:704 ) [ 5972] Jvm Option[1] exit
> [debug] ( javajni.c:941 ) [ 5972] Java Worker thread started com/foo/Foo:main
> [debug] ( javajni.c:471 ) [ 5404] Exit hook with exit code 1
> ---------------------
> If I start it from the console then I see then I see:
> Could not find or load main class exit
> --------------------
> The problem occur since version 1.11. With version 1.10 all is working. It is
> related to DAEMON-244.
> A workaround is to use the Java mode instead of the jvm mode.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)