Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 307005 - installing tomcat native doesn't add apr lib to classpath
Summary: installing tomcat native doesn't add apr lib to classpath
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Java (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-02-26 21:23 UTC by Max Nokhrin
Modified: 2011-02-15 04:06 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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!