aspose file tools
The moose likes Object Relational Mapping and the fly likes Spring - JPA:Hibernate trouble Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Object Relational Mapping
Reply Bookmark "Spring - JPA:Hibernate trouble" Watch "Spring - JPA:Hibernate trouble" New topic
Author

Spring - JPA:Hibernate trouble

Matthew Snow
Ranch Hand

Joined: May 02, 2007
Posts: 64
I was just happily playing around with the settings on a few of my @Entities and now I get this error when I try to restart Tomcat. I've tried rolling back my code to when it worked, but I can't get this error to go away. Here is the error in the Tomecat log (it ocurrs just after processing the PersistenceUnitInfo). I'll post more upon request to save space. Any help please.



When you break the big rules, you get a lot of little rules.
Matthew Snow
Ranch Hand

Joined: May 02, 2007
Posts: 64
Fixed it! And I don't know how !

I've spent all day trying everything from deleting entities to rebuilding the
whole project from the ground up. I finally got it when I copied over a copy
of my pom.xml I had luckly saved on a thumb drive and did a mvn
eclipse:eclipse on my project. And now it works! There is no difference
between the two poms and I'd tried rebuilding the old pom and I hadn't made a
change to the old one in ages ... I think I'll spend tomorrow (Friday 13) in
bed .
Jonathan Cone
Greenhorn

Joined: May 22, 2005
Posts: 24
I believe that missing class is part of Doug Lea's concurrency API, if I were you, I would start here:

http://g.oswego.edu/dl/classes/EDU/oswego/cs/dl/util/concurrent/intro.html

What version of Tomcat are you using? In my personal experience there are a lot of "weird" problems with JPA on anything below 5.5.20 -- especially if you're deploying from within Eclipse.
 
IntelliJ Java IDE
 
subject: Spring - JPA:Hibernate trouble
 
Threads others viewed
Struts 2 + Spring 2 + JPA + AJAX
Exception thrown : org.springframework.beans.factory.BeanCreationException
org.jboss.deployers.spi.DeploymentException: JBoss 5.0.1
spring 2.5.3 / hibernate 3 sessionFactory NullPointerException
ERROR - Context initialization failed org.springframework.beans.factory.BeanCreationException
IntelliJ Java IDE

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture