2 counts of IllegalAnnotationExceptions

The solution for “2 counts of IllegalAnnotationExceptions” can be found here. The following code will assist you in solving the problem.

package forum10795793;

import java.util.*;
import javax.xml.bind.annotation.*;

@XmlRootElement(name = “fields”)
public class Fields {

@XmlElement(name = “field”)
List fields = new ArrayList();

public List getFields() {
return fields;

public void setFields(List fields) {
this.fields = fields;


Thank you for using DeclareCode; We hope you were able to resolve the issue.

More questions on [categories-list]

inline scripts encapsulated in