0 Replies Latest reply on May 13, 2008 11:27 AM by aroeder

    Problems with org.jboss.wsf.spi.tools.ant.WSProvideTask

    aroeder Newbie

      I can't get that to work. It seems like WSProvideTask ignores the classpath I set:

      <target name="test-wsprovide" depends="init">
       <mkdir dir="${build.generated.dir}/wsgen/service"/>
       <taskdef name="wsprovide" classname="org.jboss.wsf.spi.tools.ant.WSProvideTask">
       <classpath path="${j2ee.platform.wsimport.classpath}"/>
       </taskdef>
       <wsprovide
       sei = "de.firstdata.jboss.CenteraJBossWS"
       verbose = "true">
       <classpath>
       <pathelement path="${base.dir}/build/web/WEB-INF/classes"/>
       </classpath>
       </wsprovide>
       </target>
      


      The classpath is right, but I get:

      java.lang.IllegalArgumentException: Class not found: de.firstdata.jboss.CenteraJBossWS
       at org.jboss.wsf.stack.metro.tools.MetroProviderImpl.provide(MetroProviderImpl.java:97)
       at org.jboss.wsf.spi.tools.ant.WSProvideTask.executeNonForked(WSProvideTask.java:221)
       at org.jboss.wsf.spi.tools.ant.WSProvideTask.execute(WSProvideTask.java:237)
       at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
       at sun.reflect.GeneratedMethodAccessor1391.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:585)
       at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
       at org.apache.tools.ant.Task.perform(Task.java:348)
       at org.apache.tools.ant.Target.execute(Target.java:357)
       at org.apache.tools.ant.Target.performTasks(Target.java:385)
       at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
       at org.apache.tools.ant.Project.executeTarget(Project.java:1298)
       at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
       at org.apache.tools.ant.Project.executeTargets(Project.java:1181)
       at org.apache.tools.ant.module.bridge.impl.BridgeImpl.run(BridgeImpl.java:277)
       at org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:460)
       at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:151)
      


      When I try to use:

      fork = "true"
      


      I'm getting this error:

      Command invoked: org.jboss.wsf.spi.tools.cmd.WSProvide -t de.firstdata.jboss.CenteraJBossWS
      Exception in thread "main" java.lang.NoClassDefFoundError: gnu/getopt/LongOpt
       at org.jboss.wsf.spi.tools.cmd.WSProvide.parseArguments(WSProvide.java:83)
       at org.jboss.wsf.spi.tools.cmd.WSProvide.main(WSProvide.java:76)
      C:\Sandbox\workspaces\CenteraJBossApp\nbproject\jaxws-build.xml:39: Could not invoke WSProvideTask
      


      What am I doing wrong?