Error connecting to Apache Tomcat instance

3,043 views
Skip to first unread message

racerstech

unread,
Aug 16, 2013, 9:01:19 AM8/16/13
to ra...@googlegroups.com
Hi,
I am new to Railo and just getting my first sites set up.
Railo seems to work just fine for a while and then I get this message


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.


If I restart "Apache Tomcat Railo" service I can then navigate the page with out any errors.

Can someone point me in the right direction to solve this problem?

Thanks

Jordan Michaels

unread,
Aug 16, 2013, 1:57:48 PM8/16/13
to ra...@googlegroups.com
Sounds like Tomcat is crashing. If this happens again, see if Tomcat is
actually running any longer.

You can check the catalina logs in {railo}\tomcat\logs and they can give
you some insight as to why Tomcat is crashing (if that's what's happening).

Details on how you installed, what OS/Connector you're using, would also
be helpful in future posts.

HTH

Warm Regards,
Jordan Michaels
> --
> Did you find this reply useful? Help the Railo community and add it to
> the Railo Server wiki at https://github.com/getrailo/railo/wiki
> ---
> You received this message because you are subscribed to the Google
> Groups "Railo" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/railo/63e6ce47-d89a-495f-a66f-0966b9b8bf3d%40googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.

racerstech

unread,
Aug 17, 2013, 10:55:47 AM8/17/13
to ra...@googlegroups.com
Thanks for the rely here is some more info

Windows Web Server 2008 r2
I used the default Railo installer
VersionRailo 4.0.4.001 final
Version NameAppollo
Release dateMar 6, 2013
ColdFusion® compatibilty version10.0.0.0

Configuration FileC:\railo\lib\railo-server\context\railo-server.xml
OSWindows Server 2008 R2 (6.1) 64bit
Remote IP127.0.0.1
Host Name127.0.0.1
Servlet ContainerApache Tomcat/7.0.37
Railo Server ID65c660019cccef4f8baaace3fdeeea29
Java1.7.0_17 (Oracle Corporation) 64bit
Architecture64bit 

I have three sites using Railo on this test server.
When I get the "Error connecting to Apache Tomcat instance."

I can load this admin

but the admin for each site I get the tomcat error.

Here is part of my Catalina log

Aug 17, 2013 1:22:28 AM org.apache.coyote.AbstractProtocol pause
INFO: Pausing ProtocolHandler ["http-bio-8888"]
Aug 17, 2013 1:22:35 AM org.apache.coyote.AbstractProtocol pause
INFO: Pausing ProtocolHandler ["ajp-bio-8009"]
Aug 17, 2013 1:22:37 AM org.apache.catalina.core.StandardService stopInternal
INFO: Stopping service Catalina
Aug 17, 2013 1:22:38 AM org.apache.catalina.core.StandardWrapper unload
INFO: Waiting for 1 instance(s) to be deallocated
Aug 17, 2013 1:22:39 AM org.apache.catalina.core.StandardWrapper unload
INFO: Waiting for 1 instance(s) to be deallocated
Aug 17, 2013 1:22:40 AM org.apache.catalina.core.StandardWrapper unload
INFO: Waiting for 1 instance(s) to be deallocated
Aug 17, 2013 1:22:43 AM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [] appears to have started a thread named [ajp-bio-8009-exec-51] but has failed to stop it. This is very likely to create a memory leak.
Aug 17, 2013 1:22:43 AM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [] appears to have started a thread named [ajp-bio-8009-exec-52] but has failed to stop it. This is very likely to create a memory leak.
Aug 17, 2013 1:22:43 AM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [] appears to have started a thread named [ajp-bio-8009-exec-53] but has failed to stop it. This is very likely to create a memory leak.
Aug 17, 2013 1:22:43 AM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [] appears to have started a thread named [ajp-bio-8009-exec-54] but has failed to stop it. This is very likely to create a memory leak.
Aug 17, 2013 1:22:43 AM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [] appears to have started a thread named [ajp-bio-8009-exec-55] but has failed to stop it. This is very likely to create a memory leak.
Aug 17, 2013 1:22:43 AM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [] appears to have started a thread named [ajp-bio-8009-exec-56] but has failed to stop it. This is very likely to create a memory leak.
Aug 17, 2013 1:22:43 AM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [] appears to have started a thread named [ajp-bio-8009-exec-57] but has failed to stop it. This is very likely to create a memory leak.
Aug 17, 2013 1:22:43 AM org.apache.coyote.AbstractProtocol stop
INFO: Stopping ProtocolHandler ["http-bio-8888"]
Aug 17, 2013 1:22:43 AM org.apache.coyote.AbstractProtocol stop
INFO: Stopping ProtocolHandler ["ajp-bio-8009"]
Aug 17, 2013 1:22:46 AM org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\railo\tomcat\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\PHP\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;;.
Aug 17, 2013 1:22:47 AM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-bio-8888"]
Aug 17, 2013 1:22:47 AM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["ajp-bio-8009"]
Aug 17, 2013 1:22:47 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 909 ms
Aug 17, 2013 1:22:47 AM org.apache.catalina.core.StandardService startInternal
INFO: Starting service Catalina
Aug 17, 2013 1:22:47 AM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.37
Aug 17, 2013 1:22:53 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory C:\railo\tomcat\webapps\host-manager
Aug 17, 2013 1:22:53 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory C:\railo\tomcat\webapps\tomcat-docs
Aug 17, 2013 1:22:54 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory C:\railo\tomcat\webapps\tomcat-manager
Aug 17, 2013 1:22:54 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory C:\railo\tomcat\webapps\host-manager
Aug 17, 2013 1:22:54 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory C:\railo\tomcat\webapps\ROOT
Aug 17, 2013 1:22:55 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory C:\railo\tomcat\webapps\tomcat-docs
Aug 17, 2013 1:22:55 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory C:\railo\tomcat\webapps\tomcat-manager
Aug 17, 2013 1:22:55 AM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-bio-8888"]
Aug 17, 2013 1:22:55 AM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["ajp-bio-8009"]
Aug 17, 2013 1:22:55 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 8654 ms
Aug 17, 2013 1:22:55 AM org.apache.coyote.ajp.AjpProcessor process
SEVERE: Error processing request
java.lang.NullPointerException
at java.io.File.<init>(Unknown Source)
at mod_cfml.core.invoke(core.java:245)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:936)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
at org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:200)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:310)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

Aug 17, 2013 1:22:55 AM org.apache.coyote.ajp.AjpProcessor process
SEVERE: Error processing request
java.lang.NullPointerException
at java.io.File.<init>(Unknown Source)
at mod_cfml.core.invoke(core.java:245)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:936)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
at org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:200)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:310)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

Aug 17, 2013 1:22:55 AM org.apache.coyote.ajp.AjpProcessor process
SEVERE: Error processing request
java.lang.NullPointerException
at java.io.File.<init>(Unknown Source)
at mod_cfml.core.invoke(core.java:245)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:936)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
at org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:200)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:310)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)


Is there someone for hire that can login and see what is going on and give me a few pointers?

Thanks
Jeff Roberg

Jordan Michaels

unread,
Aug 21, 2013, 2:34:25 PM8/21/13
to ra...@googlegroups.com
Hi Jeff,

Well, I see multiple problems happening here, but the cause is unclear
still.

Can you tell me a little bit more about your Windows install? Is is a
clean/fresh install of windows 2k8? Is there other software running on
it that could effect file access or permissions (security software,
sandboxing software, that kind of thing)? For IIS, are you using the
default connector that comes with the installer?

If you'd like to hire someone to take care of this quickly, Railo
Professional Support is the way to go:
http://www.getrailo.com/index.cfm/contact-us/

They can do short-term contracts that will probably be enough to
identify what exactly is happening here.

Warm Regards,
Jordan Michaels

On 08/17/2013 07:55 AM, racerstech wrote:
> Thanks for the rely here is some more info
>
> Windows Web Server 2008 r2
> I used the default Railo installer
> Version Railo 4.0.4.001 final
> Version Name Appollo <http://en.wikipedia.org/wiki/Appollo_(dog)>
> refused it 127.0.0.1:8009 <http://127.0.0.1:8009>
>
> You can change this message by changing TomcatConnectErrorURL
> setting in setting file.
>
>
> If I restart "Apache Tomcat Railo" service I can then navigate the
> page with out any errors.
>
> Can someone point me in the right direction to solve this problem?
>
> Thanks
>
> --
> Did you find this reply useful? Help the Railo community and add it to
> the Railo Server wiki at https://github.com/getrailo/railo/wiki
> ---
> You received this message because you are subscribed to the Google
> Groups "Railo" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/railo/04e83116-d516-452c-9cd1-1002cb9e7fbf%40googlegroups.com.

Bilal

unread,
Aug 21, 2013, 8:33:18 PM8/21/13
to ra...@googlegroups.com
Did you re-install any part of the system or upgrade elements?
Also if you want to display a more user friendly message you can change the connector setting file normally located here:
c:\windows\BoncodeAJP13.settings

add a line like this
<TomcatConnectErrorURL>http://www.yahoo.com</TomcatConnectErrorURL>

obviously you would want to provide the redirect URL that displays whatever you need to but not another cfm page on the same server.

Best,
Bilal

Simon Goldschmidt

unread,
Dec 16, 2014, 4:43:48 PM12/16/14
to ra...@googlegroups.com
We had this issue today. Without warning, the Railo service stopped. Restarting the Railo service returned operations to normal.

Our setup is Windows 2012 R2 server that does nothing but serve Railo (v4.2.1) pages. We have changed nothing from the standard installation other than Datasources, Mail and Scheduled Tasks.

The Catalina logs for today show nothing but the startup activity:

Dec 17, 2014 7:53:59 AM org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\railo\tomcat\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Amazon\cfn-bootstrap\;;.
Dec 17, 2014 7:54:00 AM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-bio-8888"]
Dec 17, 2014 7:54:00 AM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["ajp-bio-8009"]
Dec 17, 2014 7:54:00 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 882 ms
Dec 17, 2014 7:54:00 AM org.apache.catalina.core.StandardService startInternal
INFO: Starting service Catalina
Dec 17, 2014 7:54:00 AM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.56
Dec 17, 2014 7:54:09 AM org.apache.catalina.startup.HostConfig deployDirectory

INFO: Deploying web application directory C:\railo\tomcat\webapps\ROOT
Dec 17, 2014 7:54:13 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deployment of web application directory C:\railo\tomcat\webapps\ROOT has finished in 4,454 ms
Dec 17, 2014 7:54:13 AM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-bio-8888"]
Dec 17, 2014 7:54:13 AM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["ajp-bio-8009"]
Dec 17, 2014 7:54:13 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 13274 ms

Any suggestions what we can do to prevent a recurrence? Should we be looking at a tool like FireDaemon to restart the processes?

Thanks,
Simon

Jordan Michaels

unread,
Dec 16, 2014, 5:19:59 PM12/16/14
to ra...@googlegroups.com
What about older catalina logs? Anything interesting in the older ones?

Warm Regards,
Jordan Michaels
> --
> Did you find this reply useful? Help the Railo community and add it to
> the Railo Server wiki at https://github.com/getrailo/railo/wiki
> ---
> You received this message because you are subscribed to the Google
> Groups "Railo" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/railo/98e9be07-5b7d-4a1c-ad20-285b8e66fb39%40googlegroups.com
> <https://groups.google.com/d/msgid/railo/98e9be07-5b7d-4a1c-ad20-285b8e66fb39%40googlegroups.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout.

Simon Goldschmidt

unread,
Dec 16, 2014, 11:40:02 PM12/16/14
to ra...@googlegroups.com
No... just the usual information about starting up the service and adding new domains.

We run load balanced servers with the same configuration and switched operations to these servers two days ago. The second server did the same thing as the first a little later today. In this case, the IIS Application pool also stopped running, which wasn't the case with our first server. The Event Logs helpfully say "Railo Server service terminated unexpectedly" but I have found no other evidence of anything unusual.

Simon

Simon Goldschmidt

unread,
Dec 16, 2014, 11:52:17 PM12/16/14
to ra...@googlegroups.com
Let me restate.... here are some Catalina logs that show some stuff other than the normal starting up and adding domains.
Simon

logs.txt

andreas

unread,
Dec 17, 2014, 1:47:36 AM12/17/14
to ra...@googlegroups.com, x'...@gmail.com

I have experienced a iis pool stop when I've edited a IIS web.config and that edit was malformed. Also the logs you've posted lately points that the config files can't be parsed correctly, maybe because of some unexpected characters. Are you doing editing stuff with the config files programatically?

Simon Goldschmidt

unread,
Dec 17, 2014, 4:06:59 AM12/17/14
to ra...@googlegroups.com, x'...@gmail.com
Hi Andreas... no intentional changes to the config. We configured IIS through the Server Manager when setting up the server weeks ago and haven't made any changes recently.
Simon

Jordan Michaels

unread,
Dec 17, 2014, 2:42:10 PM12/17/14
to ra...@googlegroups.com
> "Railo Server service terminated unexpectedly"

So, something specific is causing Tomcat to crash hard - so that it
can't write the log on it's way down. There are only a few explanations
for this that I can think of: something in the app itself is killing the
Tomcat process, possibly bad hardware (IE: bad memory causing memory
faults and crashing apps trying to use that memory), or an external cause.

You mentioned a load-balanced situation, and that this has happened to
multiple nodes. Does this situation occur outside the load balanced
environment? Do you perform any web content filtering of any kind? Have
you load tested the nodes to ensure it's not a load issue?

Warm Regards,
Jordan Michaels
> <https://groups.google.com/d/msgid/railo/98e9be07-5b7d-4a1c-ad20-285b8e66fb39%40googlegroups.com?utm_medium=email&utm_source=footer
> <https://groups.google.com/d/optout>.
>
> --
> Did you find this reply useful? Help the Railo community and add it to
> the Railo Server wiki at https://github.com/getrailo/railo/wiki
> ---
> You received this message because you are subscribed to the Google
> Groups "Railo" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/railo/391e3ff4-0abc-476d-8962-020e5c3fb29c%40googlegroups.com
> <https://groups.google.com/d/msgid/railo/391e3ff4-0abc-476d-8962-020e5c3fb29c%40googlegroups.com?utm_medium=email&utm_source=footer>.

Simon Goldschmidt

unread,
Dec 17, 2014, 3:06:42 PM12/17/14
to ra...@googlegroups.com
We have single-server "backup" and "development" environments with similar configuration that have been stable for months. We don't perform any web content filtering and have not load tested.... perhaps naively - traffic on our systems has increased only incrementally over the years and we switched to the multiple-server setup for extra redundancy/reliability.

Should we be worried about any of the "severe" items in the Catalina logs? Since we restarted yesterday, neither server contains anything but "info" logs.

Simon
Reply all
Reply to author
Forward
0 new messages