users@glassfish.java.net

Web service deployment error

From: Chudnow, David <david.chudnow_at_uconn.edu>
Date: Mon, 15 Oct 2007 10:21:59 -0400

We moving to Glassfish v2 (Sun Java System Application Server 9.1 (build
b58g-fcs) )from a previous version (Sun Java System Application Server
Platform Edition 9.0_01 (build b02-p01) ). A web service deployed as a
web application (no EJBs used),

 developed using NetBeans 5.5 and incorporating Java EE 5
annotations, is currently deployed on deployed on 9.0_01 (build
b02-p01)) but failed to deploy on Glassfish v2 with the following error:

 

[#|2007-10-15T10:06:53.496-0400|SEVERE|sun-appserver9.1|javax.enterprise
.system.tools.deployment|_ThreadID=15;_ThreadName=Thread-25;_RequestID=8
eb23326-3637-4d65-91ca-827058114b53;|Exception occured in J2EEC
Phasejava.lang.VerifyError: (class:
com/sun/xml/ws/modeler/RuntimeModeler, method: processRpcMethod
signature:
(Lcom/sun/xml/ws/model/JavaMethod;Ljava/lang/String;Ljavax/jws/WebMethod
;Ljava/lang/String;Ljava/lang/reflect/Method;Ljavax/jws/WebService;)V)
Incompatible argument to func

com.sun.enterprise.deployment.backend.IASDeploymentException: Error
loading deployment descriptors for module [uconncoursebookservice] --
(class: com/sun/xml/ws/modeler/RuntimeModeler, method: processRpcMethod
signature:
(Lcom/sun/xml/ws/model/JavaMethod;Ljava/lang/String;Ljavax/jws/WebMethod
;Ljava/lang/String;Ljava/lang/reflect/Method;Ljavax/jws/WebService;)V)
Incompatible argument to func

                at
com.sun.enterprise.deployment.backend.Deployer.loadDescriptors(Deployer.
java:390)

                at
com.sun.enterprise.deployment.backend.ModuleDeployer.loadDescriptors(Mod
uleDeployer.java:423)

                at
com.sun.enterprise.deployment.backend.WebModuleDeployer.deploy(WebModule
Deployer.java:157)

                at
com.sun.enterprise.deployment.backend.ModuleDeployer.doRequestFinish(Mod
uleDeployer.java:179)

                at
com.sun.enterprise.deployment.phasing.J2EECPhase.runPhase(J2EECPhase.jav
a:191)

                at
com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(Deplo
ymentPhase.java:108)

                at
com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(
PEDeploymentService.java:919)

                at
com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeplo
ymentService.java:279)

                at
com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeplo
ymentService.java:788)

                at
com.sun.enterprise.management.deploy.DeployThread.deploy(DeployThread.ja
va:187)

                at
com.sun.enterprise.management.deploy.DeployThread.run(DeployThread.java:
223)

Caused by: java.lang.VerifyError: (class:
com/sun/xml/ws/modeler/RuntimeModeler, method: processRpcMethod
signature:
(Lcom/sun/xml/ws/model/JavaMethod;Ljava/lang/String;Ljavax/jws/WebMethod
;Ljava/lang/String;Ljava/lang/reflect/Method;Ljavax/jws/WebService;)V)
Incompatible argument to func

                at java.lang.Class.getDeclaredConstructors0(Native
Method)

                at
java.lang.Class.privateGetDeclaredConstructors(Class.java:2328)

                at java.lang.Class.getConstructors(Class.java:1446)

                at
com.sun.enterprise.deployment.annotation.impl.ComponentDefinition.initia
lizeConstructors(ComponentDefinition.java:111)

                at
com.sun.enterprise.deployment.annotation.impl.ComponentDefinition.<init>
(ComponentDefinition.java:69)

                at
com.sun.enterprise.deployment.annotation.impl.JavaEEScanner.getComponent
Info(JavaEEScanner.java:57)

                at
com.sun.enterprise.deployment.annotation.impl.AnnotationProcessorImpl.pr
ocess(AnnotationProcessorImpl.java:172)

                at
com.sun.enterprise.deployment.annotation.impl.AnnotationProcessorImpl.pr
ocess(AnnotationProcessorImpl.java:129)

                at
com.sun.enterprise.deployment.archivist.Archivist.processAnnotations(Arc
hivist.java:445)

                at
com.sun.enterprise.deployment.archivist.Archivist.readAnnotations(Archiv
ist.java:346)

                at
com.sun.enterprise.deployment.archivist.Archivist.readDeploymentDescript
ors(Archivist.java:318)

                at
com.sun.enterprise.deployment.archivist.Archivist.open(Archivist.java:21
3)

                at
com.sun.enterprise.deployment.archivist.ApplicationArchivist.openArchive
(ApplicationArchivist.java:763)

                at
com.sun.enterprise.deployment.archivist.ApplicationArchivist.openArchive
(ApplicationArchivist.java:744)

                at
com.sun.enterprise.deployment.backend.Deployer.loadDescriptors(Deployer.
java:349)

                ... 10 more

 

I'm also including code snippets:

 

@WebService

@HandlerChain(file="xwsHandlers.xml")

public class UConnCourseBook implements UConnCourseBookSEI{

    private static final boolean debug = true;

    

    /**

     * Creates a new instance of UConnCourseBook

     */

    public UConnCourseBook() {

    }

    

    @WebMethod(operationName="getServiceVersion")

    public String getServiceVersion() {

   

        String version = " CourseBookService v1.6";

        return(version);

    }

    

    

    @WebMethod(operationName="requirements")

    public String requirements(@WebParam(name="netid") String netid)
throws RemoteException

    {

        String data = "";

        CourseBookRequriements cbr = new CourseBookRequriements();

        data = encodeBase64(cbr.getRequriements(netid)) ;

        return(data);

    }

    

      /**

     * Web service operation

     */

    @WebMethod(operationName="checkStatus")

    public String checkStatus() throws RemoteException

{

...

}

 

 

 

David Chudnow