[jboss-jira] [JBoss JIRA] (WFLY-1487) Unable to read nested resource in WAR archive

RH Bugzilla Integration (JIRA) jira-events at lists.jboss.org
Wed Oct 9 10:53:03 EDT 2013


    [ https://issues.jboss.org/browse/WFLY-1487?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12812725#comment-12812725 ] 

RH Bugzilla Integration commented on WFLY-1487:
-----------------------------------------------

Ladislav Thon <lthon at redhat.com> made a comment on [bug 1017282|https://bugzilla.redhat.com/show_bug.cgi?id=1017282]

Description of problem:

If in WAR archive I have a resource in META-INF/properties/nested.properties, I am unable to access it using

  classLoader.getResource("META-INF/properties/nested.properties");

In a JAR archive, it works.

Version-Release number of selected component (if applicable):

EAP 6.2.0.ER5

How reproducible:

Always

Steps to Reproduce:
1. classLoader.getResource("META-INF/properties/nested.properties");

Actual results:

Correct URL.

Expected results:

null

Additional info:

This blocks bug 999663.
                
> Unable to read nested resource in WAR archive
> ---------------------------------------------
>
>                 Key: WFLY-1487
>                 URL: https://issues.jboss.org/browse/WFLY-1487
>             Project: WildFly
>          Issue Type: Bug
>          Components: Web (JBoss Web), Web (Undertow)
>            Reporter: Radim Hatlapatka
>            Assignee: David Lloyd
>             Fix For: 8.0.0.Alpha2
>
>
> Unable to retrieve resources which are nested in additional directory in META-INF. The same works for JAR, only for WAR archive it doesn't.
> Example:
> If in WAR archive I have a resource in META-INF/properties/nested.properties, I am unable to access it using
> {code}
> classLoader.getResource("META-INF/properties/nested.properties");
> {code}

--
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