Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Struts 2 »

Re: Problems using spring plugin and struts 2.0.6

João Vieira da Luz

2007-02-27

Replies:

We use that property struts.properties:
struts.objectFactory = spring

This same configuration works well on struts 2.0.1.

A part of the stacktrace:
[2007-56-27 05:56:27] ERROR (XWorkConverter.java:645) Conversion
registration error
java.lang.ClassNotFoundException: enumTypeConverter
 at org.apache.catalina.loader.WebappClassLoader.loadClass (WebappClassLoader.java:1352)
 at org.apache.catalina.loader.WebappClassLoader.loadClass (WebappClassLoader.java:1198)
 at com.opensymphony.xwork2.util.ClassLoaderUtil.loadClass (ClassLoaderUtil.java:147)
 at com.opensymphony.xwork2.ObjectFactory.getClassInstance (ObjectFactory.java:98)
 at com.opensymphony.xwork2.ObjectFactory.buildBean (ObjectFactory.java:151)
 at com.opensymphony.xwork2.ObjectFactory.buildBean (ObjectFactory.java:141)
 at com.opensymphony.xwork2.util.XWorkConverter.createTypeConverter(XWorkConverter.java:621)
 at com.opensymphony.xwork2.util.XWorkConverter.loadConversionProperties(XWorkConverter.java:639)
 at com.opensymphony.xwork2.util.AnnotationXWorkConverter.<init>(AnnotationXWorkConverter.java:106)
 at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

On 2/27/07, Paul Saumets | Merge <paul.saumets@(protected):
> Perhaps obvious question but,
>
> Do you have
>
> <constant name="struts.objectFactory" value="spring" />
>
> set inside your struts.xml?
>
> -----Original Message-----
> From: João Vieira da Luz [mailto:joao.luz@(protected)]
> Sent: Tuesday, February 27, 2007 12:42 PM
> To: user@(protected)
> Subject: Problems using spring plugin and struts 2.0.6
>
> We've upgraded to struts 2.0.6 and we can't make spring-plugin work.
>
> The spring factory isn't being called and we are getting
> ClassNotFoundException for the beans that reference spring.
>
> This is working with struts 2.0.1.
>
> What changed?
>
> Thanks a lot,
>
>     João
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)

©2008 junlu.com - Jax Systems, LLC, U.S.A.