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:

Well we've made progresses. The problem is on registering converters
on XWorkConverter.

We are trying to register converters using spring.

On application-context.xml we have this,

<bean id="enumTypeConverter" class="presentation.converter.EnumTypeConverter" />

and on xwork-conversion.properties,

domain.security.PermissionType = enumTypeConverter

Probably is a problem from our xwork configuration, but we can't
figure out what is wrong?

How can I tell xwork that it must use a "SpringClassLoader"?

Thanks again,
Joao

PS: The stacktrace is pretty much what I've send you.

On 2/27/07, cilquirm <aadi.deshpande@(protected):
>
> Technically, this isn't necessary when you have the struts-spring-plugin.jar
> in your WEB-INF/lib
> since it's already specified by the struts-plugin.xml file
>
> I think, however, seeing a more complete stack trace for the CNFE would be
> helpful since I have 2.0.6 with the spring plugin just fine.
>
>
>
>
> Paul Saumets | Merge wrote:
> >
> > 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)
> >
> >
> >
>
> --
> View this message in context: http://www.nabble.com/Problems-using-spring-plugin-and-struts-2.0.6-tf3302939.html#a9188385
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> 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.