• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

ClassNotFoundException in IntelliJ IDEA Hibernate Console

 
Ranch Hand
Posts: 820
IntelliJ IDE VI Editor Tomcat Server
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Here are two examples of problems I'm having when starting to use the HQL console in IntelliJ IDEA (9.0.4)

First, the console simply can't find several of my mapped classes and "from HealthCareQuery" gives the error:
java.lang.ClassNotFoundException: com.sample.jsp.portlet.HealthCareQuery
even though the code shows no errors and works fine when deployed. ...and it can find the class if I hit CTRL-B from within the HQL console

When I remove every class mapping except one simple one from my hibernate.cfg.xml,
the HQL command, "FROM AGE_GROUP" gets the error in the console:
java.lang.ClassNotFoundException: javax.transaction.Synchronization

Which I understand is because it can't find jta.jar
I made sure jta.jar is in my project library, but perhaps I need to make jta.jar available to IDEA in general. I can't find a way to do this. The plugins for hibernate and java persistence are present.

my classes are mapped with annotations.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic