java.lang.NoClassDefFoundError

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • The configuration manager reads properties from a database and therefore needs Hibernate dependencies to work correctly. There are lots of Hibernate dependencies in the POM file. However they are not included in the packaged jar file. Only these dependencies are included in the jar {code} <configuration> <artifactSet> <includes> <include>mysql:mysql-connector-java</include> <include>postgresql:postgresql</include> </includes> </artifactSet> </configuration> {code} This leads to fatal runtime errors in other components that use the config manager. For example, TRC-STS uses the configuration manager and there are runtime exceptions that Hibernate.Session class is not found. {code} Mar 22, 2013 1:46:57 PM com.sun.xml.ws.transport.http.servlet.WSServletDelegate doGet SEVERE: caught throwable java.lang.NoClassDefFoundError: org/hibernate/Session at epsos.ccd.gnomon.configmanager.ConfigurationManagerService.getProperty(ConfigurationManagerService.java:58) at epsos.ccd.netsmart.securitymanager.key.impl.DefaultKeyStoreManager.<init>(DefaultKeyStoreManager.java:58) at epsos.ccd.netsmart.securitymanager.SamlTRCIssuer.<init>(SamlTRCIssuer.java:56) at epsos.ccd.netsmart.securitymanager.sts.STSService.invoke(STSService.java:156) at epsos.ccd.netsmart.securitymanager.sts.STSService.invoke(STSService.java:87) at com.sun.xml.ws.api.server.InstanceResolver$1.invokeProvider(InstanceResolver.java:256) at com.sun.xml.ws.server.InvokerTube$2.invokeProvider(InvokerTube.java:156) at com.sun.xml.ws.server.provider.SyncProviderInvokerTube.processRequest(SyncProviderInvokerTube.java:78) at com.sun.xml.ws.api.pipe.Fiber.__doRun(Fiber.java:637) at com.sun.xml.ws.api.pipe.Fiber._doRun(Fiber.java:596) at com.sun.xml.ws.api.pipe.Fiber.doRun(Fiber.java:581) at com.sun.xml.ws.api.pipe.Fiber.runSync(Fiber.java:478) at com.sun.xml.ws.server.WSEndpointImpl$2.process(WSEndpointImpl.java:310) at com.sun.xml.ws.transport.http.HttpAdapter$HttpToolkit.handle(HttpAdapter.java:611) at com.sun.xml.ws.transport.http.HttpAdapter.handle(HttpAdapter.java:265) at com.sun.xml.ws.transport.http.servlet.ServletAdapter.invokeAsync(ServletAdapter.java:189) at com.sun.xml.ws.transport.http.servlet.WSServletDelegate.doGet(WSServletDelegate.java:155) at com.sun.xml.ws.transport.http.servlet.WSServletDelegate.doPost(WSServletDelegate.java:190) at com.sun.xml.ws.transport.http.servlet.WSServlet.doPost(WSServlet.java:76) at javax.servlet.http.HttpServlet.service(HttpServlet.java:637) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) {code} This is a blocking issue. We cannot perform PPT because this occurs in latest 1.1.2 components.
    via by Gareth Woodham,
    • java.lang.NoClassDefFoundError: org/hibernate/Session at epsos.ccd.gnomon.configmanager.ConfigurationManagerService.getProperty(ConfigurationManagerService.java:58) at epsos.ccd.netsmart.securitymanager.key.impl.DefaultKeyStoreManager.<init>(DefaultKeyStoreManager.java:58) at epsos.ccd.netsmart.securitymanager.SamlTRCIssuer.<init>(SamlTRCIssuer.java:56) at epsos.ccd.netsmart.securitymanager.sts.STSService.invoke(STSService.java:156) at epsos.ccd.netsmart.securitymanager.sts.STSService.invoke(STSService.java:87)
    No Bugmate found.