Hi!
I'm using Jakarta Velocity 1.1 as a framework for my servlets. Everything
work smoothly using Jakarta Tomcat 3.2.
However, when I try to put my servlets in EAS 3.5 I got an exception:
Jun 23 21:32:56 2001: java.lang.NullPointerException
Jun 23 21:32:56 2001: at
org.apache.velocity.runtime.Runtime.setDefaultProperties(Runtime.java:280)
I debug Velocity and EAS raise the exception at:
InputStream inputStream =
lassLoader.getResourceAsStream( DEFAULT_RUNTIME_PROPERTIES);
because the classLoader is null. The classLoader is instantiated by:
ClassLoader classLoader = Runtime.class.getClassLoader();
According the Java Doc, the getClassLoader:
"Returns the class loader for the class. Some implementations may use null
to represent the bootstrap class loader. This method will return null in
such implementations if this class was loaded by the bootstrap class loader"
The method return null and velocity fail. Please fix that problem.
Thanks in advance!!!
Gerardo