Dear List!
I have an issue with both tomcat5 and tomcat6 on os x leopard when
trying
to use java 1.6. I started this thread on the tomcat mailing list,
but I think this
is a better place to continue. Please see the details below.
I followed Bill's advice, and got the tarball from
http://markmail.org/message/z7klsse5tylcv5es
Followed the instructions in INSTALL.txt and set JAVA_HOME to
/System/Library/Frameworks/JavaVM.framework/Versions/1.6/Home/
I have the same error, the only difference is, that I have more
detailed info in catalina.err:
20/01/2009 10:23:14 88727 jsvc debug: Using default JVM in /System/
Library/Frameworks/JavaVM.framework/Versions/1.6/Home/../Libraries/
libclient.dylib
20/01/2009 10:23:14 88727 jsvc debug: Attemtping to load library /
System/Library/Frameworks/JavaVM.framework/Versions/1.6/Home/../
Libraries/libclient.dylib
20/01/2009 10:23:14 88727 jsvc error: Cannot dynamically link to /
System/Library/Frameworks/JavaVM.framework/Versions/1.6/Home/../
Libraries/libclient.dylib
20/01/2009 10:23:14 88727 jsvc error: dlopen(/System/Library/
Frameworks/JavaVM.framework/Versions/1.6/Home/../Libraries/
libclient.dylib, 10): no suitable image found. Did find:
/System/Library/Frameworks/JavaVM.framework/Versions/1.6/Home/../
Libraries/libclient.dylib: mach-o, but wrong architecture
20/01/2009 10:23:14 88727 jsvc debug: java_init failed
20/01/2009 10:23:14 88725 jsvc error: Service exit with a return value
of 1
I have an Intel Mac 10.5.6.
Thanks in advance,
Adam Dajka
Begin forwarded message:
From: "Bill Barker" <[email protected]>
Date: 20 January 2009 04:21:15 GMT+01:00
To: [email protected]
Subject: Re: jsvc error with tomcat and java 1.6 on os x
Reply-To: "Tomcat Users List" <[email protected]>
There are some recent fixes to jsvc on OS/X in the commons SVN
repository,
but they haven't been released yet. You could try those and see if it
helps. There is more info from the commons developer's list archive
at
http://markmail.org/message/z7klsse5tylcv5es.
"Adam Dajka" <[email protected]> wrote in message
news:[email protected]...
Dear List!
I have an issue with both tomcat5 and tomcat6 on os x leopard when
trying
to use java 1.6.
When I set JAVA_JVM_VERSION=1.6 in setenv.sh starting tomcat fails.
I get the error message from jsvc into catalina.err:
14/01/2009 13:06:42 1465 jsvc error: Cannot dynamically link to /
System/Library/Frameworks/JavaVM.framework/Versions/1.6/Home/../
Libraries/libclient.dylib
14/01/2009 13:06:42 1465 jsvc error: no additional message
14/01/2009 13:06:42 1464 jsvc error: Service exit with a return
value of
1
jsvc debug says:
Starting Tomcat...19/01/2009 15:45:11 69429 jsvc debug: +-- DUMPING
PARSED COMMAND LINE ARGUMENTS --------------
19/01/2009 15:45:11 69429 jsvc debug: | Detach: True
19/01/2009 15:45:11 69429 jsvc debug: | Show Version: No
19/01/2009 15:45:11 69429 jsvc debug: | Show Help: No
19/01/2009 15:45:11 69429 jsvc debug: | Check Only: Disabled
19/01/2009 15:45:11 69429 jsvc debug: | Stop: False
19/01/2009 15:45:11 69429 jsvc debug: | Wait: 0
19/01/2009 15:45:11 69429 jsvc debug: | Run as service: No
19/01/2009 15:45:11 69429 jsvc debug: | Install service: No
19/01/2009 15:45:11 69429 jsvc debug: | Remove service: No
19/01/2009 15:45:11 69429 jsvc debug: | JVM Name: "null"
19/01/2009 15:45:11 69429 jsvc debug: | Java Home: "/System/
Library/Frameworks/JavaVM.framework/Versions/1.6/Home"
19/01/2009 15:45:11 69429 jsvc debug: | PID File: "/opt/local/
share/java/tomcat6/logs/tomcat5.pid"
19/01/2009 15:45:11 69429 jsvc debug: | User Name: "www"
19/01/2009 15:45:11 69429 jsvc debug: | Extra Options: 7
19/01/2009 15:45:11 69429 jsvc debug: | "-verbose"
19/01/2009 15:45:11 69429 jsvc debug: | "-
Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager"
19/01/2009 15:45:11 69429 jsvc debug: | "-Djava.class.path=:/opt/
local/share/java/tomcat6/bin/bootstrap.jar:/opt/local/share/java/
tomcat6/bin/commons-logging-api.jar"
19/01/2009 15:45:11 69429 jsvc debug: | "-Dcatalina.home=/opt/
local/
share/java/tomcat6"
19/01/2009 15:45:11 69429 jsvc debug: | "-Dcatalina.base=/opt/
local/
share/java/tomcat6"
19/01/2009 15:45:11 69429 jsvc debug: | "-Djava.io.tmpdir=/opt/
local/
share/java/tomcat6/temp"
19/01/2009 15:45:11 69429 jsvc debug: | "-Djava.endorsed.dirs=/opt/
local/share/java/tomcat6/endorsed"
19/01/2009 15:45:11 69429 jsvc debug: | Class Invoked:
"org.apache.catalina.startup.Bootstrap"
19/01/2009 15:45:11 69429 jsvc debug: | Class Arguments: 1
19/01/2009 15:45:11 69429 jsvc debug: | "start"
19/01/2009 15:45:11 69429 jsvc debug:
+-------------------------------------------------------
19/01/2009 15:45:11 69430 jsvc debug: user changed to 'www'
19/01/2009 15:45:11 69429 jsvc debug: User 'www' validated
19/01/2009 15:45:11 69429 jsvc debug: Attempting to locate Java
Home in
/System/Library/Frameworks/JavaVM.framework/Versions/1.6/Home
19/01/2009 15:45:11 69429 jsvc debug: Attempting to locate VM
configuration file /System/Library/Frameworks/JavaVM.framework/
Versions/1.6/Home/jre/lib/jvm.cfg
19/01/2009 15:45:11 69429 jsvc debug: Attempting to locate VM
configuration file /System/Library/Frameworks/JavaVM.framework/
Versions/1.6/Home/lib/jvm.cfg
19/01/2009 15:45:11 69429 jsvc debug: Found VM configuration file
at /
System/Library/Frameworks/JavaVM.framework/Versions/1.6/Home/lib/
jvm.cfg
19/01/2009 15:45:11 69429 jsvc debug: Found VM client definition in
configuration
19/01/2009 15:45:11 69429 jsvc debug: Checking library /System/
Library/
Frameworks/JavaVM.framework/Versions/1.6/Home/../Libraries/
libclient.dylib
19/01/2009 15:45:11 69429 jsvc debug: Found VM jvm definition in
configuration
19/01/2009 15:45:11 69429 jsvc debug: Checking library /System/
Library/
Frameworks/JavaVM.framework/Versions/1.6/Home/../Libraries/
libjvm.dylib
19/01/2009 15:45:11 69429 jsvc debug: Found VM hotspot definition in
configuration
19/01/2009 15:45:11 69429 jsvc debug: Checking library /System/
Library/
Frameworks/JavaVM.framework/Versions/1.6/Home/../Libraries/
libhotspot.dylib
19/01/2009 15:45:11 69429 jsvc debug: Found VM server definition in
configuration
19/01/2009 15:45:11 69429 jsvc debug: Checking library /System/
Library/
Frameworks/JavaVM.framework/Versions/1.6/Home/../Libraries/
libserver.dylib
19/01/2009 15:45:11 69429 jsvc debug: Found VM classic definition in
configuration
19/01/2009 15:45:11 69429 jsvc debug: Checking library /System/
Library/
Frameworks/JavaVM.framework/Versions/1.6/Home/../Libraries/
libclassic.dylib
19/01/2009 15:45:11 69429 jsvc debug: Cannot locate library for VM
classic (skipping)
19/01/2009 15:45:11 69429 jsvc debug: Java Home located in /System/
Library/Frameworks/JavaVM.framework/Versions/1.6/Home
19/01/2009 15:45:11 69429 jsvc debug: +-- DUMPING JAVA HOME
TRUCTURE ------------------------
19/01/2009 15:45:11 69429 jsvc debug: | Java Home: "/System/
Library/Frameworks/JavaVM.framework/Versions/1.6/Home"
19/01/2009 15:45:11 69429 jsvc debug: | Java VM Config.: "/System/
Library/Frameworks/JavaVM.framework/Versions/1.6/Home/lib/jvm.cfg"
19/01/2009 15:45:11 69429 jsvc debug: | Found JVMs: 4
19/01/2009 15:45:11 69429 jsvc debug: | JVM Name: "client"
19/01/2009 15:45:11 69429 jsvc debug: | "/System/
Library/Frameworks/JavaVM.framework/Versions/1.6/Home/../Libraries/
libclient.dylib"
19/01/2009 15:45:11 69429 jsvc debug: | JVM Name: "jvm"
19/01/2009 15:45:11 69429 jsvc debug: | "/System/
Library/Frameworks/JavaVM.framework/Versions/1.6/Home/../Libraries/
libjvm.dylib"
19/01/2009 15:45:11 69429 jsvc debug: | JVM Name: "hotspot"
19/01/2009 15:45:11 69429 jsvc debug: | "/System/
Library/Frameworks/JavaVM.framework/Versions/1.6/Home/../Libraries/
libhotspot.dylib"
19/01/2009 15:45:11 69429 jsvc debug: | JVM Name: "server"
19/01/2009 15:45:11 69429 jsvc debug: | "/System/
Library/Frameworks/JavaVM.framework/Versions/1.6/Home/../Libraries/
libserver.dylib"
19/01/2009 15:45:11 69429 jsvc debug:
+-------------------------------------------------------
19/01/2009 15:45:11 69431 jsvc debug: redirecting stdout to /opt/
local/
share/java/tomcat6/logs/catalina.out and stderr to /opt/local/share/
java/tomcat6/logs/catalina.err
............... giving up.
If this is a jsvc issue, are there any ways to use tomcat without
jsvc?
Regards,
Adam Dajka
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]