[jira] [Commented] (DAEMON-272) jsvc ignores -home option

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Commented] (DAEMON-272) jsvc ignores -home option

ASF GitHub Bot (Jira)

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

Philippe Le Berre commented on DAEMON-272:
------------------------------------------

Same issue on OS X (10.8), works with 1.0.10 and fails with 1.0.11

-- 1.0.10 --

+-- DUMPING PARSED COMMAND LINE ARGUMENTS --------------
| Detach:          True
| Show Version:    No
| Show Help:       No
| Check Only:      Disabled
| Stop:            False
| Wait:            0
| Run as service:  No
| Install service: No
| Remove service:  No
| JVM Name:        "server"
| Java Home:       "null"
| PID File:        "/opt/csmcp/var/run/csmcp.pid"
| User Name:       "null"
| Extra Options:   10
|   "-Xms1024M"
|   "-Xmx2048M"
|   "-Xss2M"
|   "-XX:+OptimizeStringConcat"
|   "-XX:+UseCompressedStrings"
|   "-Djava.library.path=/opt/csmcp/lib"
|   "-Dapps.properties=/Users/rplb/code/csmcp/trunk/apps.properties"
|   "-Djava.awt.headless=true"
|   "-Dfile.encoding=UTF-8"
...
| Class Invoked:   "ch.consulare.csmcp.Main"
| Class Arguments: 0
+-------------------------------------------------------
Home not specified on command line, using environment
Attempting to locate Java Home in /Library/Java/JavaVirtualMachines/1.6.0_33-b03-424.jdk/Contents/Home
Attempting to locate VM configuration file /Library/Java/JavaVirtualMachines/1.6.0_33-b03-424.jdk/Contents/Home/jre/lib/jvm.cfg
Attempting to locate VM configuration file /Library/Java/JavaVirtualMachines/1.6.0_33-b03-424.jdk/Contents/Home/lib/jvm.cfg
Found VM configuration file at /Library/Java/JavaVirtualMachines/1.6.0_33-b03-424.jdk/Contents/Home/lib/jvm.cfg
Found VM client definition in configuration
Checking library /Library/Java/JavaVirtualMachines/1.6.0_33-b03-424.jdk/Contents/Home/../Libraries/libclient.dylib
Found VM jvm definition in configuration
Checking library /Library/Java/JavaVirtualMachines/1.6.0_33-b03-424.jdk/Contents/Home/../Libraries/libjvm.dylib
Found VM hotspot definition in configuration
Checking library /Library/Java/JavaVirtualMachines/1.6.0_33-b03-424.jdk/Contents/Home/../Libraries/libhotspot.dylib
Found VM server definition in configuration
Checking library /Library/Java/JavaVirtualMachines/1.6.0_33-b03-424.jdk/Contents/Home/../Libraries/libserver.dylib
Found VM classic definition in configuration
Checking library /Library/Java/JavaVirtualMachines/1.6.0_33-b03-424.jdk/Contents/Home/../Libraries/libclassic.dylib
Cannot locate library for VM classic (skipping)
Java Home located in /Library/Java/JavaVirtualMachines/1.6.0_33-b03-424.jdk/Contents/Home
+-- DUMPING JAVA HOME STRUCTURE ------------------------
| Java Home:       "/Library/Java/JavaVirtualMachines/1.6.0_33-b03-424.jdk/Contents/Home"
| Java VM Config.: "/Library/Java/JavaVirtualMachines/1.6.0_33-b03-424.jdk/Contents/Home/lib/jvm.cfg"
| Found JVMs:      4
| JVM Name:        "client"
|                  "/Library/Java/JavaVirtualMachines/1.6.0_33-b03-424.jdk/Contents/Home/../Libraries/libclient.dylib"
| JVM Name:        "jvm"
|                  "/Library/Java/JavaVirtualMachines/1.6.0_33-b03-424.jdk/Contents/Home/../Libraries/libjvm.dylib"
| JVM Name:        "hotspot"
|                  "/Library/Java/JavaVirtualMachines/1.6.0_33-b03-424.jdk/Contents/Home/../Libraries/libhotspot.dylib"
| JVM Name:        "server"
|                  "/Library/Java/JavaVirtualMachines/1.6.0_33-b03-424.jdk/Contents/Home/../Libraries/libserver.dylib"
+-------------------------------------------------------


---- 1.0.11 ---

+-- DUMPING PARSED COMMAND LINE ARGUMENTS --------------
| Detach:          True
| Show Version:    No
| Show Help:       No
| Check Only:      Disabled
| Stop:            False
| Wait:            0
| Run as service:  No
| Install service: No
| Remove service:  No
| JVM Name:        "server"
| Java Home:       "/Library/Java/JavaVirtualMachines/1.6.0_33-b03-424.jdk/Contents/Home"
| PID File:        "/opt/ESIS/var/run/esis.pid"
| User Name:       "null"
| Extra Options:   11
|   "-verbose"
|   "-Xms1024M"
|   "-Xmx2048M"
|   "-Xss2M"
|   "-XX:+OptimizeStringConcat"
|   "-XX:+UseCompressedStrings"
|   "-Djava.library.path=/opt/esis/lib"
|   "-Dapps.properties=/Users/rplb/code/esis/main/apps.properties"
|   "-Djava.awt.headless=true"
|   "-Dfile.encoding=UTF-8"
...
| Class Invoked:   "com.entelience.EsisDaemon"
| Class Arguments: 0
+-------------------------------------------------------
Home not specified on command line, using environment
Home not on command line or in environment, searching
Attempting to locate Java Home in /System/Library/Frameworks/JavaVM.framework/Home
Path /System/Library/Frameworks/JavaVM.framework/Home is not a directory
Attempting to locate Java Home in /System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Home/
Path /System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Home/ is not a directory
Cannot locate Java Home

               

> jsvc ignores -home option
> -------------------------
>
>                 Key: DAEMON-272
>                 URL: https://issues.apache.org/jira/browse/DAEMON-272
>             Project: Commons Daemon
>          Issue Type: Bug
>          Components: Jsvc
>    Affects Versions: 1.0.11
>         Environment: centos 6.3, jdk 1.7, 1.0.11
>            Reporter: Andrey Borisov
>            Priority: Blocker
>              Labels: jdk1.7
>             Fix For: 1.0.12
>
>
> jsvc ignores the -home option.
> +-- DUMPING PARSED COMMAND LINE ARGUMENTS --------------
> | Detach:          False
> | Show Version:    Yes
> | Show Help:       No
> | Check Only:      Disabled
> | Stop:            False
> | Wait:            0
> | Run as service:  No
> | Install service: No
> | Remove service:  No
> | JVM Name:        "server"
> | Java Home:       "/nfs/jdk/jdk1.7"
> | PID File:        "/tmp/casino-eai-uuid123.pid"
> | User Name:       "root"
> | Extra Options:   18
> As you can see the passed argument is /nfs/jdk/jdk1.7, however jsvc detects default JDK:
> Home not specified on command line, using environment
> Home not on command line or in environment, searching
> Attempting to locate Java Home in /usr/java
> Path /usr/java is not a directory
> Attempting to locate Java Home in /usr/local/java
> Path /usr/local/java is not a directory
> Attempting to locate Java Home in /usr/lib/jvm/default-java
> Path /usr/lib/jvm/default-java is not a directory
> Attempting to locate Java Home in /usr/lib/jvm/java
> Path /usr/lib/jvm/java is not a directory
> Attempting to locate Java Home in /etc/alternatives/java_sdk
> Path /etc/alternatives/java_sdk is not a directory
> Attempting to locate Java Home in /etc/alternatives/jre
> Attempting to locate VM configuration file /etc/alternatives/jre/jre/lib/jvm.cfg
> Attempting to locate VM configuration file /etc/alternatives/jre/lib/jvm.cfg
> Attempting to locate VM configuration file /etc/alternatives/jre/jre/lib/amd64/jvm.cfg
> Attempting to locate VM configuration file /etc/alternatives/jre/lib/amd64/jvm.cfg
> Found VM configuration file at /etc/alternatives/jre/lib/amd64/jvm.cfg
> Found VM server definition in configuration
> Checking library /etc/alternatives/jre/jre/lib/amd64/server/libjvm.so
> Checking library /etc/alternatives/jre/lib/amd64/server/libjvm.so
> Found VM client definition in configuration
> Checking library /etc/alternatives/jre/jre/lib/amd64/client/libjvm.so
> Checking library /etc/alternatives/jre/lib/amd64/client/libjvm.so
> Cannot locate library for VM client (skipping)
> Found VM hotspot definition in configuration
> Checking library /etc/alternatives/jre/jre/lib/amd64/hotspot/libjvm.so
> Checking library /etc/alternatives/jre/lib/amd64/hotspot/libjvm.so
> Cannot locate library for VM hotspot (skipping)
> Found VM classic definition in configuration
> Checking library /etc/alternatives/jre/jre/lib/amd64/classic/libjvm.so
> Checking library /etc/alternatives/jre/lib/amd64/classic/libjvm.so
> Cannot locate library for VM classic (skipping)
> Found VM native definition in configuration
> Checking library /etc/alternatives/jre/jre/lib/amd64/native/libjvm.so
> Checking library /etc/alternatives/jre/lib/amd64/native/libjvm.so
> Cannot locate library for VM native (skipping)
> Found VM green definition in configuration
> Checking library /etc/alternatives/jre/jre/lib/amd64/green/libjvm.so
> Checking library /etc/alternatives/jre/lib/amd64/green/libjvm.so
> Cannot locate library for VM green (skipping)
> Found VM jamvm definition in configuration
> Checking library /etc/alternatives/jre/jre/lib/amd64/jamvm/libjvm.so
> Checking library /etc/alternatives/jre/lib/amd64/jamvm/libjvm.so
> Cannot locate library for VM jamvm (skipping)
> Found VM cacao definition in configuration
> Checking library /etc/alternatives/jre/jre/lib/amd64/cacao/libjvm.so
> Checking library /etc/alternatives/jre/lib/amd64/cacao/libjvm.so
> Cannot locate library for VM cacao (skipping)
> Found VM zero definition in configuration
> Checking library /etc/alternatives/jre/jre/lib/amd64/zero/libjvm.so
> Checking library /etc/alternatives/jre/lib/amd64/zero/libjvm.so
> Cannot locate library for VM zero (skipping)
> Found VM shark definition in configuration
> Checking library /etc/alternatives/jre/jre/lib/amd64/shark/libjvm.so
> Checking library /etc/alternatives/jre/lib/amd64/shark/libjvm.so
> Cannot locate library for VM shark (skipping)
> Java Home located in /etc/alternatives/jre

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira