velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Will Glass-Husain <wgl...@forio.com>
Subject Re: Velocity on z/OS - velocity.properties not getting picked up
Date Fri, 23 Jun 2006 16:27:06 GMT
Having the multiple jars with Velocity has been known to cause problems 
in the past, particularly if they are loaded by different classloaders 
(e.g. one in a container classpath and one in the app).

Can you get rid of one and see what happens?

WILL

Anuradha Weeraman wrote:
> Hi,
>
> I've been using Velocity in J2EE web application on z/OS and have been
> running into a few problems. I'm using maven to build the application
> which has set dependencies on velocity 1.4. the repository/jars folder
> contains both velocity-1.4.jar and velocity-1.4-dev.jar.
>
> For some reason, when velocity is initialized, the velocity.properties
> file doesn't get picked up and as a result throws a
> NullPointerException. When a Property object is manually populated
> with the needed fields or if the property file is manually loaded and
> passed into the init method, it seems to work.
>
> Does anybody any idea why the velocity.properties in
> velocity-1.4.jar\org\apache\velocity\runtime\defaults doesn't get
> picked up automatically?
>
> Could it be because the property file appears in both maven-1.4.jar
> and maven-1.4-dev.jar?
>
> Regards,
> Anuradha
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: velocity-user-help@jakarta.apache.org
>
>

-- 
Forio Business Simulations

Will Glass-Husain
phone (415) 440-7500 x89
mobile (415) 235-4293
wglass@forio.com
www.forio.com


---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-user-help@jakarta.apache.org


Mime
View raw message