[jboss-jira] [JBoss JIRA] (JBDEPLOY-280) ContextClassLoader is not working when war is zipped in Jboss as-7.1.1

Raj Haque (JIRA) issues at jboss.org
Thu Mar 6 05:51:33 EST 2014


Raj Haque created JBDEPLOY-280:
----------------------------------

             Summary: ContextClassLoader is not working when war is zipped in Jboss as-7.1.1
                 Key: JBDEPLOY-280
                 URL: https://issues.jboss.org/browse/JBDEPLOY-280
             Project: JBoss Deployers
          Issue Type: Bug
          Components: classloading, deployer, release
         Environment: mac osx,  eclipse kepler ,Apache Maven 3.0.4, java 1.7_0_45 and JBoss Application Server 7.1.1
            Reporter: Raj Haque


I have some resources(reports and native sql) on my class path. When I unzip the war I can see them under  the classes folder.
 
I have been using
Thread.currentThread().getContextClassLoader(). getResource(".........................");
 
This works fine when war is exploded but not when zipped. Hence I can not use JBoss maven deployments.
I also have some more resources under jar files (jars inside the war file) . It is the same . I can not access them any more.

I know this issue have been discussed in several post e.g.

https://community.jboss.org/thread/202208

https://community.jboss.org/message/761846#761846

But none of them answers correctly.
 
Any help will be much appreciated.
 
Thanks In advance.


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