1 Reply Latest reply on Jul 9, 2012 10:33 AM by anand pushparaj

    WSProvideTask issues

    anand pushparaj Newbie

      Hi All,

       

      I am migrating an application in weblogic to JBoss 5.1.0. While doing so, I replaced the servicegen with wsprovide.

       

       

       

       

       

       

       

      <path

      id="wsprovide.path">

       

      <fileset dir="C:/newjboss/jboss-5.1.0.GA/client" includes="jbossws-spi.jar" />

       

      <fileset dir="C:/newjboss/jboss-5.1.0.GA/client" includes="*.jar" />

       

      </path>

       

       

      <taskdef

      name="wsprovide" classname="org.jboss.wsf.spi.tools.ant.WSProvideTask" classpathref="wsprovide.path" />

       

      <wsprovide

       

      fork="false"

      keep=

      "true"

      destdir=

      "output"

      resourcedestdir=

      "out-resource"

       

      sourcedestdir=

      "out-resource"

      genwsdl=

      "true"

      verbose=

      "true"

      sei=

      "org.jboss.ws.tools.jaxws.impl.JBossWSProviderFactoryImpl">

      <classpath>

        <pathelement path="${tests.output.dir}/classes/>

      </wsprovide>

       

      </classpath>

       

      However i get the below stack of errors :

      [

      wsprovide

      ] Generating from endpoint: org.jboss.ws.tools.jaxws.impl.JBossWSProviderFactoryImpl

      [

      wsprovide

      ] Output directory: C:\july5\Server\dist\chemselect

      [

      wsprovide

      ] Source directory: C:\july5\Server\org.jboss.ws.tools.jaxws.impl.JBossWSProviderFactoryImpl

      [

      wsprovide

      ] Generating WSDL:

       

       

       

      BUILD FAILED

      C:\july5\Server\build.xml:190: org.jboss.ws.WSException

       

       

       

       

      : Cannot obtain @WebService annotation from: org.jboss.ws.tools.jaxws.impl.JBossWSProviderFactoryImp

       

       

      Can anyone help me know where am going wrong or what i am missing.

       

      Any how do we generate JBoss.xml for EJBDoclet? If that is not possible, what is the work around ?

       

      Thank you.

      Regards,

      P.Anand