malcon lopez

Greenhorn
+ Follow
since Feb 18, 2014
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by malcon lopez

Tim Holloway wrote:"export" doesn't promote the environment assignment to other command shells. It merely ensures that the assignment will be visible in the child shells your current shell spawns.

As long as you have JAVA_HOME set to the proper JDK in the shell that launches Tomcat, its value in other shells doesn't matter.

Although I don't have much use for IcedTea myself, so I do my exports for things like JAVA_HOME at a higher level. There are many places to do this. One is the profile of the user account that Tomcat is launched under. Another is the set of profiles used globally by the various shells and defined in the /etc directory.



I followed many tutorials and I don't know how to config it!
7 years ago

Jeanne Boyarsky wrote:If you type this command, does it show your changes to the path? (I'm guessing it doesn't.)
echo $PATH

When you say you exit from the console, does that mean opening a new SSH connection or something else?



Hi Jeanne ,

Thanks for your reply, I type this echo $PATH and prints "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/lib/jvm/java-1.6.0-openjdk-i386/bin
" it is still using the openjdk version not the Oracle JDK that it is located at /usr/share/java/jdk1.7.0_51

When you say you exit from the console, does that mean opening a new SSH connection or something else?
Just opening another SSH with the same IP of the server, it seems that does not save the path configuration and does not work my app web.
7 years ago
Hello,

Initially I installed the openjdk , but I found that My Web App does not run so that this openjdk version and some mistakes in the configuration, right now I have installed the jdk1.7.0_51 on my.
I also typed this on the ssh.

export PATH=/usr/lib/jvm/jdk1.7.0_51/bin:/usr/lib/jvm/jdk1.7.0_51/db/bin:$PATH
export JAVA_HOME=/usr/lib/jvm/jdk1.7.0_51
export DERBY_HOME=/usr/lib/jvm/jdk1.7.0_51/db/bin

Everything's ok, however when I exit from the console and type the java -version still shows me

java version "1.6.0_27"
OpenJDK Runtime Environment (IcedTea6 1.12.6) (6b27-1.12.6-1~deb7u1)
OpenJDK Client VM (build 20.0-b12, mixed mode, sharing)

Not the latest one.

Could anyone help me to solve this problem. I will be happy
7 years ago

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
7 years ago

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
7 years ago

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
7 years ago
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
7 years ago