commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mladen Turk (Commented) (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (DAEMON-219) prunsrv error 1067 and crash on Windows 7
Date Fri, 04 Nov 2011 22:41:51 GMT

    [ https://issues.apache.org/jira/browse/DAEMON-219?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13144424#comment-13144424
] 

Mladen Turk commented on DAEMON-219:
------------------------------------

Look for yourself:

C:\Users\ADMINI~1\DAEMON~1>ver
Microsoft Windows [Version 6.1.7601]

C:\Users\ADMINI~1\DAEMON~1>java -version
java version "1.6.0_27"
Java(TM) SE Runtime Environment (build 1.6.0_27-b07)
Java HotSpot(TM) 64-Bit Server VM (build 20.2-b06, mixed mode)

C:\Users\ADMINI~1\DAEMON~1>register
C:\Users\ADMINI~1\DAEMON~1>set HOME=C:\Users\ADMINI~1\DAEMON~1\
C:\Users\ADMINI~1\DAEMON~1>set LDE_HOME=C:\Users\ADMINI~1\DAEMON~1\lde_home
C:\Users\ADMINI~1\DAEMON~1>set LDE_CONFIG=C:\Users\ADMINI~1\DAEMON~1\src\test\config
C:\Users\ADMINI~1\DAEMON~1>set PR_HOME=C:\Users\ADMINI~1\DAEMON~1\bin

C:\Users\ADMINI~1\DAEMON~1>"C:\Users\ADMINI~1\DAEMON~1\bin\prunsrv.exe" //IS//Daemon219
  --Dis
playName="Daemon-219"   --Install="C:\Users\ADMINI~1\DAEMON~1\\bin\prunsrv.exe"   --Jvm="\jre\bi
n\server\jvm.dll"   --StartMode=jvm   --StopMode=jvm   --StartClass=test.Daemon219StartService
 --StopClass=test.Daemon219StopService   --StartParams="--config#C:\Users\ADMINI~1\DAEMON~1\src\
test\config"   --Classpath="C:\Users\ADMINI~1\DAEMON~1\lde_home\lib\*"   --JvmOptions=-Xrs
  ++J
vmOptions=-Djava.endorsed.dirs="C:\Users\ADMINI~1\DAEMON~1\lde_home\lib\endorsed"   ++JvmOptions
=-Djavax.xml.transform.TransformerFactory=org.apache.xalan.xsltc.trax.SmartTransformerFactoryImp
l   ++JvmOptions=-Dorg.apache.cxf.Logger=org.apache.cxf.common.logging.Log4jLogger   --LogPath=C
:\Users\ADMINI~1\DAEMON~1\logs   --StdOutput=auto   --StdError=auto   --Type=interactive 
 --Pid
File=pid.txt   --LogLevel=Debug

C:\Users\ADMINI~1\DAEMON~1>bin\prunsrv.exe //TS//Daemon219
args[0] = --config
args[1] = C:\Users\ADMINI~1\DAEMON~1\src\test\config

C:\Users\ADMINI~1\DAEMON~1>bin\prunsrv.exe //VS
Commons Daemon Service Runner version 1.0.7.0/Win64 (Aug  2 2011)
Copyright (c) 2000-2011 The Apache Software Foundation.


I copied prunsrv.exe to you bin directory and modify the register.cmd
to reflect that (only change)

So it works on Windows 2008R2 64-bit (that's server version of Windows7)
Also tested on Windows XP/32-bit
No core dumps. I don't wish to speculate why are you getting one.


However
C:\Users\ADMINI~1\DAEMON~1>net start Daemon219
The Daemon-219 service is starting.
The Daemon-219 service could not be started.

A system error has occurred.
System error 1067 has occurred.
The process terminated unexpectedly.


But that means that the process has ended. It didn't crashed.
The main method should not return until you get stop command.
However you just print arguments and call System.exit(0)

Try with --StartClass test.Daemon219StopService
(Yes I know, but there you have sleep) so you will get:

C:\Users\ADMINI~1\DAEMON~1>net start Daemon219
The Daemon-219 service is starting...
The Daemon-219 service was started successfully.


Regarding DAEMON-219 that's all from me.
                
> prunsrv error 1067 and crash on Windows 7
> -----------------------------------------
>
>                 Key: DAEMON-219
>                 URL: https://issues.apache.org/jira/browse/DAEMON-219
>             Project: Commons Daemon
>          Issue Type: Bug
>          Components: Procrun
>    Affects Versions: 1.0.7
>         Environment: Apache Maven 3.0.3 (r1075438; 2011-02-28 12:31:09-0500)
> Maven home: C:\Java\apache-maven-3.0.3\bin\..
> Java version: 1.6.0_24, vendor: Sun Microsystems Inc.
> Java home: C:\Program Files\Java\jdk1.6.0_24\jre
> Default locale: en_US, platform encoding: Cp1252
> OS name: "windows 7", version: "6.1", arch: "amd64", family: "windows"
>            Reporter: Gary D. Gregory
>            Assignee: Mladen Turk
>             Fix For: 1.0.8
>
>         Attachments: Daemon-219.zip, Daemon-219.zip, Daemon-219.zip, LdeServer3.reg,
NoKey.PNG, SystemLdeService3.txt, WER8D3F.tmp.WERInternalMetadata.xml, WERA3BC.tmp.appcompat.txt,
WERA3BD.tmp.mdmp, commons-daemon.2011-10-03.log, install-lde-service.cmd, ldeservice3-stderr.2011-10-03.log,
ldeservice3-stdout.2011-10-03.log, register.cmd, unregister.cmd
>
>
> I've defined attached cmd file on Windows 7 to install a service.
> I try to run the service with "prunsrv //TS/LdeService3" and I get "Commons Daemon Service
Runner has stopped working"
> Attaching all details.
> Is there more debug logging I can turn on? The current debug output seems minimal.
> This is probably a configuration user error but I cannot tell due to the lack of logging.
> Thank you.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message