[jboss-user] [JNDI/Naming/Network] - UnknownHostException when doing a lookup in JNDI
ike
do-not-reply at jboss.com
Wed Oct 3 06:15:59 EDT 2007
I have JBoss installed on my server (OpenSuSE linux 10.2). When I trying to lookup a bean in JNDI I get the following exception:
javax.naming.CommunicationException [Root exception is java.rmi.UnknownHostException: Unknown host: aloe; nested exception is:
java.net.UnknownHostException: aloe]
at com.m1.aloe.dm.services.DownloadMgrServiceEjbImpl.(DownloadMgrServiceEjbImpl.java:24)
at com.m1.aloe.dm.services.DownloadMgrServiceFactory.getService(DownloadMgrServiceFactory.java:19)
at com.m1.aloe.dm.services.ServiceProvider.getDownloadMgrService(ServiceProvider.java:40)
at com.m1.aloe.dm.controller.DownloadListController.refreshDownloadList(DownloadListController.java:161)
at com.m1.aloe.dm.controller.DownloadListController$9.actionPerformed(DownloadListController.java:114)
at com.m1.aloe.dm.controller.DownloadListController$9.actionPerformed(DownloadListController.java:1)
at com.m1.aloe.common.ActionSupport.fireActionEvent(ActionSupport.java:33)
at com.m1.aloe.dm.ui.download.DownloadListActionSupport.initUI(DownloadListActionSupport.java:35)
at com.m1.aloe.dm.ui.download.DownloadListView.createPartControl(DownloadListView.java:115)
at org.eclipse.ui.internal.ViewReference.createPartHelper(ViewReference.java:370)
at org.eclipse.ui.internal.ViewReference.createPart(ViewReference.java:227)
at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:592)
at org.eclipse.ui.internal.PartPane.setVisible(PartPane.java:299)
at org.eclipse.ui.internal.ViewPane.setVisible(ViewPane.java:531)
at org.eclipse.ui.internal.presentations.PresentablePart.setVisible(PresentablePart.java:179)
at org.eclipse.ui.internal.presentations.util.PresentablePartFolder.select(PresentablePartFolder.java:268)
at org.eclipse.ui.internal.presentations.util.LeftToRightTabOrder.select(LeftToRightTabOrder.java:65)
at org.eclipse.ui.internal.presentations.util.TabbedStackPresentation.selectPart(TabbedStackPresentation.java:400)
at org.eclipse.ui.internal.PartStack.refreshPresentationSelection(PartStack.java:1256)
at org.eclipse.ui.internal.PartStack.setSelection(PartStack.java:1209)
at org.eclipse.ui.internal.PartStack.showPart(PartStack.java:1604)
at org.eclipse.ui.internal.PartStack.createControl(PartStack.java:649)
at org.eclipse.ui.internal.PartStack.createControl(PartStack.java:576)
at org.eclipse.ui.internal.PartSashContainer.createControl(PartSashContainer.java:563)
at org.eclipse.ui.internal.PerspectiveHelper.activate(PerspectiveHelper.java:270)
at org.eclipse.ui.internal.Perspective.onActivate(Perspective.java:931)
at org.eclipse.ui.internal.WorkbenchPage.setPerspective(WorkbenchPage.java:3461)
at org.eclipse.ui.internal.WorkbenchPage.busySetPerspective(WorkbenchPage.java:988)
at org.eclipse.ui.internal.WorkbenchPage.access$17(WorkbenchPage.java:972)
at org.eclipse.ui.internal.WorkbenchPage$18.run(WorkbenchPage.java:3560)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:67)
at org.eclipse.ui.internal.WorkbenchPage.setPerspective(WorkbenchPage.java:3558)
at org.eclipse.ui.internal.Workbench.showPerspective(Workbench.java:2555)
at com.m1.aloe.actions.RunApplicationAction.runApp(RunApplicationAction.java:96)
at com.m1.aloe.actions.RunApplicationAction.run(RunApplicationAction.java:89)
at com.m1.aloe.intro.AloeIntroPart$1.applicationSelected(AloeIntroPart.java:41)
at com.m1.aloe.intro.controls.WelcomeControl.fireApplicationSelected(WelcomeControl.java:48)
at com.m1.aloe.intro.controls.WelcomeControl$1.handleEvent(WelcomeControl.java:84)
at com.m1.aloe.intro.controls.ApplicationIconControl$2.mouseUp(ApplicationIconControl.java:83)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:206)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:938)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3682)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3293)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2389)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2219)
at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:289)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:461)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at com.m1.aloe.Application.run(Application.java:16)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.internal.app.EclipseAppContainer.callMethod(EclipseAppContainer.java:533)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:155)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:106)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:76)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:363)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:176)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:504)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:443)
at org.eclipse.equinox.launcher.Main.run(Main.java:1169)
Caused by: javax.naming.CommunicationException [Root exception is java.rmi.UnknownHostException: Unknown host: aloe; nested exception is:
java.net.UnknownHostException: aloe]
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:724)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:589)
at javax.naming.InitialContext.lookup(Unknown Source)
at com.m1.aloe.dm.services.DownloadMgrServiceEjbImpl.(DownloadMgrServiceEjbImpl.java:21)
... 68 more
Caused by: java.rmi.UnknownHostException: Unknown host: aloe; nested exception is:
java.net.UnknownHostException: aloe
at sun.rmi.transport.tcp.TCPEndpoint.newSocket(Unknown Source)
at sun.rmi.transport.tcp.TCPChannel.createConnection(Unknown Source)
at sun.rmi.transport.tcp.TCPChannel.newConnection(Unknown Source)
at sun.rmi.server.UnicastRef.invoke(Unknown Source)
at org.jnp.server.NamingServer_Stub.lookup(Unknown Source)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:627)
... 71 more
Caused by: java.net.UnknownHostException: aloe
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.SocksSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.(Unknown Source)
at java.net.Socket.(Unknown Source)
at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(Unknown Source)
at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(Unknown Source)
... 77 more
Actually, the server's domain network name is aloe (LAN) but it is visible to external clients (via Internet) as myserver.domain.com.
My jndi.properties file has jnp://myserver.domain.com:1099/ url.
Server is launched with -b 0.0.0.0 key to enable access from the network.
How to tell the server that he should not use aloe hostname for clients outside the local network?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4090944#4090944
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4090944
More information about the jboss-user
mailing list