2 Replies Latest reply on May 23, 2008 12:02 PM by bedehaan

    JBoss/Java API

    bedehaan

      I am getting the following error when while using Eclipse/JBoss. Can anyone help in pointing me to a solution? Help is greatly appreciated.



      log4j:WARN The log4j system is not properly configured!
      log4j:WARN All ERROR messages will be sent to the system console until proper configuration has been detected.
      com.filenet.api.exception.EngineRuntimeException: API_UNEXPECTED_JNDI_ERROR: An unexpected error occured accessing JNDI.
      at com.filenet.apiimpl.util.SessionLocator.locateEJBByPath(SessionLocator.java:789)
      at com.filenet.apiimpl.util.SessionLocator.findEJBSessionByPath(SessionLocator.java:724)
      at com.filenet.apiimpl.util.SessionLocator.createNewSession(SessionLocator.java:510)
      at com.filenet.apiimpl.util.SessionLocator.getSession(SessionLocator.java:133)
      at com.filenet.apiimpl.core.IndependentObjectImpl.getObject(IndependentObjectImpl.java:153)
      at com.filenet.apiimpl.core.IndependentObjectImpl.refresh(IndependentObjectImpl.java:161)
      at com.filenet.api.core.Factory$Domain.fetchInstance(Factory.java:2724)
      at com.ibm.filenet.edu.CEConnectionEDU.getDomainEDU(CEConnectionEDU.java:29)
      at com.ibm.filenet.edu.CEConnectionEDU.main(CEConnectionEDU.java:69)
      Caused by: javax.naming.CommunicationException: Could not obtain connection to any of these urls: iiop://host:12345 and discovery failed with error: javax.naming.CommunicationException: Receive timed out [Root exception is java.net.SocketTimeoutException: Receive timed out] [Root exception is javax.naming.CommunicationException: Failed to connect to server iiop:1099 [Root exception is javax.naming.ServiceUnavailableException: Failed to connect to server iiop:1099 [Root exception is java.net.UnknownHostException: iiop: iiop]]]
      at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1414)
      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:594)
      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:587)
      at javax.naming.InitialContext.lookup(Unknown Source)
      at com.filenet.apiimpl.util.SessionLocator.locateEJBByPath(SessionLocator.java:778)
      ... 8 more
      Caused by: javax.naming.CommunicationException: Failed to connect to server iiop:1099 [Root exception is javax.naming.ServiceUnavailableException: Failed to connect to server iiop:1099 [Root exception is java.net.UnknownHostException: iiop: iiop]]
      at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:269)
      at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1385)
      ... 12 more
      Caused by: javax.naming.ServiceUnavailableException: Failed to connect to server iiop:1099 [Root exception is java.net.UnknownHostException: iiop: iiop]
      at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:243)
      ... 13 more
      Caused by: java.net.UnknownHostException: iiop: iiop
      at java.net.InetAddress.getAllByName0(Unknown Source)
      at java.net.InetAddress.getAllByName0(Unknown Source)
      at java.net.InetAddress.getAllByName(Unknown Source)
      at java.net.InetAddress.getByName(Unknown Source)
      at org.jnp.interfaces.TimedSocketFactory.createSocket(TimedSocketFactory.java:76)
      at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:239)
      ... 13 more





        • 1. Re: JBoss/Java API
          jaikiran

          While doing the lookup through the InitialContext, what properties are you passing to the constructor or through the jndi.properties file? The PROVIDER_URL is usually jnp://localhost:1099 (replace localhost with the hostname/IP of the server).

          • 2. Re: JBoss/Java API
            bedehaan

            Is there any quick check to see what the path to my java.naming.provider.url would be?