2 Replies Latest reply on Aug 9, 2003 3:10 AM by eliza

    Using org.jboss.naming.HttpNamingContextFactory

    eliza Newbie

      Hi,

      I'm trying to access my jboss application over internet instead of just within the local area network. My computer is behind a router, and i'm using port forwarding (port number on the router maps to the same port number on my computer).

      I found instructions on this website: http://nemesisit.rdsnet.ro/opendocs/simplearch/simplejboss.html . I have the same setup as the website shows in the first figure. So I followed its instructions...

      Here are the contents of my jndi.properties:

      java.naming.factory.initial=org.jboss.naming.HttpNamingContextFactory
      java.naming.provider.url=http://202.163.246.157:8080/invoker/JNDIFactory

      I also modified my jboss.xml in my session beans manually since I'm not using xdoclet, and added the following:

      <container-configurations>
      <container-configuration extends="Standard Stateful SessionBean">
      <container-name>HTTP Session</container-name>
      <home-invoker>jboss:service=invoker,type=http</home-invoker>
      <bean-invoker>jboss:service=invoker,type=http</bean-invoker>
      </container-configuration>
      </container-configurations>

      Then I also modified jboss-service.xml in jboss server\default\deploy\http-invoker.sar\META-INF directory according to instructions on the website.

      When I run my client application I get:

      javax.naming.NamingException: Failed to retrieve Naming interface [Root exception is java.io.IOException]

      org.jboss.naming.HttpNamingFactory is definitely in my classpath.

      What does this exception mean? and are there other changes I need to make?

      Thanks,
      Eliza