JBoss Community

JBoss AS7 - Resource loading with ClassLoader - Issue

created by Julian Prabhakar in JBoss AS7 Development - View the full discussion

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

Start a new discussion in JBoss AS7 Development at Community