[jboss-jira] [JBoss JIRA] (DROOLS-364) ClasspathKieProject fails vfs: path for jar deployments and exploded ear
Nicolas-Xavier Vanderlinden (JIRA)
jira-events at lists.jboss.org
Thu Dec 5 14:53:05 EST 2013
[ https://issues.jboss.org/browse/DROOLS-364?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12929038#comment-12929038 ]
Nicolas-Xavier Vanderlinden commented on DROOLS-364:
----------------------------------------------------
The root path of the jar containing the kmodule.xml file is wrong.
Here is a part of the ClasspathKieProject.java
{code}
Line 320:private static String getPathForVFS(URL url) {
...
Line 329 String path = f.getPath();
if (isInJar) {
String jarName = urlString.substring(0, kModulePos);
jarName = jarName.substring(jarName.lastIndexOf('/')+1);
Line 334 String jarFolderPath = path.substring( 0, path.length() - ("contents/" + KieModuleModelImpl.KMODULE_JAR_PATH).length() );
String jarPath = jarFolderPath + jarName;
Line 336 path = new File(jarPath).exists() ? jarPath : jarFolderPath + "content";
} else if (path.endsWith(KieModuleModelImpl.KMODULE_JAR_PATH)) {
path = path.substring( 0, path.length() - ("/" + KieModuleModelImpl.KMODULE_JAR_PATH).length() );
}
{code}
{code}
Line 329: path = E:\Project\Haulogy\Geline\jboss-as-7.1.1.Final\standalone\deployments\geline.ear\service-impl-1.4.0-SNAPSHOT.jar\META-INF\kmodule.xml
Line 334: jarFolderPath = E:\Project\Geline\jboss-as-7.1.1.Final\standalone\deployments\geline.ear\service-impl-1.4.0-SNAP
Line 336: path = E:\Project\Geline\jboss-as-7.1.1.Final\standalone\deployments\geline.ear\service-impl-1.4.0-SNAPcontent
{code}
"service-impl-1.4.0-SNAPSHOT.jar" has been truncated to "service-impl-1.4.0-SNAP"
> ClasspathKieProject fails vfs: path for jar deployments and exploded ear
> ------------------------------------------------------------------------
>
> Key: DROOLS-364
> URL: https://issues.jboss.org/browse/DROOLS-364
> Project: Drools
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Affects Versions: 6.0.0.Final
> Reporter: Nicolas-Xavier Vanderlinden
> Assignee: Mark Proctor
>
> Drools is not able to load kmodule.xml from an exploded ear.
> 17:24:45,116 WARN Unable to load pom.properties tried recursing down from\Project\Geline\jboss-as-7.1.1.Final\standalone\deployments\geline.ear\service-impl-1.4.0-SNAPcontent
> null
> 17:24:45,116 ERROR Unable to build index of kmodule.xml url=vfs:/E:/Project/Geline/jboss-as-7.1.1.Final/standalone/deployments/geline.ear/service-impl-1.4.0-SNAPSHOT.jar/META-INF/kmodule.xml
> null
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list