Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Apache Tomcat, Tomcat, 6.0.16, can't browse to manager, can't establish a connection to the server at itzi.jakeros.com:8081.

Posted on 2008-06-23
11
Medium Priority
?
896 Views
Last Modified: 2013-12-02
Hello everyone,

I have installed tomcat but I can't navigate to its manager and I need some help figuring out the parts that I am missing please.

I work on a windows xp machine, but this installation is taking place in a linux server using a SecureCRT session.

The default port for tomcat 8080 is already in use by apache so I had to modify the server.xml  to use port 8081


<Connector port="8081" protocol="HTTP/1.1"
               connectionTimeout="20000"
               redirectPort="8443" />
               
I did set up the JAVA_HOME and CATALINA_HOME variables.

I was able to do until the $CATALINA_HOME/bin/startup.sh (I believe so..)

and when I try to navigate to URL: http://itzi.jakeros.com:8081/

I get message "Unable to connect" Firefox can't estabish a connection to the server.....

I am not sure what I'm missing, I was not sure if I need to specify the domain such as http://itzi.jakeros.com

on the server.xml file instead that using localhost?

can someone please be able to offer some help?

Thank you,
server.xml.txt
0
Comment
Question by:itortu
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 7
  • 4
11 Comments
 

Author Comment

by:itortu
ID: 21847760
the tomcat installation directory is as

/ppm/apache-tomcat-6.0.16

the java directory folder is

/ppm/j2sdj1.4.2_17

please let me know if i need to provide additional details to obtain help or a solution.

thank you.
0
 

Author Comment

by:itortu
ID: 21847805
i tried to specify the domain in here:

 <Host name="itzi.jakeros.com"  appBase="webapps"
            unpackWARs="true" autoDeploy="true"
            xmlValidation="false" xmlNamespaceAware="false">

i still get the same message.
0
 
LVL 35

Expert Comment

by:girionis
ID: 21860466
What happens if you try to conenct to it from the same machine and by using

 http://127.0.0.1:8081/

Or what happens if you try to connect by using the machine's IP?
0
Looking for a new Web Host?

Lunarpages' assortment of hosting products and solutions ensure a perfect fit for anyone looking to get their vision or products to market. Our award winning customer support and 30-day money back guarantee show the pride we take in being the industry's premier MSP.

 

Author Comment

by:itortu
ID: 21861274
I still get the same error.

I need to indicate that when I run the ./startup.sh

I then open the catalina.out file

and its contents are pasted below.

it seems there is a conflict with the versions but I am not sure if that could be one of the problems, and how to fix it.

would you be able to give me a hand?

thank you.
Exception in thread "main" java.lang.UnsupportedClassVersionError: org/apache/catalina/startup/Bootstrap (Unsupported major.minor version 49.0)
	at java.lang.ClassLoader.defineClass0(Native Method)
	at java.lang.ClassLoader.defineClass(ClassLoader.java:539)
	at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
	at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
	at java.net.URLClassLoader.access$100(URLClassLoader.java:55)
	at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
	at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)

Open in new window

0
 

Author Comment

by:itortu
ID: 21861284
i am using tomcat 6.0.16 and java sdk 1.4.2_17
0
 
LVL 35

Accepted Solution

by:
girionis earned 1400 total points
ID: 21861365
The cause of this error is a class and virtual machine mismatch. It means that a class that was compiled with Java 1.5 is trying to run on a 1.4 environment. In other words you are using Java version 1.4 to run a 1.5 version class. That is, Tomcat 6.0 needs Java 1.5 and above ot run.
0
 

Author Comment

by:itortu
ID: 21861392
i understand, would you please point me in the right direction to get Java 1.5?
I get lost on the downloads page for sun, i am not familiar yet with it.
0
 
LVL 35

Assisted Solution

by:girionis
girionis earned 1400 total points
ID: 21861412
0
 

Author Comment

by:itortu
ID: 21861415
for example, from this page which is the right download?

http://java.sun.com/javase/downloads/index_jdk5.jsp

is it this one: Java Runtime Environment (JRE) 5.0 Update 15

or this one:  JDK 5.0 Update 15

0
 

Author Comment

by:itortu
ID: 21867504
hey gigionis thank you for your help, now i am able to navigate to tomcat.

i am closing this question but i would like to ask, now i have to redirect requests to apache, to tomcat.
do you know what version of mod_jk I need related to the verisions I have of apache, tomcat and java?

apache 2
tomcat 6.0.16
java jdk 1.5.0_14

thank you
0
 
LVL 35

Expert Comment

by:girionis
ID: 21870613
Thanks for accepting, glad I was of help :)

As per your other question you need the mod_jk that comes with Apache 2.
0

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Lease-to-own eliminates the expenditure of hardware replacement and allows you to pay off the server over time. Usually, this is much cheaper than leasing servers. Think of lease-to-own as credit without interest.
What You Need to Know when Searching for a Webhost Provider
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
Suggested Courses

636 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question