[jboss-jira] [JBoss JIRA] Closed: (JBAS-4435) WebAppClassLoader.getResource() fails when the war is deployed as part of an ear
Thomas Diesler (JIRA)
jira-events at lists.jboss.org
Fri Sep 17 13:25:28 EDT 2010
[ https://jira.jboss.org/browse/JBAS-4435?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Thomas Diesler closed JBAS-4435.
--------------------------------
Resolution: Out of Date
> WebAppClassLoader.getResource() fails when the war is deployed as part of an ear
> --------------------------------------------------------------------------------
>
> Key: JBAS-4435
> URL: https://jira.jboss.org/browse/JBAS-4435
> Project: JBoss Application Server
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: ClassLoading
> Reporter: Thomas Diesler
> Assignee: Scott M Stark
>
> For some reason WebAppClassLoader.getResource("WEB-INF/wsdl/TestEndpoint.wsdl")
> fails when the war is deployed as part of an ear deployment.
> I use this workaround in
> static class VirtualFileClassLoader extends ClassLoader
> {
> private UnifiedVirtualFile vFile;
>
> public VirtualFileClassLoader(UnifiedVirtualFile file, ClassLoader parent)
> {
> super(parent);
> vFile = file;
> }
> @Override
> public URL getResource(String name)
> {
> URL url = super.getResource(name);
> if (url == null)
> {
> try
> {
> url = vFile.findChild(name).toURL();
> }
> catch (IOException e)
> {
> // ignore
> }
> }
> return url;
> }
> }
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list