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@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@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users