LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 07-24-2004, 11:30 AM   #1
Dexter2004
LQ Newbie
 
Registered: Jul 2004
Posts: 1

Rep: Reputation: 0
Problem in Apache2 + Tomcat5


I'm with some problems running tomcat 5...
I have apache 2 and tomcat 5... i start apache and tomcat (no problems). But end i try localhost:8080 i get this message:

The connection was refused when attempting to contact localhost:8080

Can someone help me?

I also get an exception when i stop tomcat:
Code:
Stopping Tomcat... 
Using CATALINA_BASE:   /opt/tomcat 
Using CATALINA_HOME:   /opt/tomcat 
Using CATALINA_TMPDIR: /opt/tomcat/temp 
Using JAVA_HOME:       /opt/sun-jdk-1.4.2.04 
Catalina.stop: java.net.ConnectException: Connection refused 
java.net.ConnectException: Connection refused 
   at java.net.PlainSocketImpl.socketConnect(Native Method) 
   at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305) 
   at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171) 
   at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158) 
   at java.net.Socket.connect(Socket.java:452) 
   at java.net.Socket.connect(Socket.java:402) 
   at java.net.Socket.<init>(Socket.java:309) 
   at java.net.Socket.<init>(Socket.java:124) 
   at org.apache.catalina.startup.Catalina.stop(Catalina.java:831) 
   at org.apache.catalina.startup.Catalina.execute(Catalina.java:683) 
   at org.apache.catalina.startup.Catalina.process(Catalina.java:179) 
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 
   at java.lang.reflect.Method.invoke(Method.java:324) 
   at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
thanks in advanced

Dex
 
Old 08-06-2004, 04:13 PM   #2
rmsat
LQ Newbie
 
Registered: May 2004
Location: Southern California
Posts: 21

Rep: Reputation: 15
I to had that problem and came here and saw the () replys. What I did was shutdown twice in a row. I also fixed my tomcat users so I did two things and now it works fine. I would check your catalina.out log in $CATALINA_HOME/logs.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
apache2 & tomcat5 - how to configure VIRTUAL HOSTS & JSP? nicolasdiogo SUSE / openSUSE 2 04-05-2007 09:06 AM
Why is tomcat5 still unstable?!!!!! Mathsniper Debian 1 08-28-2005 05:04 AM
Installing Tomcat5 Randvegeta Linux - Software 1 05-07-2005 05:32 AM
SuSE 9.2 - apache2 & tomcat5 - how to configure VIRTUAL HOSTS & JSP? nicolasdiogo Linux - Networking 2 03-20-2005 08:06 AM
Connecting Apache2 with Tomcat5 using mod_jk royb Linux - Software 6 03-09-2004 06:26 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:40 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration