glassfish
  1. glassfish
  2. GLASSFISH-19355

Deployment failed - javax.xml.ws .WebServiceException: Unable to create JAXBContext

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Blocker Blocker
    • Resolution: Incomplete
    • Affects Version/s: v2.1.1
    • Fix Version/s: None
    • Component/s: web_services
    • Labels:
      None
    • Environment:

      Solaris SPARC on 64-Bit

      Description

      I am attempting to upgrade our existing GlassFish that is currently running:
      Sun GlassFish Enterprise Server v2.1.1 ((v2.1 Patch06)(9.1_02 Patch12)) (build b31g-fcs)

      to recently released patch set 128647-33 - Sun GlassFish Enterprise Server 2.1.1 Patch19 (v2.1 Patch25) (9.1_02 Patch31)

      After installing GlassFish patch, when deploying our web applications, seeing the following error:

      [#|2012-11-06T15:14:02.710+0100|INFO|sun-appserver2.1.1|javax.enterprise.system.container.ejb|_ThreadID=81;_ThreadName=Thread-2078;|wsgen successful|#]

      [#|2012-11-06T15:14:03.632+0100|WARNING|sun-appserver2.1.1|javax.enterprise.system.stream.err|_ThreadID=81;_ThreadName=Thread-2078;_RequestID=7df157a6-cbeb-44a8-91f6-8251d07076a6;|javax.xml.ws
      .WebServiceException: Unable to create JAXBContext
      at com.sun.xml.ws.model.AbstractSEIModelImpl.createJAXBContext(AbstractSEIModelImpl.java:164)
      at com.sun.xml.ws.model.AbstractSEIModelImpl.postProcess(AbstractSEIModelImpl.java:94)
      at com.sun.xml.ws.model.RuntimeModeler.buildRuntimeModel(RuntimeModeler.java:255)
      at com.sun.tools.ws.wscompile.WsgenTool.buildModel(WsgenTool.java:240)
      at com.sun.tools.ws.wscompile.WsgenTool.run(WsgenTool.java:123)
      at com.sun.tools.ws.util.WSToolsObjectFactoryImpl.wsgen(WSToolsObjectFactoryImpl.java:61)
      at com.sun.tools.ws.spi.WSToolsObjectFactory.wsgen(WSToolsObjectFactory.java:107)
      at com.sun.enterprise.webservice.WsUtil.runWsGen(WsUtil.java:1846)
      at com.sun.enterprise.webservice.WsUtil.genWSInfo(WsUtil.java:2253)
      at com.sun.enterprise.deployment.backend.ModuleDeployer.loadDescriptors(ModuleDeployer.java:427)
      at com.sun.enterprise.deployment.backend.WebModuleDeployer.deploy(WebModuleDeployer.java:160)
      at com.sun.enterprise.deployment.backend.ModuleDeployer.doRequestFinish(ModuleDeployer.java:182)
      at com.sun.enterprise.deployment.phasing.J2EECPhase.runPhase(J2EECPhase.java:208)
      at com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.java:108)
      at com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDeploymentService.java:966)
      at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:283)
      at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:835)
      at com.sun.enterprise.management.deploy.DeployThread.deploy(DeployThread.java:187)
      at com.sun.enterprise.management.deploy.DeployThread.run(DeployThread.java:225)
      Caused by: java.security.PrivilegedActionException: com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 2 counts of IllegalAnnotationExceptions
      java.util.Map is an interface, and JAXB can't handle interfaces.
      this problem is related to the following location:
      at java.util.Map
      at private java.util.Map com.sel.services.SELReport.jaxws.ReadTReportResponse._return
      at com.sel.services.SELReport.jaxws.ReadTReportResponse
      java.util.Map does not have a no-arg default constructor.
      this problem is related to the following location:
      at java.util.Map
      at private java.util.Map com.sel.services.SELReport.jaxws.ReadTReportResponse._return
      at com.sel.services.SELReport.jaxws.ReadTReportResponse
      java.util.Map does not have a no-arg default constructor.
      this problem is related to the following location:
      at java.util.Map
      at private java.util.Map com.sel.services.SELReport.jaxws.ReadTReportResponse._return
      at sel.services.SELReport.jaxws.ReadTReportResponse

      at java.security.AccessController.doPrivileged(Native Method)
      at com.sun.xml.ws.model.AbstractSEIModelImpl.createJAXBContext(AbstractSEIModelImpl.java:151)
      ... 18 more
      Caused by: com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 2 counts of IllegalAnnotationExceptions
      java.util.Map is an interface, and JAXB can't handle interfaces.
      this problem is related to the following location:
      at java.util.Map
      at private java.util.Map com.sel.services.SELReport.jaxws.ReadTReportResponse._return
      at com.sel.services.SELReport.jaxws.ReadTReportResponse
      java.util.Map does not have a no-arg default constructor.
      this problem is related to the following location:
      at java.util.Map
      at private java.util.Map com.sel.services.SELReport.jaxws.ReadTReportResponse._return
      at com.sel.services.SELReport.jaxws.ReadTReportResponse

      at com.sun.xml.bind.v2.runtime.IllegalAnnotationsException$Builder.check(IllegalAnnotationsException.java:102)
      at com.sun.xml.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet(JAXBContextImpl.java:472)
      at com.sun.xml.bind.v2.runtime.JAXBContextImpl.<init>(JAXBContextImpl.java:302)
      at com.sun.xml.bind.v2.runtime.JAXBContextImpl$JAXBContextBuilder.build(JAXBContextImpl.java:1140)
      at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:154)
      at com.sun.xml.bind.api.JAXBRIContext.newInstance(JAXBRIContext.java:106)
      at com.sun.xml.ws.developer.JAXBContextFactory$1.createJAXBContext(JAXBContextFactory.java:109)
      at com.sun.xml.ws.model.AbstractSEIModelImpl$1.run(AbstractSEIModelImpl.java:159)
      at com.sun.xml.ws.model.AbstractSEIModelImpl$1.run(AbstractSEIModelImpl.java:152)
      ... 20 more

      #]

      -----------

      Please can you let me know what could be the issue

      Thanks

        Activity

        test_java created issue -
        Hong Zhang made changes -
        Field Original Value New Value
        Assignee Hong Zhang [ hzhang_jn ] Martin Grebac [ snajper ]
        Description
        I am attempting to upgrade our existing GlassFish that is currently running:
        Sun GlassFish Enterprise Server v2.1.1 ((v2.1 Patch06)(9.1_02 Patch12)) (build b31g-fcs)

        to recently released patch set 128647-33 - Sun GlassFish Enterprise Server 2.1.1 Patch19 (v2.1 Patch25) (9.1_02 Patch31)


        After installing GlassFish patch, when deploying our web applications, seeing the following error:



        [#|2012-11-06T15:14:02.710+0100|INFO|sun-appserver2.1.1|javax.enterprise.system.container.ejb|_ThreadID=81;_ThreadName=Thread-2078;|wsgen successful|#]

        [#|2012-11-06T15:14:03.632+0100|WARNING|sun-appserver2.1.1|javax.enterprise.system.stream.err|_ThreadID=81;_ThreadName=Thread-2078;_RequestID=7df157a6-cbeb-44a8-91f6-8251d07076a6;|javax.xml.ws
        .WebServiceException: Unable to create JAXBContext
                at com.sun.xml.ws.model.AbstractSEIModelImpl.createJAXBContext(AbstractSEIModelImpl.java:164)
                at com.sun.xml.ws.model.AbstractSEIModelImpl.postProcess(AbstractSEIModelImpl.java:94)
                at com.sun.xml.ws.model.RuntimeModeler.buildRuntimeModel(RuntimeModeler.java:255)
                at com.sun.tools.ws.wscompile.WsgenTool.buildModel(WsgenTool.java:240)
                at com.sun.tools.ws.wscompile.WsgenTool.run(WsgenTool.java:123)
                at com.sun.tools.ws.util.WSToolsObjectFactoryImpl.wsgen(WSToolsObjectFactoryImpl.java:61)
                at com.sun.tools.ws.spi.WSToolsObjectFactory.wsgen(WSToolsObjectFactory.java:107)
                at com.sun.enterprise.webservice.WsUtil.runWsGen(WsUtil.java:1846)
                at com.sun.enterprise.webservice.WsUtil.genWSInfo(WsUtil.java:2253)
                at com.sun.enterprise.deployment.backend.ModuleDeployer.loadDescriptors(ModuleDeployer.java:427)
                at com.sun.enterprise.deployment.backend.WebModuleDeployer.deploy(WebModuleDeployer.java:160)
                at com.sun.enterprise.deployment.backend.ModuleDeployer.doRequestFinish(ModuleDeployer.java:182)
                at com.sun.enterprise.deployment.phasing.J2EECPhase.runPhase(J2EECPhase.java:208)
                at com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.java:108)
                at com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDeploymentService.java:966)
                at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:283)
                at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:835)
                at com.sun.enterprise.management.deploy.DeployThread.deploy(DeployThread.java:187)
                at com.sun.enterprise.management.deploy.DeployThread.run(DeployThread.java:225)
        Caused by: java.security.PrivilegedActionException: com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 2 counts of IllegalAnnotationExceptions
        java.util.Map is an interface, and JAXB can't handle interfaces.
                this problem is related to the following location:
                        at java.util.Map
                        at private java.util.Map com.sel.services.SELReport.jaxws.ReadTReportResponse._return
                        at com.sel.services.SELReport.jaxws.ReadTReportResponse
        java.util.Map does not have a no-arg default constructor.
                this problem is related to the following location:
                        at java.util.Map
           at private java.util.Map com.sel.services.SELReport.jaxws.ReadTReportResponse._return
                        at com.sel.services.SELReport.jaxws.ReadTReportResponse
        java.util.Map does not have a no-arg default constructor.
                this problem is related to the following location:
                        at java.util.Map
                        at private java.util.Map com.sel.services.SELReport.jaxws.ReadTReportResponse._return
                        at sel.services.SELReport.jaxws.ReadTReportResponse

                at java.security.AccessController.doPrivileged(Native Method)
                at com.sun.xml.ws.model.AbstractSEIModelImpl.createJAXBContext(AbstractSEIModelImpl.java:151)
                ... 18 more
        Caused by: com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 2 counts of IllegalAnnotationExceptions
        java.util.Map is an interface, and JAXB can't handle interfaces.
                this problem is related to the following location:
                        at java.util.Map
                        at private java.util.Map com.sel.services.SELReport.jaxws.ReadTReportResponse._return
                        at com.sel.services.SELReport.jaxws.ReadTReportResponse
        java.util.Map does not have a no-arg default constructor.
                this problem is related to the following location:
                        at java.util.Map
                        at private java.util.Map com.sel.services.SELReport.jaxws.ReadTReportResponse._return
                        at com.sel.services.SELReport.jaxws.ReadTReportResponse

                at com.sun.xml.bind.v2.runtime.IllegalAnnotationsException$Builder.check(IllegalAnnotationsException.java:102)
                at com.sun.xml.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet(JAXBContextImpl.java:472)
                at com.sun.xml.bind.v2.runtime.JAXBContextImpl.<init>(JAXBContextImpl.java:302)
                at com.sun.xml.bind.v2.runtime.JAXBContextImpl$JAXBContextBuilder.build(JAXBContextImpl.java:1140)
                at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:154)
                at com.sun.xml.bind.api.JAXBRIContext.newInstance(JAXBRIContext.java:106)
                at com.sun.xml.ws.developer.JAXBContextFactory$1.createJAXBContext(JAXBContextFactory.java:109)
                at com.sun.xml.ws.model.AbstractSEIModelImpl$1.run(AbstractSEIModelImpl.java:159)
                at com.sun.xml.ws.model.AbstractSEIModelImpl$1.run(AbstractSEIModelImpl.java:152)
                ... 20 more
        |#]





        -----------

        Please can you let me know what could be the issue

        Thanks


        I am attempting to upgrade our existing GlassFish that is currently running:
        Sun GlassFish Enterprise Server v2.1.1 ((v2.1 Patch06)(9.1_02 Patch12)) (build b31g-fcs)

        to recently released patch set 128647-33 - Sun GlassFish Enterprise Server 2.1.1 Patch19 (v2.1 Patch25) (9.1_02 Patch31)


        After installing GlassFish patch, when deploying our web applications, seeing the following error:



        [#|2012-11-06T15:14:02.710+0100|INFO|sun-appserver2.1.1|javax.enterprise.system.container.ejb|_ThreadID=81;_ThreadName=Thread-2078;|wsgen successful|#]

        [#|2012-11-06T15:14:03.632+0100|WARNING|sun-appserver2.1.1|javax.enterprise.system.stream.err|_ThreadID=81;_ThreadName=Thread-2078;_RequestID=7df157a6-cbeb-44a8-91f6-8251d07076a6;|javax.xml.ws
        .WebServiceException: Unable to create JAXBContext
                at com.sun.xml.ws.model.AbstractSEIModelImpl.createJAXBContext(AbstractSEIModelImpl.java:164)
                at com.sun.xml.ws.model.AbstractSEIModelImpl.postProcess(AbstractSEIModelImpl.java:94)
                at com.sun.xml.ws.model.RuntimeModeler.buildRuntimeModel(RuntimeModeler.java:255)
                at com.sun.tools.ws.wscompile.WsgenTool.buildModel(WsgenTool.java:240)
                at com.sun.tools.ws.wscompile.WsgenTool.run(WsgenTool.java:123)
                at com.sun.tools.ws.util.WSToolsObjectFactoryImpl.wsgen(WSToolsObjectFactoryImpl.java:61)
                at com.sun.tools.ws.spi.WSToolsObjectFactory.wsgen(WSToolsObjectFactory.java:107)
                at com.sun.enterprise.webservice.WsUtil.runWsGen(WsUtil.java:1846)
                at com.sun.enterprise.webservice.WsUtil.genWSInfo(WsUtil.java:2253)
                at com.sun.enterprise.deployment.backend.ModuleDeployer.loadDescriptors(ModuleDeployer.java:427)
                at com.sun.enterprise.deployment.backend.WebModuleDeployer.deploy(WebModuleDeployer.java:160)
                at com.sun.enterprise.deployment.backend.ModuleDeployer.doRequestFinish(ModuleDeployer.java:182)
                at com.sun.enterprise.deployment.phasing.J2EECPhase.runPhase(J2EECPhase.java:208)
                at com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.java:108)
                at com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDeploymentService.java:966)
                at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:283)
                at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:835)
                at com.sun.enterprise.management.deploy.DeployThread.deploy(DeployThread.java:187)
                at com.sun.enterprise.management.deploy.DeployThread.run(DeployThread.java:225)
        Caused by: java.security.PrivilegedActionException: com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 2 counts of IllegalAnnotationExceptions
        java.util.Map is an interface, and JAXB can't handle interfaces.
                this problem is related to the following location:
                        at java.util.Map
                        at private java.util.Map com.sel.services.SELReport.jaxws.ReadTReportResponse._return
                        at com.sel.services.SELReport.jaxws.ReadTReportResponse
        java.util.Map does not have a no-arg default constructor.
                this problem is related to the following location:
                        at java.util.Map
           at private java.util.Map com.sel.services.SELReport.jaxws.ReadTReportResponse._return
                        at com.sel.services.SELReport.jaxws.ReadTReportResponse
        java.util.Map does not have a no-arg default constructor.
                this problem is related to the following location:
                        at java.util.Map
                        at private java.util.Map com.sel.services.SELReport.jaxws.ReadTReportResponse._return
                        at sel.services.SELReport.jaxws.ReadTReportResponse

                at java.security.AccessController.doPrivileged(Native Method)
                at com.sun.xml.ws.model.AbstractSEIModelImpl.createJAXBContext(AbstractSEIModelImpl.java:151)
                ... 18 more
        Caused by: com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 2 counts of IllegalAnnotationExceptions
        java.util.Map is an interface, and JAXB can't handle interfaces.
                this problem is related to the following location:
                        at java.util.Map
                        at private java.util.Map com.sel.services.SELReport.jaxws.ReadTReportResponse._return
                        at com.sel.services.SELReport.jaxws.ReadTReportResponse
        java.util.Map does not have a no-arg default constructor.
                this problem is related to the following location:
                        at java.util.Map
                        at private java.util.Map com.sel.services.SELReport.jaxws.ReadTReportResponse._return
                        at com.sel.services.SELReport.jaxws.ReadTReportResponse

                at com.sun.xml.bind.v2.runtime.IllegalAnnotationsException$Builder.check(IllegalAnnotationsException.java:102)
                at com.sun.xml.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet(JAXBContextImpl.java:472)
                at com.sun.xml.bind.v2.runtime.JAXBContextImpl.<init>(JAXBContextImpl.java:302)
                at com.sun.xml.bind.v2.runtime.JAXBContextImpl$JAXBContextBuilder.build(JAXBContextImpl.java:1140)
                at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:154)
                at com.sun.xml.bind.api.JAXBRIContext.newInstance(JAXBRIContext.java:106)
                at com.sun.xml.ws.developer.JAXBContextFactory$1.createJAXBContext(JAXBContextFactory.java:109)
                at com.sun.xml.ws.model.AbstractSEIModelImpl$1.run(AbstractSEIModelImpl.java:159)
                at com.sun.xml.ws.model.AbstractSEIModelImpl$1.run(AbstractSEIModelImpl.java:152)
                ... 20 more
        |#]





        -----------

        Please can you let me know what could be the issue

        Thanks


        Component/s web_services [ 10623 ]
        Component/s deployment [ 10594 ]
        Martin Grebac made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Incomplete [ 4 ]

          People

          • Assignee:
            Martin Grebac
            Reporter:
            test_java
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: