xtim
Thursday, May 06, 2004
 
Cleaned and rebuilt the mod_jk module.

It's now taking notice of the jni directions, because it wouldn't start apache until I'd fixed the library path by setting LD_LIBRARY_PATH before starting apache. It was complaining:

[root@orac conf]# /usr/local/apache2/bin/apachectl start
Error occurred during initialization of VM
Unable to load native library: libjvm.so: cannot open shared object file: No such file or directory

so I ran

[root@orac conf]# export LD_LIBRARY_PATH=/shared/apps/java/j2sdk1.4.1/jre/lib/i386/
[root@orac conf]# export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/shared/apps/java/j2sdk1.4.1/jre/lib/i386/native_threads
[root@orac conf]# export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/shared/apps/java/j2sdk1.4.1/jre/lib/i386/server
[root@orac conf]# /usr/local/apache2/bin/apachectl start

which fixed that. Next it complained that the initial JVM heap size was too small. That was down to directives I'd copied into workers.properties from a HOWTO:

worker.worker1.ms=64
worker.worker1.mx=128

and have now modified to read:

worker.worker1.ms=64M
worker.worker1.mx=128M

and it seems much happier.

The implication of all this is that apache is now reading workers.properties, noticing that we'd like it use JNI and testing the jvm startup. All of which is good. The JNI worker which sparks all of this, however, is still not getting found by mod_jk when we actually request the page:



(Browser)

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, you@example.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.




(mod_jk log)

[Thu May 06 12:26:04 2004] [jk_uri_worker_map.c (486)]: Into jk_uri_worker_map_t::map_uri_to_worker
[Thu May 06 12:26:04 2004] [jk_uri_worker_map.c (500)]: Attempting to map URI '/'
[Thu May 06 12:26:04 2004] [jk_uri_worker_map.c (618)]: jk_uri_worker_map_t::map_uri_to_worker, done without a match
[Thu May 06 12:26:04 2004] [jk_uri_worker_map.c (486)]: Into jk_uri_worker_map_t::map_uri_to_worker
[Thu May 06 12:26:04 2004] [jk_uri_worker_map.c (500)]: Attempting to map URI '/'
[Thu May 06 12:26:04 2004] [jk_uri_worker_map.c (618)]: jk_uri_worker_map_t::map_uri_to_worker, done without a match
[Thu May 06 12:26:04 2004] [jk_uri_worker_map.c (486)]: Into jk_uri_worker_map_t::map_uri_to_worker
[Thu May 06 12:26:04 2004] [jk_uri_worker_map.c (500)]: Attempting to map URI '/home.jsp'
[Thu May 06 12:26:04 2004] [jk_uri_worker_map.c (580)]: jk_uri_worker_map_t::map_uri_to_worker, Found a suffix match worker1 -> *.jsp
[Thu May 06 12:26:04 2004] [mod_jk.c (1709)]: Into handler r->proxyreq=0 r->handler=jakarta-servlet r->notes=137914904 worker=worker1
[Thu May 06 12:26:04 2004] [jk_worker.c (132)]: Into wc_get_worker_for_name worker1
[Thu May 06 12:26:04 2004] [jk_worker.c (136)]: wc_get_worker_for_name, done did not found a worker



T
Comments: Post a Comment

<< Home

Powered by Blogger