• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem with InitialContext creation from a remote host of other NT Domain

 
Sandeep Ag
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I'm getting an exception when tried to create InitialContext object from a remote host of other NT domain different from Domain where weblogic server is running.

I installed weblogic in hd-saravanat.one.com system which is in one.com domain and client program is in another system ht-vgn.tstvgnad.com which is in tstvgnad.com domain. From the client Java program I tried connecting to weblogic using t3//hd-saravanat.one.com:7021 which throws an exception

Login failed:

t3//hd-saravanat.one.com:7021:Bootstrap to hd-saravanat.one.com/172.21.2.153:7021 failed. It is likey that the remote side declared peer gone on this JVM
at java.net.InetAddress.getAllByName0(InetAddress.java:1004)
at java.net.InetAddress.getAllByName0(InetAddress.java:969)
at java.net.InetAddress.getAllByName(InetAddress.java:963)
at java.net.InetAddress.getByName(InetAddress.java:883)
at weblogic.rjvm.JVMID.address(JVMID.java:448)
at weblogic.rjvm.RJVMManager.record(RJVMManager.java:157)
at weblogic.rjvm.RJVMManager.findOrCreateRemoteInternal(RJVMManager.java:223)
at weblogic.rjvm.RJVMManager.findOrCreate(RJVMManager.java:181)
at weblogic.rjvm.RJVMFinder.findOrCreateRemoteServer(RJVMFinder.java:222)
at weblogic.rjvm.RJVMFinder.findOrCreate(RJVMFinder.java:188)
at weblogic.rjvm.ServerURL.findOrCreateRJVM(ServerURL.java:125)
at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialContextFactoryDelegate.java:296)
at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialContextFactoryDelegate.java:239)
at weblogic.jndi.WLInitialContextFactory.getInitialContext(WLInitialContextFactory.java:135)
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:662)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:243)
at javax.naming.InitialContext.init(InitialContext.java:219)
at javax.naming.InitialContext.<init>(InitialContext.java:195)
at com.vignette.authn.WLContextAuthentication.loginUser(WLContextAuthentication.java:73)
at com.vignette.authn.BaseAuthentication.login(BaseAuthentication.java:76)
at com.vignette.authn.LoginMgr.updateLogin(LoginMgr.java:134)
at com.vignette.authn.LoginMgr.login(LoginMgr.java:114)
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:324)
at com.linar.jintegra.ObjectProxy.a(Unknown Source)
at com.linar.jintegra.NativeObjectProxy.invoke(Unknown Source)
at com.linar.jintegra.NativeVtblInvokeExecutor.execute(Unknown Source)
at com.linar.jintegra.ch.run(Unknown Source)

Note : I'm getting this exception only when the client program is run in a different domain. If the same client program is run in the domain where weblogic is running then it is working fine.

I'm stuck on this and not able to proceed.

Any pointers on this would be appreciated.

Thanks,
Sandeep
 
Marcos Maia
Ranch Hand
Posts: 977
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

you may have to establish trust between WebLogic domains:

http://e-docs.bea.com/wls/docs81/ConsoleHelp/security_domainsecurity_config_advanced.html
 
Marcos Maia
Ranch Hand
Posts: 977
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

you may also check if there's a firewall on the way.
 
Sandeep Ag
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We need weblogic domain trust relationship when we have 2 weblogic domains setup. But i need to only connect from a simple java client sitting on another NT domain to weblogic server on seperate NT domain.

There are no firewall issues in our network. I had verified with our networking guys.

Any other thoughts.

Thanks,
Sandeep
 
Marcos Maia
Ranch Hand
Posts: 977
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think the easyest and standard way is to build a web service and then you can go using SOAP, it should work.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic