3 Replies Latest reply on Mar 5, 2011 1:09 AM by mahdi asgari nea

    Jboss 5.1.0.GA this.getClass().getResource() issue

    mahdi asgari nea Newbie

      Hi dear all.

       

      I have a big problem with this.getClass().getResource() function.

      I have a resource named ehr.cfg.xml in two place one in an EAR project and another one in a standalone ejb3 jar.

      When i call this.getClass().getResource("/ehr.cfg.xml") in a class in EAR project the URI return is not belong to EAR project instead of the URI is belong to standalone ejb3 jar, I require to find root directory of deployed project.

      Is there a class-loading Bug in jboss 5.1.0.GA?