3 Replies Latest reply on Jul 12, 2006 4:38 AM by mmm jjj

    wstools problem

    mmm jjj Newbie

      Hello,
      what can be the reason of the following exception (during wstools ant task)
      JBoss 4.0.4GA (I'm trying to migrate from 4.0.3 and ws4ee)


      BUILD FAILED
      java.lang.IncompatibleClassChangeError
       at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1225)
       at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
       at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
       at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
       at org.apache.tools.ant.Main.runBuild(Main.java:668)
       at org.apache.tools.ant.Main.startAnt(Main.java:187)
       at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
       at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
      Caused by: java.lang.IncompatibleClassChangeError
       at org.jboss.ws.metadata.wsdl.xmlschema.JBossXSSimpleTypeDefinition.getNamespace(JBossXSSimpleTypeDefinition.java:192)
       at org.jboss.ws.metadata.wsdl.xmlschema.WSSchemaUtils.write(WSSchemaUtils.java:336)
       at org.jboss.ws.metadata.wsdl.xmlschema.WSSchemaUtils.appendComplexTypeDefinition(WSSchemaUtils.java:646)
       at org.jboss.ws.metadata.wsdl.xmlschema.WSSchemaUtils.write(WSSchemaUtils.java:535)
       at org.jboss.ws.metadata.wsdl.xmlschema.JBossXSNamespaceItem.toString(JBossXSNamespaceItem.java:368)
       at org.jboss.ws.metadata.wsdl.xmlschema.JBossXSModel.serializeNamespaceItems(JBossXSModel.java:535)
       at org.jboss.ws.metadata.wsdl.xmlschema.JBossXSModel.serialize(JBossXSModel.java:432)
       at org.jboss.ws.metadata.wsdl.WSDLWriter.appendTypes(WSDLWriter.java:113)
       at org.jboss.ws.metadata.wsdl.WSDL11Writer.write(WSDL11Writer.java:95)
       at org.jboss.ws.metadata.wsdl.WSDLDefinitions.write(WSDLDefinitions.java:309)
       at org.jboss.ws.tools.JavaToWSDL.generate(JavaToWSDL.java:338)
       at org.jboss.ws.tools.helpers.ToolsHelper.handleJavaToWSDLGeneration(ToolsHelper.java:122)
       at org.jboss.ws.tools.WSTools.process(WSTools.java:129)
       at org.jboss.ws.tools.WSTools.generate(WSTools.java:119)
       at org.jboss.ws.tools.ant.wstools.execute(wstools.java:103)
       at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
       at org.apache.tools.ant.Task.perform(Task.java:364)
       at org.apache.tools.ant.Target.execute(Target.java:341)
       at org.apache.tools.ant.Target.performTasks(Target.java:369)
       at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)



      my config

      <configuration xmlns="http://www.jboss.org/jbossws-tools">
       <java-wsdl>
       <service name="ClientServices" style="document" endpoint="ejb.TestEndPoint" />
       <namespaces target-namespace="http://ejb/client" type-namespace="http://ejb/types" />
       <mapping file="mappings.xml" />
       </java-wsdl>
      </configuration>
      


      and interface
      public interface TestEndPoint extends Remote {
      
       public String test1(Long pp) throws RemoteException;
      }
      
      


      Please help me .. I have no idea

      thanks
      Mttu


        • 1. Re: wstools problem
          mmm jjj Newbie

          btw .. JDK 1.5

          Mttu

          • 2. Re: wstools problem
            Karen Lease Newbie

            Could be due to your XML configuration. If you are using a specific version of xerces via the endorsed facility, it could be different than the one used in jboss (2.7.1). Try removing your endorsed xerces or changing it to use the one in jboss_home/lib/endorsed.

            • 3. Re: wstools problem
              mmm jjj Newbie

               

              "klease" wrote:
              Could be due to your XML configuration. If you are using a specific version of xerces via the endorsed facility, it could be different than the one used in jboss (2.7.1). Try removing your endorsed xerces or changing it to use the one in jboss_home/lib/endorsed.


              Thanks,
              I added jboss xerces jar to my build path and removed xerces jars from ant/lib directory - it works now

              Mttu