• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

Apache Tomcat Native library not found

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,

when I type in the logs of my tomcat, typing # vi catalina.out , I get these error.
Please any help?

INFO: Destroying ProtocolHandler ["http-bio-8080"]
Feb 18, 2014 4:01:06 PM org.apache.coyote.AbstractProtocol destroy
INFO: Destroying ProtocolHandler ["ajp-bio-8009"]
Feb 18, 2014 4:01:16 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: /usr/lib/jvm/java-6-openjdk-i386/jre/lib/i386/client:/usr/lib/jvm/java-6-openjdk-i386/jre/lib/i386:/usr/lib/jvm/java-6-openjdk-i386/jre/../lib/i386:/usr/java/packages/lib/i386:/usr/lib/i386-linux-gnu/jni:/lib/i386-linux-gnu:/usr/lib/i386-linux-gnu:/usr/lib/jni:/lib:/usr/lib
Feb 18, 2014 4:01:16 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-bio-8080"]
Feb 18, 2014 4:01:16 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["ajp-bio-8009"]
Feb 18, 2014 4:01:16 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 487 ms
Feb 18, 2014 4:01:16 PM org.apache.catalina.core.StandardService startInternal
INFO: Starting service Catalina
Feb 18, 2014 4:01:16 PM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.50
Feb 18, 2014 4:01:16 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory /usr/share/apache-tomcat-7.0.50/webapps/manager
Feb 18, 2014 4:01:18 PM org.apache.tomcat.websocket.server.WsSci onStartup
INFO: JSR 356 WebSocket (Java WebSocket 1.0) support is not available when running on Java 6. To suppress this message, run Tomcat on Java 7, remove the WebSocket JARs from $CATALINA_HOME/lib or add the WebSocketJARs to the tomcat.util.scan.DefaultJarScanner.jarsToSkip property in $CATALINA_BASE/conf/catalina.properties. Note that the deprecated Tomcat 7 WebSocket API will be available.
Feb 18, 2014 4:02:16 PM org.apache.catalina.util.SessionIdGenerator createSecureRandom
INFO: Creation of SecureRandom instance for session ID generation using [SHA1PRNG] took [58,261] milliseconds.
Feb 18, 2014 4:02:16 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory /usr/share/apache-tomcat-7.0.50/webapps/examples
Feb 18, 2014 4:02:17 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory /usr/share/apache-tomcat-7.0.50/webapps/siscoquiquijana
Feb 18, 2014 4:02:18 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory /usr/share/apache-tomcat-7.0.50/webapps/host-manager
Feb 18, 2014 4:02:19 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory /usr/share/apache-tomcat-7.0.50/webapps/sisco
Feb 18, 2014 4:02:21 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory /usr/share/apache-tomcat-7.0.50/webapps/docs
Feb 18, 2014 4:02:22 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory /usr/share/apache-tomcat-7.0.50/webapps/ROOT
Feb 18, 2014 4:02:23 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-bio-8080"]
Feb 18, 2014 4:02:23 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["ajp-bio-8009"]
Feb 18, 2014 4:02:23 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 66751 ms
Type :quit<Enter> to exit Vim
 
Sheriff
Posts: 67590
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Those aren't errors. INFO stands for "informational".
 
malcon lopez
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Bear Bibeault wrote:Those aren't errors. INFO stands for "informational".


thank you for your post, I am new with this, Is this INFO stands will cause problems in my app so that my java app work perfectly local, but not in my server
 
Bear Bibeault
Sheriff
Posts: 67590
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It will cause no problems.
 
malcon lopez
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Bear Bibeault wrote:It will cause no problems.



Ok , but I can not access to my app it seems that there is not one library, I just uploaded my java app, but I did not get any error, please can you help me to know how to find how is running my app , I tried #tail -f catalina.out or vi catalina.out however I get only infos.

Cheers
 
Saloon Keeper
Posts: 24287
167
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
For best results, point the Tomcat JAVA_HOME to a Java 7 JDK. That will get rid of the websockets message.

The native library message is an indicator that you don't have the Apache Tomcat Native library built into your copy of Tomcat. Unless you are an advanced Tomcat user and you absolutely, positively MUST have the maximum in performance, however, you should leave this alone. You can't just drop something in and/or set an option to use the TNL, you have to build a complete custom built of Tomcat from source code with TNL enabled in the build. It's almost never worth this much trouble.

I've used Tomcat since at least version 3 and I don't think I've ever done a TNL build, even briefly. In my opinion, if you're that close to Tomcat's limits, you're probably better off doing some tuning and/or clustering.

So, like Bear said. Ignore the message.
 
malcon lopez
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Tim Holloway wrote:For best results, point the Tomcat JAVA_HOME to a Java 7 JDK. That will get rid of the websockets message.

The native library message is an indicator that you don't have the Apache Tomcat Native library built into your copy of Tomcat. Unless you are an advanced Tomcat user and you absolutely, positively MUST have the maximum in performance, however, you should leave this alone. You can't just drop something in and/or set an option to use the TNL, you have to build a complete custom built of Tomcat from source code with TNL enabled in the build. It's almost never worth this much trouble.

I've used Tomcat since at least version 3 and I don't think I've ever done a TNL build, even briefly. In my opinion, if you're that close to Tomcat's limits, you're probably better off doing some tuning and/or clustering.

So, like Bear said. Ignore the message.



Thanks for your post,
I have been using tomcat since 2 months aprox so new , Could you please explain how to point it?.

I am using debian in order to run my java web app, however I uploaded the java app as well as all .jars but only shows me the first login windows and when I try to access putting the username and password , it looks like it need more jars to run. here the link Take a look please http://162.243.143.84:8080/sisco/, user:ADMIN pass:admin.

Cheers
 
Tim Holloway
Saloon Keeper
Posts: 24287
167
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I normally set it up like this:


export JAVA_HOME=/usr/java/jdk1.7.1234



Since I run RedHat-style systems, and the RPM installer puts JREs and JDKs under /usr/java

The actual export would either be in my user profile file (when running Tomcat under my own userID) or in the initscript that runs the catalina.sh when running Tomcat as a system service.
 
reply
    Bookmark Topic Watch Topic
  • New Topic