2 Replies Latest reply on Jul 4, 2003 3:29 AM by philiparad

    Using ExternalContext to connect to com.sun.jndi.fscontext.R

    philiparad Newbie

      Dear all

      I am trying to configure in EJB access to the file system using JNDI.

      In jboss-service.xml I defined:


      external/test

      java.naming.factory.initial=com.sun.jndi.fscontext.RefFSContextFactory
      java.naming.provider.url=file:///c:/javaTest/jndiTest

      javax.naming.InitialContext


      I have put the two jars:fscontext.jar and providerutil.jar in the lib directory.

      When launching the server, I recieve an exception:

      15:14:10,682 ERROR [ExternalContext] Starting failed
      javax.naming.CommunicationException: Receive timed out. Root exception is
      java.io.InterruptedIOException: Receive timed out
      at java.net.PlainDatagramSocketImpl.receive(Native Method)
      at java.net.DatagramSocket.receive(DatagramSocket.java:387)
      at org.jnp.interfaces.NamingContext.discoverServer(NamingContext.java:1038)
      at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1158)
      at org.jnp.interfaces.NamingContext.createSubcontext(NamingContext.java:807)
      at org.jnp.interfaces.NamingContext.createSubcontext(NamingContext.java:797)
      at javax.naming.InitialContext.createSubcontext(InitialContext.java:411)
      at org.jboss.naming.ExternalContext.createContext(ExternalContext.java:243)
      at org.jboss.naming.ExternalContext.rebind(ExternalContext.java:273)
      at org.jboss.naming.ExternalContext.startService(ExternalContext.java:216)
      at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:192)
      at java.lang.reflect.Method.invoke(Native Method)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549)
      at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:966)
      at $Proxy0.start(Unknown Source)
      at org.jboss.system.ServiceController.start(ServiceController.java:392)
      at java.lang.reflect.Method.invoke(Native Method)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
      at $Proxy5.start(Unknown Source)
      at org.jboss.deployment.SARDeployer.start(SARDeployer.java:226)
      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:832)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:640)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:613)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:597)
      at java.lang.reflect.Method.invoke(Native Method)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
      at $Proxy6.deploy(Unknown Source)
      at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:365)
      at org.jboss.system.server.ServerImpl.start(ServerImpl.java:272)
      at org.jboss.Main.boot(Main.java:150)
      at org.jboss.Main$1.run(Main.java:388)
      at java.lang.Thread.run(Thread.java:479)
      15:14:10,702 WARN [ServiceController] Problem starting service jboss:service=ExternalContext,jndiName=extern
      javax.naming.CommunicationException: Receive timed out. Root exception is
      java.io.InterruptedIOException: Receive timed out
      at java.net.PlainDatagramSocketImpl.receive(Native Method)
      at java.net.DatagramSocket.receive(DatagramSocket.java:387)
      at org.jnp.interfaces.NamingContext.discoverServer(NamingContext.java:1038)
      at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1158)
      at org.jnp.interfaces.NamingContext.createSubcontext(NamingContext.java:807)
      at org.jnp.interfaces.NamingContext.createSubcontext(NamingContext.java:797)
      at javax.naming.InitialContext.createSubcontext(InitialContext.java:411)
      at org.jboss.naming.ExternalContext.createContext(ExternalContext.java:243)
      at org.jboss.naming.ExternalContext.rebind(ExternalContext.java:273)
      at org.jboss.naming.ExternalContext.startService(ExternalContext.java:216)
      at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:192)
      at java.lang.reflect.Method.invoke(Native Method)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549)
      at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:966)
      at $Proxy0.start(Unknown Source)
      at org.jboss.system.ServiceController.start(ServiceController.java:392)
      at java.lang.reflect.Method.invoke(Native Method)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
      at $Proxy5.start(Unknown Source)
      at org.jboss.deployment.SARDeployer.start(SARDeployer.java:226)
      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:832)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:640)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:613)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:597)
      at java.lang.reflect.Method.invoke(Native Method)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
      at $Proxy6.deploy(Unknown Source)
      at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:365)
      at org.jboss.system.server.ServerImpl.start(ServerImpl.java:272)
      at org.jboss.Main.boot(Main.java:150)
      at org.jboss.Main$1.run(Main.java:388)
      at java.lang.Thread.run(Thread.java:479)

      Can anyone help me about it?

      Philip