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
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.
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!