I get the following exception when trying to connect from a client app to a WebLogic JNDI server. Any pointers would be great... javax. naming. CommunicationException. Root exception is java.net. ConnectException: http://x.x.x.x:7001: Destination unreachable; nested exception is: java.net.ConnectException: Tried all: '1' addresses, but could not connect over HTTP to server: 'w2w405.corp.lch.com', port: '7001'; No available router to destination at weblogic.rjvm. RJVMFinder.findOrCreate(RJVMFinder.java:173) at weblogic.rjvm. ServerURL.findOrCreateRJVM(ServerURL.java:262) at weblogic.jndi. WLInitialContextFactoryDelegate. getInitialContext(WLInitialContextFactoryDelegate. java:323)
Your problem is that you are trying to get an JNDI context over HTTP. This is not going to work unless you have HTTP Tunneling enabled. What you probably want is to use either T3(WebLogic's proprietary protocol) or IIOP.