Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 49399
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T16:25:50+00:00 2026-05-10T16:25:50+00:00

1st phase I have a problem shutting down my running JBoss instance under Eclipse

  • 0

1st phase

I have a problem shutting down my running JBoss instance under Eclipse since I changed the JNDI port of JBoss. Of course I can shut it down from the console view but not with the stop button (it still searches JNDI port at the default 1099 port). I’m looking forward to any solutions. Thank you!

Used environment:

  • JBoss 4.0.2 (using default)
  • Eclipse 3.4.0. (using JBoss Tools 2.1.1.GA)

Default ports: 1098, 1099 Changed ports: 11098, 11099

I changed the following part in jbosspath/server/default/conf/jboss-service.xml:

   <!-- ==================================================================== -->    <!-- JNDI                                                                 -->    <!-- ==================================================================== -->     <mbean code='org.jboss.naming.NamingService'       name='jboss:service=Naming'       xmbean-dd='resource:xmdesc/NamingService-xmbean.xml'>       <!-- The call by value mode. true if all lookups are unmarshalled using       the caller's TCL, false if in VM lookups return the value by reference.       -->       <attribute name='CallByValue'>false</attribute>       <!-- The listening port for the bootstrap JNP service. Set this to -1         to run the NamingService without the JNP invoker listening port.       -->       <attribute name='Port'>11099</attribute>       <!-- The bootstrap JNP server bind address. This also sets the default       RMI service bind address. Empty == all addresses        -->       <attribute name='BindAddress'>${jboss.bind.address}</attribute>       <!-- The port of the RMI naming service, 0 == anonymous -->       <attribute name='RmiPort'>11098</attribute>       <!-- The RMI service bind address. Empty == all addresses        -->       <attribute name='RmiBindAddress'>${jboss.bind.address}</attribute>       <!-- The thread pool service used to control the bootstrap lookups -->       <depends optional-attribute-name='LookupPool'          proxy-type='attribute'>jboss.system:service=ThreadPool</depends>    </mbean>     <mbean code='org.jboss.naming.JNDIView'         name='jboss:service=JNDIView'         xmbean-dd='resource:xmdesc/JNDIView-xmbean.xml'>    </mbean> 

Eclipse setup:

About my JBoss Tools preferences: I had a previous version, I got this problem, I read about some bugfix in JbossTools, so updated to 2.1.1.GA. Now the buttons changed, and I’ve got a new preferences view, but I cannot modify anything…seems to be abnormal as well:

Error dialog:

The stacktrace:

javax.naming.CommunicationException: Could not obtain connection to any of these urls: localhost:1099 [Root exception is javax.naming.CommunicationException: Failed to connect to server localhost:1099 [Root exception is javax.naming.ServiceUnavailableException: Failed to connect to server localhost:1099 [Root exception is java.net.ConnectException: Connection refused: connect]]]     at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1385)     at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:579)     at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:572)     at javax.naming.InitialContext.lookup(InitialContext.java:347)     at org.jboss.Shutdown.main(Shutdown.java:202) Caused by: javax.naming.CommunicationException: Failed to connect to server localhost:1099 [Root exception is javax.naming.ServiceUnavailableException: Failed to connect to server localhost:1099 [Root exception is java.net.ConnectException: Connection refused: connect]]     at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:254)     at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1370)     ... 4 more Caused by: javax.naming.ServiceUnavailableException: Failed to connect to server localhost:1099 [Root exception is java.net.ConnectException: Connection refused: connect]     at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:228)     ... 5 more Caused by: java.net.ConnectException: Connection refused: connect     at java.net.PlainSocketImpl.socketConnect(Native Method)     at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)     at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)     at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)     at java.net.Socket.connect(Socket.java:452)     at java.net.Socket.connect(Socket.java:402)     at java.net.Socket.<init>(Socket.java:309)     at java.net.Socket.<init>(Socket.java:211)     at org.jnp.interfaces.TimedSocketFactory.createSocket(TimedSocketFactory.java:69)     at org.jnp.interfaces.TimedSocketFactory.createSocket(TimedSocketFactory.java:62)     at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:224)     ... 5 more Exception in thread 'main'  

2nd phase:

After creating a new Server in File/new/other/server, it did appear in the preferences tab. Now the stop button is working (the server receives the shutdown messages without any additional modification of the jndi port — there is no opportunity for it now) but it still throws an error message, though different, it’s without exception stack trace: ‘Server JBoss 4.0 Server failed to stop.’

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-10T16:25:50+00:00Added an answer on May 10, 2026 at 4:25 pm

    OK, what you have to do is File->New->Other->Server, and set up your JBoss server there. It will then appear in Preferences->JBossTools->Servers.

    Convoluted.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 167k
  • Answers 167k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Open the connection just once. Opening and closing a connection… May 12, 2026 at 1:30 pm
  • Editorial Team
    Editorial Team added an answer I do not think that there are services in azure… May 12, 2026 at 1:30 pm
  • Editorial Team
    Editorial Team added an answer To be transparent you will need to write a driver.… May 12, 2026 at 1:30 pm

Related Questions

I'm sure this is a common query but I'm not certain how to phrase
this statement I use in a sproc (where the search phrase 'reiseportal*' is a
I'm about to enter the 1st phases of designing a commodities trading application. A
1st post on stackoverflow, hope to have great feedback :) I'm currently trying to

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.