StormeHawke wrote:
> 
> I'm not really sure what to make of this, but when the Drools Runtime
> library is present on my project classpath in Eclipse, any of my junit
> tests that reference Drools fail, but if I remove the runtime library from
> that same classpath, everything runs as expected.  The output in the
> console:
> 
> Build groovy files option has not been set one way or the other: use
> 'options.put(CompilerOptions.OPTIONG_BuildGroovyFiles,
> CompilerOptions.ENABLED);'
> (I'm not using groovy files of any kind)
> 
> But then I also get a really long stack trace in the JUnit output pane
> (truncated once it reaches my code):
> 
> 
> java.lang.NoClassDefFoundError: org/eclipse/core/runtime/Plugin
>       at java.lang.ClassLoader.defineClass1(Native Method)
>       at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
>       at
> java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
>       at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
>       at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
>       at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
>       at java.security.AccessController.doPrivileged(Native Method)
>       at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
>       at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
>       at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
>       at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
>       at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
>       at
> org.eclipse.jdt.internal.compiler.Compiler.initializeParser(Compiler.java:737)
>       at org.eclipse.jdt.internal.compiler.Compiler.<init>(Compiler.java:294)
>       at org.eclipse.jdt.internal.compiler.Compiler.<init>(Compiler.java:159)
>       at
> org.drools.commons.jci.compilers.EclipseJavaCompiler.compile(EclipseJavaCompiler.java:349)
>       at
> org.drools.commons.jci.compilers.AbstractJavaCompiler.compile(AbstractJavaCompiler.java:51)
>       at
> org.drools.rule.builder.dialect.java.JavaDialect.compileAll(JavaDialect.java:389)
>       at
> org.drools.compiler.DialectCompiletimeRegistry.compileAll(DialectCompiletimeRegistry.java:56)
>       at
> org.drools.compiler.PackageRegistry.compileAll(PackageRegistry.java:74)
>       at 
> org.drools.compiler.PackageBuilder.compileAll(PackageBuilder.java:677)
>       at 
> org.drools.compiler.PackageBuilder.addPackage(PackageBuilder.java:640)
>       at
> org.drools.compiler.PackageBuilder.addPackageFromDrl(PackageBuilder.java:266)
>       at
> org.drools.compiler.PackageBuilder.addKnowledgeResource(PackageBuilder.java:458)
>       at
> org.drools.builder.impl.KnowledgeBuilderImpl.add(KnowledgeBuilderImpl.java:28)
>       at
> net.intellidata.pricing.PricingEngine.cacheKnowledgeBase(PricingEngine.java:136)
> 
> To top it off, the same test runs fine on my boss's computer, but not on
> mine.  Neither of us is sure why.  What am I missing?
> 


Anybody?
-- 
View this message in context: 
http://drools-java-rules-engine.46999.n3.nabble.com/JUnit-Test-failure-when-Eclipse-library-present-on-eclipse-classpath-tp2548782p2556661.html
Sent from the Drools - User mailing list archive at Nabble.com.
_______________________________________________
rules-users mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/rules-users

Reply via email to