Bug 1035780 - Pom.properties cannot be found even though it's in the war
Summary: Pom.properties cannot be found even though it's in the war
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss BRMS Platform 6
Classification: Retired
Component: BRE
Version: 6.0.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ER6
: 6.0.0
Assignee: Mario Fusco
QA Contact: Ivo Bek
URL:
Whiteboard:
Depends On: 1035775
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-11-28 13:13 UTC by Ivo Bek
Modified: 2014-08-06 20:20 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
BPMS 6.0.0.ER5
Last Closed: 2014-08-06 20:20:17 UTC
Type: Bug


Attachments (Terms of Use)
server log (8.85 KB, text/x-log)
2013-11-28 13:23 UTC, Ivo Bek
no flags Details

Description Ivo Bek 2013-11-28 13:13:04 UTC
Description of problem:

I have a spring application and during the deployment it tries to find pom.properties in the war. Even though it's located in META-INF/maven/org/jboss/springapp/pom.properties, it's not found.

The source code for doing that is located here https://github.com/droolsjbpm/drools/blob/master/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/ClasspathKieProject.java#L167

Consider, that a fix of this bug will influence the reproducer of BZ 1035775, where the getPomProperties method searches for pom.xml as an alternative because of this issue.

How reproducible:

Use the same reproduce steps from BZ 1035775 and the attachments there.

Comment 1 Ivo Bek 2013-11-28 13:23:50 UTC
Created attachment 830234 [details]
server log

Comment 2 Ivo Bek 2013-11-28 13:25:33 UTC
The server log contains:

Unable to load pom.properties tried recursing down from/home/ibek/jboss/jboss-eap-6.1/modules/system/layers/base/sun/jdk/main/service-loader-resources/

so I tried to add pom.properties into that location just to have it as a workaround and it doesn't work either, so there must be something terribly wrong.

Comment 3 Ivo Bek 2013-11-28 13:32:06 UTC
I don't know what is the urlPathToAdd variable but if it's a path to the war, in the source is a condition only for jar files https://github.com/droolsjbpm/drools/blob/master/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/ClasspathKieProject.java#L173

if ( urlPathToAdd.endsWith( ".jar" ) || urlPathToAdd.endsWith( "/content" ) )

It could be one of the reasons why the pom.properties isn't found there.

Comment 5 Ivo Bek 2014-01-08 09:37:43 UTC
Verified in BPMS 6.0.0.ER7


Note You need to log in before you can comment on or make changes to this bug.