glassfish
  1. glassfish
  2. GLASSFISH-1190

WSGen fed incorrect classpath info by deployer

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Blocker Blocker
    • Resolution: Duplicate
    • Affects Version/s: 9.1pe
    • Fix Version/s: 9.1pe
    • Component/s: web_services
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: All

    • Issuezilla Id:
      1,190

      Description

      When wsgen is called by the Glassfish deployer, it is apparently not being fed
      the complete classpath of all component JARs in an EAR. Further, the deployer
      that calls wsgen does not seem to respect the component JAR's manifest classpath.

      Take an EAR with the following structure:

      test.ear
      core.jar
      soap.jar

      Because soap.jar and core.jar are components of an EAR, they should be able to
      see each others' classes, being in the same application classpath. But when
      wsgen is called on soap.jar, and soap.jar somehow depends on core.jar classes
      (in my case, the SEI-implementing class has an @Interceptors entry that
      references an interceptor class in core.jar), wsgen fails with a
      TypeNotPresentExceptionProxy exception. This also occurs even if core.jar is
      explicitly listed in soap.jar's manifest classpath.

      This must be an issue, as far as I can tell, with how the Glassfish deployer
      feeds wsgen classpath information. Running the standalone wsgen utility in
      Glassfish's bin directory correctly processes the JARs, both in the case where
      the two JARs are manually listed in wsgen's classpath, and when only soap.jar is
      listed in wsgen's classpath, and soap.jar references core.jar in the manifest
      classpath.

        Activity

        Hide
        sbalmos added a comment -

        Created an attachment (id=455)
        Test Case EAR

        Show
        sbalmos added a comment - Created an attachment (id=455) Test Case EAR
        Hide
        sbalmos added a comment -

        Stack trace

        [#|2006-09-23T21:19:16.109-0400|SEVERE|sun-appserver-pe9.1|javax.enterprise.system.tools.deployment|_ThreadID=13;_ThreadName=Thread-27;_RequestID=62400cc5-15ab-4aba-befa-e0afe3e39406;|Exception
        occured in J2EEC Phase
        com.sun.enterprise.deployment.backend.IASDeploymentException:
        sun.reflect.annotation.TypeNotPresentExceptionProxy
        at
        sun.reflect.annotation.AnnotationParser.parseClassArray(AnnotationParser.java:653)
        at sun.reflect.annotation.AnnotationParser.parseArray(AnnotationParser.java:460)
        at
        sun.reflect.annotation.AnnotationParser.parseMemberValue(AnnotationParser.java:286)
        at
        sun.reflect.annotation.AnnotationParser.parseAnnotation(AnnotationParser.java:222)
        at
        sun.reflect.annotation.AnnotationParser.parseAnnotations2(AnnotationParser.java:69)
        at
        sun.reflect.annotation.AnnotationParser.parseAnnotations(AnnotationParser.java:52)
        at java.lang.Class.initAnnotationsIfNecessary(Class.java:3031)
        at java.lang.Class.getAnnotation(Class.java:2989)
        at com.sun.xml.ws.api.BindingID.parse(BindingID.java:286)
        at com.sun.tools.ws.wscompile.CompileTool.isValidWSGenClass(CompileTool.java:489)
        at com.sun.tools.ws.wscompile.CompileTool.parseArguments(CompileTool.java:446)
        at com.sun.tools.ws.util.ToolBase.run(ToolBase.java:51)
        at
        com.sun.tools.ws.util.WSToolsObjectFactoryImpl.wsgen(WSToolsObjectFactoryImpl.java:44)
        at com.sun.enterprise.webservice.WsUtil.runWsGen(WsUtil.java:1821)
        at com.sun.enterprise.webservice.WsUtil.genWSInfo(WsUtil.java:2117)
        at
        com.sun.enterprise.deployment.backend.AppDeployerBase.loadDescriptors(AppDeployerBase.java:328)
        at
        com.sun.enterprise.deployment.backend.AppDeployer.explodeArchive(AppDeployer.java:332)
        at com.sun.enterprise.deployment.backend.AppDeployer.deploy(AppDeployer.java:182)
        at
        com.sun.enterprise.deployment.backend.AppDeployer.doRequestFinish(AppDeployer.java:129)
        at com.sun.enterprise.deployment.phasing.J2EECPhase.runPhase(J2EECPhase.java:171)
        at
        com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.java:95)
        at
        com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDeploymentService.java:871)
        at
        com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:266)
        at
        com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:739)
        at com.sun.enterprise.management.deploy.DeployThread.deploy(DeployThread.java:174)
        at com.sun.enterprise.management.deploy.DeployThread.run(DeployThread.java:210)

        #]
        Show
        sbalmos added a comment - Stack trace [#|2006-09-23T21:19:16.109-0400|SEVERE|sun-appserver-pe9.1|javax.enterprise.system.tools.deployment|_ThreadID=13;_ThreadName=Thread-27;_RequestID=62400cc5-15ab-4aba-befa-e0afe3e39406;|Exception occured in J2EEC Phase com.sun.enterprise.deployment.backend.IASDeploymentException: sun.reflect.annotation.TypeNotPresentExceptionProxy at sun.reflect.annotation.AnnotationParser.parseClassArray(AnnotationParser.java:653) at sun.reflect.annotation.AnnotationParser.parseArray(AnnotationParser.java:460) at sun.reflect.annotation.AnnotationParser.parseMemberValue(AnnotationParser.java:286) at sun.reflect.annotation.AnnotationParser.parseAnnotation(AnnotationParser.java:222) at sun.reflect.annotation.AnnotationParser.parseAnnotations2(AnnotationParser.java:69) at sun.reflect.annotation.AnnotationParser.parseAnnotations(AnnotationParser.java:52) at java.lang.Class.initAnnotationsIfNecessary(Class.java:3031) at java.lang.Class.getAnnotation(Class.java:2989) at com.sun.xml.ws.api.BindingID.parse(BindingID.java:286) at com.sun.tools.ws.wscompile.CompileTool.isValidWSGenClass(CompileTool.java:489) at com.sun.tools.ws.wscompile.CompileTool.parseArguments(CompileTool.java:446) at com.sun.tools.ws.util.ToolBase.run(ToolBase.java:51) at com.sun.tools.ws.util.WSToolsObjectFactoryImpl.wsgen(WSToolsObjectFactoryImpl.java:44) at com.sun.enterprise.webservice.WsUtil.runWsGen(WsUtil.java:1821) at com.sun.enterprise.webservice.WsUtil.genWSInfo(WsUtil.java:2117) at com.sun.enterprise.deployment.backend.AppDeployerBase.loadDescriptors(AppDeployerBase.java:328) at com.sun.enterprise.deployment.backend.AppDeployer.explodeArchive(AppDeployer.java:332) at com.sun.enterprise.deployment.backend.AppDeployer.deploy(AppDeployer.java:182) at com.sun.enterprise.deployment.backend.AppDeployer.doRequestFinish(AppDeployer.java:129) at com.sun.enterprise.deployment.phasing.J2EECPhase.runPhase(J2EECPhase.java:171) at com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.java:95) at com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDeploymentService.java:871) at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:266) at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:739) at com.sun.enterprise.management.deploy.DeployThread.deploy(DeployThread.java:174) at com.sun.enterprise.management.deploy.DeployThread.run(DeployThread.java:210) #]
        Hide
        Hong Zhang added a comment -

        assign to vijay for initial investigation

        Show
        Hong Zhang added a comment - assign to vijay for initial investigation
        Hide
        Sanjeeb Sahoo added a comment -

        Is this a duplicate of or related to
        https://glassfish.dev.java.net/issues/show_bug.cgi?id=474

        – Sahoo

        Show
        Sanjeeb Sahoo added a comment - Is this a duplicate of or related to https://glassfish.dev.java.net/issues/show_bug.cgi?id=474 – Sahoo
        Hide
        sbalmos added a comment -

        Looks like it's a good chance it is related. And reading through that diff, I
        don't see any mention of adding other EAR-level module JARs to the classpath.

        Show
        sbalmos added a comment - Looks like it's a good chance it is related. And reading through that diff, I don't see any mention of adding other EAR-level module JARs to the classpath.
        Hide
        gfbugbridge added a comment -

        <BT6477826>

        Show
        gfbugbridge added a comment - <BT6477826>
        Hide
        goeh added a comment -
            • Issue 1190 has been confirmed by votes. ***
        Show
        goeh added a comment - Issue 1190 has been confirmed by votes. ***
        Hide
        gfbugbridge added a comment -

        <BT6488330>

        Show
        gfbugbridge added a comment - <BT6488330>
        Hide
        vijaysr added a comment -

        This is a duplicate of issue #469

            • This issue has been marked as a duplicate of 469 ***
        Show
        vijaysr added a comment - This is a duplicate of issue #469 This issue has been marked as a duplicate of 469 ***
        Hide
        gfbugbridge added a comment -

        <BT6489385>

        Show
        gfbugbridge added a comment - <BT6489385>
        Hide
        gfbugbridge added a comment -

        <BT6489852>

        Show
        gfbugbridge added a comment - <BT6489852>

          People

          • Assignee:
            vijaysr
            Reporter:
            sbalmos
          • Votes:
            1 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: