java.lang.NoSuchMethodError: com.sun.logging.LogDomains.getLogger(Ljava/lang/Class;Ljava/lang/String;)Ljava/util/logging/Logger;

Jenkins JIRA | Dondo Chaka | 5 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    I am using the deploy plugin to deploy remotely to a Glassfish 3 domain. The deploy fails with the following output. Jenkins is running on a Glassfish 2 server, is it possible that an older version of LogDomains is already on the classpath because of that? Deploying /path/to/application.war to container GlassFish 3.x Remote ERROR: Publisher hudson.plugins.deploy.DeployPublisher aborted due to exception org.codehaus.cargo.util.CargoException: Cannot create a JSR-88 deployer: com.sun.logging.LogDomains.getLogger(Ljava/lang/Class;Ljava/lang/String;)Ljava/util/logging/Logger; at org.codehaus.cargo.container.spi.deployer.AbstractJsr88Deployer.getDeploymentManager(AbstractJsr88Deployer.java:280) at org.codehaus.cargo.container.spi.deployer.AbstractJsr88Deployer.redeploy(AbstractJsr88Deployer.java:117) at hudson.plugins.deploy.CargoContainerAdapter.deploy(CargoContainerAdapter.java:60) at hudson.plugins.deploy.CargoContainerAdapter$1.invoke(CargoContainerAdapter.java:86) at hudson.plugins.deploy.CargoContainerAdapter$1.invoke(CargoContainerAdapter.java:73) at hudson.FilePath.act(FilePath.java:785) at hudson.FilePath.act(FilePath.java:767) at hudson.plugins.deploy.CargoContainerAdapter.redeploy(CargoContainerAdapter.java:73) at hudson.plugins.deploy.DeployPublisher.perform(DeployPublisher.java:45) at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:36) at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:694) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:669) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:647) at hudson.model.Build$RunnerImpl.post2(Build.java:162) at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:616) at hudson.model.Run.run(Run.java:1429) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:230) Caused by: java.lang.NoSuchMethodError: com.sun.logging.LogDomains.getLogger(Ljava/lang/Class;Ljava/lang/String;)Ljava/util/logging/Logger; at org.glassfish.deployapi.SunDeploymentFactory.<clinit>(SunDeploymentFactory.java:91) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at org.codehaus.cargo.container.spi.deployer.AbstractJsr88Deployer.getDeploymentManager(AbstractJsr88Deployer.java:267) ... 18 more java.lang.NoSuchMethodError: com.sun.logging.LogDomains.getLogger(Ljava/lang/Class;Ljava/lang/String;)Ljava/util/logging/Logger; at org.glassfish.deployapi.SunDeploymentFactory.<clinit>(SunDeploymentFactory.java:91) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at org.codehaus.cargo.container.spi.deployer.AbstractJsr88Deployer.getDeploymentManager(AbstractJsr88Deployer.java:267) at org.codehaus.cargo.container.spi.deployer.AbstractJsr88Deployer.redeploy(AbstractJsr88Deployer.java:117) at hudson.plugins.deploy.CargoContainerAdapter.deploy(CargoContainerAdapter.java:60) at hudson.plugins.deploy.CargoContainerAdapter$1.invoke(CargoContainerAdapter.java:86) at hudson.plugins.deploy.CargoContainerAdapter$1.invoke(CargoContainerAdapter.java:73) at hudson.FilePath.act(FilePath.java:785) at hudson.FilePath.act(FilePath.java:767) at hudson.plugins.deploy.CargoContainerAdapter.redeploy(CargoContainerAdapter.java:73) at hudson.plugins.deploy.DeployPublisher.perform(DeployPublisher.java:45) at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:36) at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:694) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:669) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:647) at hudson.model.Build$RunnerImpl.post2(Build.java:162) at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:616) at hudson.model.Run.run(Run.java:1429) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:230)

    Jenkins JIRA | 5 years ago | Dondo Chaka
    java.lang.NoSuchMethodError: com.sun.logging.LogDomains.getLogger(Ljava/lang/Class;Ljava/lang/String;)Ljava/util/logging/Logger;
  2. 0

    I am using the deploy plugin to deploy remotely to a Glassfish 3 domain. The deploy fails with the following output. Jenkins is running on a Glassfish 2 server, is it possible that an older version of LogDomains is already on the classpath because of that? Deploying /path/to/application.war to container GlassFish 3.x Remote ERROR: Publisher hudson.plugins.deploy.DeployPublisher aborted due to exception org.codehaus.cargo.util.CargoException: Cannot create a JSR-88 deployer: com.sun.logging.LogDomains.getLogger(Ljava/lang/Class;Ljava/lang/String;)Ljava/util/logging/Logger; at org.codehaus.cargo.container.spi.deployer.AbstractJsr88Deployer.getDeploymentManager(AbstractJsr88Deployer.java:280) at org.codehaus.cargo.container.spi.deployer.AbstractJsr88Deployer.redeploy(AbstractJsr88Deployer.java:117) at hudson.plugins.deploy.CargoContainerAdapter.deploy(CargoContainerAdapter.java:60) at hudson.plugins.deploy.CargoContainerAdapter$1.invoke(CargoContainerAdapter.java:86) at hudson.plugins.deploy.CargoContainerAdapter$1.invoke(CargoContainerAdapter.java:73) at hudson.FilePath.act(FilePath.java:785) at hudson.FilePath.act(FilePath.java:767) at hudson.plugins.deploy.CargoContainerAdapter.redeploy(CargoContainerAdapter.java:73) at hudson.plugins.deploy.DeployPublisher.perform(DeployPublisher.java:45) at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:36) at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:694) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:669) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:647) at hudson.model.Build$RunnerImpl.post2(Build.java:162) at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:616) at hudson.model.Run.run(Run.java:1429) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:230) Caused by: java.lang.NoSuchMethodError: com.sun.logging.LogDomains.getLogger(Ljava/lang/Class;Ljava/lang/String;)Ljava/util/logging/Logger; at org.glassfish.deployapi.SunDeploymentFactory.<clinit>(SunDeploymentFactory.java:91) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at org.codehaus.cargo.container.spi.deployer.AbstractJsr88Deployer.getDeploymentManager(AbstractJsr88Deployer.java:267) ... 18 more java.lang.NoSuchMethodError: com.sun.logging.LogDomains.getLogger(Ljava/lang/Class;Ljava/lang/String;)Ljava/util/logging/Logger; at org.glassfish.deployapi.SunDeploymentFactory.<clinit>(SunDeploymentFactory.java:91) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at org.codehaus.cargo.container.spi.deployer.AbstractJsr88Deployer.getDeploymentManager(AbstractJsr88Deployer.java:267) at org.codehaus.cargo.container.spi.deployer.AbstractJsr88Deployer.redeploy(AbstractJsr88Deployer.java:117) at hudson.plugins.deploy.CargoContainerAdapter.deploy(CargoContainerAdapter.java:60) at hudson.plugins.deploy.CargoContainerAdapter$1.invoke(CargoContainerAdapter.java:86) at hudson.plugins.deploy.CargoContainerAdapter$1.invoke(CargoContainerAdapter.java:73) at hudson.FilePath.act(FilePath.java:785) at hudson.FilePath.act(FilePath.java:767) at hudson.plugins.deploy.CargoContainerAdapter.redeploy(CargoContainerAdapter.java:73) at hudson.plugins.deploy.DeployPublisher.perform(DeployPublisher.java:45) at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:36) at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:694) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:669) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:647) at hudson.model.Build$RunnerImpl.post2(Build.java:162) at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:616) at hudson.model.Run.run(Run.java:1429) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:230)

    Jenkins JIRA | 5 years ago | Dondo Chaka
    java.lang.NoSuchMethodError: com.sun.logging.LogDomains.getLogger(Ljava/lang/Class;Ljava/lang/String;)Ljava/util/logging/Logger;

    Root Cause Analysis

    1. java.lang.NoSuchMethodError

      com.sun.logging.LogDomains.getLogger(Ljava/lang/Class;Ljava/lang/String;)Ljava/util/logging/Logger;

      at org.glassfish.deployapi.SunDeploymentFactory.<clinit>()
    2. GF Deployment
      SunDeploymentFactory.<clinit>
      1. org.glassfish.deployapi.SunDeploymentFactory.<clinit>(SunDeploymentFactory.java:91)
      1 frame
    3. Java RT
      Constructor.newInstance
      1. sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      2. sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
      3. sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
      4. java.lang.reflect.Constructor.newInstance(Constructor.java:513)
      4 frames
    4. Cargo
      AbstractJsr88Deployer.redeploy
      1. org.codehaus.cargo.container.spi.deployer.AbstractJsr88Deployer.getDeploymentManager(AbstractJsr88Deployer.java:267)
      2. org.codehaus.cargo.container.spi.deployer.AbstractJsr88Deployer.redeploy(AbstractJsr88Deployer.java:117)
      2 frames
    5. Deploy to container Plugin
      CargoContainerAdapter$1.invoke
      1. hudson.plugins.deploy.CargoContainerAdapter.deploy(CargoContainerAdapter.java:60)
      2. hudson.plugins.deploy.CargoContainerAdapter$1.invoke(CargoContainerAdapter.java:86)
      3. hudson.plugins.deploy.CargoContainerAdapter$1.invoke(CargoContainerAdapter.java:73)
      3 frames
    6. Hudson
      FilePath.act
      1. hudson.FilePath.act(FilePath.java:785)
      2. hudson.FilePath.act(FilePath.java:767)
      2 frames
    7. Deploy to container Plugin
      DeployPublisher.perform
      1. hudson.plugins.deploy.CargoContainerAdapter.redeploy(CargoContainerAdapter.java:73)
      2. hudson.plugins.deploy.DeployPublisher.perform(DeployPublisher.java:45)
      2 frames
    8. Hudson
      Executor.run
      1. hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:36)
      2. hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:694)
      3. hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:669)
      4. hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:647)
      5. hudson.model.Build$RunnerImpl.post2(Build.java:162)
      6. hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:616)
      7. hudson.model.Run.run(Run.java:1429)
      8. hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
      9. hudson.model.ResourceController.execute(ResourceController.java:88)
      10. hudson.model.Executor.run(Executor.java:230)
      10 frames