0 Replies Latest reply on Jun 20, 2007 2:59 PM by Ravishankar Srinivasan

    JBoss 4.0.5.GA web services

    Ravishankar Srinivasan Newbie

      Hi,

      I'd like to know if it's possible to produce and consume web services on the vanilla (i.e without separately downloading JBossWS libs) version of JBoss 4.0.5GA . If i understand this correctly, JBoss 4.0.5GA ships with jbossws-1.0.3 SP1

      I am trying to write a simple JSR 181 style web service using the @WebService and @WebMethod annotation. I am using JDK 1.5.0_12 on Windows XP. I am getting a compilation error


      testws\service\HelloWS.java:8: incompatible types
      [javac] found : javax.jws.WebService
      [javac] required: java.lang.annotation.Annotation
      [javac] @WebService
      [javac] ^
      [javac] testws\service\HelloWS.java:11: incompatible types
      [javac] found : javax.jws.WebMethod
      [javac] required: java.lang.annotation.Annotation
      [javac] @WebMethod
      [javac] ^
      [javac] 2 errors

      BUILD FAILED
      Compile failed; see the compiler error out
      put for details.

      I see that the jbossws14.sar file has JDK 1.4 compatible JARS - does this mean it won't compile on JDK 1.5?? I have JBOSS_HOME/client and server/default/lib in the classpath already...what other JAR am i missing??