1 Reply Latest reply on Jul 24, 2013 7:23 AM by cybro

    JBoss AS 6.0.1 class resourcestream

    Karthik R Newbie


      I am trying to migrate application from Jboss 4.2.3 to Jboss 6.0.1.in our application i have to access a resource (image) from war folder.



      |__ logo.jpg







      I would like to access logo.jpg. in JBoss 4.2.3 this.getClassLoader().getResource("logo.jpg")      --> will return path/handle of logo.jpg in war folder

      but in Jboss 6.0.1, same code returns null & i am not able to access any resource in war folder.


      Please help me how to access logo.jpg in war folder & logo.jpg in WEB_INF folder dynamically in JBoss6.0.1.