-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Anybody ever made Hibernate+JPA 2.0+Websphere 6.1 work?
PostPosted: Thu Nov 18, 2010 3:03 pm 
Newbie

Joined: Wed Oct 27, 2010 11:13 am
Posts: 7
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.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.