glassfish
  1. glassfish
  2. GLASSFISH-3853

SecurityException raised during webservice deployment

    Details

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

      Operating System: All
      Platform: All

    • Issuezilla Id:
      3,853
    • Status Whiteboard:
      Hide

      as91ur1-na

      Show
      as91ur1-na

      Description

      While deploying a very simple web service, I am getting a security exception as
      shown below:

      glassfish@~/bugs/newbug$ asadmin deploy bug.ear
      CLI171 Command deploy failed : Deploying application in domain failed; Unable to
      create JAXBContext due to the security restriction

      Besided the stack trace, there is not much information in server.log as well.
      The server.log contents are:

      [#|2007-11-12T14:21:15.935+0530|SEVERE|sun-appserver9.1|javax.enterprise.system.tools.deployment|_ThreadID=26;_ThreadName=Thread-47;_RequestID=4ea6733c-b640-49eb-b8d5-1192d053565b;|Exception
      occured in J2EEC Phase
      com.sun.enterprise.deployment.backend.IASDeploymentException: Unable to create
      JAXBContext due to the security restriction
      at
      com.sun.xml.ws.model.AbstractSEIModelImpl.createJAXBContext(AbstractSEIModelImpl.java:151)
      at
      com.sun.xml.ws.model.AbstractSEIModelImpl.postProcess(AbstractSEIModelImpl.java:83)
      at
      com.sun.xml.ws.model.RuntimeModeler.buildRuntimeModel(RuntimeModeler.java:260)
      at com.sun.tools.ws.wscompile.WsgenTool.buildModel(WsgenTool.java:218)
      at com.sun.tools.ws.wscompile.WsgenTool.run(WsgenTool.java:119)
      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:1843)
      at com.sun.enterprise.webservice.WsUtil.genWSInfo(WsUtil.java:2240)
      at
      com.sun.enterprise.deployment.backend.AppDeployerBase.loadDescriptors(AppDeployerBase.java:359)
      at
      com.sun.enterprise.deployment.backend.AppDeployer.explodeArchive(AppDeployer.java:294)
      at
      com.sun.enterprise.deployment.backend.AppDeployer.deploy(AppDeployer.java:207)
      at
      com.sun.enterprise.deployment.backend.AppDeployer.doRequestFinish(AppDeployer.java:148)
      at
      com.sun.enterprise.deployment.phasing.J2EECPhase.runPhase(J2EECPhase.java:191)
      at
      com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.java:108)
      at
      com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDeploymentService.java:919)
      at
      com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:279)
      at
      com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:788)
      at
      com.sun.enterprise.management.deploy.DeployThread.deploy(DeployThread.java:187)
      at
      com.sun.enterprise.management.deploy.DeployThread.run(DeployThread.java:223)

      #]

      It appears that the real exception thrown by JAXB is eaten up by the code.

        Activity

        Hide
        Sanjeeb Sahoo added a comment -

        Created an attachment (id=1257)
        Test case with README.

        Show
        Sanjeeb Sahoo added a comment - Created an attachment (id=1257) Test case with README.
        Hide
        basler added a comment -

        Not a show stopper for 91ur1

        Show
        basler added a comment - Not a show stopper for 91ur1
        Hide
        Bhakti Mehta added a comment -

        This problem used to occur in earlier builds of GF but we have fixed bugs in
        this area. I confirmed with the GF v2 UR1 bits and the error appears in the
        server.log.
        The problem is this
        error: Property "id" has an XmlID annotation but its type is not String.
        this problem is related to the following location:
        at foo.Dept.getId(Dept.java:31)
        at foo.Dept(Dept.java:14)
        1 error

        Show
        Bhakti Mehta added a comment - This problem used to occur in earlier builds of GF but we have fixed bugs in this area. I confirmed with the GF v2 UR1 bits and the error appears in the server.log. The problem is this error: Property "id" has an XmlID annotation but its type is not String. this problem is related to the following location: at foo.Dept.getId(Dept.java:31) at foo.Dept(Dept.java:14) 1 error
        Hide
        Bhakti Mehta added a comment -

        Reopening and marking as duplicate of 3588

        Show
        Bhakti Mehta added a comment - Reopening and marking as duplicate of 3588
        Hide
        Bhakti Mehta added a comment -

        This is a duplicate of 3588
        https://glassfish.dev.java.net/issues/show_bug.cgi?id=3588 and has been fixed
        in UR1

        Show
        Bhakti Mehta added a comment - This is a duplicate of 3588 https://glassfish.dev.java.net/issues/show_bug.cgi?id=3588 and has been fixed in UR1

          People

          • Assignee:
            Bhakti Mehta
            Reporter:
            Sanjeeb Sahoo
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: