Developer Forums relocated!

Need help with Apple Developer tools and technologies? Want to share information with other developers and Apple engineers? Visit Developer Forums at Apple.

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

jsvc / java 1.6 / tomcat 6 / snow leopard

Hi,

i tried to install tomcat 6 following this instruction:

http://siark.wordpress.com/2010/09/13/installing-tomcat-6-on-os-x-snow-leopard-w ith-jsvc-and-launchd/

Everything works fine but when i try to start tomcat i get the following error:

10/11/2010 21:55:25 193 jsvc error: Cannot dynamically link to /Library/Java/Ho\
me/../Libraries/libclient.dylib
10/11/2010 21:55:25 193 jsvc error: dlopen(/Library/Java/Home/../Libraries/libc\
lient.dylib, 10): no suitable image found. Did find:
/Library/Java/Home/../Libraries/libclient.dylib: mach-o, but wrong arch\
itecture
10/11/2010 21:55:25 192 jsvc error: Service exit with a return value of 1

Could not find anything related to that problem.

Any help would be great
Helmut

MacBook Pro Intel, Mac OS X (10.6.4), Java(TM) SE Runtime Environment (build 1.6.0_22-b04-307-10M3261) Java HotSpot(TM) 64-Bit Server VM (

Posted on Nov 10, 2010 1:16 PM

Reply
Question marked as Best reply

Posted on Nov 10, 2010 2:14 PM

Remove " -arch x86_64" from your build instructions and it should work.
4 replies

May 1, 2012 1:39 PM in response to hel-d

I have almost the exact same error as the OP:

Switching umask back to 022 from 077

Using default JVM in /Library/Java/Home/../Libraries/libclient.dylib

Attemtping to load library /Library/Java/Home/../Libraries/libclient.dylib

Cannot dynamically link to /Library/Java/Home/../Libraries/libclient.dylib

dlopen(/Library/Java/Home/../Libraries/libclient.dylib, 10): no suitable image found. Did find:

/Library/Java/Home/../Libraries/libclient.dylib: mach-o, but wrong architecture

java_init failed

Service exit with a return value of 1


But I didn't use that -arch flag. I built jsvc using instructions from here.

./configure --with-java=/System/Library/Frameworks/JavaVM.framework/


Do you know what the problem could be?

May 25, 2012 9:37 AM in response to spookybathtub

I just had the same problem and added these lines to my daemon (tomcat.sh) to get it to work:


-jvm server \
-procname Tomcat7 \


this came from the following post which pointed out that default "client" jvm is 32 bit so you have to use the server jvm to get 64 bit library.


here is the post that helped me with the same problem:

http://pablotips.blogspot.com/p/things-that-went-wrong.html#link1


good luck.

jsvc / java 1.6 / tomcat 6 / snow leopard

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.