Where do I find this class?

L

laredotornado

Hi,

Does anyone know what JAR file lurks out there that contains the
class com.sun.javadoc.AnnotationDesc? I am trying to build an EJB
project with Eclipse 3.4 running on Windows XP, using an Ant (1.6)
script, and I'm getting this error ...


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 ant task is below ...

<ejbgen
source="1.5"
outputDir="${src}"
sourcepath="${src}"
descriptorDir="${deployment}/META-INF"
exitOnError="true"
<classpath refid="project.class.path"/>
<fileset dir="${src}" includes="**/*QueryBean.java" />
</ejbgen>

Thanks, - Dave
 
M

Mike Schilling

laredotornado said:
Hi,

Does anyone know what JAR file lurks out there that contains the
class com.sun.javadoc.AnnotationDesc? I am trying to build an EJB
project with Eclipse 3.4 running on Windows XP, using an Ant (1.6)
script, and I'm getting this error ...


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 ant task is below ...

<ejbgen
source="1.5"
outputDir="${src}"
sourcepath="${src}"
descriptorDir="${deployment}/META-INF"
exitOnError="true"<classpath refid="project.class.path"/>
<fileset dir="${src}" includes="**/*QueryBean.java" />
</ejbgen>

The error is NoSuchMethod, which implies that Ant found the class but
that it doesn't contain that method. This in turn implies a
versioning issue. What version of Java is your JAVA_HOME set to? Is
there a different JDK is the classpath with which Ant is ruin?
 
L

laredotornado

laredotornado said:
Does anyone know what JAR file lurks out there that contains the
class  com.sun.javadoc.AnnotationDesc?  I am trying to build an EJB
project with Eclipse 3.4 running on Windows XP, using an Ant (1.6)
script, and I'm getting this error ...
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 ant task is below ...
   <ejbgen
     source="1.5"
     outputDir="${src}"
     sourcepath="${src}"
     descriptorDir="${deployment}/META-INF"
     exitOnError="true"
     <classpath refid="project.class.path"/>
     <fileset dir="${src}" includes="**/*QueryBean.java" />
   </ejbgen>

The error is NoSuchMethod, which implies that Ant found the class but
that it doesn't contain that method.  This in turn implies a
versioning issue.  What version of Java is your JAVA_HOME set to?  Is
there a different JDK is the classpath with which Ant is ruin?- Hide quoted text -

- Show quoted text -

Thanks for this reply. I'm having trouble figuring out why Ant is
searching for that method in the first place. I found the class in
the JDK 1.5 lib/tools.jar file and confirmed there is no such method.
But how would I figure out what is trying to invoke that method?

- Dave
 
M

Mike Schilling

laredotornado said:
laredotornado said:
Does anyone know what JAR file lurks out there that contains the
class com.sun.javadoc.AnnotationDesc? I am trying to build an EJB
project with Eclipse 3.4 running on Windows XP, using an Ant (1.6)
script, and I'm getting this error ...
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 ant task is below ...

<classpath refid="project.class.path"/>
<fileset dir="${src}" includes="**/*QueryBean.java" />
</ejbgen>

The error is NoSuchMethod, which implies that Ant found the class
but
that it doesn't contain that method. This in turn implies a
versioning issue. What version of Java is your JAVA_HOME set to? Is
there a different JDK is the classpath with which Ant is ruin?-
Hide
quoted text -

- Show quoted text -

Thanks for this reply. I'm having trouble figuring out why Ant is
searching for that method in the first place. I found the class in
the JDK 1.5 lib/tools.jar file and confirmed there is no such
method.
But how would I figure out what is trying to invoke that method?

I haven't looked at EJBs since (no exaggeration) 2001, but I'd presume
that the current version uses annotations to say "this is an EJB" or
"this is a bean method", and Ant is using that method to try to
analyze your EJB classes.
 
Joined
Nov 25, 2008
Messages
17
Reaction score
0
It means :you lost "com.sun.javadoc.AnnotationDesc" .jar file,find one,and put it in your \lib. your server should makeup .jar,this .jar file shoul put your client.

QQ:37*********
China boy!
 
Last edited:

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top