3 Replies Latest reply on May 22, 2006 2:48 PM by Markus Schmitt

    Problems compiling with annotations

    Derek Lewis Newbie

      I'm using JBoss 4.0.4.GA.
      I can't seem to compile the ejb3 webservice tutorials, or my own webservice class. I keep getting errors like:

      [javac] jboss-4.0.4.GA-src/ejb3/docs/tutorial/webservice/src/org/jboss/tutorial/webservice/bean/CalculatorBean.java:30: incompatible types
      [javac] found : javax.jws.WebService
      [javac] required: java.lang.annotation.Annotation
      [javac] @WebService(endpointInterface="org.jboss.tutorial.webservice.bean.Calculator")

      I get this for WebService, WebMethod, Stateless, SOAPBinding, basically any annotation I try to use. Strangly, I can compile my class in eclipse, but not with ant. Nor can I compile the tutorials with ant, as mentioned.
      I can't find any useful references to this error in all my googling. Help would be greatly appreciated.