This is a classpath problem. That class in in drools-core, so, either you
have multiple drools-core jars in your classpath and they are clashing or
you don't have any of it. You might have to setup some classloader options
in the app server if you are clashing with another app.
Not sure if you are using SEAM, but just as an example, I know Seam also
uses Drools, so you might want to check for clashes...
[]s
Edson
2009/7/6 Julien Nicoulaud <julien.nicoulaud(a)bull.net>
Same here on JOnAS 5 an Drools 5.0.1, embedded in a OSGi bundle.
I found messages from Edson Tirelli in the mailing-list, who the same
issue and found a solution... Edson are you here ? :)
Le samedi 04 juillet 2009 à 18:23 -0700, Wishing Carebear a écrit :
> Hello:
> I have the drools5 embedded in an ear. When running aginst JBoss 5
> gets the following classnotfound exception but it works okay with
> websphere and pramati application server. Wondering if someone could
> throw some pointers.
>
> Please note that drools-compiler, drools-core etc are all in the ear
> and added to the manifest.
>
> Thanks,
> cabear
>
> java.lang.NoClassDefFoundError:
> org/drools/base/extractors/BaseObjectClassFieldReader
> at java.lang.ClassLoader.defineClass1(Native Method)
> at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
> at org.drools.base.ClassFieldAccessorCache
> $ByteArrayClassLoader.defineClass(ClassFieldAccessorCache.java:367)
> at
>
org.drools.base.ClassFieldAccessorFactory.getClassFieldReader(ClassFieldAccessorFactory.java:135)
> at org.drools.base.ClassFieldAccessorCache
> $CacheEntry.getReadAccessor(ClassFieldAccessorCache.java:315)
> at
>
org.drools.base.ClassFieldAccessorCache.getReadAcessor(ClassFieldAccessorCache.java:245)
> at
>
org.drools.base.ClassFieldAccessorStore.wire(ClassFieldAccessorStore.java:379)
> at
>
org.drools.base.ClassFieldAccessorStore.getReader(ClassFieldAccessorStore.java:97)
> at
>
org.drools.base.ClassFieldAccessorStore.getReader(ClassFieldAccessorStore.java:74)
> at
>
org.drools.rule.builder.PatternBuilder.getFieldReadAccessor(PatternBuilder.java:1031)
> at
> org.drools.rule.builder.PatternBuilder.build(PatternBuilder.java:560)
> at
>
org.drools.rule.builder.PatternBuilder.buildConstraint(PatternBuilder.java:235)
> at
> org.drools.rule.builder.PatternBuilder.build(PatternBuilder.java:196)
> at
> org.drools.rule.builder.PatternBuilder.build(PatternBuilder.java:104)
> at
>
org.drools.rule.builder.GroupElementBuilder.build(GroupElementBuilder.java:69)
> at org.drools.rule.builder.RuleBuilder.build(RuleBuilder.java:68)
> at
> org.drools.compiler.PackageBuilder.addRule(PackageBuilder.java:1159)
> at
> org.drools.compiler.PackageBuilder.addPackage(PackageBuilder.java:649)
> at
>
org.drools.compiler.PackageBuilder.addPackageFromDrl(PackageBuilder.java:290)
> at
>
org.drools.compiler.PackageBuilder.addKnowledgeResource(PackageBuilder.java:488)
> _______________________________________________
> rules-users mailing list
> rules-users(a)lists.jboss.org
>
https://lists.jboss.org/mailman/listinfo/rules-users
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
--
Edson Tirelli
JBoss Drools Core Development
JBoss by Red Hat @
www.jboss.com