File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Tomcat and the fly likes Connection Refused Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Connection Refused" Watch "Connection Refused" New topic

Connection Refused

Favian Ee

Joined: Sep 28, 2004
Posts: 1
Hi all. I trying to run a program on Mandrake 10 that uses tomcat. However when I run the program, which executes, I get a � Connection refused� which keeps repeating (see last line). Can someone tell me what that is about and how to remedy it? The system printout is below. Thanks.

Guessing TOMCAT_HOME from to /opt/CVWdocserver/jakarta/tomcat/bin/..
Setting TOMCAT_HOME to /opt/CVWdocserver/jakarta/tomcat/bin/..
Using classpath: .:/opt/CVWdocserver/jakarta/tomcat/bin/../lib/ant.jar:/opt/CVWdocserver/jakarta/tomcat/bin/../lib/jasper.jar:/opt/CVWdocserver/jakarta/tomcat/bin/../lib/servlet.jar:/opt/CVWdocserver/jakarta/tomcat/bin/../lib/test:/opt/CVWdocserver/jakarta/tomcat/bin/../lib/webserver.jar:/opt/CVWdocserver/jakarta/tomcat/bin/../lib/xml.jar
[root@localhost CVWdocserver]# Context log: path="/examples" Adding context path="/examples" docBase="webapps/examples"
Context log: path="" Adding context path="" docBase="webapps/ROOT"
Context log: path="/test" Adding context path="/test" docBase="webapps/test"
Starting tomcat. Check logs/tomcat.log for error messages
Starting tomcat install="/opt/CVWdocserver/jakarta/tomcat/bin/.." home="/opt/CVWdocserver/jakarta/tomcat" classPath=".:/opt/CVWdocserver/jakarta/tomcat/bin/../lib/ant.jar:/opt/CVWdocserver/jakarta/tomcat/bin/../lib/jasper.jar:/opt/CVWdocserver/jakarta/tomcat/bin/../lib/servlet.jar:/opt/CVWdocserver/jakarta/tomcat/bin/../lib/test:/opt/CVWdocserver/jakarta/tomcat/bin/../lib/webserver.jar:/opt/CVWdocserver/jakarta/tomcat/bin/../lib/xml.jar"
Context log: path="/admin" Automatic context load docBase="/opt/CVWdocserver/jakarta/tomcat/webapps/admin"
Context log: path="/admin" Adding context path="/admin" docBase="/opt/CVWdocserver/jakarta/tomcat/webapps/admin"
Context log: path="/app" Automatic context load docBase="/opt/CVWdocserver/jakarta/tomcat/webapps/app"
Context log: path="/app" Adding context path="/app" docBase="/opt/CVWdocserver/jakarta/tomcat/webapps/app" Connection refused
at Method)
at Source)
at Source)
at Source)
at Source)
at Source)
at<init>(Unknown Source)
at<init>(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
at com.javaexchange.dbConnectionBroker.DbConnectionBroker.createConn(
at com.javaexchange.dbConnectionBroker.DbConnectionBroker.<init>(
at org.mitre.cvw.docservlet.DocServlet.init(
at org.apache.tomcat.core.ServletWrapper.initServlet(
at org.apache.tomcat.core.ServletWrapper.loadServlet(
at org.apache.tomcat.context.LoadOnStartupInterceptor.contextInit(
at org.apache.tomcat.core.ContextManager.initContext(
at org.apache.tomcat.core.ContextManager.init(
at org.apache.tomcat.startup.Tomcat.execute(
at org.apache.tomcat.startup.Tomcat.main( Connection refused
Chandra Sekhar
Ranch Hand

Joined: Sep 26, 2003
Posts: 90

I think the problem is in creating database connection.

Check ur server.xml.Check the whether the database parameters you have given for the appplication "app" is correct or not.


"Luck is when opportunity meets preparation"
Dirk Schreckmann

Joined: Dec 10, 2001
Posts: 7023
Moving this to the JDBC forum...

[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63865

The connection in question is not a database connection but rather a network connection, so this post was moved to JDBC in error.

I am moving it to the Tomcat forum.

[Asking smart questions] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: Connection Refused
jQuery in Action, 3rd edition