Hi,
I had the following Exception when lauching EJBServer:
JonAS - Version 1.5
Working with a colocated Transaction Manager
Create and register TM factory
TransactionFactory constructor
java.lang.NoSuchMethodError: javax.naming.spi.NamingManager: method
getStateToBind(Ljava/lang/Object;Ljavax/naming/Name;Ljavax/naming/Context;Ljava/util/Hashtable;)Ljava/lang/Object;
not found
at
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:335)
at org.objectweb.jonas.jtm.TMServer.init(TMServer.java:95)
at org.objectweb.jonas.server.Server.main(Server.java:116)
With all CLASSPATH correct. There is a conflict between sun's
distributions: jndi1_1_2.jar and rmiregistry1_2_1.jar.
So I upgraded jndi package to release jndi1_2_1.jar and EJBServer runs
now.
Regards,
Jean-Christophe