struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Security Management" <list-subscripti...@secmgmt.com>
Subject Error autowiring an interface
Date Fri, 06 Mar 2009 16:20:18 GMT
So, I have a jsp form that uses:

<s:textfield name="user.name"/> and things like that.

The action's method for getUser provides an IUser (an interface).

The instantiated class is provided by a dao provider injected by Spring, but
all the jsp sees is the IUser type.

Now, it works great getting the form generated, but when submitting, I get:

2009-03-06 10:54:48,315 [http-8080-Processor24] ERROR
com.opensymphony.xwork2.conversion.impl.InstantiatingNullHandler - Could not
create and/or set value back on to object
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'com.blah.auth.IUser': Could not resolve matching constructor
	at
org.springframework.beans.factory.support.ConstructorResolver.autowireConstr
uctor(ConstructorResolver.java:238)

Any suggestions?  Google is not helpful, strangely enough.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message