[jboss-jira] [JBoss JIRA] (WFLY-1527) Adding context root to classpath as a resource-root doesn't work

Péter Somogyvári (JIRA) issues at jboss.org
Thu May 22 10:12:57 EDT 2014


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

Péter Somogyvári commented on WFLY-1527:
----------------------------------------

I was wondering if another issue of mine could be related. Please advise me if I should open a new issue with this problem:

With the following structure deployed, and with a root context of 'my-context' , on 8.0.0.Final I can access the 'the_resource.zip' file via a URL like this:
http://{theHost}:{thePort}/my-context/the_resource.zip

The same thing does not work on 8.1.0.CR2, the .zip file is not accessible via the HTTP interface.

ear
|--ejb
|--war
|--|--WEB-INF
|--|--|--lib
|--|--|--|--my_resources.jar
|--|--|--|--|--META-INF
|--|--|--|--|--|--resources
|--|--|--|--|--|--|--the_resource.zip


Kind regards,
Peter Metz


> Adding context root to classpath as a resource-root doesn't work
> ----------------------------------------------------------------
>
>                 Key: WFLY-1527
>                 URL: https://issues.jboss.org/browse/WFLY-1527
>             Project: WildFly
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: Web (JBoss Web), Web (Undertow)
>            Reporter: Josef Cacek
>            Assignee: Stuart Douglas
>             Fix For: 8.1.0.CR2, 8.1.0.Final
>
>         Attachments: test.war
>
>
> It's not possible to include root of a war in the classpath (using resource-root in jboss-deployment-structure.xml). None of "/", ".", "" values used as resource-root works to solve this.
> {code:xml}
> <jboss-deployment-structure>
>      <deployment>
>          <resources>
>              <resource-root path="/"/>
>          </resources>
>      </deployment>
> </jboss-deployment-structure>
> {code}



--
This message was sent by Atlassian JIRA
(v6.2.3#6260)



More information about the jboss-jira mailing list