SimonKelly
Programmer
What java code do I need to write to find files for my application dynamically as resources i.e. under the WEB-INF/classes directory of my web app installation (war file)?
The issue of virtual paths within the archive files used to package J2EE applications has thrown my application off kilter. Previously the application was deployed as an exploded directory under Apache Tomcat. As I move to deploy it on WebLogic 7.0 it falls over because it uses "getServletContext().getRealPath("/"" to construct the searchpath for the files which are located below the web application root. As this call fails to return anything the application fails to find the files it requires and falls over.
If anyone has an answer to the specific question above or any alternative useful suggestions as to how to approach solving this problem I would be very grateful!
Thanks in advance....
The issue of virtual paths within the archive files used to package J2EE applications has thrown my application off kilter. Previously the application was deployed as an exploded directory under Apache Tomcat. As I move to deploy it on WebLogic 7.0 it falls over because it uses "getServletContext().getRealPath("/"" to construct the searchpath for the files which are located below the web application root. As this call fails to return anything the application fails to find the files it requires and falls over.
If anyone has an answer to the specific question above or any alternative useful suggestions as to how to approach solving this problem I would be very grateful!
Thanks in advance....