I'm very new to JSF-Spring, so 'scuse me if I ask something trivial...
On your homepage you say that Springframework 1.2.6 is the latest supported version, however I'm using Spring 2.x.
I'm fairly new to Spring as well, so my question is if JSF-Spring is compatible with the 2.x versions, or I have to switch back to 1.2.6 for now?
I've tried deploying a simple application of my own, using Spring 2.0-RC2 & JSF-Spring 3.0.0 RC2, but have inevitably come accross the same error every time:
11:55:06,656 ERROR [ConfigLoader] Context initialization failed
java.lang.UnsupportedOperationException: resolveStringValue
at de.mindmatters.faces.spring.factory.support.ValueBindingResolvingPropertyConfigurer$ValueBindingResolvingBean
DefinitionVisitor.resolveStringValue(ValueBindingResolvingPropertyConfigurer.java:86)
at org.springframework.beans.factory.config.BeanDefinitionVisitor.visitBeanClassName(BeanDefinitionVisitor.java:
68)
at org.springframework.beans.factory.config.BeanDefinitionVisitor.visitBeanDefinition(BeanDefinitionVisitor.java
:58)
at de.mindmatters.faces.spring.factory.support.ValueBindingResolvingPropertyConfigurer.postProcessBeanFactory(Va
lueBindingResolvingPropertyConfigurer.java:168)
at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplic
ationContext.java:406)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:314)
at org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableW
ebApplicationContext.java:156)
at de.mindmatters.faces.spring.config.ConfigLoader.createWebApplicationContext(ConfigLoader.java:171)
at de.mindmatters.faces.spring.AbstractContextLoader.initWebApplicationContext(AbstractContextLoader.java:80)
at de.mindmatters.faces.spring.AbstractContextLoaderListener.contextInitialized(AbstractContextLoaderListener.ja
va:52)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3729)
yadda-yadda-yadda...
Way down below another ERROR:
11:55:06,828 ERROR [ContextLoader] Context initialization failed
java.lang.IllegalArgumentException: parserClass must be an XmlBeanDefinitionParser
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.setParserClass(XmlBeanDefinitionReader.java:286
)
at de.mindmatters.faces.spring.context.support.DefaultFacesWebApplicationContext.initBeanDefinitionReader(Defaul
tFacesWebApplicationContext.java:119)
at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext
.java:90)
at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefresha
bleApplicationContext.java:89)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:278)
at org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableW
ebApplicationContext.java:156)
at de.mindmatters.faces.spring.context.ContextLoader.createWebApplicationContext(ContextLoader.java:247)
at de.mindmatters.faces.spring.AbstractContextLoader.initWebApplicationContext(AbstractContextLoader.java:80)
at de.mindmatters.faces.spring.AbstractContextLoaderListener.contextInitialized(AbstractContextLoaderListener.ja
va:52)
Any help would be appreciated!
Regards,
David
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
These are errors due to incompatibilities between the two spring versions. jsf-spring 3.0 isn't compatible with spring 2.0, but 4.0 will be. So you've got to switch back to spring 1.x or wait until jsf-spring 4.0 comes out. We haven't got any relyable release plan though due to commercial project overload. Sorry.
Cheers,
Thomas
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi!
I'm very new to JSF-Spring, so 'scuse me if I ask something trivial...
On your homepage you say that Springframework 1.2.6 is the latest supported version, however I'm using Spring 2.x.
I'm fairly new to Spring as well, so my question is if JSF-Spring is compatible with the 2.x versions, or I have to switch back to 1.2.6 for now?
I've tried deploying a simple application of my own, using Spring 2.0-RC2 & JSF-Spring 3.0.0 RC2, but have inevitably come accross the same error every time:
11:55:06,656 ERROR [ConfigLoader] Context initialization failed
java.lang.UnsupportedOperationException: resolveStringValue
at de.mindmatters.faces.spring.factory.support.ValueBindingResolvingPropertyConfigurer$ValueBindingResolvingBean
DefinitionVisitor.resolveStringValue(ValueBindingResolvingPropertyConfigurer.java:86)
at org.springframework.beans.factory.config.BeanDefinitionVisitor.visitBeanClassName(BeanDefinitionVisitor.java:
68)
at org.springframework.beans.factory.config.BeanDefinitionVisitor.visitBeanDefinition(BeanDefinitionVisitor.java
:58)
at de.mindmatters.faces.spring.factory.support.ValueBindingResolvingPropertyConfigurer.postProcessBeanFactory(Va
lueBindingResolvingPropertyConfigurer.java:168)
at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplic
ationContext.java:406)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:314)
at org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableW
ebApplicationContext.java:156)
at de.mindmatters.faces.spring.config.ConfigLoader.createWebApplicationContext(ConfigLoader.java:171)
at de.mindmatters.faces.spring.AbstractContextLoader.initWebApplicationContext(AbstractContextLoader.java:80)
at de.mindmatters.faces.spring.AbstractContextLoaderListener.contextInitialized(AbstractContextLoaderListener.ja
va:52)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3729)
yadda-yadda-yadda...
Way down below another ERROR:
11:55:06,828 ERROR [ContextLoader] Context initialization failed
java.lang.IllegalArgumentException: parserClass must be an XmlBeanDefinitionParser
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.setParserClass(XmlBeanDefinitionReader.java:286
)
at de.mindmatters.faces.spring.context.support.DefaultFacesWebApplicationContext.initBeanDefinitionReader(Defaul
tFacesWebApplicationContext.java:119)
at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext
.java:90)
at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefresha
bleApplicationContext.java:89)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:278)
at org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableW
ebApplicationContext.java:156)
at de.mindmatters.faces.spring.context.ContextLoader.createWebApplicationContext(ContextLoader.java:247)
at de.mindmatters.faces.spring.AbstractContextLoader.initWebApplicationContext(AbstractContextLoader.java:80)
at de.mindmatters.faces.spring.AbstractContextLoaderListener.contextInitialized(AbstractContextLoaderListener.ja
va:52)
Any help would be appreciated!
Regards,
David
These are errors due to incompatibilities between the two spring versions. jsf-spring 3.0 isn't compatible with spring 2.0, but 4.0 will be. So you've got to switch back to spring 1.x or wait until jsf-spring 4.0 comes out. We haven't got any relyable release plan though due to commercial project overload. Sorry.
Cheers,
Thomas