aspose file tools*
The moose likes Tomcat and the fly likes Tomcat Native library not found Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Tomcat Native library not found" Watch "Tomcat Native library not found" New topic
Author

Tomcat Native library not found

Phoebe Song
Ranch Hand

Joined: Jan 17, 2002
Posts: 54
Dear all,

I started Tomcat and got this error message:
Apr 26, 2006 1:13:02 PM org.apache.catalina.core.AprLifecycleListener lifecycleEvent
INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jdk1.5.0_06\bin;C:\Tomcat\bin
Apr 26, 2006 1:13:02 PM org.apache.coyote.http11.Http11BaseProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-8000
Apr 26, 2006 1:13:02 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1453 ms
Apr 26, 2006 1:13:02 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Apr 26, 2006 1:13:02 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.16
Apr 26, 2006 1:13:02 PM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Apr 26, 2006 1:13:04 PM org.apache.catalina.core.ApplicationContext log
INFO: org.apache.webapp.balancer.BalancerFilter: init(): ruleChain: [org.apache.webapp.balancer.RuleChain: [org.apache.webapp.balancer.rules.URLStringMatchRule: Target string: News / Redirect URL: http://www.cnn.com], [org.apache.webapp.balancer.rules.RequestParameterRule: Target param name: paramName / Target param value: paramValue / Redirect URL: http://www.yahoo.com], [org.apache.webapp.balancer.rules.AcceptEverythingRule: Redirect URL: http://jakarta.apache.org]]
Apr 26, 2006 1:13:04 PM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextInitialized()
Apr 26, 2006 1:13:04 PM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextInitialized()
Apr 26, 2006 1:13:05 PM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextInitialized()
Apr 26, 2006 1:13:05 PM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextInitialized()
Apr 26, 2006 1:13:05 PM org.apache.coyote.http11.Http11BaseProtocol start
INFO: Starting Coyote HTTP/1.1 on http-8000
Apr 26, 2006 1:13:06 PM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
Apr 26, 2006 1:13:06 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/94 config=null
Apr 26, 2006 1:13:06 PM org.apache.catalina.storeconfig.StoreLoader load
INFO: Find registry server-registry.xml at classpath resource
Apr 26, 2006 1:13:06 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 4234 ms

"INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jdk1.5.0_06\bin;C:\Tomcat\bin"

So what's wrong? I'm using jdk1.5.0_06, tomcat 5.5.1.9
Scott Dunbar
Ranch Hand

Joined: Sep 23, 2004
Posts: 245
You can safely ignore this message if you want. Basically it is telling you that an optional shared library (dll on Windows) is not found. The APR is the Apache Portable Runtime. This is a native (non-java) library that can improve the performance of Tomcat in certain situations.

On both Windows and Unix/Linux you will need a C compiler to build this library.


<a href="http://forums.hotjoe.com/forums/list.page" target="_blank" rel="nofollow">Java forums using Java software</a> - Come and help get them started.
Veit Ullmann
Greenhorn

Joined: Sep 12, 2007
Posts: 1
In ${tomcat.source}\bin you have 2 folders i64 and x64 (if you have a 64 bit system). Just copy the correct tcnative-1.dll to ${tomcat.source}\bin.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Tomcat Native library not found