2 Replies Latest reply on Oct 27, 2006 11:43 AM by rayymlai

    Problems in running JBossWS 1.0.3GA samples

    rayymlai

      I'm a newbie in JBossWS. Just installed JBoss 4.0.5 with JBossWS 1.0.3GA, and try to run the sample codes by "ant" but JBossWS compalins null pointer error from subproject jsr181pojo and wsaddressing due to arraycopy exception.

      WSaddressing is a separate issue. It can't run JUnit test. I've added Junit jar file in the lib/endorsed but still can't get thru the tests.

      Any pointer or clues how to fix the issues? I searched thru the forum and couldn't find any clues. I probably miss certain installation steps and variables. Pls help.

      Thanks.
      rgds, ray

      SYSTEM SETUP
      1. JBOSS_HOME=c:/tools/jboss (JBoss 4.0.5 GA)
      2. JBossWS samples installed under C:\tools\jboss\jbossws-samples-1.0.3.GA
      3. Verify latest jboss-xml-binding.jar as per JBossWS release notes/installation
      4. JBossWS.sar and JBoss-client deployed as per JBossWS release notes/installation
      5. ant.properties updated to reflect JBOSS_HOME location
      6. PATH includes JBOSS_HOME


      EXCEPTIONS

      compile15:

      copy-resources:

      generate-sources:
      [wstools] log4j:WARN No appenders could be found for logger (org.jboss.ws.too
      s.WSTools).
      [wstools] log4j:WARN Please initialize the log4j system properly.
      [wstools] java.lang.NullPointerException
      [wstools] at java.lang.System.arraycopy(Native Method)
      [wstools] at org.apache.xerces.impl.xs.XSModelImpl.getAnnotations(Unknown
      Source)
      [wstools] at org.jboss.ws.metadata.wsdl.xmlschema.WSSchemaUtils.copyXSMod
      l(WSSchemaUtils.java:737)
      [wstools] at org.jboss.ws.tools.JavaToXSD.parseSchema(JavaToXSD.java:180)
      [wstools] at org.jboss.ws.metadata.wsdl.WSDL11Reader.processTypes(WSDL11R
      ader.java:227)
      [wstools] at org.jboss.ws.metadata.wsdl.WSDL11Reader.processDefinition(WS
      L11Reader.java:118)
      [wstools] at org.jboss.ws.metadata.wsdl.WSDLDefinitionsFactory.parse(WSDL
      efinitionsFactory.java:145)
      [wstools] at org.jboss.ws.tools.WSDLToJava.convertWSDL2Java(WSDLToJava.ja
      a:121)
      [wstools] at org.jboss.ws.tools.helpers.ToolsHelper.handleWSDLToJavaGener
      tion(ToolsHelper.java:324)
      [wstools] at org.jboss.ws.tools.WSTools.process(WSTools.java:138)
      [wstools] at org.jboss.ws.tools.WSTools.generate(WSTools.java:120)
      [wstools] at org.jboss.ws.tools.ant.wstools.execute(wstools.java:103)
      [wstools] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.j
      va:275)
      [wstools] at org.apache.tools.ant.Task.perform(Task.java:364)
      [wstools] at org.apache.tools.ant.Target.execute(Target.java:341)
      [wstools] at org.apache.tools.ant.Target.performTasks(Target.java:369)
      [wstools] at org.apache.tools.ant.Project.executeSortedTargets(Project.ja
      a:1216)
      [wstools] at org.apache.tools.ant.helper.SingleCheckExecutor.executeTarge
      s(SingleCheckExecutor.java:37)
      [wstools] at org.apache.tools.ant.Project.executeTargets(Project.java:106
      )
      [wstools] at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:382)
      [wstools] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.j
      va:275)
      [wstools] at org.apache.tools.ant.Task.perform(Task.java:364)
      [wstools] at org.apache.tools.ant.Target.execute(Target.java:341)
      [wstools] at org.apache.tools.ant.Target.performTasks(Target.java:369)
      [wstools] at org.apache.tools.ant.Project.executeSortedTargets(Project.ja
      a:1216)
      [wstools] at org.apache.tools.ant.Project.executeTarget(Project.java:1185

      [wstools] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(D
      faultExecutor.java:40)
      [wstools] at org.apache.tools.ant.Project.executeTargets(Project.java:106
      )
      [wstools] at org.apache.tools.ant.Main.runBuild(Main.java:668)
      [wstools] at org.apache.tools.ant.Main.startAnt(Main.java:187)
      [wstools] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
      [wstools] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)

      BUILD FAILED
      C:\tools\jboss\jbossws-samples-1.0.3.GA\build.xml:23: The following error occur
      ed while executing this line:
      C:\tools\jboss\jbossws-samples-1.0.3.GA\jsr181pojo\build.xml:28: Error running
      bossws: