Uploaded image for project: 'Drools'
  1. Drools
  2. DROOLS-540

KieModule fails to load on Windows

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 6.2.0.CR1
    • 6.0.1.Final
    • None

      When loading a KModule in Weblogic on Windows it fails.

      The error is in this class:

      org.drools.compiler.kie.builder.impl.ClasspathKieProject
      // remove any remaining protocols, normally only if it was a jar
              int firstSlash = urlPath.indexOf( '/' );
              colonIndex = firstSlash > 0 ? urlPath.lastIndexOf( ":", firstSlash ) : urlPath.lastIndexOf( ":" );
              if ( colonIndex >= 0 ) {
                  urlPath = urlPath.substring( colonIndex + 1 );
              }
      

      Following input:

      /C:/DEV_DATA/Workspaces/BDD/taskboard.rules/target/classes

      Produces following output:

      /DEV_DATA/Workspaces/BDD/taskboard.rules/target/classes

      Which makes it impossible to load in a windows environment.

      When I add the pom.properties on the same drive as Weblogic runs it works.
      I have to add pom.properties on D:/DEV_DATA/Workspaces/BDD/taskboard.rules/target/classes/META-INF/maven/classes/pom.properties.

            mfusco@redhat.com Mario Fusco
            christian.sterzl@gmail.com Christian Sterzl (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: