dev@glassfish.java.net

Re: Can't build V3 trunk with JDK6 -- webservices

From: Bhakti Mehta <Bhakti.Mehta_at_Sun.COM>
Date: Tue, 11 Nov 2008 12:18:22 -0800

Kinman
This is what I think is happening
http://java.sun.com/javase/6/docs/api/javax/xml/ws/WebServiceContext.html#getEndpointReference(java.lang.Class,%20org.w3c.dom.Element...)
this method seems to be added since jaxws 2.1
JDK 6 prior to JDK6 u4 has jaxws 2.0 (maybe you are using the older jdk)
With that endorsed will need to be set with javac so that the jaxws 2.0
api classes in rt.jar get overridden by jaxws 2.1apis

However I thought we are going to use the latest JDK to build v3
I have been building with JDK 6 u10 and did not run into this error.
Regards,
Bhakti

Kin-man Chung wrote:
>
> [INFO] [hk2:hk2-compile]
> [INFO] Compiling 7 source files to
> /export/work/v3x/webservices/jsr109-impl/target/classes
> /export/work/v3x/webservices/jsr109-impl/src/main/java/org/glassfish/webservices/WebServiceContextImpl.java:108:
> cannot find symbol
> symbol : method
> getEndpointReference(java.lang.Class,org.w3c.dom.Element[])
> location: interface com.sun.xml.ws.api.server.WSWebServiceContext
> return this.jaxwsContextDelegate.getEndpointReference(clazz,
> params);
> ^
> /export/work/v3x/webservices/jsr109-impl/src/main/java/org/glassfish/webservices/WebServiceContextImpl.java:112:
> cannot find symbol
> symbol : method getEndpointReference(org.w3c.dom.Element[])
> location: interface com.sun.xml.ws.api.server.WSWebServiceContext
> return this.jaxwsContextDelegate.getEndpointReference(params);
> ^
> Note: Some input files use unchecked or unsafe operations.
> Note: Recompile with -Xlint:unchecked for details.
> 2 errors
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Fatal error compiling
>
> Embedded error: APT failed: 1
> [INFO]
> ------------------------------------------------------------------------
> [INFO] For more information, run Maven with the -e switch
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 1 minute 32 seconds
> [INFO] Finished at: Tue Nov 11 11:31:02 PST 2008
> [INFO] Final Memory: 28M/159M
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>
>