I've had the same problem with the following configuration:
1. ServletExec 3.1
2. Sun JVM 1.2.2
3. velocity.jar is in /WEB-INF/lib
I was told by New Atlanta that is was a bug in their system that
resources could not be loaded from JAR files that were placed in the
/WEB-INF/lib directory. Workarounds were to (1) put in the CLASSPATH
before starting the servlet engine or (2) putting the resources in the
/WEB-INF/classes tree (/WEB-INF/classes/org/apache/...) so they could be
found. I opted for (2) and it worked.
Bill Boland
-----Original Message-----
From: Gerardo Arroyo [mailto:[EMAIL PROTECTED]]
Sent: Sunday, June 24, 2001 8:51 PM
To: [EMAIL PROTECTED]
Subject: RE: Runtime Bug (method: setDefaultProperties)
Hi,
well:
1. EAS = Enterprise Application Server (SYBASE)
2. JVM Version: 1.2
3. The velocity.jar is not in the classpath; this file is put in a
directory
equivalent to the WEB-INF/lib.
Any suggestion??
Thanks for your support!!
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
Behalf Of Geir Magnusson Jr.
Sent: Domingo, 24 de Junio de 2001 10:06 a.m.
To: [EMAIL PROTECTED]
Subject: Re: Runtime Bug (method: setDefaultProperties)
Jose Alberto Fernandez wrote:
>
> > From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On
> >
> > Jose Alberto Fernandez wrote:
> > >
> > > > 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?
> >
> > Do you think we can try to get to the root of the problem first?
This
> > is a rather unconventional problem - I use velocity all the
> > time outside
> > of a webapp environment (and so do you - you used to anyway), so
lets
> > try and get a handle on what's going on?
> >
> > Yes?
> >
>
> Definetly, no problem with that.
>
> One reason may be the version of the JVM he is using. If I remember
> correctly, in the past the classpath was loaded using the "system"
> classloader which was represented as "null". But I think in 1.2 now we
have
> the Bootstrap classloader (the "null" one) and the system classloader
which
> is use to load the classpath and it is a regular classloader.
>
> Maybe he is using an older JVM architecture.
Yes - I should have asked the smarter question, which JVM. :)
Ok : which JVM?
geir
--
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!