Uploaded image for project: 'ACE'
  1. ACE
  2. ACE-364

Launcher in the server store folder causes NoSuchMethodError when deploying something

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.0.0
    • 2.1.0
    • Launcher
    • None

    Description

      When using the launcher that is packaged in the store folder of the server, you get a NoSuchMethodError when you try to deploy something to this target:

      $ java -jar ace-launcher.jar
      Adding additional bundle activator: org.apache.ace.managementagent.Activator
      Started management agent.
        Target ID    : defaultTargetID
        Server       : http://localhost:8080
        Sync interval: 2000 ms
        Unaffected bundles will not be stopped during deployment.
      Exception in thread "Timer-0" java.lang.NoSuchMethodError: org.osgi.framework.BundleEvent.<init>(ILorg/osgi/framework/Bundle;Lorg/osgi/framework/Bundle;)V
      	at org.apache.felix.framework.Felix.fireBundleEvent(Felix.java:4249)
      	at org.apache.felix.framework.Felix.installBundle(Felix.java:2881)
      	at org.apache.felix.framework.BundleContextImpl.installBundle(BundleContextImpl.java:165)
      	at org.apache.felix.deploymentadmin.spi.UpdateCommand.execute(UpdateCommand.java:76)
      	at org.apache.felix.deploymentadmin.spi.DeploymentSessionImpl.call(DeploymentSessionImpl.java:73)
      	at org.apache.felix.deploymentadmin.DeploymentAdminImpl.installDeploymentPackage(DeploymentAdminImpl.java:214)
      	at org.apache.ace.deployment.deploymentadmin.DeploymentAdminDeployer.install(DeploymentAdminDeployer.java:51)
      	at org.apache.ace.deployment.service.impl.DeploymentServiceImpl.installVersion(DeploymentServiceImpl.java:120)
      	at org.apache.ace.deployment.task.DeploymentUpdateTask.run(DeploymentUpdateTask.java:57)
      	at org.apache.ace.scheduler.Executer.run(Executer.java:92)
      	at java.util.TimerThread.mainLoop(Timer.java:555)
      	at java.util.TimerThread.run(Timer.java:505)
      

      It seems like some kind of packaging error. The normal "target" distribution works just fine.

      Attachments

        Activity

          People

            marrs Marcel Offermans
            marrs Marcel Offermans
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: