Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community Forumsvirgo servie with Apache Daemon (prunsrv.exe)
https://www.eclipse.org/forums/index.php/mv/msg/633884/1227242/#msg_1227242
Has anyone got virgo service installed with Apache Daemon (prunsrv.exe) on Windows.
I have 3.6.2 virgo on Windows 7
and using prunsrv.exe to install service.
Below is batch file that I run to install service
=================================================
set SERVICE_NAME=virgo36
set SERVER_HOME=c:\virgo-3.6
set JAVA_HOME=C:\java
set PR_DESCRIPTION= Virgo Server
set PR_DISPLAYNAME=Virgo Server
REM Service log configuration
set PR_LOGPREFIX=%SERVICE_NAME%
set PR_LOGPATH=C:\virgo-3.6\log
set PR_STDOUTPUT=auto
set PR_STDERROR=auto
set PR_LOGLEVEL=DEBUG
REM Path to java installation
set PR_JVM=c:\java\bin\server\jvm.dll
SET PR_JVMMS=256
SET PR_JVMMX=512
set PR_CLASSPATH=c:\virgo-3.6\lib\org.eclipse.equinox.launcher_1.3.0.v20120308-1358.jar;c:\virgo-3.6\lib\org.eclipse.virgo.kernel.equinox.extensions_3.6.2.RELEASE.jar;c:\virgo-3.6\lib\org.eclipse.virgo.nano.authentication_3.6.2.RELEASE.jar;c:\virgo-3.6\lib\org.eclipse.virgo.nano.shutdown_3.6.2.RELEASE.jar;c:\virgo-3.6\lib\org.eclipse.virgo.util.env_3.6.2.RELEASE.jar;c:\virgo-3.6\plugins\org.eclipse.osgi_3.8.1.v20120830-144521.jar;c:\virgo-3.6\plugins\org.eclipse.equinox.console.ssh_1.0.0.v20120430-1356.jar
REM Startup configuration
set PR_STARTCLASS=org.eclipse.equinox.launcher.Main
set PR_STARTMODE=jvm
set PR_STARTUP=auto
I can start virgo from command line by building long command line( open Command Prompt "Run as Administrator") without any problem and even permission warning.
However, when I try to start service that installed as 'LocalSystem' , I'm getting error
java.io.FileNotFoundException: c:\virgo-3.6\configuration\org.eclipse.virgo.kernel.jmxremote.access.properties (Access is denied)
Any idea what permission should be for org.eclipse.virgo.kernel.jmxremote.access.properties , if I run virgo as a service 'LocalSystem'
Thanks
Gary
]]>Gary Zharzhavsky2014-01-03T23:51:22-00:00Re: virgo servie with Apache Daemon (prunsrv.exe)
https://www.eclipse.org/forums/index.php/mv/msg/633884/1239654/#msg_1239654
I created batch file.
----------------------
set SERVICE_NAME=virgo36
set SERVER_HOME=c:\virgo-3.6
set JAVA_HOME=C:\java
set PR_DESCRIPTION= Virgo Server
set PR_DISPLAYNAME=Virgo Server
REM Service log configuration
set PR_LOGPREFIX=%SERVICE_NAME%
set PR_LOGPATH=C:\virgo-3.6\log
set PR_STDOUTPUT=auto
set PR_STDERROR=auto
set PR_LOGLEVEL=DEBUG
REM Path to java installation
set PR_JVM=c:\java\bin\server\jvm.dll
set PR_CLASSPATH="%SERVER_HOME%\lib\org.eclipse.equinox.launcher_1.3.0.v20120308-1358.jar;%SERVER_HOME%\lib\org.eclipse.virgo.kernel.equinox.extensions_3.6.2.RELEASE.jar;%SERVER_HOME%\lib\org.eclipse.virgo.nano.authentication_3.6.2.RELEASE.jar;%SERVER_HOME%\lib\org.eclipse.virgo.nano.shutdown_3.6.2.RELEASE.jar;%SERVER_HOME%\lib\org.eclipse.virgo.util.env_3.6.2.RELEASE.jar;%SERVER_HOME%\plugins\org.eclipse.osgi_3.8.1.v20120830-144521.jar;%SERVER_HOME%\plugins\org.eclipse.equinox.console.ssh_1.0.0.v20120430-1356.jar;%SERVER_HOME%\lib\org.eclipse.equinox.launcher_1.3.0.v20120308-1358.jar;%SERVER_HOME%\lib\org.eclipse.virgo.kernel.equinox.extensions_3.6.2.RELEASE.jar;%SERVER_HOME%\lib\org.eclipse.virgo.nano.authentication_3.6.2.RELEASE.jar;%SERVER_HOME%\lib\org.eclipse.virgo.nano.shutdown_3.6.2.RELEASE.jar;%SERVER_HOME%\lib\org.eclipse.virgo.util.env_3.6.2.RELEASE.jar;%SERVER_HOME%\plugins\org.eclipse.osgi_3.8.1.v20120830-144521.jar"
REM Startup configuration
set PR_STARTMODE=jvm
set PR_STARTUP=auto
At least I get service starting , virgo fails later whit error that can not find
java.io.FileNotFoundException: plugins/org.eclipse.equinox.cm_1.0.400.v20120319-2029.jar (The system cannot find the path specified)
This is a first bundle in org.eclipse.virgo.kernel.userregion.properties . If I put full path to this plugin it goes further.
I'm wondering how plugin directory is resolved. Is it a way to troubleshoot this problem.
Thanks
Gary ]]>Gary Zharzhavsky2014-02-04T17:57:33-00:00