[rules-users] Unable to find rules package

Michael Anstis michael.anstis at gmail.com
Tue Feb 19 16:26:52 EST 2013


If you paste the URL into a browser do you get the Pkg file to download?

sent on the move

On 19 Feb 2013 19:45, "IPatel" <ishita.patel at usbank.com> wrote:

> Hi
>
> I have following code to load the package into knowledgebase. However i am
> getting FileNotFound error.
>
>  KnowledgeBuilder kbuilder = KnowledgeBuilderFactory.newKnowledgeBuilder();
>
> kbuilder.add(ResourceFactory.newUrlResource("
> http://localhost:8080/guvnor-5.5.0.Final-jboss-as-7.0/org.drools-guvnor/org.drools.guvnor.Guvnor/package/TestIsha/LATEST
> "),ResourceType.PKG);
>                     KnowledgeBase kbase =
> KnowledgeBaseFactory.newKnowledgeBase();
>
> kbase.addKnowledgePackages(kbuilder.getKnowledgePackages());
>
>                         StatefulKnowledgeSession ksession =
> kbase.newStatefulKnowledgeSession();
>
> Has anyone experienced this?? Do i need to download the package into my
> project? Will this automatically read the changes made via guvnor??
>
>
> Your help will be greatly appreciated.
>
>
>
> --
> View this message in context:
> http://drools.46999.n3.nabble.com/Unable-to-find-rules-package-tp4022466.html
> Sent from the Drools: User forum 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/20130219/610ef710/attachment.html 


More information about the rules-users mailing list