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
885 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
  • 7
  • 4
11 Comments
 

Author Comment

by:itortu
Comment Utility
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
Comment Utility
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
Comment Utility
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
 

Author Comment

by:itortu
Comment Utility
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
Comment Utility
i am using tomcat 6.0.16 and java sdk 1.4.2_17
0
Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

 
LVL 35

Accepted Solution

by:
girionis earned 350 total points
Comment Utility
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
Comment Utility
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 350 total points
Comment Utility
0
 

Author Comment

by:itortu
Comment Utility
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
Comment Utility
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
Comment Utility
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

Scale it in WD Gold

With up to ten times the workload capacity of desktop drives, WD Gold hard drives employ advanced technology to deliver among the best in reliability, capacity, power efficiency and performance.

Join & Write a Comment

Suggested Solutions

One of the typical problems I have experienced is when you have to move a web server from one hosting site to another. You normally prepare all on the new host, transfer the site, change DNS and cross your fingers hoping all will be ok on new server…
Upgrading Tomcat – There are a couple of methods to upgrade Tomcat is to use The Apache Installer is to download and unzip and run the services.bat remove|install Tomcat6 Because of the App that we are working with, we can only use Tomcat 6.…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

763 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now