Bound to Anonymous type error.

One Star

Bound to Anonymous type error.

Using wsdl2java cxf tool to generate my service and everything runs fine, and 4 of the 5 services work. But I get this runtime error when I hit the RetrieveSfAccounts operation:
Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.1.1:java (default-cli) on project sf-account-soap: An exception occured while executing the Java class. null: InvocationTargetException: Marshalling Error: Instance of "" is substituting "java.lang.Object", but "" is bound to an anonymous type. ->
In the wsdl:
<xs:complexType name="Account">
<xs:element type="xs:string" name="id"/>
<xs:element type="xs:string" name="name"/>
<xs:element type="xs:string" name="firstName"/>
<xs:element type="xs:string" name="lastName"/>
<xs:element type="xs:string" name="workEmail"/>

<xs:complexType name="ArrayOfAccounts">
<xs:element maxOccurs="unbounded"

<xs:element name="inputRetrieveSfAccounts">
<xs:element name="amount" type="xs:int"/>

<xs:element maxOccurs="1" minOccurs="1" name="outputRetrieveSfAccounts" nillable="true" type="tns:ArrayOfAccounts" />

Here's the method I wrote in the Processor class (camel) handling the actual service:
/****************** GET ALL ACCOUNTS ******************/
if ("InputRetrieveSfAccounts".equals(operationName)) {

//for now just return all accounts found

try {
List<Account> acctList = accountMgr.retrieveAccounts();

ArrayOfAccounts accounts = new ArrayOfAccounts();
for(Account acct : acctList) {

} catch (Exception e) {
generateFault("Can't find DFP Accounts: "+e.getMessage());


Here's the method from the Interface generated by wsdl2java:
@WebResult(name = "outputRetrieveSfAccounts", targetNamespace = "", partName = "out")
@WebMethod(operationName = "RetrieveSfAccounts", action = "")
public ArrayOfAccounts retrieveSfAccounts(
@WebParam(partName = "in", name = "inputRetrieveSfAccounts", targetNamespace = "")
InputRetrieveSfAccounts in