Java Mailing List Archive

http://www.junlu.com/

Google
Google
Mailing List
Home
Forum Home
JBoss - Java Application Server
Tomcat - JSP/Servlet container
Struts - A MVC web framework
iText - An open source PDF Java Library
JDOM - JDOM XML Parser
J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition
JSP - A mailing list about Java Server Pages specification and reference
J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog
Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology
Struts & Hibernate
Subjects
JSP editor plugin for eclipse ?
org apache jasper JasperException: Unable to compile class for JSP
Tomcat: Connection reset by peer: socket write error
Cannot retrieve definition for form bean null
Struts Tiles Tutorial (free Struts training)
Where do I download Tomcat 4 0 6?
Data Access Object (DAO) pattern, example DAO 's
Where to download Tomcat v 4 1 24 from?
Tomcat 5 0 16 Requested resource not available
Oracle Connection Pooling in 3 2 2
Servlet : Session invalidate
Servlet action is currently unavailable
Tomcat/Struts Unicode Encoding/Decoding problems
Tomcat and webapplication specific java library path
Running a Simple JMS Example
Mapping in workers2 properties
org apache jasper JasperException
Cannot find message resources under key org apache struts action
   MESSAGE
problem with html:text bean throwing exception
Cannot find message resources under key org apache struts action MESSAGE
invalid direct reference problem with solution
Tool for jsp debug Try Sysdeo Eclipse Plugin
Tomcat 5 Cannot load JDBC driver class 'null ' SQL state: null
weblogic ejbc
java properties file
Jboss 3 2 3 Coyote Can 't re
Tomcat 5, Apache2 and mod jk2 integration problem
JBoss example problem new to J2EE
url string for connecting jboss to oracle
Value attribute of <html:checkbox
javax servlet ServletException: BeanUtils populate
HTTP Status 404 The requested resource is not available
5 0 18: Windows XP Pro vs Windows 2000
 
Getting the Tomcat Native library to work under Fedora

Getting the Tomcat Native library to work under Fedora

2006-12-15       - By Martin Dubuc

 Back
Reply:     1     2  

I guess most of us have wondered at one point or another what this
message means:
"INFO: The Apache Tomcat native library which allows optimal  performance
in production environments was not found on
java.library.path"
in the catalina.out log.

Only recently have I spent time trying to figure out the meaning of
this message. This message is logged on Tomcat startup if Tomcat
cannot find the Native library. Tomcat works fine without this
library, but not as optimal.

I have spent some time trying to get the Tomcat Native library to work
under Fedora. I thought it might be a good thing if I shared my
experience in the matter.

A tomcat-native.tar.gz archive is packaged in the bin directory of the
tomcat binary and I guess it probably is straightforward to install
the library from this package, but the deployment model that I am
using is such that there is no compiler on the machine where Tomcat is
installed. I had to build an RPM in order to install the Tomcat Native
library on the machine. As pointed out by Jonas Pasche, the SPEC file
that is delivered with version 1.1.7 of Tomcat Native library is
broken, and I had to fix it before being able to get the RPM to build.
Look at http://jonaspasche.com/patches/tcnative-1 (See http://ive-1.ora-code.com).1.7-bugfixes.patch
for a description of the required changes.

After I installed the APR and the Tomcat Native RPMs, Tomcat was still
showing the info message. I found out looking at the list that I
needed to point Tomcat to where these libraries where stored. The
trick is to set LD_LIBRARY_PATH to point to them, for instance, adding
this line to catalina.sh:
LD_LIBRARY_PATH=/usr/lib:/lib
and ensuring LD_LIBRARY_PATH environement varaible is visible Tomcat.

That still didn't fix the problem completely. I figured after running
some tests that Tomcat was looking for a libtcnative-1 (See http://ive-1.ora-code.com).so file, but
the RPM installed libtcnative-1 (See http://ive-1.ora-code.com).so.0. After I created a
libtcnative-1 (See http://ive-1.ora-code.com).so softlink that pointed back to libtcnative-1 (See http://ive-1.ora-code.com).so.0,
Tomcat loaded the native library. There are some changes to do in the
server.xml file (for instance the SSLCertificateFile parameter needs
to be configured). See
http://tomcat.apache.org/tomcat-6 (See http://cat-6.ora-code.com).0-doc/apr.html for details on the
parameters.

Martin

-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
To start a new topic, e-mail: users@(protected)
To unsubscribe, e-mail: users-unsubscribe@(protected)
For additional commands, e-mail: users-help@(protected)


©2008 junlu.com - Jax Systems, LLC, U.S.A.