3 Replies Latest reply on Apr 3, 2008 1:27 PM by V. Javier Colmenares

    wsprovide : NoClassDefFoundError: com/sun/codemodel/JExpress

    Patrick Madden Newbie

      Hi I'm running wsprovide.bat provided in the JBoss4.2.0.CR2 buid.

      I'm getting the following error trying to generate client side artifacts:


      wsprovide:
      [echo] /c C:/apps/jboss/jboss-4.2.0.CR2/bin/wsprovide.bat --show-traces -c ../CloosterRichWeb/classes/model -w -k -o ./bin -s ./src com.clooster.web.services.db.EJB3RemoteDBServiceBean
      [exec] Error: Could not generate. (use --show-traces to see full traces)
      [exec] java.lang.NoClassDefFoundError: com/sun/codemodel/JExpression
      [exec] at org.jboss.ws.tools.jaxws.impl.WSContractProviderImpl.provide(WSContractProviderImpl.java:104)
      [exec] at org.jboss.ws.tools.jaxws.impl.WSContractProviderImpl.provide(WSContractProviderImpl.java:134)
      [exec] at org.jboss.ws.tools.jaxws.command.wsprovide.generate(wsprovide.java:167)
      [exec] at org.jboss.ws.tools.jaxws.command.wsprovide.main(wsprovide.java:76)
      [exec] Result: 1


      It works when I run wsconsume.bat when the web service is already deployed. Any help is greatly appreciated.

      Thanks,

      PVM