1 Reply Latest reply on Feb 20, 2012 3:11 PM by George Gastaldi

    Java EE 6, drools, guvnor

    Marcio Jota Coelho Newbie

      Hi all....

       

       

      I have a error when use Knowledge base in guvnor.

       

      This my source:

       

      KnowledgeBase kbase = KnowledgeBaseFactory.
      newKnowledgeBase();
              KnowledgeBuilder kbuilder =
       KnowledgeBuilderFactory.newKnowledgeBuilder();
      
       kbuilder.add(ResourceFactory.newUrlResource("http://192.168.15.175:8080/guvnor/rest/packages/com.extremo.rules/binary"),
       ResourceType.DRL);
              kbase.addKnowledgePackages(kbuilder.getKnowledgePackages());
              KnowledgeBuilderErrors errors = kbuilder.getErrors();
              if (errors.size() > 0) {
                  for (KnowledgeBuilderError error: errors) {
                      System.err.println(error);
                  }
                  throw new IllegalArgumentException("Não foi possível efetuar o
       Parse da base de conhecimento.");
              }
      

       

             

       


      This is a piece of the tomcat tracer..

      http://pastie.org/3419783


      what´s wrong?