I am using some code that worked on Weblogic but not on
Tomcat. This line returns null;
InputStream in = this.getClass().getResourceAsStream(this.pFileName);
where this.pFilenmae = /WEB-INF/XML-properties/XmlApiConstants.properties
This is just a class file and not a
servlet or anything like that. I read something about it is probably a classpath issue but I do nto know how to fix it. I tried the followign as well...
* changing to this.pFilenmae = /WEB-INF/lib/XML-properties/XmlApiConstants.properties (Now under the lib directory)
* InputStream in = this.getClass().getClassLoader().getResourceAsStream(this.pFileName); (Adding getClassLoader method)
What can I do to fix this problem?