[rules-users] ProviderInitializationException in creating KnowledgeBuilder

Brody bach brodybach at yahoo.com
Tue Apr 21 06:19:40 EDT 2009


Hi..

Thanks Wolfgang

Regards
BB


Brody bach 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-tp23151050p23153058.html
Sent from the drools - user mailing list archive at Nabble.com.




More information about the rules-users mailing list