Discussion Locked

Context path in jboss

0 helpful
1 reply
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
The war file,i have deployed in tomcat doesn't work when i deployed it in jboss3.2.3? The problem is when deployed in Tomcat, it unpacked first and run so the directory structure remains there but it is not so in jboss?The deployed war file remain as it is?So I can't refer the directory structure within that for reading properties file?

1 reply

by geert pante

Use servletContext.getResourceAsStream("path") wher path is relative to the war root. It always works, wether the war is extracted or not

This discussion is closed to new replies.