java.net.UnknownHostException

hie guys,

got a problem with starting the Sun application server 9. I recently installed the java tools bundle containing Netbeans 5.5. The problem comes when I run my Visual web application as it fails to locate classes in my back end. I believe the problem comes from the unknown host and thus it fails to locate the beans with a problem in the host address. I think its also a problem with configuring the local IP addresses in Ubuntu 6.10...the version I am using..the error looks like this--

java.net.UnknownHostException: rmatavire.sirdc.ac.zw: rmatavire.sirdc.ac.zw

at java.net.InetAddress.getLocalHost(InetAddress.java:1315)

at com.sun.identity.authentication.internal.AuthContext.getSSOToken(AuthContext.java:797)

at com.iplanet.sso.providers.dpro.SSOTokenImpl.<init>(SSOTokenImpl.java:102)

at com.iplanet.sso.providers.dpro.SSOProviderImpl.createSSOToken(SSOProviderImpl.java:141)

at com.iplanet.sso.SSOTokenManager.createSSOToken(SSOTokenManager.java:284)

at com.iplanet.dpro.session.service.SessionService.getAdminToken(SessionService.java:1551)

at com.iplanet.dpro.session.service.SessionService.postInit(SessionService.java:1841)

at com.iplanet.dpro.session.service.SessionService.<init>(SessionService.java:1633)

at com.iplanet.dpro.session.service.SessionService.getSessionService(SessionService.java:409)

at com.sun.identity.authentication.service.AuthD.getSS(AuthD.java:727)

at com.sun.identity.authentication.service.AuthD.initAuthSessions(AuthD.java:748)

at com.sun.identity.authentication.service.AuthD.<init>(AuthD.java:248)

at com.sun.identity.authentication.service.AuthD.getAuth(AuthD.java:507)

at com.sun.identity.authentication.UI.LoginLogoutMapping.initializeAuth(LoginLogoutMapping.java:89)

at com.sun.identity.authentication.UI.LoginLogoutMapping.init(LoginLogoutMapping.java:74)

at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1133)

at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:962)

at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4416)

at org.apache.catalina.core.StandardContext.start(StandardContext.java:4772)

at com.sun.enterprise.web.WebModule.start(WebModule.java:292)

at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1095)

at org.apache.catalina.core.StandardHost.start(StandardHost.java:924)

at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1095)

at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:520)

at org.apache.catalina.startup.Embedded.start(Embedded.java:920)

at com.sun.enterprise.web.WebContainer.start(WebContainer.java:794)

at com.sun.enterprise.web.PEWebContainer.startInstance(PEWebContainer.java:722)

at com.sun.enterprise.web.PEWebContainerLifecycle.onStartup(PEWebContainerLifecycle.java:72)

at com.sun.enterprise.server.ondemand.ServiceGroup.startLifecycleServices(ServiceGroup.java:266)

at com.sun.enterprise.server.ondemand.WebServiceGroup.startLifecycleServices(WebServiceGroup.java:210)

at com.sun.enterprise.server.ondemand.WebServiceGroup.start(WebServiceGroup.java:60)

at com.sun.enterprise.server.ondemand.ServiceGroup$1.run(ServiceGroup.java:180)

at java.security.AccessController.doPrivileged(Native Method)

at com.sun.enterprise.server.ondemand.ServiceGroup.startChildren(ServiceGroup.java:177)

at com.sun.enterprise.server.ondemand.MainServiceGroup.start(MainServiceGroup.java:45)

at com.sun.enterprise.server.ondemand.ServerEntryListenerImpl.notifyEntry(ServerEntryListenerImpl.java:72)

at com.sun.enterprise.server.ondemand.entry.ServerEntryHelper.sendEvent(ServerEntryHelper.java:62)

at com.sun.enterprise.server.ondemand.entry.ServerEntryHelper.generateAppLoaderEntryContext(ServerEntryHelper.java:47)

at com.sun.enterprise.server.AbstractLoader.generateEntryContext(AbstractLoader.java:831)

at com.sun.enterprise.server.AbstractLoader.notifyAppEvent(AbstractLoader.java:837)

at com.sun.enterprise.server.DummyWebModuleLoader.load(DummyWebModuleLoader.java:62)

at com.sun.enterprise.server.AbstractManager.load(AbstractManager.java:206)

at com.sun.enterprise.server.ApplicationLifecycle.onStartup(ApplicationLifecycle.java:201)

at com.sun.enterprise.server.ApplicationServer.onStartup(ApplicationServer.java:326)

at com.sun.enterprise.server.ondemand.OnDemandServer.onStartup(OnDemandServer.java:112)

at com.sun.enterprise.server.PEMain.run(PEMain.java:326)

at com.sun.enterprise.server.PEMain.main(PEMain.java:260)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:597)

at com.sun.enterprise.server.PELaunch.main(PELaunch.java:272)

[5124 byte] By [Rangariraia] at [2007-11-27 3:33:17]
# 1
Can you ping rmatavire.sirdc.ac.zw from that host?
ejpa at 2007-7-12 8:36:22 > top of Java-index,Java Essentials,New To Java...
# 2
> Can you ping rmatavire.sirdc.ac.zw from that host?I can't ping it from where I am, but I can ping sirdc.ac.zw.
DrClapa at 2007-7-12 8:36:22 > top of Java-index,Java Essentials,New To Java...
# 3

> I can't ping it from where I am, but I can ping sirdc.ac.zw.

Is that another name for the same host, or something else?

Anyway that's your problem. Either get your network fixed so you can ping the server from the client, or get the server to use a hostname that you can ping from the client (java.rmi.server.hostname).

ejpa at 2007-7-12 8:36:22 > top of Java-index,Java Essentials,New To Java...