0 Replies Latest reply on Jul 20, 2006 3:41 AM by Vy Doan Khoa

    the wstools from Ant task problem

    Vy Doan Khoa Newbie

      Hi All
      I?m researching the Jbpm BPEL and tring to deloy the hello example in the user guide but I has have a problem at Ant task generate-service :process.template.xml:126:java.lang.ClassCastException: org.jbpm.graph.def. ProcessDefinition so that I switch to use the wstools
      I?m using Ant task to generate the webservices.xml, wsdl and jaxrpc-mapping.xml in the jdk1.5 enviroment.Tool to develop is Eclipse but I has have a following problem:

      wsdl:
      [wstools] log4j:WARN No appenders could be found for logger (org.jboss.ws.tools.WSTools).
      [wstools] log4j:WARN Please initialize the log4j system properly.
      [wstools] org.jboss.xb.binding.JBossXBRuntimeException: Failed to get parser's XMLReader
      [wstools] at org.jboss.xb.binding.UnmarshallerFactory$UnmarshallerFactoryImpl.newUnmarshaller(UnmarshallerFactory.java:35)
      [wstools] at org.jboss.ws.tools.config.ToolsSchemaConfigReader.readConfig(ToolsSchemaConfigReader.java:131)
      [wstools] at org.jboss.ws.tools.WSTools.readToolsConfiguration(WSTools.java:139)
      [wstools] at org.jboss.ws.tools.WSTools.generate(WSTools.java:79)
      [wstools] at org.jboss.ws.tools.ant.wstools.execute(wstools.java:103)
      [wstools] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java: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.java:1216)
      [wstools] at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
      [wstools] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
      [wstools] at org.eclipse.ant.internal.ui.antsupport.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)
      [wstools] at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
      [wstools] at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAntRunner.java:423)
      [wstools] at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAntRunner.java:137)
      [wstools] Caused by: org.jboss.xb.binding.JBossXBException: Failed to get parser's XMLReader
      [wstools] at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.setFeature(SaxJBossXBParser.java:112)
      [wstools] at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.(SaxJBossXBParser.java:71)
      [wstools] at org.jboss.xb.binding.UnmarshallerImpl.(UnmarshallerImpl.java:46)
      [wstools] at org.jboss.xb.binding.UnmarshallerFactory$UnmarshallerFactoryImpl.newUnmarshaller(UnmarshallerFactory.java:31)
      [wstools] ... 15 more
      [wstools] Caused by: org.xml.sax.SAXNotRecognizedException: Feature: http://apache.org/xml/features/validation/schema
      [wstools] at org.apache.crimson.parser.XMLReaderImpl.setFeature(XMLReaderImpl.java:204)
      [wstools] at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.setFeature(SaxJBossXBParser.java:108)
      [wstools] ... 18 more

      BUILD FAILED
      D:\JBoss jBPM\mers-spring-wsdl\build.xml:658: Error running jbossws:

      And my config is wstools-config.xml:

      <configuration xmlns="http://www.jboss.org/jbossws-tools"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://www.jboss.org/jbossws-tools http://www.jboss.org/jbossws-tools/schema/jbossws-tool_1_0.xsd">
      <java-wsdl>


      <namespaces target-namespace="http://org.jboss.ws/samples/rpcstyle"
      type-namespace="http://org.jboss.ws/samples/rpcstyle/types"/>


      <webservices servlet-link="TrivialEndpoint"/>
      </java-wsdl>


      Would you like to help me this problem ? thanks