0 Replies Latest reply on Oct 1, 2007 11:59 AM by manny88

    ws samples not working on jboss-eap-4.2

    manny88

      I'm running the samples that come with the jboss-eap-doc.zip for server-config-guide. This is the basic Hello World sample run from ws directory etc.
      I installed a fresh copy of jboss-eap-4.2. I build, deploy and run the sample as follows and get the following error msg. Looks like xerces is missing or something. Question is, should this sample work out of the box or do I need to install the jbossWS package on top of jboss-eap-4.2 before I can get WS working?

      C:\cygwind\home\Manny\jboss-eap-4.2\doc\examples\server-config-guide>ant -Dchap=
      ws -Dex=1 run-example
      Buildfile: build.xml

      ....
      ....
      ....


      run-example1:
      [copy] Copying 1 file to C:\cygwind\home\Manny\jboss-eap-4.2\jboss-as\serve
      r\default\deploy
      [echo] Waiting for 15 seconds for deploy...
      [java] Contacting webservice at http://localhost:8080/hello-servlet/Hello?w
      sdl
      [java] Exception in thread "main" java.lang.NoClassDefFoundError: org/apach
      e/xerces/xs/XSModel
      [java] at org.jboss.ws.metadata.builder.jaxrpc.JAXRPCClientMetaDataBuil
      der.buildMetaData(JAXRPCClientMetaDataBuilder.java:110)

      [java] at org.jboss.ws.metadata.builder.jaxrpc.JAXRPCClientMetaDataBuil
      der.buildMetaData(JAXRPCClientMetaDataBuilder.java:85)
      [java] at org.jboss.ws.core.jaxrpc.client.ServiceImpl.(ServiceImp
      l.java:111)
      [java] at org.jboss.ws.core.jaxrpc.client.ServiceFactoryImpl.createServ
      ice(ServiceFactoryImpl.java:157)
      [java] at org.jboss.ws.core.jaxrpc.client.ServiceFactoryImpl.createServ
      ice(ServiceFactoryImpl.java:128)
      [java] at org.jboss.ws.client.HelloClient.main(HelloClient.java:28)

      BUILD FAILED
      C:\cygwind\home\Manny\jboss-eap-4.2\doc\examples\server-config-guide\build.xml:1
      08: The following error occurred while executing this line:
      C:\cygwind\home\Manny\jboss-eap-4.2\doc\examples\server-config-guide\build-ws.xm
      l:121: Java returned: 1

      Total time: 23 seconds
      C:\cygwind\home\Manny\jboss-eap-4.2\doc\examples\server-config-guide>


      Thanks
      Manny