glassfish
  1. glassfish
  2. GLASSFISH-20594

ClassNotFoundException when adding a ressource to a deployed resourceadapter

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: 4.0_dev
    • Fix Version/s: None
    • Component/s: jca
    • Labels:
      None
    • Environment:

      Linux

      Description

      A ClassNotFoundException will be thrown when adding a ressource to the sun-jms resource adapter :

      reproduction :
      1)
      deploy --target mycluster sun-jms-adapter.rar
      sun-jms-adapter was successfully deployed in 5,232 milliseconds.
      2)
      add-resources --target mycluster sun_jms_adapter.xml
      Unable to load class [ com.stc.jmsjca.unifiedjms.RAUnifiedActivationSpec ]

      It seems to be, that the jars of sun-jms-adapter.rar are not in the admins classpath during deployment. As a workaround I can copy
      the jars com.stc.jmsjca.core.jar and com.stc.jmsjca.raunifiedjms.jar before to the admins lib folder and afterwards the deployment will succeed.

      [glassfish 4.0] [WARNING] [] [javax.enterprise.resource.resourceadapter.com.sun.enterprise.connectors.deployment.util] [tid: _T
      hreadID=34 _ThreadName=admin-listener(2)] [timeMillis: ...] [levelValue: 900] [[
      Unable to load class [ com.stc.jmsjca.unifiedjms.RAUnifiedActivationSpec ]
      java.lang.ClassNotFoundException: com.stc.jmsjca.unifiedjms.RAUnifiedActivationSpec
      at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
      at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
      at com.sun.enterprise.connectors.deployment.util.ConnectorValidator.getClass(ConnectorValidator.java:239)
      at com.sun.enterprise.connectors.deployment.util.ConnectorValidator.validateActivationSpec(ConnectorValidator.java:155)
      at com.sun.enterprise.connectors.deployment.util.ConnectorValidator.accept(ConnectorValidator.java:79)
      at com.sun.enterprise.connectors.deployment.util.ConnectorValidator.accept(ConnectorValidator.java:72)
      at com.sun.enterprise.deployment.BundleDescriptor.visit(BundleDescriptor.java:621)
      at com.sun.enterprise.connectors.deployment.util.ConnectorArchivist.postOpen(ConnectorArchivist.java:173)
      at com.sun.enterprise.connectors.deployment.util.ConnectorArchivist.postOpen(ConnectorArchivist.java:72)
      at com.sun.enterprise.deployment.archivist.Archivist.open(Archivist.java:273)
      at com.sun.enterprise.deployment.archivist.Archivist.open(Archivist.java:280)
      at com.sun.enterprise.deployment.archivist.Archivist.open(Archivist.java:241)
      at com.sun.enterprise.connectors.util.ConnectorDDTransformUtils.getConnectorDescriptor(ConnectorDDTransformUtils.java:213)
      at com.sun.enterprise.connectors.service.ConnectorService.getConnectorDescriptor(ConnectorService.java:283)
      at com.sun.enterprise.connectors.service.ConnectorConfigurationParserServiceImpl.getConnectionDefinitionNames(ConnectorConfigurationParserServiceImpl.
      java:161)
      at com.sun.enterprise.connectors.ConnectorRuntime.getConnectionDefinitionNames(ConnectorRuntime.java:695)
      at org.glassfish.connectors.admin.cli.ConnectorConnectionPoolManager.isValidConnectionDefinition(ConnectorConnectionPoolManager.java:359)
      at org.glassfish.connectors.admin.cli.ConnectorConnectionPoolManager.validateConnectorConnPoolAttributes(ConnectorConnectionPoolManager.java:306)
      at org.glassfish.connectors.admin.cli.ConnectorConnectionPoolManager.isValid(ConnectorConnectionPoolManager.java:183)
      at org.glassfish.connectors.admin.cli.ConnectorConnectionPoolManager.create(ConnectorConnectionPoolManager.java:132)
      at org.glassfish.resources.admin.cli.ResourcesManager.createResources(ResourcesManager.java:109)
      at org.glassfish.resources.admin.cli.AddResources.execute(AddResources.java:113)
      at com.sun.enterprise.v3.admin.CommandRunnerImpl$2$1.run(CommandRunnerImpl.java:527)
      at com.sun.enterprise.v3.admin.CommandRunnerImpl$2$1.run(CommandRunnerImpl.java:523)
      at java.security.AccessController.doPrivileged(Native Method)
      at javax.security.auth.Subject.doAs(Subject.java:356)
      at com.sun.enterprise.v3.admin.CommandRunnerImpl$2.execute(CommandRunnerImpl.java:522)

        Activity

        Hide
        Hong Zhang added a comment -

        Assign to jagadish for initial evaluation..

        Show
        Hong Zhang added a comment - Assign to jagadish for initial evaluation..

          People

          • Assignee:
            Jagadish
            Reporter:
            sd_
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated: