Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Blocker Blocker
    • Resolution: Fixed
    • Affects Version/s: 1.0.11
    • Fix Version/s: 1.0.12
    • Component/s: Jsvc
    • Labels:
    • Environment:

      centos 6.3, jdk 1.7, 1.0.11

      Description

      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

        Issue Links

          Activity

          Hide
          Andrey Borisov added a comment -

          just checked with version 1.0.10 bundled with tomcat, and the tomcat's version works fine! This is blocker issue as for me!

          Show
          Andrey Borisov added a comment - just checked with version 1.0.10 bundled with tomcat, and the tomcat's version works fine! This is blocker issue as for me!
          Hide
          Sasa Skevin added a comment -

          To make it work for me I had changed code in home.c in two places from:

          if (path == NULL || *path == '\0' || *path == '/') {

          to:

          if (path == NULL || *path == '\0') {

          Sasa

          Show
          Sasa Skevin added a comment - To make it work for me I had changed code in home.c in two places from: if (path == NULL || *path == '\0' || *path == '/') { to: if (path == NULL || *path == '\0') { Sasa
          Hide
          Mladen Turk added a comment -

          This is already fixed issue and fix will be part of next version which should be released pretty soon,

          Show
          Mladen Turk added a comment - This is already fixed issue and fix will be part of next version which should be released pretty soon,
          Hide
          Philippe Le Berre added a comment -

          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
          Show
          Philippe Le Berre added a comment - 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

            People

            • Assignee:
              Unassigned
              Reporter:
              Andrey Borisov
            • Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development