[ https://issues.apache.org/jira/browse/CLOUDSTACK-346?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13476033#comment-13476033 ]
Rohit Yadav commented on CLOUDSTACK-346: ---------------------------------------- The issue is this jar was blindly added as we'd removed it and further one of the maven deps got axis-jaxrpc-1.4.jar introduced. Both the artifacts are in fact the same jars, bit by bit and different names. Removing vmware-lib-jaxrpc worked and it's only used by vmware-base and vmware-plugin, it would be safe to remove from the nonoss patch too. > Cannot add Vmware cluster with class loader conflict exception > -------------------------------------------------------------- > > Key: CLOUDSTACK-346 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-346 > Project: CloudStack > Issue Type: Bug > Components: Management Server > Affects Versions: pre-4.0.0 > Reporter: Mice Xia > Assignee: Rohit Yadav > > [how to reproduce] > 1) run a nonoss env followed with instructions from this link: > https://cwiki.apache.org/confluence/display/CLOUDSTACK/Building#Building-Packaging > 2) ant debug > 3) add a vmware cluster > 4) exception catched > loader constraint violation: when resolving field "service" the class loader > (instance of org/apache/catalina/loader/WebappClassLoader) of the referring > class, org/apache/axis/client/Stub, and the class loader (instance of > org/apache/catalina/loader/StandardClassLoader) for the field's resolved > type, javax/xml/rpc/Service, have different Class objects for that type > [analysis] > seems a conflict between ./webapps/client/WEB-INF/lib/vmware-lib-jaxrpc.jar > and lib/axis-jaxrpc-1.4.jar > remove the vmware-lib-jaxrpc.jar, then cluster could be added. > Please notice here i'm using vsphere 5.1, but this issue seems unlikely > related to vcenter version -- 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