[
http://jira.jboss.com/jira/browse/JBAS-5151?page=comments#action_12396068 ]
Scott M Stark commented on JBAS-5151:
-------------------------------------
Just a simple jsp like:
[starksm@succubus jmx-console.war]$ cat resource.jsp
<%@page import="java.net.*" %>
<html>
<body>
<h1>WEB-INF/test-resource.txt:</h1>
<pre>
<%
ClassLoader loader = Thread.currentThread().getContextClassLoader();
URL resURL = loader.getResource("test-resource.txt");
out.println("test-resource.txt: "+resURL);
resURL = loader.getResource("WEB-INF/test-resource.txt");
out.println("WEB-INF/test-resource.txt: "+resURL);
%>
</pre>
</body>
</html>
shows null resource urls for the new bundle class loader config, while the previous ULR
config shows that the WEB-INF/test-resource.txt resource is found.
WEB-INF/test-resource.txt:
vfsfile:/home/svn/JBossHead/jboss-head/build/output/jboss-5.0.0.Beta4/server/default/deploy/jmx-console.war/WEB-INF/test-resource.txt
Resource loading fails for WEB-INF/xyz.txt
------------------------------------------
Key: JBAS-5151
URL:
http://jira.jboss.com/jira/browse/JBAS-5151
Project: JBoss Application Server
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: ClassLoading
Reporter: Heiko Braun
Assigned To: Scott M Stark
Fix For: JBossAS-5.0.0.Beta4
Heiko Braun wrote:
> With recent versions it seems that loading resources from WEB-INF
> seems to be broken for a lot of WS tests. Have there been any
> classloader changes that may explain this?
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira