Folks- I'm trying (for the past 2+ weeks) to make a hello world type application work with this environment:
Websphere 6.1 (EJB 3 Feature pack)
Hibernate 3.5.3
Rational Application Developer (RAD) 7.5
I keep getting the following error:
Code:
[11/18/10 13:36:49:193 EST] 00000027 JPAPUnitInfo E CWWJP0009E: The server cannot create an EntityManangerFactory factory for the TestPersistenceUnit persistent unit from the org.hibernate.ejb.HibernatePersistence provider in file:/C:/ws_workspace/HibernateWAS_EJB/ejbModule/ module.
Followed by this exception:
Code:
[11/18/10 13:36:49:193 EST] 00000027 ExceptionUtil E CNTR0020E: EJB threw an unexpected (non-declared) exception during invocation of method "makePersistent" on bean "BeanId(HibernateWAS_EAR#HibernateWAS_EJB.jar#MyEntityDAO, null)". Exception data: java.lang.NullPointerException
at com.ibm.ws.jpa.management.JPAEMFactory.createEntityManager(JPAEMFactory.java:108)
at com.ibm.ws.jpa.management.JPATxEntityManager.getEMInvocationInfo(JPATxEntityManager.java:211)
at com.ibm.ws.jpa.management.JPAEntityManager.persist(JPAEntityManager.java:110)
at com.bmo.persistence.GenericDAOImpl.makePersistent(GenericDAOImpl.java:64)
at com.bmo.persistence.EJSLocal0SLMyEntityDAO_0bdfb2d1.makePersistent(EJSLocal0SLMyEntityDAO_0bdfb2d1.java)
at com.bmo.servlet.MyServlet.doPost(MyServlet.java:52)
at com.bmo.servlet.MyServlet.doGet(MyServlet.java:39)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1146)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:593)
at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:534)
at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3548)
at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:269)
at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:818)
at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1478)
at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:126)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:458)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:387)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:267)
at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminators(NewConnectionInitialReadCallback.java:214)
at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:113)
at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)
at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:136)
at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:196)
at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:751)
at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:881)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1497)
Following jars are on the server CLASSPATH:
Code:
log4j-1.2.6.jar
slf4j-api-1.6.0.jar
slf4j-log4j12-1.6.0.jar
asm-1.5.1.jar
cglib-2.1_3.jar
commons-collections-3.1.jar
hibernate-annotations.jar
javassist-3.9.0.GA.jar
dom4j-1.6.1.jar
hibernate-jpa-2.0-api-1.0.0.Final.jar
Any pointers will be greatly appreciated.