1 Reply Latest reply on Mar 17, 2014 12:52 AM by Jay Guidos

    KIE WB 6.0.1: NamespaceContext - class not found exception when opening project

    Jay Guidos Novice

      Hi All,

       

      I have a project that compiles, loads, deploys... in all ways it works fine - in Linux.  When I clone the same project in a Windows deployment of JBoss using the same version of JBPM, everything seems fine.

       

      But when I open the project I get a popup window in KIE Workbench with the following error:

       

      Unable to complete your request. The following exception occurred: java.lang.ClassNotFoundException:org.jaxen.NamespaceContext
      
      

       

      No errors appear on the JBoss console.  The class is from jaxen, and is one of the standard modules contained in the JBoss distribution.  I have confirmed the module is present and available.

       

      I have even done several clean re-installs but the error persists.  Can anyone give me a clue on how to diagnose and fix this issue?

       

      Jay

        • 1. Re: KIE WB 6.0.1: NamespaceContext - class not found exception when opening project
          Jay Guidos Novice

          Actually I can get a log file stack trace if I open and then save the pom.xml.  Here is what I see:

           

          22:46:20,040 INFO  [org.drools.compiler.kie.builder.impl.KieRepositoryImpl] (pool-28-thread-2) KieModule was added:MemoryKieModule[ ReleaseId=com.glt.bpm:Approvals:1.0.2]
          22:46:20,704 ERROR [stderr] (pool-28-thread-2) Exception in thread "pool-28-thread-2" java.lang.NoClassDefFoundError: org/jaxen/NamespaceContext
          22:46:20,718 ERROR [stderr] (pool-28-thread-2)  at java.lang.ClassLoader.defineClass1(Native Method)
          22:46:20,727 ERROR [stderr] (pool-28-thread-2)  at java.lang.ClassLoader.defineClass(ClassLoader.java:800)
          22:46:20,743 ERROR [stderr] (pool-28-thread-2)  at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
          22:46:20,750 ERROR [stderr] (pool-28-thread-2)  at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
          22:46:20,777 ERROR [stderr] (pool-28-thread-2)  at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
          22:46:20,788 ERROR [stderr] (pool-28-thread-2)  at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
          22:46:20,792 ERROR [stderr] (pool-28-thread-2)  at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
          22:46:20,798 ERROR [stderr] (pool-28-thread-2)  at java.security.AccessController.doPrivileged(Native Method)
          22:46:20,803 ERROR [stderr] (pool-28-thread-2)  at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
          22:46:20,808 ERROR [stderr] (pool-28-thread-2)  at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
          22:46:20,812 ERROR [stderr] (pool-28-thread-2)  at java.lang.ClassLoader.loadClass(ClassLoader.java:412)
          22:46:20,816 ERROR [stderr] (pool-28-thread-2)  at org.drools.core.common.ProjectClassLoader.internalLoadClass(ProjectClassLoader.java:99)
          22:46:20,823 ERROR [stderr] (pool-28-thread-2)  at org.drools.core.common.ProjectClassLoader.loadClass(ProjectClassLoader.java:82)
          22:46:20,829 ERROR [stderr] (pool-28-thread-2)  at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
          22:46:20,836 ERROR [stderr] (pool-28-thread-2)  at java.lang.Class.forName0(Native Method)
          22:46:20,839 ERROR [stderr] (pool-28-thread-2)  at java.lang.Class.forName(Class.java:270)
          22:46:20,844 ERROR [stderr] (pool-28-thread-2)  at org.kie.scanner.KieModuleMetaDataImpl.getClass(KieModuleMetaDataImpl.java:91)
          22:46:20,849 ERROR [stderr] (pool-28-thread-2)  at org.guvnor.common.services.builder.Builder.build(Builder.java:162)
          22:46:20,855 ERROR [stderr] (pool-28-thread-2)  at org.guvnor.common.services.builder.BuildServiceImpl.doBuild(BuildServiceImpl.java:122)
          22:46:20,860 ERROR [stderr] (pool-28-thread-2)  at org.guvnor.common.services.builder.BuildServiceImpl.build(BuildServiceImpl.java:77)
          22:46:20,868 ERROR [stderr] (pool-28-thread-2)  at org.guvnor.common.services.builder.BuildServiceImpl$Proxy$_$$_WeldClientProxy.build(BuildServiceImpl$Proxy$_$$_WeldClientProxy.java)
          22:46:20,876 ERROR [stderr] (pool-28-thread-2)  at org.guvnor.common.services.builder.ResourceChangeIncrementalBuilder$3.run(ResourceChangeIncrementalBuilder.java:214)
          22:46:20,883 ERROR [stderr] (pool-28-thread-2)  at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
          22:46:20,889 ERROR [stderr] (pool-28-thread-2)  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
          22:46:20,894 ERROR [stderr] (pool-28-thread-2)  at java.lang.Thread.run(Thread.java:744)
          22:46:20,899 ERROR [stderr] (pool-28-thread-2) Caused by: java.lang.ClassNotFoundException: org.jaxen.NamespaceContext
          22:46:20,904 ERROR [stderr] (pool-28-thread-2)  at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
          22:46:20,912 ERROR [stderr] (pool-28-thread-2)  at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
          22:46:20,919 ERROR [stderr] (pool-28-thread-2)  at java.security.AccessController.doPrivileged(Native Method)
          22:46:20,924 ERROR [stderr] (pool-28-thread-2)  at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
          22:46:20,932 ERROR [stderr] (pool-28-thread-2)  at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
          22:46:20,938 ERROR [stderr] (pool-28-thread-2)  at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
          22:46:20,942 ERROR [stderr] (pool-28-thread-2)  ... 25 more