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