incubator-cloudstack-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sateesh Chodapuneedi (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CLOUDSTACK-615) Adding a VMware Cluster in a CS setup with CS-4.0.1 fails with "java.lang.NoClassDefFoundError: Could not initialize class com.vmware.vim.ManagedObjectReference"
Date Tue, 15 Jan 2013 22:20:12 GMT

    [ https://issues.apache.org/jira/browse/CLOUDSTACK-615?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13554444#comment-13554444
] 

Sateesh Chodapuneedi commented on CLOUDSTACK-615:
-------------------------------------------------

Dependency scope for vmware api jar files is set to "provided". This means either JDK or container
would provide the dependencies at runtime.
Maven is getting the jar files to local maven repository accordingly. Also classpath is correctly
set for provided jar files correctly for both the modules plugin-hypervisor-vmware and vmware-base.

Here is the output of "mvn dependency:build-classpath -Dnonoss"

[INFO] ------------------------------------------------------------------------
[INFO] Building Apache CloudStack Plugin - Hypervisor VMware 4.1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-dependency-plugin:2.5.1:build-classpath (default-cli) @ cloud-plugin-hypervisor-vmware
---
[INFO] Dependencies classpath:
/root/.m2/repository/org/apache/cloudstack/cloud-vmware-base/4.1.0-SNAPSHOT/cloud-vmware-base-4.1.0-SNAPSHOT.jar:/root/.m2/repository/org/apache/cloudstack/cloud-utils/4.1.0-SNAPSHOT/cloud-utils-4.1.0-SNAPSHOT.jar:/root/.m2/repository/log4j/log4j/1.2.16/log4j-1.2.16.jar:/root/.m2/repository/cglib/cglib-nodep/2.2.2/cglib-nodep-2.2.2.jar:/root/.m2/repository/commons-dbcp/commons-dbcp/1.4/commons-dbcp-1.4.jar:/root/.m2/repository/net/sf/ehcache/ehcache/1.5.0/ehcache-1.5.0.jar:/root/.m2/repository/backport-util-concurrent/backport-util-concurrent/3.1/backport-util-concurrent-3.1.jar:/root/.m2/repository/net/sf/jsr107cache/jsr107cache/1.0/jsr107cache-1.0.jar:/root/.m2/repository/commons-pool/commons-pool/1.6/commons-pool-1.6.jar:/root/.m2/repository/commons-collections/commons-collections/3.2.1/commons-collections-3.2.1.jar:/root/.m2/repository/commons-discovery/commons-discovery/0.5/commons-discovery-0.5.jar:/root/.m2/repository/commons-logging/commons-logging/1.1.1/commons-logging-1.1.1.jar:/root/.m2/repository/org/bouncycastle/bcprov-jdk16/1.46/bcprov-jdk16-1.46.jar:/root/.m2/repository/com/jcraft/jsch/0.1.42/jsch-0.1.42.jar:/root/.m2/repository/org/eclipse/persistence/javax.persistence/2.0.0/javax.persistence-2.0.0.jar:/root/.m2/repository/org/jasypt/jasypt/1.9.0/jasypt-1.9.0.jar:/root/.m2/repository/com/trilead/trilead-ssh2/build213-svnkit-1.3-patch/trilead-ssh2-build213-svnkit-1.3-patch.jar:/root/.m2/repository/com/amazonaws/aws-java-sdk/1.3.21.1/aws-java-sdk-1.3.21.1.jar:/root/.m2/repository/org/apache/httpcomponents/httpclient/4.1/httpclient-4.1.jar:/root/.m2/repository/org/codehaus/jackson/jackson-core-asl/1.8.9/jackson-core-asl-1.8.9.jar:/root/.m2/repository/org/codehaus/jackson/jackson-mapper-asl/1.8.9/jackson-mapper-asl-1.8.9.jar:/root/.m2/repository/log4j/apache-log4j-extras/1.1/apache-log4j-extras-1.1.jar:/root/.m2/repository/javax/ejb/ejb-api/3.0/ejb-api-3.0.jar:/root/.m2/repository/commons-configuration/commons-configuration/1.8/commons-configuration-1.8.jar:/root/.m2/repository/commons-lang/commons-lang/2.6/commons-lang-2.6.jar:/root/.m2/repository/com/google/code/gson/gson/1.7.1/gson-1.7.1.jar:/root/.m2/repository/com/cloud/com/vmware/vmware-vim25/4.1/vmware-vim25-4.1.jar:/root/.m2/repository/com/cloud/com/vmware/vmware-vim/4.1/vmware-vim-4.1.jar:/root/.m2/repository/com/cloud/com/vmware/vmware-apputils/4.1/vmware-apputils-4.1.jar:/root/.m2/repository/org/apache/axis/axis/1.4/axis-1.4.jar:/root/.m2/repository/org/apache/axis/axis-jaxrpc/1.4/axis-jaxrpc-1.4.jar:/root/.m2/repository/wsdl4j/wsdl4j/1.4/wsdl4j-1.4.jar:/root/.m2/repository/org/apache/cloudstack/cloud-server/4.1.0-SNAPSHOT/cloud-server-4.1.0-SNAPSHOT.jar:/root/.m2/repository/org/apache/cloudstack/cloud-core/4.1.0-SNAPSHOT/cloud-core-4.1.0-SNAPSHOT.jar:/root/.m2/repository/org/apache/cloudstack/cloud-api/4.1.0-SNAPSHOT/cloud-api-4.1.0-SNAPSHOT.jar:/root/.m2/repository/commons-httpclient/commons-httpclient/3.1/commons-httpclient-3.1.jar:/root/.m2/repository/org/apache/httpcomponents/httpcore/4.1/httpcore-4.1.jar:/root/.m2/repository/com/thoughtworks/xstream/xstream/1.3.1/xstream-1.3.1.jar:/root/.m2/repository/xpp3/xpp3_min/1.1.4c/xpp3_min-1.1.4c.jar:/root/.m2/repository/javax/mail/mail/1.4/mail-1.4.jar:/root/.m2/repository/javax/activation/activation/1.1/activation-1.1.jar:/root/.m2/repository/jstl/jstl/1.2/jstl-1.2.jar:/root/.m2/repository/commons-codec/commons-codec/1.6/commons-codec-1.6.jar:/root/.m2/repository/junit/junit/4.10/junit-4.10.jar:/root/.m2/repository/org/hamcrest/hamcrest-core/1.1/hamcrest-core-1.1.jar:/root/.m2/repository/org/mockito/mockito-all/1.9.5/mockito-all-1.9.5.jar
[INFO]

[INFO] ------------------------------------------------------------------------
[INFO] Building Apache CloudStack VMware Base 4.1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-dependency-plugin:2.5.1:build-classpath (default-cli) @ cloud-vmware-base
---
[INFO] Dependencies classpath:
/root/.m2/repository/org/apache/cloudstack/cloud-utils/4.1.0-SNAPSHOT/cloud-utils-4.1.0-SNAPSHOT.jar:/root/.m2/repository/log4j/log4j/1.2.16/log4j-1.2.16.jar:/root/.m2/repository/cglib/cglib-nodep/2.2.2/cglib-nodep-2.2.2.jar:/root/.m2/repository/commons-dbcp/commons-dbcp/1.4/commons-dbcp-1.4.jar:/root/.m2/repository/net/sf/ehcache/ehcache/1.5.0/ehcache-1.5.0.jar:/root/.m2/repository/backport-util-concurrent/backport-util-concurrent/3.1/backport-util-concurrent-3.1.jar:/root/.m2/repository/net/sf/jsr107cache/jsr107cache/1.0/jsr107cache-1.0.jar:/root/.m2/repository/commons-pool/commons-pool/1.6/commons-pool-1.6.jar:/root/.m2/repository/commons-codec/commons-codec/1.6/commons-codec-1.6.jar:/root/.m2/repository/commons-collections/commons-collections/3.2.1/commons-collections-3.2.1.jar:/root/.m2/repository/commons-discovery/commons-discovery/0.5/commons-discovery-0.5.jar:/root/.m2/repository/commons-logging/commons-logging/1.1.1/commons-logging-1.1.1.jar:/root/.m2/repository/org/bouncycastle/bcprov-jdk16/1.46/bcprov-jdk16-1.46.jar:/root/.m2/repository/com/jcraft/jsch/0.1.42/jsch-0.1.42.jar:/root/.m2/repository/org/eclipse/persistence/javax.persistence/2.0.0/javax.persistence-2.0.0.jar:/root/.m2/repository/org/jasypt/jasypt/1.9.0/jasypt-1.9.0.jar:/root/.m2/repository/com/trilead/trilead-ssh2/build213-svnkit-1.3-patch/trilead-ssh2-build213-svnkit-1.3-patch.jar:/root/.m2/repository/com/amazonaws/aws-java-sdk/1.3.21.1/aws-java-sdk-1.3.21.1.jar:/root/.m2/repository/org/apache/httpcomponents/httpclient/4.1/httpclient-4.1.jar:/root/.m2/repository/org/apache/httpcomponents/httpcore/4.1/httpcore-4.1.jar:/root/.m2/repository/org/codehaus/jackson/jackson-core-asl/1.8.9/jackson-core-asl-1.8.9.jar:/root/.m2/repository/org/codehaus/jackson/jackson-mapper-asl/1.8.9/jackson-mapper-asl-1.8.9.jar:/root/.m2/repository/log4j/apache-log4j-extras/1.1/apache-log4j-extras-1.1.jar:/root/.m2/repository/javax/ejb/ejb-api/3.0/ejb-api-3.0.jar:/root/.m2/repository/commons-configuration/commons-configuration/1.8/commons-configuration-1.8.jar:/root/.m2/repository/commons-lang/commons-lang/2.6/commons-lang-2.6.jar:/root/.m2/repository/com/google/code/gson/gson/1.7.1/gson-1.7.1.jar:/root/.m2/repository/com/cloud/com/vmware/vmware-vim25/4.1/vmware-vim25-4.1.jar:/root/.m2/repository/com/cloud/com/vmware/vmware-vim/4.1/vmware-vim-4.1.jar:/root/.m2/repository/com/cloud/com/vmware/vmware-apputils/4.1/vmware-apputils-4.1.jar:/root/.m2/repository/org/apache/axis/axis/1.4/axis-1.4.jar:/root/.m2/repository/org/apache/axis/axis-jaxrpc/1.4/axis-jaxrpc-1.4.jar:/root/.m2/repository/wsdl4j/wsdl4j/1.4/wsdl4j-1.4.jar:/root/.m2/repository/junit/junit/4.10/junit-4.10.jar:/root/.m2/repository/org/hamcrest/hamcrest-core/1.1/hamcrest-core-1.1.jar:/root/.m2/repository/org/mockito/mockito-all/1.9.5/mockito-all-1.9.5.jar
----------------------

Further investigating on the failure to pick the jar file during the runtime causing NoClassDefFoundError.

                
> Adding a VMware Cluster in a CS setup with CS-4.0.1 fails with "java.lang.NoClassDefFoundError:
Could not initialize class com.vmware.vim.ManagedObjectReference"
> -----------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: CLOUDSTACK-615
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-615
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the default.) 
>          Components: Hypervisor Controller
>    Affects Versions: 4.0.1
>         Environment: MS : Ubuntu 12.04, 
> CS-4.0.1 build : CloudStack-non-OSS-4.0.1-8.tar.bz2
> Host : Xen, Vmware
>            Reporter: Abhinav Roy
>            Assignee: Sateesh Chodapuneedi
>            Priority: Blocker
>             Fix For: 4.0.1
>
>
> Steps :
> ========================
> 1. Create a CS setup with Xen as host.
> 2. Deploy a VM
> 3. Add a VMware cluster.
> Expected Behaviour :
> ========================
> The Cluster should be added successfully.
> Observed behaviour :
> ========================
> The addition of VMware cluster fails with the following error............
> 2012-12-12 17:02:01,913 INFO  [hypervisor.vmware.VmwareServerDiscoverer] (catalina-exec-20:null)
Discover host. dc: 1, pod: 1, cluster: 4, uri host: 10.102.125.210
> 2012-12-12 17:02:01,916 DEBUG [vmware.resource.VmwareContextFactory] (catalina-exec-20:null)
initialize VmwareContext. url: https://10.102.125.210/sdk/vimService, username: administrator,
password: f**********
> 2012-12-12 17:02:01,947 ERROR [cloud.api.ApiDispatcher] (catalina-exec-20:null) Exception
while executing AddClusterCmd:
> java.lang.NoClassDefFoundError: Could not initialize class com.vmware.vim.ManagedObjectReference
>         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.hypervisor.vmware.resource.VmwareContextFactory.create(VmwareContextFactory.java:53)
>         at com.cloud.hypervisor.vmware.VmwareServerDiscoverer.find(VmwareServerDiscoverer.java:145)
>         at com.cloud.resource.ResourceManagerImpl.discoverCluster(ResourceManagerImpl.java:464)
>         at com.cloud.utils.db.DatabaseCallback.intercept(DatabaseCallback.java:34)
>         at com.cloud.api.commands.AddClusterCmd.execute(AddClusterCmd.java:153)
>         at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:138)
>         at com.cloud.api.ApiServer.queueCommand(ApiServer.java:543)
>         at com.cloud.api.ApiServer.handleRequest(ApiServer.java:422)
>         at com.cloud.api.ApiServlet.processRequest(ApiServlet.java:304)
>         at com.cloud.api.ApiServlet.doGet(ApiServlet.java:63)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
>         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
>         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
>         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
>         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
>         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
>         at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:615)
>         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
>         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
>         at org.apache.coyote.http11.Http11NioProcessor.process(Http11NioProcessor.java:889)
>         at org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Http11NioProtocol.java:744)
>         at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:2274)
>         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 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