• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JNDI Port number issue while strating JBoss server 4.2.2.GA

 
Ranch Hand
Posts: 344
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 ]
 
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The recommended way of changing ports is using the ServiceBindingManager. See this for details.
 
Micheal John
Ranch Hand
Posts: 344
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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


 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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:


 
Micheal John
Ranch Hand
Posts: 344
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
Posts: 344
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Exception...


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


jboss-service.xml

 
Peter Johnson
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 344
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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...)
 
Ranch Hand
Posts: 121
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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?

 
reply
    Bookmark Topic Watch Topic
  • New Topic