RE: s
i have apr lib in load dir path (below). but it seems, it is not enough. it give "UnsatisfiedLinkError". if I include additional paths then it works. but I have to include lot of additioanal paths. please help! thanks. $ ls -l /usr/tomcat/lib/apr total 1192 -rwxrwxrwx 1 tc noman 8351 Sep 26 10:54 apr.exp -rwxrwxrwx 1 tc noman 5203 Sep 26 10:55 aprutil.exp -rwxrwxrwx 1 tc noman 259090 Sep 26 10:54 libapr-1.a -rwxrwxrwx 1 tc noman845 Sep 26 10:54 libapr-1.la lrwxrwxrwx 1 tc noman 17 Sep 26 10:50 libapr-1.so -> libapr-1.so.0.4.5 lrwxrwxrwx 1 tc noman 17 Sep 26 10:50 libapr-1.so.0 -> libapr-1.so.0.4.5 -rwxrwxrwx 1 tc noman 218383 Sep 26 10:54 libapr-1.so.0.4.5 -rwxrwxrwx 1 tc noman 185342 Sep 26 10:55 libaprutil-1.a -rwxrwxrwx 1 tc noman941 Sep 26 10:55 libaprutil-1.la lrwxrwxrwx 1 tc noman 22 Sep 26 10:50 libaprutil-1.so -> libaprutil-1.so.0.3.12 lrwxrwxrwx 1 tc noman 22 Sep 26 10:50 libaprutil-1.so.0 -> libaprutil-1.so.0.3.12 -rwxrwxrwx 1 tc noman 161262 Sep 26 10:55 libaprutil-1.so.0.3.12 -rwxrwxrwx 1 tc noman 159552 Sep 26 10:58 libtcnative-1.a -rwxrwxrwx 1 tc noman942 Sep 26 10:58 libtcnative-1.la lrwxrwxrwx 1 tc noman 23 Sep 26 10:50 libtcnative-1.so -> libtcnative-1.so.0.1.20 lrwxrwxrwx 1 tc noman 23 Sep 26 10:50 libtcnative-1.so.0 -> libtcnative-1.so.0.1.20 -rwxrwxrwx 1 tc noman 163326 Sep 26 10:58 libtcnative-1.so.0.1.20 drwxrwxrwx 2 tc noman 4096 Sep 26 10:58 pkgconfig # echo LD_LIBRARY_PATH /usr/tomcat/lib # n828cl wrote: > >> From: Kobe [mailto:r...@mailcity.com] >> Subject: Re: s > >> I changed the paths to standard locations (using >> LD_LIBRARY_PATH). > > So where is your .so file actually located? You need to include that > directory in LD_LIBRARY_PATH. > > - Chuck > > > THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY > MATERIAL and is thus for use only by the intended recipient. If you > received this in error, please contact the sender and delete the e-mail > and its attachments from all computers. > > > - > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > > > -- View this message in context: http://old.nabble.com/s-tp32723372p32762698.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: s
> From: Kobe [mailto:r...@mailcity.com] > Subject: Re: s > Is it possible to make it say what library it missing? It's missing the one you built. (You did build the APR .so file, didn't you?) - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: s
> From: Kobe [mailto:r...@mailcity.com] > Subject: Re: s > I changed the paths to standard locations (using > LD_LIBRARY_PATH). So where is your .so file actually located? You need to include that directory in LD_LIBRARY_PATH. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: s
Is it possible to make it say what library it missing? many thanks for your help. Kobe wrote: > > i think its shortening long path for display with "..." > I changed the paths to standard locations (using LD_LIBRARY_PATH). > I still get the same error: > > > Oct 26, 2011 8:48:12 AM 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: > /usr/java/jdk1.6.0_21/jre/lib/i386/server:/usr/java/jdk1.6.0_21/jre/lib/i386:/usr/java/jdk1.6.0_21/jre/../lib/i386:/usr/local/apache-tomcat/apr-connector/lib:/usr/local/apache-tomcat/apr/lib:/usr/local/lib:/lib::/usr/java/packages/lib/i386:/lib:/usr/lib > java.lang.reflect.InvocationTargetException > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:597) > at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:261) > at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413) > Caused by: java.lang.UnsatisfiedLinkError: > org.apache.tomcat.jni.Pool.create(J)J > at org.apache.tomcat.jni.Pool.create(Native Method) > at > org.apache.tomcat.util.net.AprEndpoint.init(AprEndpoint.java:613) > at > org.apache.coyote.http11.Http11AprProtocol.init(Http11AprProtocol.java:107) > at > org.apache.catalina.connector.Connector.initialize(Connector.java:1022) > at > org.apache.catalina.core.StandardService.initialize(StandardService.java:703) > at > org.apache.catalina.core.StandardServer.initialize(StandardServer.java:786) > at org.apache.catalina.startup.Catalina.load(Catalina.java:528) > at org.apache.catalina.startup.Catalina.load(Catalina.java:552) > ... 6 more > > > > Daniel Mikusa-2 wrote: >> >> I see "java.library.path" is set to "/opt/asdasdasd/app/bin/../lib", >> which looks a little funky. Have you tried setting it to >> "/opt/asdasdasd/app/lib"? I'm assuming this is the location of the >> compiled library files, please confirm. >> >> Dan >> >> >> On Wed, 2011-10-26 at 04:30 -0700, Kobe wrote: >>> i have tomcat6 with APR connector built for jdk6. When i start server I >>> get >>> unsatisfied link error. >>> I try static linking for APR but no luck. can anyone help me plz... >>> >>> 16-Dec-2010 16:13:27 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/asdasdasd/app/bin/../lib >>> java.lang.reflect.InvocationTargetException >>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >>> at >>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) >>> at >>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) >>> at java.lang.reflect.Method.invoke(Method.java:597) >>> at >>> org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:261) >>> at >>> org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413) >>> Caused by: java.lang.UnsatisfiedLinkError: >>> org.apache.tomcat.jni.Pool.create(J)J >>> at org.apache.tomcat.jni.Pool.create(Native Method) >>> at >>> org.apache.tomcat.util.net.AprEndpoint.init(AprEndpoint.java:613) >>> at >>> org.apache.coyote.http11.Http11AprProtocol.init(Http11AprProtocol.java:107) >>> at >>> org.apache.catalina.connector.Connector.initialize(Connector.java:1022) >>> at >>> org.apache.catalina.core.StandardService.initialize(StandardService.java:703) >>> at >>> org.apache.catalina.core.StandardServer.initialize(StandardServer.java:786) >>> at org.apache.catalina.startup.Catalina.load(Catalina.java:528) >>> at org.apache.catalina.startup.Catalina.load(Catalina.java:552) >>> ... 6 more >>> >>> >>> my connector config is >>> >>> >>> >>protocol="org.apache.coyote.http11.Http11AprProtocol" >>>connectionTimeout="11000" >>>redirectPort="443" >>>/> >>> >>> >>> same for https also. >> >> > > -- View this message in context: http://old.nabble.com/s-tp32723372p32725411.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: s
i think its shortening long path for display with "..." I changed the paths to standard locations (using LD_LIBRARY_PATH). I still get the same error: Oct 26, 2011 8:48:12 AM 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: /usr/java/jdk1.6.0_21/jre/lib/i386/server:/usr/java/jdk1.6.0_21/jre/lib/i386:/usr/java/jdk1.6.0_21/jre/../lib/i386:/usr/local/apache-tomcat/apr-connector/lib:/usr/local/apache-tomcat/apr/lib:/usr/local/lib:/lib::/usr/java/packages/lib/i386:/lib:/usr/lib java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:261) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413) Caused by: java.lang.UnsatisfiedLinkError: org.apache.tomcat.jni.Pool.create(J)J at org.apache.tomcat.jni.Pool.create(Native Method) at org.apache.tomcat.util.net.AprEndpoint.init(AprEndpoint.java:613) at org.apache.coyote.http11.Http11AprProtocol.init(Http11AprProtocol.java:107) at org.apache.catalina.connector.Connector.initialize(Connector.java:1022) at org.apache.catalina.core.StandardService.initialize(StandardService.java:703) at org.apache.catalina.core.StandardServer.initialize(StandardServer.java:786) at org.apache.catalina.startup.Catalina.load(Catalina.java:528) at org.apache.catalina.startup.Catalina.load(Catalina.java:552) ... 6 more Daniel Mikusa-2 wrote: > > I see "java.library.path" is set to "/opt/asdasdasd/app/bin/../lib", > which looks a little funky. Have you tried setting it to > "/opt/asdasdasd/app/lib"? I'm assuming this is the location of the > compiled library files, please confirm. > > Dan > > > On Wed, 2011-10-26 at 04:30 -0700, Kobe wrote: >> i have tomcat6 with APR connector built for jdk6. When i start server I >> get >> unsatisfied link error. >> I try static linking for APR but no luck. can anyone help me plz... >> >> 16-Dec-2010 16:13:27 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/asdasdasd/app/bin/../lib >> java.lang.reflect.InvocationTargetException >> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >> at >> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) >> at >> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) >> at java.lang.reflect.Method.invoke(Method.java:597) >> at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:261) >> at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413) >> Caused by: java.lang.UnsatisfiedLinkError: >> org.apache.tomcat.jni.Pool.create(J)J >> at org.apache.tomcat.jni.Pool.create(Native Method) >> at >> org.apache.tomcat.util.net.AprEndpoint.init(AprEndpoint.java:613) >> at >> org.apache.coyote.http11.Http11AprProtocol.init(Http11AprProtocol.java:107) >> at >> org.apache.catalina.connector.Connector.initialize(Connector.java:1022) >> at >> org.apache.catalina.core.StandardService.initialize(StandardService.java:703) >> at >> org.apache.catalina.core.StandardServer.initialize(StandardServer.java:786) >> at org.apache.catalina.startup.Catalina.load(Catalina.java:528) >> at org.apache.catalina.startup.Catalina.load(Catalina.java:552) >> ... 6 more >> >> >> my connector config is >> >> >> >protocol="org.apache.coyote.http11.Http11AprProtocol" >>connectionTimeout="11000" >>redirectPort="443" >>/> >> >> >> same for https also. > > -- View this message in context: http://old.nabble.com/s-tp32723372p32725391.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: s
I see "java.library.path" is set to "/opt/asdasdasd/app/bin/../lib", which looks a little funky. Have you tried setting it to "/opt/asdasdasd/app/lib"? I'm assuming this is the location of the compiled library files, please confirm. Dan On Wed, 2011-10-26 at 04:30 -0700, Kobe wrote: > i have tomcat6 with APR connector built for jdk6. When i start server I get > unsatisfied link error. > I try static linking for APR but no luck. can anyone help me plz... > > 16-Dec-2010 16:13:27 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/asdasdasd/app/bin/../lib > java.lang.reflect.InvocationTargetException > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:597) > at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:261) > at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413) > Caused by: java.lang.UnsatisfiedLinkError: > org.apache.tomcat.jni.Pool.create(J)J > at org.apache.tomcat.jni.Pool.create(Native Method) > at org.apache.tomcat.util.net.AprEndpoint.init(AprEndpoint.java:613) > at > org.apache.coyote.http11.Http11AprProtocol.init(Http11AprProtocol.java:107) > at > org.apache.catalina.connector.Connector.initialize(Connector.java:1022) > at > org.apache.catalina.core.StandardService.initialize(StandardService.java:703) > at > org.apache.catalina.core.StandardServer.initialize(StandardServer.java:786) > at org.apache.catalina.startup.Catalina.load(Catalina.java:528) > at org.apache.catalina.startup.Catalina.load(Catalina.java:552) > ... 6 more > > > my connector config is > > > protocol="org.apache.coyote.http11.Http11AprProtocol" >connectionTimeout="11000" >redirectPort="443" >/> > > > same for https also.