Steven Erat's Blog
 
 
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 used to work at Adobe with ColdFusion and Flex, specializing in Unix & Linux. I recently graduated from CDIA in Pro Digital Photography. Curious about my banner image?

More about me

Recent Entries

 
Christmas Eve Service makes F..
How To Filter by File Type in..
Perspective on ColdFusion's B..
Power Mac G5: The lights are ..
My Application to CDIABU in R..

Recent Comments

 
Posted By Yvonne:
Clear video taken! I was looking for such a video through Google & it led me to yours. Wanted to show to my students through a video clip, the whol ...

Posted By Andy Allan:
Fantastic work Steve.

Posted By charlie arehart:
Oh wow, awesome to hear that the relative quiet was an imposed one, and that the gag order has been lifted. Now I'm really excited to hear what may co ...

recently played

 
Snap Judgments
by WNYC, New York Public Radio
on On The Media
On The Media, WNYC, New York Public Radio

now playing, a plug-in for itunes

Categories

 
RSS Adobe (31)
RSS Bicycling (9)
RSS Blogging (37)
RSS Books (13)
RSS Breeze (12)
RSS CFMX Podcasts (10)
RSS ColdFusion (420)
RSS Computer Technology (50)
RSS Events (25)
RSS Flash (3)
RSS Flex (18)
RSS Gadgets (10)
RSS HiTech Industry (16)
RSS Java (25)
RSS Learning (57)
RSS Linux (70)
RSS Mac OS X (22)
RSS Macromedia (28)
RSS Meetup (34)
RSS New England (62)
RSS Odds & Ends (25)
RSS Outdoors (32)
RSS Personal (29)
RSS Photography (109)
RSS Photoshop (29)
RSS Podcasts (18)
RSS Rants (19)
RSS Restaurants (8)
RSS Science (34)
RSS Spain (16)
RSS Travel (42)
RSS Video (20)
RSS Webcam (3)
RSS Writing (10)

Blogs I Read

 
Scrum Sucks
Ben Forta
Ray Camden
Kinky Solutions
Gary Gilbert
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 © 2009 Steven Erat. All rights reserved.
This is a personal weblog. The opinions expressed here represent my own and not those of my employer