Steven Erat's Blog Steven Erat Photography
 
 
Viewing By Entry
 
 

TalkingTree  Resolving wsconfig Error: could not connect to port 2901

 

When using ColdFusion MX's web server configuration utility wsconfig on Linux servers, you may encounter a situation where wsconfig fails with a reference to could not connect to port 2901 as shown here:

Found port 2901 on host localhost
could not connect to port 2901 on host 127.0.0.1
javax.naming.ServiceUnavailableException: The connection to the remote
JNDI server on host 127.0.0.1 at port 2901 has failed (as have all
backup hosts listed, if any) - please verify that the server is running
and the NamingService is available [Root exception is java.net.ConnectException: Connection refused]
<snip> { java stack trace here } </snip>
Could not connect to any JRun/ColdFusion servers on host localhost.
Possible causes:
o Server not running
-Start Macromedia JRun4 or ColdFusion MX server
o Server running
-JNDI listen port in jndi.properties blocked by TCP/IP filtering or firewall on server
-host restriction in security.properties blocking communication with server

Following on some of the hints in the error message, some diagnostic questions include:

  • Is the ColdFusion MX server running?
  • Does the command netstat -a | grep 2901 list the open port?
  • Can you connect to the port using "telnet localhost 2901" ?
  • If not, is a firewall blocking the port? Try running the command lokkit to launch a program which can temporarily disable the firewall. Does wsconfig still fail when the firewall is off?
  • Is there any other program that might have been running and listening on port 2901?
  • Finally, check the HOST configuration files, including on Red Hat: /etc/hosts and /etc/sysconfig/network. Are there any mis-configurations in either one of these files? If so, try correcting it, then restart the network

Typically, when wsconfig fails with this error, one of these diagnostic steps will show up to be true. If you know of any other cause or resolution, please add a comment.

 


Comments

Hi Steve,



I believe you will get the same behavior is the webserver is not running. I have seen this happen with IIS.



Dave



Armor2net Personal Firewall is able to stop Internet pop-up ads, a feature that can be customized for each individual Web site. The program will also search your computer for spyware, and remove the spyware components safely.


http://www.armor2net.com



Hi Steve,


Just spent a few hours looking for this problem and found it was caused by having IPv6 entries in the "hosts" file. Commented those out and it worked fine. Perhaps something for somebody at MM to review?


Regards Meint



Hey,

I have this problem and from what i can tell none of those situations apply. Is there any crazy long shot that i can try to get coldfusion up and running?


And on that note:

Fedore Core 3, coldfusion mx 6.1, no selinux, no firewall


You might also want to check out this blog entry
http://www.talkingtree.com/blog/index.cfm?mode=ent...

But in my experience, all wsconfig could not connect problems come from either a) blocked ports, b) bad network config file entries, c) security.properties too restricted. The most common is blocked ports.

There is a Technote with manual configuration instructions that show you how to configure the webserver without using wsconfig.
http://www.macromedia.com/cfusion/knowledgebase/in...


Okay, so i have manaully configured my webserver and told it to stop trying to autoconfigure when i start coldfusion. Apache seems to connect to jrun, but my pages don't go there to get processed. thank you for the helpful links. If you've got any flashes of inspiration on this one, i'd appreciate it. if not, thank you and i'll stop abusing your blog =)


Hey Steve and Meint, thanks for the notes. I had the same problem with CFMX 6.1 on SUSE 10, removed the IPv6 entries from the hosts file and bingo, it works!


For anyone interested, I had the same problem with CF8, CentOS 5 - removing IPv6 line from /etc/sysconfig/network did the trick nicely.


 

 

Calendar

 
Sun Mon Tue Wed Thu Fri Sat
  1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31      

Search This Site

 
This is an exact search only

About This Site

 
I live west of Boston and work as a Software Engineer with ColdFusion and Flex, specializing in Linux. Recently I graduated in Professional Digital Photography from CDIA.
More about me

Recent Entries

 
A ColdFusion Trick for Lost D..
Starting ColdFusion9 Solr: Us..
Adobe LiveCycle DataServices ..

Recent Comments

 
Posted By Aaron Longnion:
Thanks Steven, I just ran into this problem, remembered your tweet about it, and found your blog on it. :)

Posted By srinyvas:
Hai, This information is very useful and i like your excellent writing skill. Can i copy this Content to my website top management colleges ...

Posted By Steven Erat:
@Wade - Glad I could help! Thanks for letting me know it worked for you too.

recently played

 
The Candid Frame #70 - Greg Gorman
by Ibarionex R. Perello
on The Candid Frame: A Photography Podcast

now playing, a plug-in for itunes

Categories

 
RSS Adobe (34)
RSS Bicycling (9)
RSS Blogging (39)
RSS Books (13)
RSS Breeze (13)
RSS CFMX Podcasts (10)
RSS ColdFusion (427)
RSS Computer Technology (51)
RSS Events (26)
RSS Flex (20)
RSS Gadgets (10)
RSS HiTech Industry (16)
RSS Java (25)
RSS Learning (57)
RSS Linux (70)
RSS Mac OS X (22)
RSS Macromedia (27)
RSS Meetup (35)
RSS New England (62)
RSS Odds & Ends (25)
RSS Outdoors (32)
RSS Personal (29)
RSS Photography (111)
RSS Photoshop (29)
RSS Podcasts (18)
RSS Rants (19)
RSS Restaurants (8)
RSS Science (34)
RSS Spain (16)
RSS Travel (42)
RSS Twitter (10)
RSS Video (20)
RSS Webcam (3)
RSS Writing (10)

Blogs I Read

 
Terrence Ryan
Ben Forta
Ray Camden
Kinky Solutions
Dan Vega
Gary Gilbert
Simeon Bateman
Red Hat Blogs
O'Reilly Digital Media
O'Reilly Radar
John Nack
The Strobist
Scott Kelby
Matt Kloskowski
Joe McNally
Digital Photography School
Engadget
Science Blog

RSS

 


Add to Google
Add to My Yahoo!

Aggregated By

 


Consumed By Feed-Squirrel.com
Aggregated by ColdFusionBlogger.org

Credits and Stuff

 
BlogCFC - Free ColdFusion Powered Blog Software
CJM Group - ColdFusion Website Hosting


 
 
blog | photos | flickr | referers | webcam | stats | about | contact
 
Copyright © 2010 Steven Erat. All rights reserved.
This is a personal weblog. The opinions expressed here represent my own and not those of my employer