> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
>
> What is EAS?
>
> I would figure you shouldn't be near a bootstrap classloader
> in a webapp
> environment.
>
> Were are you putting the velocity.jar?  in the classpath?
>

But shouldn't this work correctly even if put in the classpath? One may try
to use velocity in projects that define its own server architecture, not
necessarily a web-app in a J2EE compliant WebServer implementation.

No?

Jose Alberto

> What happens when you put it in the WEB-INF/lib?  That should get you
> away from the boostrap classloader.
>
> geir
>
> Gerardo Arroyo wrote:
> >
> > 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(Runti
> me.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
>
> --
> Geir Magnusson Jr.                           [EMAIL PROTECTED]
> System and Software Consulting
> Developing for the web?  See http://jakarta.apache.org/velocity/
> You have a genius for suggesting things I've come a cropper with!
>

Reply via email to