Hi,
we are using Tomcat, Spring and Velocity 1.5. A first application
(without Tomcat) is running fine - it just uses Velocity to parse an
simple "Hello World" template which we provide in the
StringResourceRepository.
But as soon as we want to integrate this in our web-application we
encounter the following error:
Error creating bean with name 'velocityEngine' defined in class path
resource [appCxt-kernelBase.xml]: Invocation of init method failed;
nested exception is java.lang.IllegalStateException: The
RepositoryFactory has already been initialized!
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1148)
....
Does anyone know what the problem might be?
With regards
Tino
ps:
We are using the follwowing spring-bean configuration:
<bean id="velocityEngine"
class="org.springframework.ui.velocity.VelocityEngineFactoryBean">
<property name="velocityProperties">
<props>
<prop key="resource.loader">string</prop>
<prop key="string.resource.loader.class">
org.apache.velocity.runtime.resource.loader.StringResourceLoader
</prop>
</props>
</property>
</bean>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]