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
887 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
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
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 

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 350 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 350 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

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

Question has a verified solution.

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

This exercise is about for the following scenario: Dmgr and One node with 2 application server. Each application server contains it owns application. Application server name as follows server1 contains app1 server2 contains app1 Prereq…
Periodically we have to update or add SSL certificates for customers. Depending upon your hosting plan you may be responsible for the installation and/or key generation. In the wake of Heartbleed many sites were forced to re-key. We will concen…
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

772 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