You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Asif Chowdhary <As...@xeye.com> on 2003/12/18 18:48:17 UTC

RE: Apache + Tomcat

To compile mod_jk2 on linux you require:

Apache Portable Runtime (APR)	apr-0.9.4.tar.gz	http://apr.apache.org/
Apache Portable Runtime Utility (APR)	apr-util-0.9.4.tar.gz	http://apr.apache.org/


During the build process if you see the error shown in Table 2?5:
Table 2?5:make Error
[so] stdErr[so] /usr/bin/ld: cannot fine -lapr      [so] collect2: ld returned 1 exit status

Create a symbolic link libapr-0.so in /usr/lib from /usr/local/apr/lib.
     ln -s /usr/local/apr/lib/libapr-0.so /usr/lib/libapr-0.so 




-----Original Message-----
From: Walter do Valle [mailto:walter@softplan.com.br]
Sent: Thursday, December 18, 2003 1:41 PM
To: tomcat-user@jakarta.apache.org
Subject: Apache + Tomcat


Is there anyone in the list using sucessfully Apache 2.0.40 or greater and Tomcat 5.0.16 with mod_jk2 v 2.0.2 connector in a linux box?
Is so, then what's the secret to compile a functional version of mod_jk2?

I downloaded the sources and compiled them. 
When I try to use the generated files jkjni.so and mod_jk2.so two problems ocurr: 

- When tomcat starts: 
INFO: APR not loaded, disabling jni components: java.io.IOException: java.lang.UnsatisfiedLinkError: /usr/lib/httpd/modules/jkjni.so: /usr/lib/httpd/modules/jkjni.so: undefined symbol: apr_md5_final

-When apache starts:
[Thu Dec 18 14:27:42 2003] [notice] Digest: generating secret for digest authentication ...
[Thu Dec 18 14:27:42 2003] [notice] Digest: done
[Thu Dec 18 14:27:43 2003] [error] jk2_init() Can't find child 19850 in scoreboard
[Thu Dec 18 14:27:43 2003] [error] mod_jk child init 1 -2
[Thu Dec 18 14:27:43 2003] [error] jk2_init() Can't find child 19852 in scoreboard
[Thu Dec 18 14:27:43 2003] [error] mod_jk child init 1 -2
[Thu Dec 18 14:27:43 2003] [error] jk2_init() Can't find child 19853 in scoreboard
[Thu Dec 18 14:27:43 2003] [error] mod_jk child init 1 -2
[Thu Dec 18 14:27:43 2003] [error] jk2_init() Can't find child 19854 in scoreboard
[Thu Dec 18 14:27:43 2003] [error] mod_jk child init 1 -2
[Thu Dec 18 14:27:43 2003] [error] jk2_init() Can't find child 19856 in scoreboard
[Thu Dec 18 14:27:43 2003] [error] mod_jk child init 1 -2
[Thu Dec 18 14:27:43 2003] [error] jk2_init() Can't find child 19857 in scoreboard
[Thu Dec 18 14:27:43 2003] [error] mod_jk child init 1 -2
[Thu Dec 18 14:27:43 2003] [notice] Apache/2.0.40 (Red Hat Linux) configured -- resuming normal operations
[Thu Dec 18 14:27:43 2003] [error] jk2_init() Can't find child 19855 in scoreboard
[Thu Dec 18 14:27:43 2003] [error] mod_jk child init 1 -2

Any help is welcome.

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: Apache + Tomcat

Posted by Walter do Valle <wa...@softplan.com.br>.
I have this

[root@srv-consulta apache2]# ls -l /usr/lib/libapr*
-rw-r--r--    1 root     root       169320 Jan 25  2003 /usr/lib/libapr-0.a
-rw-r--r--    1 root     root          707 Jan 25  2003 /usr/lib/libapr-0.la
-> lrwxrwxrwx    1 root     root           26 Dec 18 14:16 /usr/lib/libapr-0.so -> /usr/lib/libapr-0.so.0.9.2
lrwxrwxrwx    1 root     root           17 Dec 18 09:38 /usr/lib/libapr-0.so.0 -> libapr-0.so.0.9.2
-rwxr-xr-x    1 root     root       122648 Jan 25  2003 /usr/lib/libapr-0.so.0.9.2
lrwxrwxrwx    1 root     root           15 Dec 18 13:58 /usr/lib/libapr.so -> libapr.so.0.0.0
lrwxrwxrwx    1 root     root           15 Dec 15 13:07 /usr/lib/libapr.so.0 -> libapr.so.0.0.0
-rwxr-xr-x    1 root     root       118328 Feb 25  2003 /usr/lib/libapr.so.0.0.0
-rw-r--r--    1 root     root       117652 Jan 25  2003 /usr/lib/libaprutil-0.a
-rw-r--r--    1 root     root          735 Jan 25  2003 /usr/lib/libaprutil-0.la
lrwxrwxrwx    1 root     root           21 Dec 18 09:38 /usr/lib/libaprutil-0.so.0 -> libaprutil-0.so.0.9.2
-rwxr-xr-x    1 root     root        85200 Jan 25  2003 /usr/lib/libaprutil-0.so.0.9.2
lrwxrwxrwx    1 root     root           19 Dec 18 13:58 /usr/lib/libaprutil.so -> libaprutil.so.0.0.0
lrwxrwxrwx    1 root     root           19 Dec 15 13:07 /usr/lib/libaprutil.so.0 -> libaprutil.so.0.0.0
-rwxr-xr-x    1 root     root        82868 Feb 25  2003 /usr/lib/libaprutil.so.0.0.0

The link marked with a -> was created by me because when I ran 'make', it stops with an error like this:
i386-redhat-linux-gcc: /usr/lib/libapr-0.so: No such file or directory
make[1]: *** [../../../build/jk2/apache2/jkjni.la] Error 1 
  ----- Original Message ----- 
  From: Asif Chowdhary 
  To: Tomcat Users List ; Walter do Valle 
  Sent: Thursday, December 18, 2003 2:48 PM
  Subject: RE: Apache + Tomcat


  To compile mod_jk2 on linux you require:

  Apache Portable Runtime (APR) apr-0.9.4.tar.gz http://apr.apache.org/
  Apache Portable Runtime Utility (APR) apr-util-0.9.4.tar.gz http://apr.apache.org/


  During the build process if you see the error shown in Table 2?5:
  Table 2?5:make Error
  [so] stdErr[so] /usr/bin/ld: cannot fine -lapr      [so] collect2: ld returned 1 exit status

  Create a symbolic link libapr-0.so in /usr/lib from /usr/local/apr/lib.
       ln -s /usr/local/apr/lib/libapr-0.so /usr/lib/libapr-0.so 




  -----Original Message-----
  From: Walter do Valle [mailto:walter@softplan.com.br]
  Sent: Thursday, December 18, 2003 1:41 PM
  To: tomcat-user@jakarta.apache.org
  Subject: Apache + Tomcat


  Is there anyone in the list using sucessfully Apache 2.0.40 or greater and Tomcat 5.0.16 with mod_jk2 v 2.0.2 connector in a linux box?
  Is so, then what's the secret to compile a functional version of mod_jk2?

  I downloaded the sources and compiled them. 
  When I try to use the generated files jkjni.so and mod_jk2.so two problems ocurr: 

  - When tomcat starts: 
  INFO: APR not loaded, disabling jni components: java.io.IOException: java.lang.UnsatisfiedLinkError: /usr/lib/httpd/modules/jkjni.so: /usr/lib/httpd/modules/jkjni.so: undefined symbol: apr_md5_final

  -When apache starts:
  [Thu Dec 18 14:27:42 2003] [notice] Digest: generating secret for digest authentication ...
  [Thu Dec 18 14:27:42 2003] [notice] Digest: done
  [Thu Dec 18 14:27:43 2003] [error] jk2_init() Can't find child 19850 in scoreboard
  [Thu Dec 18 14:27:43 2003] [error] mod_jk child init 1 -2
  [Thu Dec 18 14:27:43 2003] [error] jk2_init() Can't find child 19852 in scoreboard
  [Thu Dec 18 14:27:43 2003] [error] mod_jk child init 1 -2
  [Thu Dec 18 14:27:43 2003] [error] jk2_init() Can't find child 19853 in scoreboard
  [Thu Dec 18 14:27:43 2003] [error] mod_jk child init 1 -2
  [Thu Dec 18 14:27:43 2003] [error] jk2_init() Can't find child 19854 in scoreboard
  [Thu Dec 18 14:27:43 2003] [error] mod_jk child init 1 -2
  [Thu Dec 18 14:27:43 2003] [error] jk2_init() Can't find child 19856 in scoreboard
  [Thu Dec 18 14:27:43 2003] [error] mod_jk child init 1 -2
  [Thu Dec 18 14:27:43 2003] [error] jk2_init() Can't find child 19857 in scoreboard
  [Thu Dec 18 14:27:43 2003] [error] mod_jk child init 1 -2
  [Thu Dec 18 14:27:43 2003] [notice] Apache/2.0.40 (Red Hat Linux) configured -- resuming normal operations
  [Thu Dec 18 14:27:43 2003] [error] jk2_init() Can't find child 19855 in scoreboard
  [Thu Dec 18 14:27:43 2003] [error] mod_jk child init 1 -2

  Any help is welcome.

Re: Apache + Tomcat

Posted by Walter do Valle <wa...@softplan.com.br>.
I downloaded, compiled and intalled apr from apache. 
The error persists.




  ----- Original Message ----- 
  From: Asif Chowdhary 
  To: Tomcat Users List ; Walter do Valle 
  Sent: Thursday, December 18, 2003 2:48 PM
  Subject: RE: Apache + Tomcat


  To compile mod_jk2 on linux you require:

  Apache Portable Runtime (APR) apr-0.9.4.tar.gz http://apr.apache.org/
  Apache Portable Runtime Utility (APR) apr-util-0.9.4.tar.gz http://apr.apache.org/


  During the build process if you see the error shown in Table 2?5:
  Table 2?5:make Error
  [so] stdErr[so] /usr/bin/ld: cannot fine -lapr      [so] collect2: ld returned 1 exit status

  Create a symbolic link libapr-0.so in /usr/lib from /usr/local/apr/lib.
       ln -s /usr/local/apr/lib/libapr-0.so /usr/lib/libapr-0.so 




  -----Original Message-----
  From: Walter do Valle [mailto:walter@softplan.com.br]
  Sent: Thursday, December 18, 2003 1:41 PM
  To: tomcat-user@jakarta.apache.org
  Subject: Apache + Tomcat


  Is there anyone in the list using sucessfully Apache 2.0.40 or greater and Tomcat 5.0.16 with mod_jk2 v 2.0.2 connector in a linux box?
  Is so, then what's the secret to compile a functional version of mod_jk2?

  I downloaded the sources and compiled them. 
  When I try to use the generated files jkjni.so and mod_jk2.so two problems ocurr: 

  - When tomcat starts: 
  INFO: APR not loaded, disabling jni components: java.io.IOException: java.lang.UnsatisfiedLinkError: /usr/lib/httpd/modules/jkjni.so: /usr/lib/httpd/modules/jkjni.so: undefined symbol: apr_md5_final

  -When apache starts:
  [Thu Dec 18 14:27:42 2003] [notice] Digest: generating secret for digest authentication ...
  [Thu Dec 18 14:27:42 2003] [notice] Digest: done
  [Thu Dec 18 14:27:43 2003] [error] jk2_init() Can't find child 19850 in scoreboard
  [Thu Dec 18 14:27:43 2003] [error] mod_jk child init 1 -2
  [Thu Dec 18 14:27:43 2003] [error] jk2_init() Can't find child 19852 in scoreboard
  [Thu Dec 18 14:27:43 2003] [error] mod_jk child init 1 -2
  [Thu Dec 18 14:27:43 2003] [error] jk2_init() Can't find child 19853 in scoreboard
  [Thu Dec 18 14:27:43 2003] [error] mod_jk child init 1 -2
  [Thu Dec 18 14:27:43 2003] [error] jk2_init() Can't find child 19854 in scoreboard
  [Thu Dec 18 14:27:43 2003] [error] mod_jk child init 1 -2
  [Thu Dec 18 14:27:43 2003] [error] jk2_init() Can't find child 19856 in scoreboard
  [Thu Dec 18 14:27:43 2003] [error] mod_jk child init 1 -2
  [Thu Dec 18 14:27:43 2003] [error] jk2_init() Can't find child 19857 in scoreboard
  [Thu Dec 18 14:27:43 2003] [error] mod_jk child init 1 -2
  [Thu Dec 18 14:27:43 2003] [notice] Apache/2.0.40 (Red Hat Linux) configured -- resuming normal operations
  [Thu Dec 18 14:27:43 2003] [error] jk2_init() Can't find child 19855 in scoreboard
  [Thu Dec 18 14:27:43 2003] [error] mod_jk child init 1 -2

  Any help is welcome.