• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1116
  • Last Modified:

How do I fix this Tomcat5 install?

Hello,
I am installing tomcat 5 on centos 5 in order to learn JSP programming (Im a java programmer, might as well learn how jsp and servlets work). ANyways I have it installed yum install tomcat5 but when I go to http://localhost:8080 I get nothing but a blank screen. I checked the logs to see what was happening (I have a version of sun java... jre1.5.0_06 installed) and came back with this:

INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/lib/gcj-4.1.1
31-Jul-07 1:42:58 AM org.apache.coyote.http11.Http11BaseProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
31-Jul-07 1:42:58 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1234 ms
31-Jul-07 1:42:58 AM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
31-Jul-07 1:42:58 AM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.20
31-Jul-07 1:42:58 AM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
31-Jul-07 1:42:58 AM org.apache.coyote.http11.Http11BaseProtocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
31-Jul-07 1:42:59 AM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
31-Jul-07 1:42:59 AM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/56  config=null
31-Jul-07 1:42:59 AM org.apache.catalina.storeconfig.StoreLoader load
INFO: Find registry server-registry.xml at classpath resource
31-Jul-07 1:42:59 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 651 ms


How do I fix this install so that it works as it should?

Worth 500 points.

Thanks,
Rick
0
richardsimnett
Asked:
richardsimnett
  • 4
  • 3
  • 2
1 Solution
 
vzilkaCommented:
Is this the logs or the console?
Under the logs there is nothing else?
0
 
richardsimnettAuthor Commented:
vzilka,
thats from the logs. Thats all there is.

Thanks,
Rick
0
 
vzilkaCommented:
Is the JAVA_HOME configured? Is there an Oracle DB running on the machine?
0
Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
vzilkaCommented:
What is the configured JAVA_HOME?
0
 
richardsimnettAuthor Commented:
well, that may be an issue, I just typed in echo $JAVA_HOME and got nothing back... what should I set that to? the path of my java bin files? There is not oracle on that box, there is httpd, asterisk, mysql, coldfusion mx7, and now tomcat 5.

FYI - tomcat5 was auto installed for me by yum.

Thanks,
Rick
0
 
ashesh17Commented:
Hi rich
try this to set JAVA_HOME
there should be a file java.sh in /etc/profile.d/
put following in that file.
JAVA_HOME="path to ur java instalation" e.g. "/usr/java/jdk1.5.0_06"
CLASSPATH=.:$JAVA_HOME/lib
PATH=$JAVA_HOME/bin:$PATH
export JAVA_HOME CLASSPATH PATH

now type echo $JAVA_HOME it should return the path as you set.
Now try to start Tomcat
0
 
richardsimnettAuthor Commented:
ashesh17,
ok I went to /etc/profile.d and there was not a java.sh file in there.

What should I do?

Thanks,
Rick
0
 
ashesh17Commented:
Rick,
Please make sure that jdk is installed on your system.
and if u can,t find java.sh in /etc/profile.d
then make the same entries as told earlier in bash_profile file.
to do this:
go to your terminal, at root type  vi .bash_profile
now make those entries to this file.
save this file and start tomcat.
0
 
richardsimnettAuthor Commented:
ashesh17,
ok  that worked! Tomcat started properly and took me to the home screen.

Thanks for your help! I can finally sit down and start learning JSP.


Thanks,
Rick
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Python 3 Fundamentals

This course will teach participants about installing and configuring Python, syntax, importing, statements, types, strings, booleans, files, lists, tuples, comprehensions, functions, and classes.

  • 4
  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now