-
1. Re: Unable to find out Jndi port number?
bluesockets Oct 22, 2011 8:11 PM (in response to sampathonline)Ususally out of the box it's port 1099. In server.log if you look for 1099 or whatever port the jnp server is supposed to bind to you should see the address/location. Can you post the entire stacktrace for the error it throws at you? Off the top of my head it could be a binding problem - if you bind jboss to a particular domain, it'll generally only listen for that address. If it binds to 127.0.0.1, I think it'll bind to all addresses.
-
2. Re: Unable to find out Jndi port number?
sampathonline Oct 23, 2011 2:18 AM (in response to bluesockets)1099 didnt work. My machine has several jboss instances. My domain server starts like this:
run -Djboss.service.binding.set=ports-01
.And the configuration for port-01 in bindings-jboss-beans.xml is defined as follows:
<!-- The ports-01 bindings are obtained by taking the base bindings and adding 100 to each port value -->
<bean name="Ports01Bindings" class="org.jboss.services.binding.impl.ServiceBindingSet">
<constructor>
<!-- The name of the set -->
<parameter>ports-01</parameter>
<!-- Default host name -->
<parameter>${jboss.bind.address}</parameter>
<!-- The port offset -->
<parameter>1716</parameter>
<!-- Set of bindings to which the "offset by X" approach can't be applied -->
<parameter><null/></parameter>
</constructor>
</bean>Since the offset is changed to 1716, I thought the jndi port is 1099+1716=2815, but when I do the context lookup for 2815, it fails
-
3. Re: Unable to find out Jndi port number?
bluesockets Oct 23, 2011 3:28 AM (in response to sampathonline)If you go to jmx-console for the jboss instance you're running (using the correct ports offset by your bindings), the click on
1) the link "jboss" on the left hand side
http://localhost:8080/jmx-console/HtmlAdaptor?action=displayMBeans&filter=jboss
2) then the link "service=Naming" on the right side of the page
http://localhost:8080/jmx-console/HtmlAdaptor?action=inspectMBean&name=jboss%3Aservice%3DNaming
It'll take you to the naming server configurations. Scroll down to the row named "Port" and you'll see "The listening port for the bootstrap JNP service. Set this to -1 to run the NamingService without the JNP invoker listening port." That row will tell you what port jnp is listening to.
-
4. Re: Unable to find out Jndi port number?
sampathonline Oct 24, 2011 12:59 PM (in response to bluesockets)Thanks antonio, I could figure out the problem....
-
5. Re: Unable to find out Jndi port number?
chithu21 Jun 22, 2012 6:29 AM (in response to sampathonline)Can you please tell how did u resolve the problem?