java.lang.NoClassDefFoundError: Could not initialize class org.apache.xml.security.signature.XMLSignature How to fix this? I'm totally new to Java and the Netbeans IDE 8.1 Update 1: Added the package and it is showing that it is present. Is the first causing an issue? Update 2: Stack Trace Warning: A system exception occurred during an invocation on EJB DSAWS, method: public java.lang.String rg.xxxxxxx.dsecdsa.DSAWS.CreateSignatureXml() throws java.lang.Exception Warning: javax.ejb.EJBException

Stack Overflow | Hyder | 2 months ago
  1. 0

    java.lang.NoClassDefFoundError: Could not initialize class org.apache.xml.security.signature.XMLSignature

    Stack Overflow | 2 months ago | Hyder
    java.lang.NoClassDefFoundError: Could not initialize class org.apache.xml.security.signature.XMLSignature How to fix this? I'm totally new to Java and the Netbeans IDE 8.1 Update 1: Added the package and it is showing that it is present. Is the first causing an issue? Update 2: Stack Trace Warning: A system exception occurred during an invocation on EJB DSAWS, method: public java.lang.String rg.xxxxxxx.dsecdsa.DSAWS.CreateSignatureXml() throws java.lang.Exception Warning: javax.ejb.EJBException
  2. 0

    ColdFusion 11 Running on IIS Server and getting a Java CreateObject Error

    Stack Overflow | 2 years ago
    java.lang.NoClassDefFoundError: Could not initialize class org.apache.xml.security.signature.XMLSignature**
  3. 0

    NoClassDefFoundError while creating mock object in java

    Stack Overflow | 7 months ago | Manas Kantha
    java.lang.NoClassDefFoundError: Could not initialize class
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    External Properties file and classpath

    Oracle Community | 6 years ago | 393585
    java.lang.NoClassDefFoundError: Could not initialize class
  6. 0

    maven repo and 5.0-X version

    Google Groups | 2 years ago | Zsolt Kúti
    java.lang.NoClassDefFoundError: Could not initialize class

    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

      Could not initialize class org.apache.xml.security.signature.XMLSignature

      at rg.xxxxxdsecdsa.DSAWS.CreateSignatureXml()
    2. rg.xxxxxdsecdsa
      DSAWS.CreateSignatureXml
      1. rg.xxxxxdsecdsa.DSAWS.CreateSignatureXml(DSAWS.java:141)
      1 frame
    3. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:498)
      4 frames
    4. Embedded GlassFish Web
      EjbInvocation.proceed
      1. org.glassfish.ejb.security.application.EJBSecurityManager.runMethod(EJBSecurityManager.java:1081)
      2. org.glassfish.ejb.security.application.EJBSecurityManager.invoke(EJBSecurityManager.java:1153)
      3. com.sun.ejb.containers.BaseContainer.invokeBeanMethod(BaseContainer.java:4786)
      4. com.sun.ejb.EjbInvocation.invokeBeanMethod(EjbInvocation.java:656)
      5. com.sun.ejb.containers.interceptors.AroundInvokeChainImpl.invokeNext(InterceptorManager.java:822)
      6. com.sun.ejb.EjbInvocation.proceed(EjbInvocation.java:608)
      6 frames
    5. Weld Implementation
      SessionBeanInterceptor.aroundInvoke
      1. org.jboss.weld.ejb.AbstractEJBRequestScopeActivationInterceptor.aroundInvoke(AbstractEJBRequestScopeActivationInterceptor.java:73)
      2. org.jboss.weld.ejb.SessionBeanInterceptor.aroundInvoke(SessionBeanInterceptor.java:52)
      2 frames
    6. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:498)
      4 frames
    7. Embedded GlassFish Web
      SystemInterceptorProxy.aroundInvoke
      1. com.sun.ejb.containers.interceptors.AroundInvokeInterceptor.intercept(InterceptorManager.java:883)
      2. com.sun.ejb.containers.interceptors.AroundInvokeChainImpl.invokeNext(InterceptorManager.java:822)
      3. com.sun.ejb.EjbInvocation.proceed(EjbInvocation.java:608)
      4. com.sun.ejb.containers.interceptors.SystemInterceptorProxy.doCall(SystemInterceptorProxy.java:163)
      5. com.sun.ejb.containers.interceptors.SystemInterceptorProxy.aroundInvoke(SystemInterceptorProxy.java:140)
      5 frames
    8. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:498)
      4 frames
    9. Embedded GlassFish Web
      WebServiceInvocationHandler.invoke
      1. com.sun.ejb.containers.interceptors.AroundInvokeInterceptor.intercept(InterceptorManager.java:883)
      2. com.sun.ejb.containers.interceptors.AroundInvokeChainImpl.invokeNext(InterceptorManager.java:822)
      3. com.sun.ejb.containers.interceptors.InterceptorManager.intercept(InterceptorManager.java:369)
      4. com.sun.ejb.containers.BaseContainer.__intercept(BaseContainer.java:4758)
      5. com.sun.ejb.containers.BaseContainer.intercept(BaseContainer.java:4746)
      6. com.sun.ejb.containers.WebServiceInvocationHandler.invoke(WebServiceInvocationHandler.java:193)
      6 frames
    10. com.sun.proxy
      $Proxy328.CreateSignatureXml
      1. com.sun.proxy.$Proxy328.CreateSignatureXml(Unknown Source)
      1 frame
    11. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:498)
      4 frames
    12. JSR-109 implementation to deploy Metro
      EjbInvokerImpl.invoke
      1. org.glassfish.webservices.InvokerImpl.invoke(InvokerImpl.java:82)
      2. org.glassfish.webservices.EjbInvokerImpl.invoke(EjbInvokerImpl.java:82)
      2 frames
    13. JAX-WS RI Runtime Bundle
      AbstractTubeImpl.process
      1. com.sun.xml.ws.server.InvokerTube$2.invoke(InvokerTube.java:149)
      2. com.sun.xml.ws.server.sei.SEIInvokerTube.processRequest(SEIInvokerTube.java:88)
      3. com.sun.xml.ws.api.pipe.Fiber.__doRun(Fiber.java:1136)
      4. com.sun.xml.ws.api.pipe.Fiber._doRun(Fiber.java:1050)
      5. com.sun.xml.ws.api.pipe.Fiber.doRun(Fiber.java:1019)
      6. com.sun.xml.ws.api.pipe.Fiber.runSync(Fiber.java:877)
      7. com.sun.xml.ws.api.pipe.helper.AbstractTubeImpl.process(AbstractTubeImpl.java:136)
      7 frames
    14. JSR-109 implementation to deploy Metro
      MonitoringPipe.process
      1. org.glassfish.webservices.MonitoringPipe.process(MonitoringPipe.java:142)
      1 frame
    15. JAX-WS RI Runtime Bundle
      AbstractTubeImpl.process
      1. com.sun.xml.ws.api.pipe.helper.PipeAdapter.processRequest(PipeAdapter.java:119)
      2. com.sun.xml.ws.api.pipe.Fiber.__doRun(Fiber.java:1136)
      3. com.sun.xml.ws.api.pipe.Fiber._doRun(Fiber.java:1050)
      4. com.sun.xml.ws.api.pipe.Fiber.doRun(Fiber.java:1019)
      5. com.sun.xml.ws.api.pipe.Fiber.runSync(Fiber.java:877)
      6. com.sun.xml.ws.api.pipe.helper.AbstractTubeImpl.process(AbstractTubeImpl.java:136)
      6 frames
    16. com.sun.enterprise
      CommonServerSecurityPipe.process
      1. com.sun.enterprise.security.webservices.CommonServerSecurityPipe.processRequest(CommonServerSecurityPipe.java:209)
      2. com.sun.enterprise.security.webservices.CommonServerSecurityPipe.process(CommonServerSecurityPipe.java:141)
      2 frames
    17. JAX-WS RI Runtime Bundle
      ServletAdapter.handle
      1. com.sun.xml.ws.api.pipe.helper.PipeAdapter.processRequest(PipeAdapter.java:119)
      2. com.sun.xml.ws.api.pipe.Fiber.__doRun(Fiber.java:1136)
      3. com.sun.xml.ws.api.pipe.Fiber._doRun(Fiber.java:1050)
      4. com.sun.xml.ws.api.pipe.Fiber.doRun(Fiber.java:1019)
      5. com.sun.xml.ws.api.pipe.Fiber.runSync(Fiber.java:877)
      6. com.sun.xml.ws.server.WSEndpointImpl$2.process(WSEndpointImpl.java:419)
      7. com.sun.xml.ws.transport.http.HttpAdapter$HttpToolkit.handle(HttpAdapter.java:868)
      8. com.sun.xml.ws.transport.http.HttpAdapter.handle(HttpAdapter.java:422)
      9. com.sun.xml.ws.transport.http.servlet.ServletAdapter.handle(ServletAdapter.java:169)
      9 frames
    18. JSR-109 implementation to deploy Metro
      EjbWebServiceServlet.service
      1. org.glassfish.webservices.Ejb3MessageDispatcher.handlePost(Ejb3MessageDispatcher.java:110)
      2. org.glassfish.webservices.Ejb3MessageDispatcher.invoke(Ejb3MessageDispatcher.java:80)
      3. org.glassfish.webservices.EjbWebServiceServlet.dispatchToEjbEndpoint(EjbWebServiceServlet.java:210)
      4. org.glassfish.webservices.EjbWebServiceServlet.service(EjbWebServiceServlet.java:153)
      4 frames
    19. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
      1 frame
    20. grizzly-http-servlet
      ServletHandler.service
      1. org.glassfish.grizzly.servlet.ServletHandler.doServletService(ServletHandler.java:226)
      2. org.glassfish.grizzly.servlet.ServletHandler.service(ServletHandler.java:178)
      2 frames
    21. Kernel Classes
      ContainerMapper.service
      1. com.sun.enterprise.v3.services.impl.ContainerMapper$HttpHandlerCallable.call(ContainerMapper.java:459)
      2. com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:167)
      2 frames
    22. Grizzly Server
      HttpServerFilter.handleRead
      1. org.glassfish.grizzly.http.server.HttpHandler.runService(HttpHandler.java:206)
      2. org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:180)
      3. org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:235)
      3 frames
    23. Grizzly
      AbstractThreadPool$Worker.run
      1. org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119)
      2. org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:283)
      3. org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:200)
      4. org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:132)
      5. org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:111)
      6. org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77)
      7. org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:536)
      8. org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:112)
      9. org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:117)
      10. org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:56)
      11. org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:137)
      12. org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:591)
      13. org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:571)
      13 frames
    24. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:745)
      1 frame