Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Tomcat/mod_jk/apache under Jaguar

Tomcat/mod_jk/apache under Jaguar
Thread Tools
Fresh-Faced Recruit
Join Date: Aug 2002
Status: Offline
Reply With Quote
Sep 20, 2002, 05:53 PM
 
Does anyone have an idea how to set up mod_jk under Jaguar (10.2)?? Under 10.1 this wasn't a problem, but now for some reason absolutely everything goes wrong
I downloaded the newest version of DLCompat from www.osxgnu.org, and tried it with the newest version of Tomcat (4.1.10), using the connectors sources.
I followed the instructions from http://www.geektimes.com/macintosh/o...t_install.html
and after the command:
apxs -o mod_jk.so -I. -I$JAVA_HOME/Headers -I../jk -DFREEBSD -c *.c ../jk/*.c
I get a whole bunch of compile errors that weren't there under 10.1, such as 'undefined type, found', 'illegal external declaration', etc.
I've tried a bunch of other methods found on the 'net, but nothing really worked out.
Maybe my computer just hates me...

If anyone could be of assistance, I'd be a happy Tomcat developer again

Jerphaes
(Last edited by DrJerph; Sep 20, 2002 at 05:58 PM. )
     
Mac Elite
Join Date: Sep 2000
Location: in front of the keyboard
Status: Offline
Reply With Quote
Sep 20, 2002, 06:22 PM
 
Well, you don't need Apache integration to develop J2EE webapps--that's for sure.

But, I understand you want things nice and tidy.

When I used to use Apache, I found mod_webapp much easier to deal with than mod_jk. Don't they have an even newer way--coyote or something? Have you tried one of those?
signatures are a waste of bandwidth
especially ones with political tripe in them.
     
Fresh-Faced Recruit
Join Date: Aug 2002
Location: Tokyo
Status: Offline
Reply With Quote
Sep 21, 2002, 09:25 PM
 
Originally posted by DrJerph:
Does anyone have an idea how to set up mod_jk under Jaguar (10.2)?? Under 10.1 this wasn't a problem, but now for some reason absolutely everything goes wrong
I downloaded the newest version of DLCompat from www.osxgnu.org, and tried it with the newest version of Tomcat (4.1.10), using the connectors sources.
I followed the instructions from http://www.geektimes.com/macintosh/o...t_install.html
and after the command:
apxs -o mod_jk.so -I. -I$JAVA_HOME/Headers -I../jk -DFREEBSD -c *.c ../jk/*.c
I get a whole bunch of compile errors that weren't there under 10.1, such as 'undefined type, found', 'illegal external declaration', etc.
I've tried a bunch of other methods found on the 'net, but nothing really worked out.
Maybe my computer just hates me...

If anyone could be of assistance, I'd be a happy Tomcat developer again

Jerphaes
I had no end to my troubles with Tomcat under 10.2, regardless of the fact that it had run without problems prior to 10.2.

Yesterday, I upgraded to 10.2.1, and all my problems cleared up. Thus, my suggestion is - if you have not yet done so - try upgrading to 10.2.1.
     
Junior Member
Join Date: Feb 2000
Location: Chicago, IL
Status: Offline
Reply With Quote
Sep 30, 2002, 02:48 AM
 
I have to say this is not at all clear.

No problem getting Tomcat 4.1.12 running once you realize you have to set JAVA_HOME as /usr instead of /System/Library/Frameworks/JavaVM.framework/Home or anything like that. So it works fine on port 8080. The difficult part is the apache integration.

Most of the resources on the subject of Apache integration deal with older combinations of things, even an article on O'Reilly that is dated only a week ago.
http://www.macdevcenter.com/pub/a/ma...tegration.html

Its seems there are 4 versions: jk, jk2, coyote, and webapp. The differences between them are not made clear by anyone as far as I know. Tomcat documentation suggests that jk is deprecated and you should use coyote.

Apple seems to want you to use mod_webapp.
http://developer.apple.com/internet/java/tomcat1.html
which links to a compiled binary for 4.0.4

However there isn't a binary at this moment for the latest Tomcat release to date - tomcat 4.1.12 on jakarta.apache.org. see.....
http://jakarta.apache.org/builds/jak...se/v1.2.0/bin/

there also doesn't appear to be a binary of mod_jk
http://jakarta.apache.org/builds/jak....0/bin/macosx/

OK so lets consider the possibility of compiling it ourselves. The O'Reilly article tells you to get the source release, but for Tomcat 4.0.4 ?!!? Forget that, get the later release sources at
http://jakarta.apache.org/builds/jak...se/v1.2.0/src/

Problem with that is they tell you that it includes some shell scripts for compiling the source which are not there. No problem, the script is published on the page.

Now you have to get some specific libraries necessary for the compile. Follow the link in the article, and the dlcompat (dlcompat-20020606.tar.gz) library is not there. OK try and find it.
only debian packages at http://prdownloads.sourceforge.net/f...n-powerpc/libs
Source available at
http://prdownloads.sourceforge.net/f...in/source/libs but its from 20020413

Further reading pointed me to www.osxgnu.org where an OSX installer can be found ftp://us.osxgnu.org/pub/osxgnu/Libra...3-10.2.pkg.sit
Problem with this is it doesn't give you dlfcn.c only dlfcn.h
I don't know quite enough to know what to do about this.

Also, the link mentioned here is not working, though it was working yesterday. http://www.geektimes.com/macintosh/o...t_install.html
though it was a tad old anyhow, being dated may 23 2001

Lastly, I thought I would just give the binaries available for webapp and jk a try using the appropriate configuration even though they were older (tomcat 4.0.4 and probably pre-10.2). No luck.

Any thoughts?
     
Fresh-Faced Recruit
Join Date: Apr 1999
Location: Vancouver BC, Canada
Status: Offline
Reply With Quote
Mar 12, 2003, 10:03 PM
 
Any luck getting this to work?

I've got the added headache of attempting this on os x server where there are multiple httpd.conf files...

Apache and Tomcat just don't seem to want to talk to each other..
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 01:48 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2