Looks like your Role class don't have setter method for authority field.
On 2/28/07, Plant More Tree <[EMAIL PROTECTED]> wrote:
Hi guys,
I am running into problem here. I am using appfuse 1.9.4 and I have
created 2 new web application using appfuse. One of them (Server A) is
installed with web services (xfire 1.2.4) and the package name is
com.jolmat. Another one (Server B) is just the original appfuse with
webservice client. Server A is to host the center user database while
whenever Server B do a CRUD for user, it will webservices to Server A.
When I retrieve a user information like below:
public UserDetails loadUserByUsername(String username)
throws UsernameNotFoundException {
// Create a metadata of the service
Service serviceModel = new
ObjectServiceFactory().create(UserWebService.class);
// Create a proxy for the deployed service
XFire xfire = XFireFactory.newInstance().getXFire();
XFireProxyFactory factory = new XFireProxyFactory(xfire);
String serviceUrl =
"http://localhost:8089/jolmat/services/UserWebService";
UserWebService userWebService = null;
try {
userWebService = (UserWebService)
factory.create(serviceModel,
serviceUrl);
} catch (MalformedURLException e) {
log.error("WsClient.callWebService(): EXCEPTION: " +
e.toString());
}
// Invoke the service
com.jolmat.model.User user = null;
try {
user = userWebService.getUserByUsername(username);
} catch (Exception e) {
log.error("WsClient.callWebService(): EXCEPTION: " +
e.toString());
}
return user;
}
I got the following error message:
2007-02-28 19:35:02,502 INFO [STDOUT] 19:35:02,502 ERROR [UserManagerImpl]
WsClient.callWebService(): EXCEPTION:
org.codehaus.xfire.XFireRuntimeException: Could not invoke service.. Nested
exception is org.codehaus.xfire.fault.XFireFault: No write method for
property {http://model.jolmat.com}authority in class com.jolmat.model.Role
Appreicate any help or comment ! Thanks !
Mark
--
View this message in context:
http://www.nabble.com/No-write-method-for-property-exception-tf3310522.html#a9208775
Sent from the XFire - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email
--
-----
When one of our products stops working, we'll blame another vendor
within 24 hours.
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email