incubator-cloudstack-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rohit Yadav (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (CLOUDSTACK-247) Deploy instance failing in VMWare due to java.lang.NoClassDefFoundError: org/apache/commons/discovery/tools/DiscoverSingleton
Date Wed, 03 Oct 2012 12:30:08 GMT

     [ https://issues.apache.org/jira/browse/CLOUDSTACK-247?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Rohit Yadav resolved CLOUDSTACK-247.
------------------------------------

    Resolution: Fixed
    
> Deploy instance failing in VMWare due to java.lang.NoClassDefFoundError: org/apache/commons/discovery/tools/DiscoverSingleton
> -----------------------------------------------------------------------------------------------------------------------------
>
>                 Key: CLOUDSTACK-247
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-247
>             Project: CloudStack
>          Issue Type: Bug
>          Components: VMware
>    Affects Versions: pre-4.0.0
>         Environment: ESXi: 5.0
> MS: RHEL 6.3
> Build: CloudStack-non-OSS-55
> Git Revision: 1692279d460d5126a23b4cffcb0e287c3e204997
>            Reporter: Sowmya Krishnan
>            Assignee: Rohit Yadav
>            Priority: Blocker
>             Fix For: pre-4.0.0
>
>         Attachments: mslog.gz
>
>
> Deploy instance failed with the following when it was trying to download default CentOS
template from secondary to primary:
> 2012-10-03 17:22:44,605 DEBUG [agent.transport.Request] (Job-Executor-11:job-11) Seq
3-1705574508: Received:  { Ans: , MgmtId: 55487956346259, via: 3, Ver: v1, Flags: 110, { Answer
} }
> 2012-10-03 17:22:44,605 DEBUG [agent.manager.AgentManagerImpl] (Job-Executor-11:job-11)
Details from executing class com.cloud.agent.api.storage.PrimaryStorageDownloadCommand: java.lang.NoClassDefFoundError:
org/apache/commons/discovery/tools/DiscoverSingleton
>         at org.apache.axis.components.logger.LogFactory$1.run(LogFactory.java:45)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at org.apache.axis.components.logger.LogFactory.getLogFactory(LogFactory.java:41)
>         at org.apache.axis.components.logger.LogFactory.<clinit>(LogFactory.java:33)
>         at org.apache.axis.description.TypeDesc.<clinit>(TypeDesc.java:61)
>         at com.vmware.vim.ManagedObjectReference.<clinit>(ManagedObjectReference.java:107)
>         at com.vmware.apputils.vim.ServiceConnection.<init>(ServiceConnection.java:26)
>         at com.vmware.apputils.vim.ServiceConnection.CreateServiceConnection(ServiceConnection.java:32)
>         at com.vmware.apputils.AppUtil.setup(AppUtil.java:81)
>         at com.vmware.apputils.AppUtil.<init>(AppUtil.java:76)
>         at com.vmware.apputils.version.ExtendedAppUtil.<init>(ExtendedAppUtil.java:31)
>         at com.vmware.apputils.version.ExtendedAppUtil.initialize(ExtendedAppUtil.java:11)
>         at com.vmware.apputils.version.ExtendedAppUtil.initialize(ExtendedAppUtil.java:26)
>         at com.cloud.storage.resource.VmwareSecondaryStorageContextFactory.create(VmwareSecondaryStorageContextFactory.java:47)
>         at com.cloud.storage.resource.VmwareSecondaryStorageResourceHandler.getServiceContext(VmwareSecondaryStorageResourceHandler.java:184)
>         at com.cloud.hypervisor.vmware.manager.VmwareStorageManagerImpl.execute(VmwareStorageManagerImpl.java:120)
>         at com.cloud.storage.resource.VmwareSecondaryStorageResourceHandler.execute(VmwareSecondaryStorageResourceHandler.java:105)
>         at com.cloud.storage.resource.VmwareSecondaryStorageResourceHandler.executeRequest(VmwareSecondaryStorageResourceHandler.java:69)
>         at com.cloud.storage.resource.PremiumSecondaryStorageResource.executeRequest(PremiumSecondaryStorageResource.java:54)
>         at com.cloud.agent.Agent.processRequest(Agent.java:518)
>         at com.cloud.agent.Agent$AgentRequestHandler.doTask(Agent.java:831)
>         at com.cloud.utils.nio.Task.run(Task.java:83)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>         at java.lang.Thread.run(Thread.java:662)
> Caused by: java.lang.ClassNotFoundException: org.apache.commons.discovery.tools.DiscoverSingleton
>         at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
>         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
>         ... 25 more
> 2012-10-03 17:22:44,607 ERROR [cloud.vm.VirtualMachineManagerImpl] (Job-Executor-11:job-11)
Failed to start instance VM[User|Vm1]
> java.lang.ClassCastException: com.cloud.agent.api.Answer cannot be cast to com.cloud.agent.api.storage.PrimaryStorageDownloadAnswer
>         at com.cloud.template.TemplateManagerImpl.prepareTemplateForCreate(TemplateManagerImpl.java:663)
>         at com.cloud.utils.db.DatabaseCallback.intercept(DatabaseCallback.java:34)
>         at com.cloud.storage.StorageManagerImpl.createVolume(StorageManagerImpl.java:3442)
>         at com.cloud.storage.StorageManagerImpl.prepare(StorageManagerImpl.java:3351)
>         at com.cloud.vm.VirtualMachineManagerImpl.advanceStart(VirtualMachineManagerImpl.java:754)
>         at com.cloud.vm.VirtualMachineManagerImpl.start(VirtualMachineManagerImpl.java:472)
>         at com.cloud.vm.UserVmManagerImpl.startVirtualMachine(UserVmManagerImpl.java:2929)
>         at com.cloud.vm.UserVmManagerImpl.startVirtualMachine(UserVmManagerImpl.java:2601)
>         at com.cloud.vm.UserVmManagerImpl.startVirtualMachine(UserVmManagerImpl.java:2589)
>         at com.cloud.event.ActionEventCallback.intercept(ActionEventCallback.java:36)
>         at com.cloud.api.commands.DeployVMCmd.execute(DeployVMCmd.java:330)
>         at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:138)
>         at com.cloud.async.AsyncJobManagerImpl$1.run(AsyncJobManagerImpl.java:432)
>         at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>         at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
>         at java.util.concurrent.FutureTask.run(FutureTask.java:166)
>         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
>         at java.lang.Thread.run(Thread.java:679)
> This is a fresh install of both ESX and MS. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message