[rules-users] ProviderInitializationException in creating KnowledgeBuilder

Wolfgang Laun wolfgang.laun at gmail.com
Tue Apr 21 04:41:43 EDT 2009


KnowledgeBuilderProviderImpl is in drools-compiler.
-W

On Tue, Apr 21, 2009 at 10:05 AM, Brody bach <brodybach at yahoo.com> wrote:

>
> Hi all,
>
> I'm using CR1 version of drools and when I tried to create
> KnowledgeBuilder:
> if (rulePackage.exists()) {
>
>        final KnowledgeBuilder kbuilder =
>                KnowledgeBuilderFactory.newKnowledgeBuilder();
>
>       kbuilder.add(ResourceFactory.newFileResource(rulePackage),
> ResourceType.PKG);
> .....
>
> I got the ProviderInitializationException as follows:
>
> 09:38:18,125 ERROR [test.drools.common.ejb.ExceptionInterceptor] []
> Provider
> org.drools.builder.impl.KnowledgeBuilderProviderImpl could not be set.
> org.drools.ProviderInitializationException: Provider
> org.drools.builder.impl.KnowledgeBuilderProviderImpl could not be set.
>        at
>
> org.drools.builder.KnowledgeBuilderFactory.loadProvider(KnowledgeBuilderFactory.java:111)
>        at
>
> org.drools.builder.KnowledgeBuilderFactory.getKnowledgeBuilderProvider(KnowledgeBuilderFactory.java:101)
>        at
>
> org.drools.builder.KnowledgeBuilderFactory.newKnowledgeBuilder(KnowledgeBuilderFactory.java:29)
>
> I use drools-core and drools-api in the project and I found out that the
> class Provider org.drools.builder.impl.KnowledgeBuilderProviderImpl doesn't
> even exist. Do I miss any package?
>
> And a second question, when will the javadoc of drools be online again? ;-)
>
> Thanks
> Brody
> --
> View this message in context:
> http://www.nabble.com/ProviderInitializationException-in-creating-KnowledgeBuilder-tp23151050p23151050.html
> Sent from the drools - user mailing list archive at Nabble.com.
>
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20090421/36d7342c/attachment.html 


More information about the rules-users mailing list