Le jeu 18/03/2004 à 06:27, Allan Bruce a écrit :
> I have apache and tomcat both up and running.  Now I want to be able to set
> up a connector so that I can browse the 'examples' directory of the tomcat
> installation through apaches port.  The below config doesnt seem to work,
> can somebody please tell me where I am going wrong?
> Thanks
> 
> 
> 
> ----- catalina.out
> 18-Mar-2004 10:01:57 org.apache.coyote.http11.Http11Protocol start
> INFO: Starting Coyote HTTP/1.1 on port 8080
> 18-Mar-2004 10:01:58 org.apache.jk.server.JkMain start
> INFO: APR not loaded, disabling jni components: java.io.IOException:
> /usr/lib/apache2/mod_jk2.so: /usr/lib/apache2/mod_jk2.so: undefined symbol:
> ap_server_root
> 18-Mar-2004 10:01:58 org.apache.jk.common.ChannelSocket init
> INFO: JK2: ajp13 listening on /0.0.0.0:8019
> 18-Mar-2004 10:01:58 org.apache.jk.server.JkMain start
> INFO: Jk running ID=0 time=23/505
> config=/usr/local/sites/tomcat/tomcat/conf/jk2.properties
> 18-Mar-2004 10:01:58 org.apache.jk.server.JkMain start
> INFO: APR not loaded, disabling jni components: java.io.IOException:
> /usr/lib/apache2/mod_jk2.so: /usr/lib/apache2/mod_jk2.so: undefined symbol:
> ap_server_root
> 18-Mar-2004 10:01:58 org.apache.jk.common.ChannelSocket init
> INFO: JK2: ajp13 listening on /0.0.0.0:8009
> 18-Mar-2004 10:01:58 org.apache.jk.server.JkMain start
> INFO: Jk running ID=0 time=5/126
> config=/usr/local/sites/tomcat/tomcat/conf/jk2.properties
> 
> 
> 
> 

Allan, the problem lies with the link-edit while building the mod_jk2.so
module. The Makefile produced in the some_path/native2/server/apache2/
is buggy. There is some important libraries missing in the list.

Also, I believe the configure is not checking everything properly. All
prereqs should be check at the configure step and flagged if not
satisfied.

You can refer to the following final discussion in the current mailing
list:

http://www.mail-archive.com/[EMAIL PROTECTED]/msg104016.html

What is missing, is the proper JK_LDFLAGS definition which should be:

JK_LDFLAGS=-L${APACHE2_LIBDIR} -lcrypt -lapr-0 -laprutil-0 -lgdbm
-lexpat -ldb-4.0 -lpthread -ldl

In my case, everything after -lcrypt was missing. And since we are
building shared objects, symbols are resolved at runtime rather than at
compile or link-edit time.

-- 

=======================================
Daniel Savard

=======================================



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to