marceloemanoel / vraptor-js-controller

Javascript Controller Generated to Help Ajax Communications
7 stars 2 forks source link

Fail when try to inject Velocity Generator #3

Closed FelipeThi closed 11 years ago

FelipeThi commented 11 years ago

We're having a little problem with the plugin here. All of the computers works, but there's one that when try to load the javascript fails trying to inject Velocity Generator.

the stacktrace generated is down:

Failed to load resource: the server responded with a status of 500 (Error creating bean with name 'jsController': Unsatisfied dependency expressed through constructor argument with index 2 of type [br.com.vraptor.contrib.jscontroller.JsGenerator]: : Error creating bean with name 'velocityJsGenerator': Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [br.com.vraptor.contrib.jscontroller.VelocityJsGenerator]: Constructor threw exception; nested exception is org.apache.velocity.exception.VelocityException: Error initializing log: Failed to initialize an instance of org.apache.velocity.runtime.log.Log4JLogChute with the current runtime configuration.; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'velocityJsGenerator': Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [br.com.vraptor.contrib.jscontroller.VelocityJsGenerator]:)

rponte commented 11 years ago

Probably your project is missing Velocity library. Have you checked out it?

FelipeThi commented 11 years ago

Yeah. We already checked out it. And the project has velocity library. The trouble was when velocity tried to create his log file in a place with no permission. We probably found a way to fix it.

FelipeThi commented 11 years ago

Thanks for the opportunity to help....

marceloemanoel commented 11 years ago

Thank you for finding the problem and help solving it.

rponte commented 11 years ago

Pretty good!