This week's book giveaway is in the Java in General forum.
We're giving away four copies of Helidon Revealed: A Practical Guide to Oracle’s Microservices Framework and have Michael Redlich on-line!
See this thread for details.
  • 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
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

Exception on Startup

 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,

I am getting an exception in a start up bean. Its in DocumentAppStartUpBean implements javax.ejb.SessionBean.
Right when we try to get the session factory for hibernate it throws the exception.
The code is blowing up in sessionFactory = new Configuration().configure("hibernate.cfg.xml").buildSessionFactory();
The error occurs when I am starting up our data DataAccessServiceEar. So if I was running under Tomcat
I would guess that the hibernate3.jar needed to be in the WEB-INF directory; however, since this i
s WebSphere and we are using EJB I am not sure where to look next.


I have the Hibernate3.jar in the build path for the project. The DocumentAppStartUpBean is the bean that is throwing the exception.
The error is EJB threw an unexpected (non-declared) exception during invocation of method "start" on bean "BeanId(DataAccessService#InvcDASEJB.jar#DocumentAppStartUp, null)". Exception data: java.lang.NoClassDefFoundError: org.hibernate.cfg.Configuration. The problem occurs when I start the ear file in WebSphere console.

I guess the WebSphere server is not seeing the hibernate jars?

The directory for the server is C:\Program Files (x86)\IBM\WID7_WTE\runtimes\bi_v7\lib

Should I try putting the jars in there...

Thanks,
Mark
 
Marc Snider
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
test
 
Who knew that furniture could be so violent? Put this tiny ad out there to see what happens:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic