Hi Virginie,
You can check two things:
- the content of the jndi.properties file.
It looks like:
java.naming.factory.initial
com.sun.jndi.rmi.registry.RegistryContextFactory
java.naming.provider.url rmi://<hostname>:1099
java.naming.factory.url.pkgs org.objectweb.jonas.naming
- this jndi.properties file must be accessible from your CLASSPATH.
Hope this helps.
H�l�ne.
Virginie Durand-Prevot wrote:
>
> I use Jonas 2.0 on linux Mandrake 2.2.14 with kde 1.1.2
> and the jdk1.2.2.
> I have the following exception when I run the EJBServer
>
> JOnAS Server, version 2.0, running on rmi.
> TransactionService: Cannot rebind TM:
> javax.naming.CommunicationException [Root exception is
> java.rmi.UnmarshalException: Error unmarshaling return header; nested e
> java.net.SocketException: Connexion rEUR-initialisEURe par le
> correspondant: Connexion rEUR-initialisEURe par le correspondant]
> JOnAS: Cannot start Transaction Service
> javax.naming.CommunicationException. Root exception is
> java.rmi.UnmarshalException: Error unmarshaling return header; nested
> exception is:
> java.net.SocketException: Connexion rEUR-initialisEURe par le
> correspondant: Connexion rEUR-initialisEURe par le
> correspondantjava.net.SocketException: Connexion rEUR-initialisEURe par le
> correspondant: Connexion rEUR-initialisEURe par le correspondant
> at java.net.SocketInputStream.socketRead(Native Method)
> at java.net.SocketInputStream.read(SocketInputStream.java:86)
> at java.io.BufferedInputStream.fill(BufferedInputStream.java:186)
> at java.io.BufferedInputStream.read(BufferedInputStream.java:204)
> at java.io.DataInputStream.readByte(DataInputStream.java:220)
> at
> sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:186)
> at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:354)
> at sun.rmi.registry.RegistryImpl_Stub.rebind(Unknown Source)
> at
> com.sun.jndi.rmi.registry.RegistryContext.rebind(RegistryContext.java:138)
> at
> com.sun.jndi.rmi.registry.RegistryContext.rebind(RegistryContext.java:145)
> at javax.naming.InitialContext.rebind(InitialContext.java:370)
> at
> org.objectweb.jonas.naming.NamingManager.rebind(NamingManager.java:226)
> at
> org.objectweb.jonas.jtm.TransactionService.<init>(TransactionService.java:66
> )
> at org.objectweb.jonas.server.Server.main(Server.java:89)
>
> I run rmiregistry on the port 1099 with the same classpath than EJBServer
>
> Thanks,
>
> Virginie.
>
> ----
> To unsubscribe, send email to [EMAIL PROTECTED] and
> include in the body of the message "unsubscribe jonas-users".
> For general help, send email to [EMAIL PROTECTED] and
> include in the body of the message "help".
--
-=- H�l�ne JOANIN -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
mailto:[EMAIL PROTECTED] http://www-frec.bull.com
Phone: 33.4.76.29.73.53 Fax: 33.4.76.29.76.00
Download our EJB Server JOnAS at http://www.bullsoft.com/ejb
_______________________________________________________________
----
To unsubscribe, send email to [EMAIL PROTECTED] and
include in the body of the message "unsubscribe jonas-users".
For general help, send email to [EMAIL PROTECTED] and
include in the body of the message "help".