You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by da...@remanresource.com on 2008/12/01 16:19:37 UTC

NoSuchMethodError when building a task

Hi,

I'm using Eclipse 3.4 on Windows XP to run my Ant build script (Ant 1.6).  When running my build.xml file, I get the error ...

Buildfile: C:\Temp\CedarPoint_Service\build.xml
check-weblogic:
check-javadoc:
check-ejbgen:
generate-query-ejb:
   [delete] Deleting directory C:\Temp\CedarPoint_Service\deployment\META-INF
    [mkdir] Created dir: C:\Temp\CedarPoint_Service\deployment\META-INF

BUILD FAILED
C:\Temp\CedarPoint_Service\build.xml:290: java.lang.NoSuchMethodError: com.sun.javadoc.AnnotationDesc.memberValues()[Lcom/sun/javadoc/AnnotationDesc$MemberValuePair;

The task in question is below.  I'm using a 1.5 JDK compiler (http://screencast.com/t/opdLhP5a).  Any insights are appreciated, - Dave

  <target name="generate-query-ejb" depends="check-ejbgen">
  	<delete dir="${deployment}/META-INF"/>
    <mkdir dir="${deployment}/META-INF"/>
    <ejbgen 
      source="2.18"
      outputDir="${src}"
      sourcepath="${src}"
      descriptorDir="${deployment}/META-INF"
      exitOnError="true"
      >
      <classpath refid="project.class.path"/>
      <fileset dir="${src}" includes="**/*QueryBean.java" />
    </ejbgen>
    
    <replace dir="${src}" token="$" value="." >
      <include name="**/*Query.java"/>
    </replace>
  	<!--
  	<java classname="com.bea.wls.ejbgen.EJBGen" fork="true" failonerror="true" dir="${src}">
  	    <classpath>
  	    	<pathelement path="${java.class.path}"/>
  	    	<pathelement location="${ejbgen-jar-path}"/>
  	    </classpath>
    	<arg value="${src}/com/comcast/safariview/cedarpoint/ejb/sb/CPQueryBean.java"/>
        <arg value="-exitOnError"/>
        <arg value="-verbose"/>
        <arg value="-wls81"/>
  	</java>
  	-->
  	<move todir="${deployment}/META-INF">
  		<fileset dir="${src}" includes="*ejb-jar.xml"/>
  	</move>
  	<delete>
  		<fileset dir="${src}" includes="*.xml"/>
  	</delete>
  </target>


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


RE: NoSuchMethodError when building a task

Posted by Ammar Khalid <Am...@kbr.com>.
Upgrade to Ant 1.7.1, as Ant 1.6 is the root of a lot of Evil! You will
need to update the ANT plugin of your eclipse for the newer version.

Ammar

-----Original Message-----
From: dave.alvarado@remanresource.com
[mailto:dave.alvarado@remanresource.com] 
Sent: 01 December 2008 15:20
To: user@ant.apache.org
Subject: NoSuchMethodError when building a task

Hi,

I'm using Eclipse 3.4 on Windows XP to run my Ant build script (Ant
1.6).  When running my build.xml file, I get the error ...

Buildfile: C:\Temp\CedarPoint_Service\build.xml
check-weblogic:
check-javadoc:
check-ejbgen:
generate-query-ejb:
   [delete] Deleting directory
C:\Temp\CedarPoint_Service\deployment\META-INF
    [mkdir] Created dir: C:\Temp\CedarPoint_Service\deployment\META-INF

BUILD FAILED
C:\Temp\CedarPoint_Service\build.xml:290: java.lang.NoSuchMethodError:
com.sun.javadoc.AnnotationDesc.memberValues()[Lcom/sun/javadoc/Annotatio
nDesc$MemberValuePair;

The task in question is below.  I'm using a 1.5 JDK compiler
(http://screencast.com/t/opdLhP5a).  Any insights are appreciated, -
Dave

  <target name="generate-query-ejb" depends="check-ejbgen">
  	<delete dir="${deployment}/META-INF"/>
    <mkdir dir="${deployment}/META-INF"/>
    <ejbgen 
      source="2.18"
      outputDir="${src}"
      sourcepath="${src}"
      descriptorDir="${deployment}/META-INF"
      exitOnError="true"
      >
      <classpath refid="project.class.path"/>
      <fileset dir="${src}" includes="**/*QueryBean.java" />
    </ejbgen>
    
    <replace dir="${src}" token="$" value="." >
      <include name="**/*Query.java"/>
    </replace>
  	<!--
  	<java classname="com.bea.wls.ejbgen.EJBGen" fork="true"
failonerror="true" dir="${src}">
  	    <classpath>
  	    	<pathelement path="${java.class.path}"/>
  	    	<pathelement location="${ejbgen-jar-path}"/>
  	    </classpath>
    	<arg
value="${src}/com/comcast/safariview/cedarpoint/ejb/sb/CPQueryBean.java"
/>
        <arg value="-exitOnError"/>
        <arg value="-verbose"/>
        <arg value="-wls81"/>
  	</java>
  	-->
  	<move todir="${deployment}/META-INF">
  		<fileset dir="${src}" includes="*ejb-jar.xml"/>
  	</move>
  	<delete>
  		<fileset dir="${src}" includes="*.xml"/>
  	</delete>
  </target>


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org

This e-mail, including any attached files, may contain confidential and privileged information for the sole use of the intended recipient.  Any review, use, distribution, or disclosure by others is strictly prohibited.  If you are not the intended recipient (or authorized to receive information for the intended recipient), please contact the sender by reply e-mail and delete all copies of this message.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org