buildSessionFactory « cfg « JPA Q&A





1. Problem of connection in method cfg.buildSessionFactory();    forum.hibernate.org

Hi, Description of the problem : When im deploying my code in a websphere app. server, i have this exception (in bold) : ------------------------------------------------------------------------------------- [04-05-26 11:38:14:884 EDT] 3fe8df3f EJBContainerI E WSVR0040E: Echec de addEjbModule pour MartEJB.jar [class com.ibm.ws.runtime.component.DeployedModuleImpl] java.lang.ExceptionInInitializerError at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:79) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:43) at java.lang.reflect.Constructor.newInstance(Constructor.java:313) at java.lang.Class.newInstance3(Class.java:363) at java.lang.Class.newInstance(Class.java:301) at com.ibm.ejs.container.EJSContainer.loadBeanMetaData(EJSContainer.java:1349) at com.ibm.ejs.container.EJSContainer.getHomeWrapperCommon(EJSContainer.java:1012) at com.ibm.ejs.container.EJSContainer.getHomeInstance(EJSContainer.java:934) at com.ibm.ejs.container.EJSContainer.startBean(EJSContainer.java:913) at ...