bpurcell.org - Configuring external webserver with JRun or CFMX and wsconfig hangs
Calendar
SunMonTueWedThuFriSat
    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      

Subject Archives
Amazon EC2 (15)
ColdFusionMX (155)
Corvette (3)
Flash Lite (4)
Flash Media Server (5)
Flash Player (3)
Flex (39)
General Web Dev (14)
HDTV (3)
Jboss (1)
Jquery (2)
JRun (59)
Max 2003 (3)
Other (33)
PC Hardware (16)
Software (17)
SpatialKey (7)
Wireless (8)
Working Out (1)

RSS Feed
Feed Listing

Site Contents
Home
My Blog
ColdFusion
JRun
Flex
Wireless & Networking
Hardware & Gadgets
HDTV
Software Picks
Pictures
Contact Me
Search


My Articles & Papers
Flex Performance
Server/Client
mm.com Under the Hood
Multiple Instances of CFMX
Multiple Instance Config
NLB with ColdFusion
Clustering CFMX for J2EE
Multi-Tier Hardware LB w CFMX
Cisco CSS & Coldfusion MX
JRun 4 Jini based Clustering
WiFi Growth

2ID Tacweb

Other Hobbys
Body-For-Life Challenge

Personal Projects
Family Pool
Deck Gate

username:
password:
 

 
Viewing Individual Entry / Main
October 1, 2003

Using the wsconfig.exe or wsconfig.jar utility that ships with JRun and CFMX you can configure external webservers to work with either product.  This tool can either work perfect for you or cause you to beat your head against your desk.  If you run into an issue where either the GUI hangs or through the command line the prompt never returns then you may find the information below helpful. 

When wsconfig first runs it does a port scan from 2900-3000 to list any JRun servers that are running.  In some cases it will hang when the port scan occurs.  In the GUI this occurs when you click the add button.  In the command line version it occurs when it searches for the servers and the prompt never returns.  To test if this is the problem try the following command

wsconfig -host localhost -list  (using the executable version)
C:\CFusionMX\runtime\jre\bin\java -jar C:\CFusionMX\runtime\lib\wsconfig.jar -host localhost -list

This command should provide a listing of all running servers if it does not return to the command prompt and hangs then you can follow the procedure below

By narrowing the ports that are scanned by wsconfig you can prevent the hang.  By default CFMX uses port 2901 for the jndi port.  This port can be found in C:\CFusionMX\runtime\servers\default\SERVER-INF\jndi.properties under the entry java.naming.provider.url=localhost:2901. If you are running multiple instance of JRun then you can look in each servers SERVER-INF\jndi.properties file for the range of jndi ports to scan.

To reduce the ports that are scanned use the following java arguments
-DWSConfig.PortScanStartPort=startport -DWSConfig.PortScanCount=portrange

If I had multiple instance and the JNDI ports started at 2901 and ended at 2905 then I would use the following command to list the jrun instances.

C:\JRun4\runtime\jre\bin\java -DWSConfig.PortScanStartPort=2901 -DWSConfig.PortScanCount=5 -jar C:\JRun4\lib\wsconfig.jar -host localhost -list

To run the GUI and only scan those ports enter the following command:
C:\JRun4\runtime\jre\bin\java -DWSConfig.PortScanStartPort=2901 -DWSConfig.PortScanCount=5 -jar C:\JRun4\lib\wsconfig.jar
Modify the ports to your range of JNDI ports and the GUI should work without hanging.

Here are a few other articles that can help with wsconfig debugging
http://www.macromedia.com/support/jrun/ts/documents/tn18287.htm
http://www.macromedia.com/support/coldfusion/ts/documents/connector_install_faq.htm

Comments

Hi, I run into this problem. I try to get CFMX 6.1 Pro. running on a default win 2003 server Webediten. Since 10 daay without success. The JRun4 is not starting. Why Also wsconfig hangs. The problem with the wrong jvm.dll I figured out before. Does anybody has further suggestions? Is it possible to change the JRun4 ? Kind regards Thorsten


It sounds like an issue with your JRE. Make sure in your C:\CFusionMX\runtime\jre\bin directory that you only have two directories (client & server) If you have a hotspot directory delete it and the contents of it. You can also download a the latest 1.4.2 JDK from http://java.sun.com (make sure it is the JDK) and modify the G:\CFusionMX\runtime\bin\jvm.config to point to the new JDK. You modify the entry java.home=C:/j2sdk1.4.2_02 (make sure you use a forward slash in the path and not the backslash)


I am having a issue installing on win 2003. Installation goes fine then it asked me to manually configure the web connectors in that it failed saying that maybe port 51010 might be blocked (its not).

Tried that and the manual configuration tool failed and I followed your suggestions aboe downloaded the Java SDK and it worked.

Now it works but it can not find a running version of ColdFusion although I do see it running as a service.

Any ideas on where to gp from here?


We're trying to install CFMX6.1 in distributed mode with a firewall inbetween and are having port prob's.

W2K on both servers, IIS on the webserver, built-in webserver on the CF server. We have ports 2900-3000 open on the firewall, but we're still getting the standard error message:

"Could not connect to any JRun/ColdFusion servers on host xxx.xxx.xxx.xxx. 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"

Our firewall guy has been sniffing the ports and says that he sees traffic on different ports (1076, 1052 or 2825) which change each time we try to run wsconfig. If we open all the ports on the firewall everything installs fine, but that is not going to be acceptable to our security guys when we try this config in production.

Any thoughts would be appreciated?


I had a similar problem and solved it by unblocking the port that CF uses to setup the the webserver connection. A description is here http://www.robisen.com/index.cfm?mode=entry&entry=498FB783-55DC-F2B1-FB3B6DB93D978299

Basiclly you use net stat to see if port 51011 is blocked. You should not need to have all these ports open and CF should only use a couple of specific ports and if you like you can change these ports in the JRUN.XML. If you want a full list of all possible ports used by JRUN/CF so you know what to open look at this http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id=tn_18336. As you can see not every port is used so you should only need to open ports on the firewalls for ones that are used but the speicif error you are getting is usally because 51011 is blocked.

Hope this helps.


shouldnt that be 51010 robi, not 51011?


on my machine it was 51011? you can do nstat to find out


did the netstat robi.. we did get 51010 as the port.. as documented here: http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id=tn_18336

our firewall rule is = tcp8500, tcpgroup2900-3000, tcp51010

FYI: I work with Dick from the post above.

As Dick has mentioned. The firewall guy has been listening on the line and detects that the connector will connect on 2901 and then what seems to be a random port number.


did the netstat robi.. we did get 51010 as the port.. as documented here: http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id=tn_18336

our firewall rule is = tcp8500, tcpgroup2900-3000, tcp51010

FYI: I work with Dick from the post above.

As Dick has mentioned. The firewall guy has been listening on the line and detects that the connector will connect on 2901 and then what seems to be a random port number.


sorry about the double post


I had a related problem (as with the users above) regarding the 'could not connect' issue. Turns out Windows XP SP2 is the fault - wsconfig is by default trying ot scan 100 ports, and due to SP 2's open sock per app limit, it fails. I found that by using the above defines, starting at 2900 and using a count of 10, wsconfig was then able to locate and correctly configure the servers.

Hope this helps.


Thanks BRandom, that helped me with a portion of my problem. I have modified and added your solution to mine here: http://russ.michaels.me.uk/index.cfm/2006/10/27/CFMX7-Installation-and-Web-Server-Configuration-Tool-fails-with-JNDI-ports-blocked


 
Page Render Time:218