Error connecting to Apache Tomcat instance.

1,071 views
Skip to first unread message

Victor Borring Vieira

unread,
Jun 30, 2015, 8:55:39 AM6/30/15
to ra...@googlegroups.com
Good morning, you can help me?

I do not have experience with server administration, but use a Railo Server on Amazon EC2 instance with one 4Gb and two core processing, windows 2008 R2.

I have this server running some small sites about two years, but some three months here, every 2 or 3 days to restart the server, the error appears below.


Error connecting to Apache Tomcat instance.
Please check that a Tomcat server is running at given location and port..
Details:
No connection could be made because the target machine actively refused it 127.0.0.1:8009

You can change this message by changing TomcatConnectErrorURL setting in setting file.




can someone give me a light that can be?

tks Victor

Bilal

unread,
Jun 30, 2015, 11:00:35 PM6/30/15
to ra...@googlegroups.com
Victor:
Your tomcat instance stopped responding.
What is in the Catalina.out (tomcat error logs) should help you pinpoint the source.
Can you find and review the logs. If unclear you can post an excerpt.

Victor Borring Vieira

unread,
Jul 1, 2015, 8:52:03 AM7/1/15
to ra...@googlegroups.com
Good morning friend,

thanks for your return,

Something not know if it matters since I created the Railo server is installed in the directory C: \ Railo, but the sites are in D: \ www, so this so the years

The last time the server was stopped between 29 and 30;

In the log file catalina.2015-06-29.log the past mistakes before the server to are these:

SEVERE: Error deploying web application directory C:\railo\tomcat\webapps\host-manager
java.lang.IllegalArgumentException: addChild:  Child name '/host-manager' is not unique
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:887)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1114)
at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1673)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

Jun 29, 2015 7:13:27 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory C:\railo\tomcat\webapps\tomcat-docs
Jun 29, 2015 7:13:27 PM org.apache.catalina.startup.HostConfig deployDirectory
SEVERE: Error deploying web application directory C:\railo\tomcat\webapps\tomcat-docs
java.lang.IllegalArgumentException: addChild:  Child name '/tomcat-docs' is not unique
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:887)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1114)
at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1673)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

Jun 29, 2015 7:13:27 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory C:\railo\tomcat\webapps\tomcat-manager
Jun 29, 2015 7:13:27 PM org.apache.catalina.startup.HostConfig deployDirectory
SEVERE: Error deploying web application directory C:\railo\tomcat\webapps\tomcat-manager
java.lang.IllegalArgumentException: addChild:  Child name '/tomcat-manager' is not unique
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:887)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1114)
at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1673)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)


Already in the log catalina.2015-06-30.log after rebooted the server had errors:

SEVERE: Error deploying web application directory C:\railo\tomcat\webapps\tomcat-docs
java.lang.IllegalArgumentException: addChild:  Child name '/tomcat-docs' is not unique
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:887)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1114)
at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1673)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

Jun 30, 2015 7:53:06 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory C:\railo\tomcat\webapps\tomcat-manager
Jun 30, 2015 7:53:06 AM org.apache.catalina.startup.HostConfig deployDirectory
SEVERE: Error deploying web application directory C:\railo\tomcat\webapps\tomcat-manager
java.lang.IllegalArgumentException: addChild:  Child name '/tomcat-manager' is not unique
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:887)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1114)
at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1673)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

I do not know if this information helps: it mainly seemed s Greek to me.

Thanks again for the help
Victor
catalina.2015-06-29.log
catalina.2015-06-30.log

Bilal

unread,
Jul 2, 2015, 12:33:56 PM7/2/15
to ra...@googlegroups.com
Victor,
the host-manager is not deployed with Railo setup so the error is expected. Hover,
to me it looks like Tomcat is restarting quite frequently. Are you doing multiple restarts a day? If not, there is something to be investigated. I.e. code causing restarts?
During restarts Tomcat will not accept connections, thus, the error message could be correct (Tomcat is refusing connections).

You can upgrade the connector as well to eliminate that as source of issues as well:


HTH,
Bilal

Victor Borring Vieira

unread,
Jul 3, 2015, 8:25:07 AM7/3/15
to ra...@googlegroups.com
Good day,

I tried to carry out the process but lost the IIS settings to run the files .CFM

Have I done something wrong?

To answer your question, so restart the server when the tomcat to, which takes place once a day now.
Reply all
Reply to author
Forward
0 new messages