Hi Guys,
I try to access ejb(it's located other machine)using application Iam
geting naming exception.
could u pls help me anyone.

I set up jndi properties like this.

java.naming.factory.initial=com.evermind.server.ApplicationClientInitial
ContextFactory
java.naming.provider.url=ormi://xyz:5000/PreferencePage
java.naming.security.principal=admin
java.naming.security.credentials=123

when I try excute application I got this error.

javax.naming.NamingException: Lookup error:
java.io.StreamCorruptedException: Caught EOFException while reading the
stream header; nested exception is: 
        java.io.StreamCorruptedException: Caught EOFException while
reading the stream header       at
com.evermind.server.rmi.RMIContext.lookup(JAX)  at
com.evermind.naming.ju.lookup(JAX)      at
javax.naming.InitialContext.lookup(InitialContext.java:350)     at
TpTestClient.main(TpTestClient.java:38)

thanks
komal.







one requirement 
java.naming.factory.initial=com.evermind.server.ApplicationClientInitial
ContextFactory
java.naming.provider.url=ormi://<hostname>/<application-name>
java.naming.security.principal=<username>
java.naming.security.credentials=<password>
Hi Guys,
Iam try to access ejb(it's located other machine)using application.
I set up jndi properties like this.

java.naming.factory.initial=com.evermind.server.ApplicationClientInitial
ContextFactory
java.naming.provider.url=ormi://xyz:5000/PreferencePage
java.naming.security.principal=admin
java.naming.security.credentials=123

when i try excute application iam geting this error.

javax.naming.NamingException: Lookup error:
java.io.StreamCorruptedException: Caught EOFException while reading the
stream header; nested exception is: 
        java.io.StreamCorruptedException: Caught EOFException while
reading the stream header       at
com.evermind.server.rmi.RMIContext.lookup(JAX)  at
com.evermind.naming.ju.lookup(JAX)      at
javax.naming.InitialContext.lookup(InitialContext.java:350)     at
TpTestClient.main(TpTestClient.java:38)

anybody will suggest me what wrong iam doing.







one requirement 
java.naming.factory.initial=com.evermind.server.ApplicationClientInitial
ContextFactory
java.naming.provider.url=ormi://<hostname>/<application-name>
java.naming.security.principal=<username>
java.naming.security.credentials=<password>


Reply via email to