aspose file tools*
The moose likes JBoss/WildFly and the fly likes JNDI Port number issue while strating JBoss server 4.2.2.GA Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "JNDI Port number issue while strating JBoss server 4.2.2.GA" Watch "JNDI Port number issue while strating JBoss server 4.2.2.GA" New topic
Author

JNDI Port number issue while strating JBoss server 4.2.2.GA

Micheal John
Ranch Hand

Joined: Nov 01, 2006
Posts: 344
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 ]

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
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 9343
    
111

The recommended way of changing ports is using the ServiceBindingManager. See this for details.


[My Blog] [JavaRanch Journal]
Micheal John
Ranch Hand

Joined: Nov 01, 2006
Posts: 344
Hi Jaikiran,

Thanks for your reply. I have followed the below steps and try to run the server in port 01, but unfortunately I am getting the same error.

http://blog.techstacks.com/2009/01/changing-default-port-numbers-in-jboss.html


Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5779
    
    7

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:



JBoss In Action
Micheal John
Ranch Hand

Joined: Nov 01, 2006
Posts: 344
I am getting the same exception, even though I have followed your suggestion of adding the recoverymanager in jboss-4.2.2.GA\server\default\conf\jbossjta-properties.xml



Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 9343
    
111

Micheal John wrote:I am getting the same exception, even though I have followed your suggestion of adding the recoverymanager in jboss-4.2.2.GA\server\default\conf\jbossjta-properties.xml



You mean exactly the same error message which says port 3700 in use (even after changing to 3800)?

Can you please repost the exception after you did the changes?
Micheal John
Ranch Hand

Joined: Nov 01, 2006
Posts: 344
Exception...


jbossjta-properties.xml in C:\java\common\bin\jboss-4.2.2.GA\server\default\conf:


jboss-service.xml

Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5779
    
    7

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.
Micheal John
Ranch Hand

Joined: Nov 01, 2006
Posts: 344
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?
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5779
    
    7

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...)
Mike Thomson
Ranch Hand

Joined: Nov 07, 2007
Posts: 115
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?

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JNDI Port number issue while strating JBoss server 4.2.2.GA
 
Similar Threads
How to connect from JBoss to SQL server ?
Error while starting jboss(java.lang.ClassNotFoundException: No ClassLoaders found for: com.mysql.j)
JBoss Server V4.2 NOT getting Started
JBoss 4.2.2 Server Starting Issue
deployment of war file failed in JBOSS