java.lang.NoClassDefFoundError: org/apache/commons/lang/text/StrLookup

JIRA | Kostas Karkaletsis | 4 years ago
  1. 0
  2. 0

    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.

    JIRA | 4 years ago | Gareth Woodham
    java.lang.NoClassDefFoundError: org/hibernate/Session
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    Archaius version update?

    GitHub | 3 years ago | samhendley
    java.lang.NoClassDefFoundError: org/apache/commons/lang/text/StrLookup

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.NoClassDefFoundError

      org/apache/commons/lang/text/StrLookup

      at epsos.ccd.gnomon.configmanager.ConfigurationManager.getProperty()
    2. epsos.ccd.gnomon
      ConfigurationManagerService.getProperty
      1. epsos.ccd.gnomon.configmanager.ConfigurationManager.getProperty(ConfigurationManager.java:89)
      2. epsos.ccd.gnomon.configmanager.ConfigurationManagerService.getProperty(ConfigurationManagerService.java:60)
      2 frames
    3. epsos.ccd.netsmart
      STSService.invoke
      1. epsos.ccd.netsmart.securitymanager.key.impl.DefaultKeyStoreManager.<init>(DefaultKeyStoreManager.java:58)
      2. epsos.ccd.netsmart.securitymanager.SamlTRCIssuer.<init>(SamlTRCIssuer.java:56)
      3. epsos.ccd.netsmart.securitymanager.sts.STSService.invoke(STSService.java:156)
      4. epsos.ccd.netsmart.securitymanager.sts.STSService.invoke(STSService.java:87)
      4 frames
    4. JAX-WS RI Runtime Bundle
      SyncProviderInvokerTube.processRequest
      1. com.sun.xml.ws.api.server.InstanceResolver$1.invokeProvider(InstanceResolver.java:256)
      2. com.sun.xml.ws.server.InvokerTube$2.invokeProvider(InvokerTube.java:156)
      3. com.sun.xml.ws.server.provider.SyncProviderInvokerTube.processRequest(SyncProviderInvokerTube.java:78)
      3 frames