JNDI Port number issue while strating JBoss server 4.2.2.GA
Joined: Nov 01, 2006
I am facing the problem while statring the JBoss server 4.2.2.GA in Windows 2000. The problem is, in the port number 1099, some other application is running, which I am suspecting the JBoss is also using for JNDI. So I am getting the following error: I couldn't stop the application that is already running in the port number 1099.
So I have edited the jboss-service.xml file in the following location: C:\java\common\bin\jboss-4.2.2.GA\server\default\conf\jboss-service.xml
I have changed the JNDI port number from 1099 to 11099 as follows:
But I am getting some other error:
Please help on this. My JDK is at:C:\java\common\bin\jdk1.5
[ January 02, 2009: Message edited by: Micheal John ]
SCJP 1.4 (86%), SCWCD 1.4 (86%), SCBCD 1.3 (85%), SCDJWS (Just Started...) - Satisfaction Lies in Our EFFORT, Not in the ATTAINMENT
The problem is with port 3700 (not the JNDI port). There are two possible reasons why port 3700 is not available. First, another app could be using it. Using TCPView from sysinternals is a better bet for determining who is using that port than using netstat. The other possibility is that your firewall is blocking the port. This can happen very easily - some time in the past the firewall popped up a dialog asking if some Java app could connect to the netwrok and you said "no" and told the firewall to remember that setting. Now you are using the same JVM to run JBoss AS and the firewall is acting on the previous settings.
The weird thing is that I cannot find any place in JBos AS 4.2.2 where port 3700 is identified, but the port does appear to be used by Arjuna (JBoss Transactions). As a wild guess, try adding this line to the server/default/conf/jbossjta-properties.xml file:
where xxxx is some available port number. The above property entry goes within this "properties" entry:
As I said, setting the recoveryPort was a wild guess - that value appears in that config file in 5.0 but not in 4.2.x. And it would appear that the value is ignored in 4.2.x.
Is there any possibility that you could try running on another system, perhaps an XP or Server 2003 system? I want to see if the issue is Windows 2000 related, or perhaps related to that specific host.
Joined: Nov 01, 2006
Actually, I am using the same JBoss4.2.2.GA in Windows Vista in my home note book. And it's staring properly.
Now I am trying same in Windows 2000, but in corporate network. Do you mean to say that JBoss 5.x will work?
No, I am not saying that 5.0 will work, just that the port options appears in 5.0.
I noticed that you are using JSDK 1.5.0_04. Could you try upgrading to a more recent 1.5?
If that doesn't fix it, then the problem is probably related to some issue with how Windows 2000 handles sockets, and the JDK's interaction with sockets - you might want to consider upgrading to Server 2003 or 2008 (or to Linux since it's cheaper...)
Joined: Nov 07, 2007
I have tried with JBoss 5.0. But getting some other exception. Actually I am using JBoss Eclipse IDE 1.5 and configured the JBoss server in it. I have configured under JBoss 4.x, as it don't have JBoss 5.x. Whether the below exception may due to that?