3 Replies Latest reply on May 7, 2004 3:38 AM by Catalin Kormos

    Lookup for HTTPXAConnectionFactory on Mac

    Catalin Kormos Newbie

      Hi there,

      I'm trying to look up for the HTTPXAConnectionFactory to establish a JMS connection with a Topic. My initial context looks like this:

      java.naming.factory.initial=org.jboss.naming.HttpNamingContextFactory
      java.naming.provider.url"=http://public_IP:8080/invoker/JNDIFactory
      java.naming.factory.url.pkgs"="org.jboss.naming:org.jnp.interfaces

      Lookup code looks like this:
      context.lookup("HTTPXAConnectionFactory");

      I'm also on JBoss-3.2.3...but this error keeps appearing:
      j
      avax.naming.CommunicationException: Operation failed [Root exception is java.io.IOException: Server returned HTTP response code: 503 for URL: http://LIMS:8080/invoker/JMXInvokerServlet]
       at org.jboss.naming.interceptors.ExceptionInterceptor.invoke(ExceptionInterceptor.java:50)
       at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:45)
       at org.jboss.proxy.ClientMethodInterceptor.invoke(ClientMethodInterceptor.java:55)
       at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:85)
       at $Proxy0.lookup(Unknown Source)
       at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:528)
       at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:507)
       at javax.naming.InitialContext.lookup(InitialContext.java:347)
       at ro.citrusmedia.lims.base.ui.commutil.JNDIManager.initJMS(JNDIManager.java:109)
       at ro.citrusmedia.lims.base.ui.commutil.JNDIManager.init(JNDIManager.java:64)
       at ro.citrusmedia.lims.base.ui.BaseModuleEntry.contactServer(BaseModuleEntry.java:255)
       at ro.citrusmedia.lims.base.ui.BaseModuleEntry.create(BaseModuleEntry.java:110)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:324)
       at com.sun.jmx.mbeanserver.StandardMetaDataImpl.invoke(StandardMetaDataImpl.java:412)
       at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:228)
       at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:818)
       at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:791)
       at ro.citrusmedia.lims.system.ModuleController.registerAndStartModules(ModuleController.java:295)
       at ro.citrusmedia.lims.system.ModuleController.loadModules(ModuleController.java:250)
       at ro.citrusmedia.lims.system.Application$1.run(Application.java:146)
       at java.lang.Thread.run(Thread.java:552)
      Caused by: java.io.IOException: Server returned HTTP response code: 503 for URL: http://LIMS:8080/invoker/JMXInvokerServlet
       at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:791)
       at org.jboss.invocation.http.interfaces.Util.invoke(Util.java:116)
       at org.jboss.invocation.http.interfaces.HttpInvokerProxy.invoke(HttpInvokerProxy.java:102)
       at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:96)
       at org.jboss.naming.interceptors.ExceptionInterceptor.invoke(ExceptionInterceptor.java:42)
       ... 23 more

      Can somebody tell me what has JNDIFactory to do with JMXInvokerServlet? do i do something wrong here...Thanks