2 Replies Latest reply on Feb 8, 2007 11:30 AM by Marco

    Error with WSTools / JDK 1.4

    Marco Novice

      hi all,
      i have a project that uses wstools to generate wsdl files etc for my EJB exposed as webservices.
      I am using jboss-4.0.5GA, and was using jdk 1.5

      now, for various reasons i had to move back to JDK 1.4, and now when i run wstools (via maven) with following ant task

      <taskdef name="wsclient" classname="org.jboss.ws.tools.ant.wstools">
       <classpath>
       <fileset dir="${jboss.libdir}\client">
       <include name="activation.jar"/>
       <include name="javassist.jar"/>
       <include name="jboss-common-client.jar"/>
       <include name="jbossretro-rt.jar"/>
       <include name="jboss-backport-concurrent.jar"/>
       <include name="jbossws-client.jar"/>
       <include name="jboss-xml-binding.jar"/>
       <include name="concurrent.jar"/>
       <include name="log4j.jar"/>
       <include name="mail.jar"/>
       <include name="wsdl4j.jar"/>
      
       </fileset>
       <fileset dir="${jboss.libdir}\lib\endorsed">
       <include name="*.jar"/>
       </fileset>
      
       </classpath>
       </taskdef> -->
       <echo message="**** copying resources ******"/>
       <copy toDir="${project.build.outputDirectory}/resources">
       <fileset dir="ejbModule/resources"/>
       </copy>
      
       <echo message="********** Running jboss ws **************"/>
       <wstools dest="${project.build.outputDirectory}/META-INF"
       config="${workspace.dir}/middleware/ngenMiddleware/jboss/wstools-messenger-config.xml"/>
      


      i receive the following exception :

      [ERROR] FATAL ERROR
      [INFO] ------------------------------------------------------------------------
      [INFO] org/jboss/ws/tools/ant/wstools (Unsupported major.minor version 49.0)
      [INFO] ------------------------------------------------------------------------
      [INFO] Trace
      java.lang.UnsupportedClassVersionError: org/jboss/ws/tools/ant/wstools (Unsuppor
      ted major.minor version 49.0)
       at java.lang.ClassLoader.defineClass0(Native Method)
       at java.lang.ClassLoader.defineClass(ClassLoader.java:539)
       at org.apache.tools.ant.loader.AntClassLoader2.defineClassFromData(AntCl
      assLoader2.java:76)
       at org.apache.tools.ant.AntClassLoader.getClassFromStream(AntClassLoader
      .java:1090)
       at org.apache.tools.ant.AntClassLoader.findClassInComponents(AntClassLoa
      der.java:1154)
       at org.apache.tools.ant.AntClassLoader.findClass(AntClassLoader.java:110
      7)
       at org.apache.tools.ant.AntClassLoader.loadClass(AntClassLoader.java:977
      )
       at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
       at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
       at java.lang.Class.forName0(Native Method)
       at java.lang.Class.forName(Class.java:219)
       at org.apache.tools.ant.taskdefs.Definer.addDefinition(Definer.java:457)
      
       at org.apache.tools.ant.taskdefs.Definer.execute(Definer.java:183)
       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.maven.plugin.antrun.AbstractAntMojo.executeTasks(AbstractA
      ntMojo.java:99)
       at org.apache.maven.plugin.antrun.AntRunMojo.execute(AntRunMojo.java:82)
      
       at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi
      nManager.java:412)
       at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
      ultLifecycleExecutor.java:534)
       at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi
      fecycle(DefaultLifecycleExecutor.java:475)
       at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
      ltLifecycleExecutor.java:454)
       at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan
      dleFailures(DefaultLifecycleExecutor.java:306)
       at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen
      ts(DefaultLifecycleExecutor.java:273)
       at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
      fecycleExecutor.java:140)
       at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
       at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
       at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
      java:39)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
      sorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:324)
       at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
       at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
       at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
      
       at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
      


      Anyone could tell me how can i make it work with jdk 1.4?

      thanks in advance and regards
      Marco