Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Compiling jk2 for Tomcat 4.1



On Saturday, October 12, 2002, at 12:48 PM, Cyrill R|ttimann wrote:
[snip]

1. jk2 was designed to work well with Apache 2
2. jk2 is not so well tested compared to jk (I think it is still in beta).
jk2 is the default adaptor for Tomcat 4.1 and up.


But jk is very mature and should be used in production system. The reason why I said this is that personally (I'm not representing Apple here :-), I have compiled the jk2 connector but found that there was a seg fault. See the bug report if you are interested.

http://issues.apache.org/bugzilla/show_bug.cgi?id=13419



Having said that, if you still want to try:
1. Go to gnu's website or its mirrors and download libtool (and libtoolize). Configure, make and install. They install in /usr/local/bin by default.
2. Temporarily make /usr/local/bin earlier than /usr/bin in your env's path
3. You can just jump to the jk dir and run buildconf.sh script to generate the 'configure' script.
4. do 'configure --help'
5. follow the instructions

- ./configure --witch-apxs=/usr/sbin/apxs
- make

cc: unrecognized option `-shared'
ld: -L: directory name missing
make[1]: [../../../build/jk2/apache13/mod_jk2.so] Error 1 (ignored)

The fact that you have the '-shared' error here means that the 'buildconf.sh' script didn't do everything right.


which libtoolize <--- this should show /usr/local/bin/libtoolize, if not, modify $PATH
cd foo/bar/jakarta-tomcat-connectors-4.1.12-src/jk/native2
buildconf.sh
./configure --with-apxs=/usr/sbin/apxs

Here's a completely different trajectory you can try:

I just learned that Mac OS X ships with GNU's libtoolize renamed as 'glibtoolize' and libtool named as 'glibtool'. So you can modify buildconf.sh to use glibtoolize and take it from there.

All in all, you still might get seg fault after putting in all these efforts. If you want to use Catalina in production, my personal advise is still to use mod_jk and monitor the mailing list to see when mod_jk2 becomes mature. If it's just for education purposes, then go ahead and have fun with it. Good luck :-)

Han Ming
_______________________________________________
java-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/java-dev
Be sure to read the FAQ http://developer.apple.com/java/faq/ before posting
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: Compiling jk2 for Tomcat 4.1 (From: Cyrill Rüttimann <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.