Unable to connect to Jboss server.

Unable to connect to Jboss server.

When I start "New Monitor" for JBOSS 4.0.4GA i got this error:

Unable to connect to Jboss server.
Error Message:
jndi not bound

Trying to find out what is the reason I start the:
jbossDebug 10.0.0.3 8080 4.0.2

and the following error occured:


Trying to connect to jboss server : 10.0.0.3 running at port :8080


Connecting for {JBossLibraries=[.\jboss\402\dom4j.jar, .\jboss\402\jbossall-client.jar], JndiProperties={java.naming.factory.initial=org.jbo
ss.naming.HttpNamingContextFactory, java.naming.provider.url=http://10.0.0.3:8080/invoker/JNDIFactory}}
Exception While connecting to the JBoss server http://10.0.0.3:8080 due to error : null
2007-09-13 00:37:15 com.adventnet.adaptors.clients.jboss.AMJBossClient connect
INFO: Exception While connecting to JBOss
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.adventnet.adaptors.clients.jboss.AMJBossClient.connectToAgent(AMJBossClient.java:154)
at com.adventnet.adaptors.clients.jboss.AMJBossClient.connect(AMJBossClient.java:48)
at com.adventnet.appmanager.server.framework.datacollection.AMJMXConnectorFactory.getClient(AMJMXConnectorFactory.java:174)
at com.adventnet.appmanager.server.framework.datacollection.AMJMXConnectorFactory.main(AMJMXConnectorFactory.java:328)
Caused by: javax.naming.CommunicationException: Operation failed [Root exception is java.rmi.ServerException: IOE; nested exception is:
java.net.ConnectException: Connection refused: connect]
at org.jboss.naming.interceptors.ExceptionInterceptor.invoke(ExceptionInterceptor.java:50)
at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:55)
at org.jboss.proxy.ClientMethodInterceptor.invoke(ClientMethodInterceptor.java:59)
at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:86)
at $Proxy0.lookup(Unknown Source)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:610)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:572)
at javax.naming.InitialContext.lookup(Unknown Source)
... 8 more
Caused by: java.rmi.ServerException: IOE; nested exception is:
java.net.ConnectException: Connection refused: connect
at org.jboss.invocation.http.interfaces.HttpInvokerProxy.invoke(HttpInvokerProxy.java:118)
at org.jboss.invocation.InvokerInterceptor.invokeInvoker(InvokerInterceptor.java:227)
at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:167)
at org.jboss.naming.interceptors.ExceptionInterceptor.invoke(ExceptionInterceptor.java:42)
... 15 more
Caused by: java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(Unknown Source)
at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at sun.net.NetworkClient.doConnect(Unknown Source)
at sun.net.www.http.HttpClient.openServer(Unknown Source)
at sun.net.www.http.HttpClient.openServer(Unknown Source)
at sun.net.www.http.HttpClient.<init>(Unknown Source)
at sun.net.www.http.HttpClient.New(Unknown Source)
at sun.net.www.http.HttpClient.New(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(Unknown Source)
at org.jboss.invocation.http.interfaces.Util.invoke(Util.java:145)
at org.jboss.invocation.http.interfaces.HttpInvokerProxy.invoke(HttpInvokerProxy.java:103)
... 18 more
java.rmi.ServerException: IOE; nested exception is:
java.net.ConnectException: Connection refused: connect
at org.jboss.invocation.http.interfaces.HttpInvokerProxy.invoke(HttpInvokerProxy.java:118)
at org.jboss.invocation.InvokerInterceptor.invokeInvoker(InvokerInterceptor.java:227)
at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:167)
at org.jboss.naming.interceptors.ExceptionInterceptor.invoke(ExceptionInterceptor.java:42)
at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:55)
at org.jboss.proxy.ClientMethodInterceptor.invoke(ClientMethodInterceptor.java:59)
at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:86)
at $Proxy0.lookup(Unknown Source)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:610)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:572)
at javax.naming.InitialContext.lookup(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.adventnet.adaptors.clients.jboss.AMJBossClient.connectToAgent(AMJBossClient.java:154)
at com.adventnet.adaptors.clients.jboss.AMJBossClient.connect(AMJBossClient.java:48)
at com.adventnet.appmanager.server.framework.datacollection.AMJMXConnectorFactory.getClient(AMJMXConnectorFactory.java:174)
at com.adventnet.appmanager.server.framework.datacollection.AMJMXConnectorFactory.main(AMJMXConnectorFactory.java:328)
Caused by: java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(Unknown Source)
at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at sun.net.NetworkClient.doConnect(Unknown Source)
at sun.net.www.http.HttpClient.openServer(Unknown Source)
at sun.net.www.http.HttpClient.openServer(Unknown Source)
at sun.net.www.http.HttpClient.<init>(Unknown Source)
at sun.net.www.http.HttpClient.New(Unknown Source)
at sun.net.www.http.HttpClient.New(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(Unknown Source)
at org.jboss.invocation.http.interfaces.Util.invoke(Util.java:145)
at org.jboss.invocation.http.interfaces.HttpInvokerProxy.invoke(HttpInvokerProxy.java:103)
... 18 more
2007-09-13 00:37:15 com.adventnet.adaptors.clients.jboss.AMJBossClient connect
INFO: JBossbind exception


Unable to connect to jboss server


com.adventnet.adaptors.clients.jboss.JBossConnectException: jndi not bound
at com.adventnet.adaptors.clients.jboss.AMJBossClient.connect(AMJBossClient.java:70)
at com.adventnet.appmanager.server.framework.datacollection.AMJMXConnectorFactory.getClient(AMJMXConnectorFactory.java:174)
at com.adventnet.appmanager.server.framework.datacollection.AMJMXConnectorFactory.main(AMJMXConnectorFactory.java:328)
com.adventnet.adaptors.clients.jboss.JBossConnectException
java.lang.Exception: jndi not bound















































































































I`ve checked also jboss-service.xml in http-invoker.sar directory so that every occurence of InvokerURLSuffix points to the same port as in the server.xml in jbossweb-tomcat directory.

I`ve also copied the jbossagent.sar to jboss default/deploy directory.

Jboss runs on linux-gentoo and app monitor runs on win xp.

Please help me with this.