[
https://issues.jboss.org/browse/DROOLS-540?page=com.atlassian.jira.plugin...
]
Christian Sterzl updated DROOLS-540:
------------------------------------
Description:
When loading a KModule in Weblogic on Windows it fails.
The error is in this class:
{code:java|title=org.drools.compiler.kie.builder.impl.ClasspathKieProject|linenumbers=true|firstline=300}
// 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 );
}
{code}
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.
was:
When loading a KModule in Weblogic on Windows it fails.
The error is in this class:
{code:java|title=org.drools.compiler.kie.builder.impl.ClasspathKieProject|linenumbers=true|firstline=300}
// 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 );
}
{code}
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.
Environment: Windows 2007, Weblogic 12c (was: Windows 2007)
KieModule fails to load on Windows
----------------------------------
Key: DROOLS-540
URL:
https://issues.jboss.org/browse/DROOLS-540
Project: Drools
Issue Type: Bug
Security Level: Public(Everyone can see)
Affects Versions: 6.0.1.Final
Environment: Windows 2007, Weblogic 12c
Reporter: Christian Sterzl
Assignee: Mark Proctor
When loading a KModule in Weblogic on Windows it fails.
The error is in this class:
{code:java|title=org.drools.compiler.kie.builder.impl.ClasspathKieProject|linenumbers=true|firstline=300}
// 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 );
}
{code}
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.
--
This message was sent by Atlassian JIRA
(v6.2.6#6264)