dcsimg
error when loading mod_jk2.so on linux red-hat
4 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   giorgia_grillo
Posted On:   Wednesday, January 28, 2004 03:02 AM

Hy guys,
I'm still trying to connect Apache and Tomcat using mod_jk2 and ajp13.
I made progresses however now I get this error when starting apache:

-----------------------------

Avvio di httpd: Syntax error on line 4
of /var/tomcat4/conf/auto/mod_jk.conf:

Cannot load /etc/httpd/modules/mod_jk2.so into
server: /etc/httpd/modules/mod_jk2.so: undefined symbol:

ap_table_get

-----------------------------

Any idea what have I to do? ...I'm going nut!!!!!Please help

Re: error when loading mod_jk2.so on linux red-hat

Posted By:   Ed_Yu  
Posted On:   Friday, February 6, 2004 12:03 PM

Esentially, if you use Apache out of the box, it is compiled statically. That is, your mod_jk2 build will not work if you try to have apache load the mod_jk2.so. You need to do one of the following:

1) rebuild apache using --enable-so
2) rebuild apache with mod_jk2 statically compiled into apache

Re: error when loading mod_jk2.so on linux red-hat

Posted By:   Kevan_Wilding  
Posted On:   Thursday, February 5, 2004 03:35 AM

Hi,
This is a versioning problem. First, though, make sure you have --enable.so as part of the configuration when installing apache.
On SuSE, I have used httpd-2.0.48 and I found a version of jk2 at http://smallrock.net/resources/technotes/tomcatconfig.htm


After compiling your mod_jk2 just add the .so file into the modules directory and add a :
LoadModule jk2_module modules/mod_jk2.so into httpd.conf
The two files required are workers2.properties in the conf folder - and just add a couple of simple lines like this

# Define the communication channel

[channel.socket:localhost]


info=Ajp13 forwarding over socket


tomcatId=localhost:8009



# Map the Tomcat examples webapp to the Web server uri space

[uri:/jsp-examples/*]

info=Map the whole webapp


That is all required at a minimum. Then map to your server as
http://server/jsp-examples and you should open the tomcat jsp-examples
Kevan

Re: error when loading mod_jk2.so on linux red-hat

Posted By:   Daniel_Baylon  
Posted On:   Friday, January 30, 2004 11:26 AM

What apache version are you using?



Tomcat provides mod_jk2 connectors for specific Apache versions, I'm using Tomcat 4.1.29, mod_jk2, and Apache 2.0.43 and everything works fine.



Regards

Re: error when loading mod_jk2.so on linux red-hat

Posted By:   giorgia_grillo  
Posted On:   Friday, January 30, 2004 12:14 AM

After waiting for one of you coming up with an answer to my question and rescuing me, (i'm still getting the same error) so I decided to try to reinstall apache, however, if you can help me I will very please to know why I can't make mod_jk2.so work properly. Please, gurus of the world, give my the answer!
About | Sitemap | Contact