Uploaded image for project: 'JBoss BPMS Platform'
  1. JBoss BPMS Platform
  2. RHBPMS-3309

NoClassDefFoundError: com/sun/istack/Pool for bpm-example-app client jar

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 6.0.1
    • None
    • Deployment
    • None

      Description of problem:
      This is detected when running bpm-example-app ER1.
      For some reason, the productized artifact com.sun.xml.bind:jaxb-impl:jar:2.2.5-redhat-5:compile does not embedd with
      1)com.sun.istack:istack-commons-runtime
      2) com.sun.xml.txw2:txw2
      which will cause the error when running the bpm-example-client jar.
      However the community version of com.sun.xml.bind:jaxb-impl does embed those classes.

      I think the solution will be add those package in bpm-example assembly code explicitly.

      The stacktrace:
      [rzhang@/home/rzhang/lab/1brms6/6.0.1/ER1/jboss-bpm-example-dist-1.0.0-redhat-6]$java -jar jboss-mortgage-demo-client.jar rzhang mypassword
      Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/istack/Pool
      at com.sun.xml.bind.v2.runtime.JAXBContextImpl$JAXBContextBuilder.build(JAXBContextImpl.java:1163)
      at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:145)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:601)
      at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:248)
      at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:235)
      at javax.xml.bind.ContextFinder.find(ContextFinder.java:432)
      at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:637)
      at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:584)
      at org.kie.services.client.serialization.JaxbSerializationProvider.initializeJaxbContext(JaxbSerializationProvider.java:76)
      at org.kie.services.client.serialization.JaxbSerializationProvider.<init>(JaxbSerializationProvider.java:71)
      at org.kie.services.client.api.command.RemoteConfiguration.getJaxbSerializationProvider(RemoteConfiguration.java:431)
      at org.kie.services.client.api.command.AbstractRemoteCommandObject.executeRestCommand(AbstractRemoteCommandObject.java:315)
      at org.kie.services.client.api.command.AbstractRemoteCommandObject.execute(AbstractRemoteCommandObject.java:109)
      at org.drools.core.command.impl.CommandBasedStatefulKnowledgeSession.startProcess(CommandBasedStatefulKnowledgeSession.java:232)
      at com.redhat.bpms.examples.mortgage.CreateProcesses.populateSamples(CreateProcesses.java:57)
      at com.redhat.bpms.examples.mortgage.CreateProcesses.main(CreateProcesses.java:47)
      Caused by: java.lang.ClassNotFoundException: com.sun.istack.Pool
      at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
      at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
      at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
      ... 19 more

      Version-Release number of selected component (if applicable):
      Found in 6.0.1 ER1 (upstream tag: sync.2014.02.10)

      How reproducible:

      Steps to Reproduce:
      1.
      2.
      3.

      Actual results:

      Expected results:

      Additional info:

              rzhang+1@redhat.com Cheng Zhang (Inactive)
              rzhang+1@redhat.com Cheng Zhang (Inactive)
              Marek Baluch Marek Baluch
              Marek Baluch Marek Baluch
              Kris Verlaenen, Rajesh Rajasekaran
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: