0 Replies Latest reply on Aug 12, 2014 8:11 AM by shaun.ohagan

    Wildfly/JBoss Dev Studio/Drools  pom.properties not found

    shaun.ohagan

      Hi,

      Using Wildfly 8.1 plus JBoss DeveloperStudio 7.1.1 I'm trying to deploy a Drools based application from Eclipse. 

       

      2014-08-12 11:21:41,939 ERROR [org.drools.compiler.kie.builder.impl.ClasspathKieProject] (MSC service thread 1-2) Unable to load pom.properties from /home/sohagan/data/software/servers/wildfly-8.1.0.Final/standalone/deployments/DEMO.ear/DEMO-Services.jar

      /home/sohagan/data/software/servers/wildfly-8.1.0.Final/standalone/deployments/DEMO.ear/DEMO-Services.jar (Is a directory)

       

      The error is pretty self explanatory once you look at the Drools code. https://github.com/droolsjbpm/drools/blob/master/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/ClasspathKieProject.java

       

      It picks up that the URL of the deployment has .JAR at the end so mistakenly then assumes it is a JAR file but it is an exploded JAR file and then falls over presumably here


      InputStreamReader( zipFile.getInputStream( zipEntry ), IoUtils.UTF8_CHARSET ) );

       

      As DEMO-Services.jar is a directory not a file !

       

      I can't think how to work around it, obviously I want to keep my exploded deploy in Eclipse for development purposes.

       

      The pom.properties is under META-INF so all should be good but I'm surprised that this issue has not been hit already ?

       

      Regards,

      Shaun.