Mike said: > Hi there, > > I'm not on the list, just new to Velocity and liking it a LOT--especially > the Struts implementation! It really takes care of many of the problems > inherent in web designers trying to make sense of STRUTS tag-filled JSP > code.
:) > One question--I'm running into problems reading velocity (1.3) properties > in a WAR file. When deploying in Tomcat 4.1/JBOSS 3, I get this error: > > 10:33:13,043 INFO [Engine] Unable to read Velocity configuration file: > java.io. FileNotFoundException: \velocity.properties (The system cannot > find the file specified) .... > From a WAR in Tomcat, getServletContext().getRealPath(...) returns *null*. > The appropriate way to load properties appears to be via getResource() > instead of getRealPath(). > > Is anyone working on this or is there some other non-code workaround? If > not, I don't mind hopping on board and taking it on, but it does appear > from your web site that development has slowed (i.e., 1.3.1 RC2 has been > out since last July). Are you planning a forthcoming release soon into > which this sort of change might possibly be incorporated? hey mike, feel free to hop on board and offer a patch. if you can't get a response/patch application from the Velocity-proper developers, then we'll try and at least get this fixed for Velocity-Tools users by overriding it in the VelocityViewServlet. (hopefully it won't be needed though). as for a 1.3.1 release of Velocity, we all hope it happens soon, but it will probably require some activity from Geir--a busy man. we are, however, actively working toward a Velocity-Tools release in the hopefully-not-too-distant future. Nathan Bubna [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
