Olá pessoal,
tenho um WebService
@WebService()
public class PessoasWS {
List output;
Pessoas[] pes = null;
@WebMethod(operationName = “getListaPessoas”)
public PessoaTO[] getListaPessoas() {
try{
output = null;
BusinessDelegateImpl businessDelegate = new BusinessDelegateImpl();
GenericReportFacade genericFacade = businessDelegate.getGenericReportFacade();
String sql = new String(“SELECT * FROM Pessoa”);
output = genericFacade.makeQuery(sql);
}catch(Exception ex){
System.out.println("Exceção: "+ex);
}
return (PessoaTO[])output.toArray();
}
}
Ele da build normal, porém ao dar Deploy(JBoss) , aparece os seguintes erros…
java.lang.IllegalStateException: Cannot build JAXB context
Caused by: org.jboss.ws.WSException: Failed to create JAXBContext
Caused by: com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 3 counts of IllegalAnnotationExceptions
A classe PessoaTO é ± assim…
public class PessoaTO implements TransferObject {
private static final long serialVersionUID = 4422211110741786012L;
…
}
e TranferObject extends Serializable
Alguém tem idéia do que pode ser?
Desde já muito obrigado.