Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 307005

Summary: installing tomcat native doesn't add apr lib to classpath
Product: Gentoo Linux Reporter: Max Nokhrin <mno2go>
Component: [OLD] JavaAssignee: Java team <java>
Status: RESOLVED INVALID    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Max Nokhrin 2010-02-26 21:23:29 UTC
emerge order:
tomcat-servlet-api
tomcat-native
tomcat
mod_jk

In this merge order, I get the following warning when launching tomcat:

Feb 26, 2010 4:11:46 PM org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /opt/sun-jdk-1.5.0.22/jre/lib/amd64/server:/opt/sun-jdk-1.5.0.22/jre/lib/amd64:/opt/sun-jdk-1.5.0.22/jre/../lib/amd64



Reproducible: Always
Comment 1 William L. Thomson Jr. 2011-02-15 03:09:46 UTC
Your referring to the ld library path, not the java classpath. I can't say I recall running into that problem by default. Usually when you see that message tomcat-native is not installed. Anytime I installed tomcat-native, tomcat found it by default on its own. However there are comments in /etc/conf.d/tomcat-* to that effect

# Example to set library path for tomcat-native
# JAVA_OPTS="-Djava.library.path=/usr/lib"

Probably should update documentation to reflect such, and document tomcat-native usage in general. Not sure people are actually using it who install it, but they might if they are aware of its usage.

Now I don't recall setting the above in a config file to get things working, but that might be what is required by default.
Comment 2 Max Nokhrin 2011-02-15 04:06:40 UTC
I actually noticed that after an unmerge and then a remerge, tomcat-native was caught and found by tomcat. Not sure if it was a config error or something else weird, but I am going to mark it as invalid for now. If someone else comes across this issue, please feel free to open a new bug or to re-open this one. Thanks for the feedback!