[jboss-dev-forums] [JBoss AS7 Development] - JBoss AS7 - Resource loading with ClassLoader - Issue
Julian Prabhakar
do-not-reply at jboss.com
Mon Nov 7 06:51:13 EST 2011
Julian Prabhakar [http://community.jboss.org/people/julian.prabhakar] created the discussion
"JBoss AS7 - Resource loading with ClassLoader - Issue"
To view the discussion, visit: http://community.jboss.org/message/635308#635308
--------------------------------------------------------------
Hi All,
We are facing an issue with loading a .jar resource file using Thread.currentThread().getContextClassLoader().getResource("xyzmappings.jar"). This code was perfectly working in older versions of Jboss but with jboss-as-7.0.2.Final its not finding the resource (giving back null). Our .ear structure is as follows.
${JBOSS_HOME}/.../deployments/xyz.ear--|
|--META-INF
|--xyzadmin.war
|--lib--|
|--xyzjava.jar
|--xyzmappings.jar (contains only hibernate hbm.xml files)
Anyone know why is this happening?
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/635308#635308]
Start a new discussion in JBoss AS7 Development at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2225]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20111107/131013af/attachment.html
More information about the jboss-dev-forums
mailing list