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.
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.
have you been able to solve the problem? I'm having exactly the same problem here.
I can't figure out a way to get a resource from WAR file under JBoss 6.x, while under JBoss 4.2.x it worked fine!
Please, help me
edit: got it, if anybody interrested: https://community.jboss.org/message/829484#829484