dev@glassfish.java.net

Re: javax.annotation.Resource problem

From: Qingqing Ouyang <Qingqing.Ouyang_at_Sun.COM>
Date: Thu, 18 Aug 2005 07:05:36 -0500

Hi, Daniel:

This looks like your source is newer than the binaries you bootstrapped
(if you had used "maven bootstrap" to build). You might want to
rebootstrap to synch up with the current workspace.

Thanks,
Q^2

Daniel Dumitrescu wrote:

>Hello
>
>My name is Daniel Dumitrescu and i'm new in this project.
>
>While trying to build the Glassfish project with Maven i've
>encountered a problem: the build fails with the message:
>
>invoke-ant:
> [delete] Deleting:
>/home/danield/Work/Java/projects/glassfish/workspace/glassfish/bootstrap/appserv-commons.log
> [java] Buildfile:
>/home/danield/Work/Java/projects/glassfish/workspace/glassfish/appserv-commons/build.xml
> [java]
> [java] init:
> [java] [echo] Building component appserv-commons
> [java]
> [java] compile:
> [java] [echo] J2ee jat path:
>/home/danield/Work/Java/projects/glassfish/workspace/publish/glassfish/lib/j2ee.jar
> [java] [javac] Compiling 74 source files to
>/home/danield/Work/Java/projects/glassfish/workspace/glassfish/appserv-commons/build
> [java] [javac]
>/home/danield/Work/Java/projects/glassfish/workspace/glassfish/appserv-commons/src/java/com/sun/enterprise/deployment/annotation/handlers/ResourceHandler.java:361:
>cannot find symbol
> [java] [javac] symbol : method mappedName()
> [java] [javac] location: @interface javax.annotation.Resource
> [java] [javac] desc.setMappedName(annotation.mappedName());
> [java] [javac] ^
> [java] [javac]
>/home/danield/Work/Java/projects/glassfish/workspace/glassfish/appserv-commons/src/java/com/sun/enterprise/deployment/annotation/handlers/ResourceHandler.java:368:
>cannot find symbol
> [java] [javac] symbol : method mappedName()
> [java] [javac] location: @interface javax.annotation.Resource
> [java] [javac]
>msgDestRef.setMappedName(annotation.mappedName());
> [java] [javac] ^
> [java] [javac]
>/home/danield/Work/Java/projects/glassfish/workspace/glassfish/appserv-commons/src/java/com/sun/enterprise/deployment/annotation/handlers/ResourceHandler.java:390:
>cannot find symbol
> [java] [javac] symbol : method mappedName()
> [java] [javac] location: @interface javax.annotation.Resource
> [java] [javac]
>resRef.setMappedName(annotation.mappedName());
> [java] [javac] ^
> [java] [javac] Note: Some input files use unchecked or unsafe
>operations.
> [java] [javac] Note: Recompile with -Xlint:unchecked for details.
> [java] [javac] 3 errors
> [java]
> [java] BUILD FAILED
>
>It seams that the javax.annotation.Resource class doesn't have the
>mappedName() method.
>
>Should i use another version of j2ee.jar instead the project's one ?
>
>I use JDK 1.5 and Apache Maven 1.0.2
>
>Daniel
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>
>
>