tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anthony J Biacco" <abia...@decentrix.net>
Subject RE: Problems with APR install
Date Wed, 10 Jan 2007 00:35:18 GMT
Installing the 64-bit JVM fixed it. Thanx!

-Tony
------------------------------------
Anthony J. Biacco
Senior Systems/Network Administrator
Decentrix Inc.
303-899-4000 x303


> -----Original Message-----
> From: Anthony J Biacco [mailto:abiacco@decentrix.net]
> Sent: Tuesday, January 09, 2007 4:44 PM
> To: Tomcat Users List
> Subject: RE: Problems with APR install
> 
> I think the problem is the 32-bit mixed with 64-bit one you mentioned.
> The jvm is 32-bit. I tried compiling apr as 32-bit which eventually
> worked, but apr-util wouldn't.
> Right now I'm just gonna try installing the 64 bit amd java and be
done
> with it.
> 
> Thanx,
> 
> -Tony
> ------------------------------------
> Anthony J. Biacco
> Senior Systems/Network Administrator
> Decentrix Inc.
> 303-899-4000 x303
> 
> 
> > -----Original Message-----
> > From: robert lazarski [mailto:robertlazarski@gmail.com]
> > Sent: Tuesday, January 09, 2007 4:37 PM
> > To: Tomcat Users List
> > Subject: Re: Problems with APR install
> >
> > One other thing: If you are using 'java service wrapper' or perhaps
> > some other type of dameon on tomcat , you may not pick up the
> > LD_LIBRARY_PATH . In the 'java service wrapper' case you need to add
> > the dir manually in wrapper.conf .
> >
> > On 1/9/07, Anthony J Biacco <abiacco@decentrix.net> wrote:
> > > 1. The LD_LIBRARY_PATH add didn't add anything to the end, just a
:
> > > 2. The copy of the tcnative to bin/ didn't help
> > > 3. How can I tell if I'm using a 32-bit or 64-bit jvm? I'm
assuming
> > if
> > > it's 32-bit I'll have to recompile apr and tcnative as 32-bit, if
> > > possible?
> > > 4. I'll check the 5.5.18 changelog, thanx.
> > >
> > > -Tony
> > > ------------------------------------
> > > Anthony J. Biacco
> > > Senior Systems/Network Administrator
> > > Decentrix Inc.
> > > 303-899-4000 x303
> > >
> > >
> > > > -----Original Message-----
> > > > From: robert lazarski [mailto:robertlazarski@gmail.com]
> > > > Sent: Tuesday, January 09, 2007 3:34 PM
> > > > To: Tomcat Users List
> > > > Subject: Re: Problems with APR install
> > > >
> > > > I think there was a bug on 5.5.17 and apr . See the 5.5.18
> > changelog .
> > > > Something to do with ipv6 even though I was running ipv4 .
You'll
> > know
> > > > its working when you see this line:
> > > >
> > > > org.apache.coyote.ajp.AjpAprProtocol] Initializing Coyote
AJP/1.3
> > on
> > > > ajp-0.0.0.0-8009
> > > >
> > > > I got exceptions on 5.5.17 when I got to that point using
> opensuse
> > > > 10.1 . Try putting the libtcnative-* file in tomcat/bin if in
> > doubt.
> > > > My config is:
> > > >
> > > > LD_LIBRARY_PATH=/usr/local/apr/lib:/lib/tls:$LD_LIBRARY_PATH
> > > >
> > > > Actually I have no /lib/tls on my sys , must have copied that
> from
> > > > somewhere.
> > > >
> > > > One other thing: try matching your 32bit jvm with 32bit native
> libs
> > ,
> > > > or vice versa with 64bits.
> > > >
> > > > HTH,
> > > > Robert
> > > >
> > > > On 1/9/07, Anthony J Biacco <abiacco@decentrix.net> wrote:
> > > > > I'm trying to get APR 1.2.8 working with tomcat 5.5.17 which
> > comes
> > > > with
> > > > > tomcat-native 1.1.3.
> > > > > I'm on RHEL4 on a 64-bit AMD system.
> > > > > I compiled APR from source into /usr/local/apr, compiled
> tomcat-
> > > > native
> > > > > with /usr/local/apr, no problems.
> > > > > Added /usr/local/apr/lib to /etc/ld.so.conf and ran ldconfig,
> no
> > > > > problem.
> > > > > Added /usr/local/apr/lib to LD_LIBRARY_PATH in bin/startup.sh
> > > > > In conf/server.xml I have:
> > > > > <Listener
> > className="org.apache.catalina.core.AprLifecycleListener"
> > > > />
> > > > >
> > > > > In catalina.out on startup, I get:
> > > > > 14:52:09 INFO [main]
> > org.apache.catalina.core.AprLifecycleListener:
> > > > The
> > > > > Apache Tomcat Native library which allows optimal performance
> in
> > > > > production environme
> > > > > nts was not found on the java.library.path:
> > > > >
> > > >
> > >
> >
>
/usr/java/jdk1.5.0_06/jre/lib/i386/server:/usr/java/jdk1.5.0_06/jre/lib
> > > > /
> > > > > i386:/usr/java/jdk1.5.0_06/jre/../lib/i38
> > > > > 6:/usr/local/apr/lib
> > > > >
> > > > > I can't find anything I missed. Ldd shows cleans for all so
> > files,
> > > > seems
> > > > > all libraries are there, don't know what it's looking for.
> > > > > Any help is appreciated.
> > > > >
> > > > > *** APR DIR LISTING ***
> > > > >
> > > > > # ls -lR /usr/local/apr
> > > > > /usr/local/apr:
> > > > > total 16
> > > > > drwxr-xr-x  2 root root 4096 Jan  9 14:01 bin
> > > > > drwxr-xr-x  2 root root 4096 Jan  9 13:58 build-1
> > > > > drwxr-xr-x  3 root root 4096 Jan  9 13:58 include
> > > > > drwxr-xr-x  3 root root 4096 Jan  9 14:05 lib
> > > > >
> > > > > /usr/local/apr/bin:
> > > > > total 16
> > > > > -rwxr-xr-x  1 root root 6936 Jan  9 13:58 apr-1-config
> > > > > -rwxr-xr-x  1 root root 5769 Jan  9 14:01 apu-1-config
> > > > >
> > > > > /usr/local/apr/build-1:
> > > > > total 240
> > > > > -rw-r--r--  1 root root   6122 Jan  9 13:58 apr_rules.mk
> > > > > -rwxr-xr-x  1 root root 217294 Jan  9 13:58 libtool
> > > > > -rw-r--r--  1 root root   2991 Jan  9 13:58 make_exports.awk
> > > > > -rw-r--r--  1 root root   1023 Jan  9 13:58
make_var_export.awk
> > > > > -rwxr-xr-x  1 root root    980 Jan  9 13:58 mkdir.sh
> > > > >
> > > > > /usr/local/apr/include:
> > > > > total 4
> > > > > drwxr-xr-x  2 root root 4096 Jan  9 14:01 apr-1
> > > > >
> > > > > /usr/local/apr/include/apr-1:
> > > > > total 700
> > > > > -rw-r--r--  1 root root  5334 Jan  9 13:58 apr_allocator.h
> > > > > -rw-r--r--  1 root root  4903 Jan  9 14:01 apr_anylock.h
> > > > > -rw-r--r--  1 root root  3766 Jan  9 13:58 apr_atomic.h
> > > > > -rw-r--r--  1 root root  3615 Jan  9 14:01 apr_base64.h
> > > > > -rw-r--r--  1 root root 57784 Jan  9 14:01 apr_buckets.h
> > > > > -rw-r--r--  1 root root  3407 Jan  9 14:01 apr_date.h
> > > > > -rw-r--r--  1 root root 14323 Jan  9 14:01 apr_dbd.h
> > > > > -rw-r--r--  1 root root  8205 Jan  9 14:01 apr_dbm.h
> > > > > -rw-r--r--  1 root root  2700 Jan  9 13:58 apr_dso.h
> > > > > -rw-r--r--  1 root root  2105 Jan  9 13:58 apr_env.h
> > > > > -rw-r--r--  1 root root 51421 Jan  9 13:58 apr_errno.h
> > > > > -rw-r--r--  1 root root 17564 Jan  9 13:58 apr_file_info.h
> > > > > -rw-r--r--  1 root root 33929 Jan  9 13:58 apr_file_io.h
> > > > > -rw-r--r--  1 root root  4180 Jan  9 13:58 apr_fnmatch.h
> > > > > -rw-r--r--  1 root root  7000 Jan  9 13:58 apr_general.h
> > > > > -rw-r--r--  1 root root  5903 Jan  9 13:58 apr_getopt.h
> > > > > -rw-r--r--  1 root root  5680 Jan  9 13:58 apr_global_mutex.h
> > > > > -rw-r--r--  1 root root 11855 Jan  9 13:58 apr.h
> > > > > -rw-r--r--  1 root root  8087 Jan  9 13:58 apr_hash.h
> > > > > -rw-r--r--  1 root root  8438 Jan  9 14:01 apr_hooks.h
> > > > > -rw-r--r--  1 root root  2137 Jan  9 13:58 apr_inherit.h
> > > > > -rw-r--r--  1 root root  3394 Jan  9 14:01 apr_ldap.h
> > > > > -rw-r--r--  1 root root  4709 Jan  9 14:01 apr_ldap_init.h
> > > > > -rw-r--r--  1 root root  7973 Jan  9 14:01 apr_ldap_option.h
> > > > > -rw-r--r--  1 root root  3625 Jan  9 14:01 apr_ldap_url.h
> > > > > -rw-r--r--  1 root root  7927 Jan  9 13:58 apr_lib.h
> > > > > -rw-r--r--  1 root root  4378 Jan  9 14:01 apr_md4.h
> > > > > -rw-r--r--  1 root root  5426 Jan  9 14:01 apr_md5.h
> > > > > -rw-r--r--  1 root root  5130 Jan  9 13:58 apr_mmap.h
> > > > > -rw-r--r--  1 root root 31597 Jan  9 13:58 apr_network_io.h
> > > > > -rw-r--r--  1 root root  2633 Jan  9 14:01 apr_optional.h
> > > > > -rw-r--r--  1 root root  3722 Jan  9 14:01
apr_optional_hooks.h
> > > > > -rw-r--r--  1 root root  7767 Jan  9 13:58 apr_poll.h
> > > > > -rw-r--r--  1 root root 23956 Jan  9 13:58 apr_pools.h
> > > > > -rw-r--r--  1 root root 18502 Jan  9 13:58 apr_portable.h
> > > > > -rw-r--r--  1 root root  6002 Jan  9 13:58 apr_proc_mutex.h
> > > > > -rw-r--r--  1 root root  3936 Jan  9 14:01 apr_queue.h
> > > > > -rw-r--r--  1 root root  3267 Jan  9 13:58 apr_random.h
> > > > > -rw-r--r--  1 root root  5221 Jan  9 14:01 apr_reslist.h
> > > > > -rw-r--r--  1 root root 17930 Jan  9 13:58 apr_ring.h
> > > > > -rw-r--r--  1 root root  4631 Jan  9 14:01 apr_rmm.h
> > > > > -rw-r--r--  1 root root  5925 Jan  9 14:01 apr_sdbm.h
> > > > > -rw-r--r--  1 root root  3737 Jan  9 14:01 apr_sha1.h
> > > > > -rw-r--r--  1 root root  5025 Jan  9 13:58 apr_shm.h
> > > > > -rw-r--r--  1 root root  2756 Jan  9 13:58 apr_signal.h
> > > > > -rw-r--r--  1 root root 13853 Jan  9 13:58 apr_strings.h
> > > > > -rw-r--r--  1 root root  2530 Jan  9 14:01 apr_strmatch.h
> > > > > -rw-r--r--  1 root root  1411 Jan  9 13:58 apr_support.h
> > > > > -rw-r--r--  1 root root 15698 Jan  9 13:58 apr_tables.h
> > > > > -rw-r--r--  1 root root  5192 Jan  9 13:58 apr_thread_cond.h
> > > > > -rw-r--r--  1 root root  3836 Jan  9 13:58 apr_thread_mutex.h
> > > > > -rw-r--r--  1 root root 33437 Jan  9 13:58 apr_thread_proc.h
> > > > > -rw-r--r--  1 root root  4766 Jan  9 13:58 apr_thread_rwlock.h
> > > > > -rw-r--r--  1 root root  7385 Jan  9 13:58 apr_time.h
> > > > > -rw-r--r--  1 root root  6441 Jan  9 14:01 apr_uri.h
> > > > > -rw-r--r--  1 root root  5307 Jan  9 13:58 apr_user.h
> > > > > -rw-r--r--  1 root root  1955 Jan  9 14:01 apr_uuid.h
> > > > > -rw-r--r--  1 root root  4468 Jan  9 13:58 apr_version.h
> > > > > -rw-r--r--  1 root root  2756 Jan  9 13:58 apr_want.h
> > > > > -rw-r--r--  1 root root  6261 Jan  9 14:01 apr_xlate.h
> > > > > -rw-r--r--  1 root root 12210 Jan  9 14:01 apr_xml.h
> > > > > -rw-r--r--  1 root root  2888 Jan  9 14:01 apu.h
> > > > > -rw-r--r--  1 root root  3980 Jan  9 14:01 apu_version.h
> > > > > -rw-r--r--  1 root root  1336 Jan  9 14:01 apu_want.h
> > > > >
> > > > > /usr/local/apr/lib:
> > > > > total 4920
> > > > > -rw-r--r--  1 root root    7677 Jan  9 13:58 apr.exp
> > > > > -rw-r--r--  1 root root    3907 Jan  9 14:01 aprutil.exp
> > > > > -rw-r--r--  1 root root 1171898 Jan  9 13:58 libapr-1.a
> > > > > -rwxr-xr-x  1 root root     838 Jan  9 13:58 libapr-1.la
> > > > > lrwxrwxrwx  1 root root      17 Jan  9 13:58 libapr-1.so ->
> > > > > libapr-1.so.0.2.8
> > > > > lrwxrwxrwx  1 root root      17 Jan  9 13:58 libapr-1.so.0 ->
> > > > > libapr-1.so.0.2.8
> > > > > -rwxr-xr-x  1 root root  633718 Jan  9 13:58 libapr-1.so.0.2.8
> > > > > -rw-r--r--  1 root root  643964 Jan  9 14:01 libaprutil-1.a
> > > > > -rwxr-xr-x  1 root root     920 Jan  9 14:01 libaprutil-1.la
> > > > > lrwxrwxrwx  1 root root      21 Jan  9 14:01 libaprutil-1.so
->
> > > > > libaprutil-1.so.0.2.8
> > > > > lrwxrwxrwx  1 root root      21 Jan  9 14:01 libaprutil-1.so.0
> ->
> > > > > libaprutil-1.so.0.2.8
> > > > > -rwxr-xr-x  1 root root  353493 Jan  9 14:01 libaprutil-
> > 1.so.0.2.8
> > > > > -rw-r--r--  1 root root 1379394 Jan  9 14:05 libtcnative-1.a
> > > > > -rwxr-xr-x  1 root root     919 Jan  9 14:05 libtcnative-1.la
> > > > > lrwxrwxrwx  1 root root      22 Jan  9 14:05 libtcnative-1.so
-
> >
> > > > > libtcnative-1.so.0.1.3
> > > > > lrwxrwxrwx  1 root root      22 Jan  9 14:05
libtcnative-1.so.0
> -
> > >
> > > > > libtcnative-1.so.0.1.3
> > > > > -rwxr-xr-x  1 root root  788140 Jan  9 14:05 libtcnative-
> > 1.so.0.1.3
> > > > > drwxr-xr-x  2 root root    4096 Jan  9 14:05 pkgconfig
> > > > >
> > > > > /usr/local/apr/lib/pkgconfig:
> > > > > total 12
> > > > > -rw-r--r--  1 root root 377 Jan  9 13:58 apr-1.pc
> > > > > -rw-r--r--  1 root root 385 Jan  9 14:01 apr-util-1.pc
> > > > > -rw-r--r--  1 root root 395 Jan  9 14:05 tcnative-1.pc
> > > > >
> > > > >
> > > > > *** LDD ***
> > > > > # ldd -v /usr/local/apr/lib/*.so*  | grep -i 'not found'
> > > > > #
> > > > >
> > > > >
> > > > > *** FILE ***
> > > > > # file /usr/local/apr/lib/*.so*
> > > > > /usr/local/apr/lib/libapr-1.so:            symbolic link to
> > > > > `libapr-1.so.0.2.8'
> > > > > /usr/local/apr/lib/libapr-1.so.0:          symbolic link to
> > > > > `libapr-1.so.0.2.8'
> > > > > /usr/local/apr/lib/libapr-1.so.0.2.8:      ELF 64-bit LSB
> shared
> > > > object,
> > > > > AMD x86-64, version 1 (SYSV), not stripped
> > > > > /usr/local/apr/lib/libaprutil-1.so:        symbolic link to
> > > > > `libaprutil-1.so.0.2.8'
> > > > > /usr/local/apr/lib/libaprutil-1.so.0:      symbolic link to
> > > > > `libaprutil-1.so.0.2.8'
> > > > > /usr/local/apr/lib/libaprutil-1.so.0.2.8:  ELF 64-bit LSB
> shared
> > > > object,
> > > > > AMD x86-64, version 1 (SYSV), not stripped
> > > > > /usr/local/apr/lib/libtcnative-1.so:       symbolic link to
> > > > > `libtcnative-1.so.0.1.3'
> > > > > /usr/local/apr/lib/libtcnative-1.so.0:     symbolic link to
> > > > > `libtcnative-1.so.0.1.3'
> > > > > /usr/local/apr/lib/libtcnative-1.so.0.1.3: ELF 64-bit LSB
> shared
> > > > object,
> > > > > AMD x86-64, version 1 (SYSV), not stripped
> > > > > #
> > > > >
> > > > >
> > > > > *** INSTALL STEPS ***
> > > > > cd /usr/local/src
> > > > > wget http://apache.mirrors.hoobly.com/apr/apr-1.2.8.tar.gz
> > > > > wget
http://apache.mirrors.hoobly.com/apr/apr-util-1.2.8.tar.gz
> > > > > tar xvfz apr-1.2.8.tar.gz
> > > > > cd apr-1.2.8
> > > > > ./configure
> > > > > make
> > > > > make install
> > > > > echo "/usr/local/apr/lib" >> /etc/ld.so.conf
> > > > > ldconfig
> > > > > cd ..
> > > > > tar xvfz apr-util-1.2.8.tar.gz
> > > > > cd apr-util-1.2.8
> > > > > ./configure --with-apr=/usr/local/apr
> > > > > make
> > > > > make install
> > > > > ldconfig
> > > > > cd /usr/local/tomcat/bin
> > > > > tar xfz tomcat-native.tar.gz
> > > > > cd tomcat-native-1.1.3/jni/native
> > > > > ./configure --with-apr=/usr/local/apr
> > > > > --with-java-home=/usr/java/jdk1.5.0_06
> > > > > make
> > > > > make install
> > > > > ldconfig
> > > > > vi /usr/local/tomcat/bin/startup.sh
> > > > >         Add to LD_LIBRARY_PATH ":/usr/local/apr/lib"
> > > > > Restart tomcat
> > > > >
> > > > > -Tony
> > > > > ------------------------------------
> > > > > Anthony J. Biacco
> > > > > Senior Systems/Network Administrator
> > > > > Decentrix Inc.
> > > > > 303-899-4000 x303
> > > > >
> > > > >
> > > > >
> > > > >
> > >
> ---------------------------------------------------------------------
> > > > > To start a new topic, e-mail: users@tomcat.apache.org
> > > > > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> > > > > For additional commands, e-mail: users-help@tomcat.apache.org
> > > > >
> > > > >
> > > >
> > > >
> -------------------------------------------------------------------
> > --
> > > > To start a new topic, e-mail: users@tomcat.apache.org
> > > > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> > > > For additional commands, e-mail: users-help@tomcat.apache.org
> > >
> > >
> > >
> ---------------------------------------------------------------------
> > > To start a new topic, e-mail: users@tomcat.apache.org
> > > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> > > For additional commands, e-mail: users-help@tomcat.apache.org
> > >
> > >
> >
> >
---------------------------------------------------------------------
> > To start a new topic, e-mail: users@tomcat.apache.org
> > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> > For additional commands, e-mail: users-help@tomcat.apache.org
> 
> 
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message