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

    JBoss AS 6.0.1 class resourcestream

    Karthik R Newbie

      Hi,

      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.

       

      WAR

      |__ logo.jpg

      |__images/icons

      |__WEB_INF

           |__classes

           |__jps

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