commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Amos Anderson <amos.ander...@protabit.com>
Subject Re: [daemon] Can't start jvsc on OSX 10.8
Date Fri, 14 Feb 2014 17:02:32 GMT
Thanks for the hint, Ian, and thanks for your patches!

Amos.



On Feb 13, 2014, at 6:33 PM, Ian Emmons <ian@emmons.mobi> wrote:

> This bug (#281, see URL below) has been fixed and the fix has been committed.  However,
there has been no release since that time.
> 
> https://issues.apache.org/jira/browse/DAEMON-281
> 
> 
> On Feb 13, 2014, at 2:30 PM, Amos Anderson <amos.anderson@protabit.com> wrote:
>> Hello --
>> 
>> I'm trying to start tomcat 7.0.50 on my OSX 10.8 machine following the instructions
here:
>> http://tomcat.apache.org/tomcat-7.0-doc/setup.html#Unix_daemon
>> 
>> Version 1.0.15 of the commons daemon was bundled with tomcat. I built jsvc with this
command:
>> sudo ./configure --with-java=/Library/Java/JavaVirtualMachines/jdk1.7.0_51.jdk/Contents/Home
>> 
>> and then I'm trying to use the daemon.sh script to start the service. My catalina
log file says:
>> 
>> Cannot find any VM in Java Home /Library/Java/JavaVirtualMachines/jdk1.7.0_51.jdk/Contents/Home
>> Cannot locate JVM library file
>> java_init failed
>> Service exit with a return value of 1
>> 
>> 
>> So I passed the -debug flag to jsvc to see what's happening:
>> 
>> sudo ./daemon.sh --tomcat-user _www --java-home /Library/Java/JavaVirtualMachines/jdk1.7.0_51.jdk/Contents/Home
start
>> 
>> Output is pasted below. It's clear that the problem is that the layout of the directories
is not what jsvc is expecting:
>> 
>> /Library/Java/JavaVirtualMachines/jdk1.7.0_51.jdk/Contents> ls -l
>> total 8
>> drwxrwxr-x   3 root  wheel   102B Feb 13 09:31 MacOS/
>> drwxrwxr-x  15 root  wheel   510B Dec 18 19:16 Home/
>> -rw-rw-r--   1 root  wheel   1.5K Dec 18 19:13 Info.plist
>> 
>> 
>> Any help?
>> 
>> Thanks!
>> Amos.
>> 
>> 
>> 
>> 
>> 
>> /usr/local/apache-tomcat-7.0.50/bin> sudo ./daemon.sh --tomcat-user _www --java-home
/Library/Java/JavaVirtualMachines/jdk1.7.0_51.jdk/Contents/Home start
>> +-- DUMPING PARSED COMMAND LINE ARGUMENTS --------------
>> | Detach:          True
>> | Show Version:    No
>> | Show Help:       No
>> | Check Only:      Disabled
>> | Stop:            False
>> | Wait:            10
>> | Run as service:  No
>> | Install service: No
>> | Remove service:  No
>> | JVM Name:        "null"
>> | Java Home:       "/Library/Java/JavaVirtualMachines/jdk1.7.0_51.jdk/Contents/Home"
>> | PID File:        "/usr/local/apache-tomcat-7.0.50/logs/catalina-daemon.pid"
>> | User Name:       "_www"
>> | Extra Options:   7
>> |   "-Djava.class.path=/usr/local/apache-tomcat-7.0.50/bin/bootstrap.jar:/usr/local/apache-tomcat-7.0.50/bin/commons-daemon.jar:/usr/local/apache-tomcat-7.0.50/bin/tomcat-juli.jar"
>> |   "-Djava.util.logging.config.file=/usr/local/apache-tomcat-7.0.50/conf/logging.properties"
>> |   "-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager"
>> |   "-Djava.endorsed.dirs="
>> |   "-Dcatalina.base=/usr/local/apache-tomcat-7.0.50"
>> |   "-Dcatalina.home=/usr/local/apache-tomcat-7.0.50"
>> |   "-Djava.io.tmpdir=/usr/local/apache-tomcat-7.0.50/temp"
>> | Class Invoked:   "org.apache.catalina.startup.Bootstrap"
>> | Class Arguments: 0
>> +-------------------------------------------------------
>> user changed to '_www'
>> User '_www' validated
>> Attempting to locate Java Home in /Library/Java/JavaVirtualMachines/jdk1.7.0_51.jdk/Contents/Home
>> Attempting to locate VM configuration file /Library/Java/JavaVirtualMachines/jdk1.7.0_51.jdk/Contents/Home/jre/lib/jvm.cfg
>> Found VM configuration file at /Library/Java/JavaVirtualMachines/jdk1.7.0_51.jdk/Contents/Home/jre/lib/jvm.cfg
>> Found VM server definition in configuration
>> Checking library /Library/Java/JavaVirtualMachines/jdk1.7.0_51.jdk/Contents/Home/../Libraries/libserver.dylib
>> Cannot locate library for VM server (skipping)
>> Found VM client definition in configuration
>> Checking library /Library/Java/JavaVirtualMachines/jdk1.7.0_51.jdk/Contents/Home/../Libraries/libclient.dylib
>> Cannot locate library for VM client (skipping)
>> Found VM hotspot definition in configuration
>> Checking library /Library/Java/JavaVirtualMachines/jdk1.7.0_51.jdk/Contents/Home/../Libraries/libhotspot.dylib
>> Cannot locate library for VM hotspot (skipping)
>> Found VM classic definition in configuration
>> Checking library /Library/Java/JavaVirtualMachines/jdk1.7.0_51.jdk/Contents/Home/../Libraries/libclassic.dylib
>> Cannot locate library for VM classic (skipping)
>> Found VM native definition in configuration
>> Checking library /Library/Java/JavaVirtualMachines/jdk1.7.0_51.jdk/Contents/Home/../Libraries/libnative.dylib
>> Cannot locate library for VM native (skipping)
>> Found VM green definition in configuration
>> Checking library /Library/Java/JavaVirtualMachines/jdk1.7.0_51.jdk/Contents/Home/../Libraries/libgreen.dylib
>> Cannot locate library for VM green (skipping)
>> Java Home located in /Library/Java/JavaVirtualMachines/jdk1.7.0_51.jdk/Contents/Home
>> +-- DUMPING JAVA HOME STRUCTURE ------------------------
>> | Java Home:       "/Library/Java/JavaVirtualMachines/jdk1.7.0_51.jdk/Contents/Home"
>> | Java VM Config.: "/Library/Java/JavaVirtualMachines/jdk1.7.0_51.jdk/Contents/Home/jre/lib/jvm.cfg"
>> | Found JVMs:      0
>> +-------------------------------------------------------
>> wait_child 19453
>> redirecting stdout to /usr/local/apache-tomcat-7.0.50/logs/catalina-daemon.out and
stderr to &1
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
>> For additional commands, e-mail: user-help@commons.apache.org
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
> For additional commands, e-mail: user-help@commons.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
For additional commands, e-mail: user-help@commons.apache.org


Mime
View raw message