when I proceed with vCD installation (on centos 5.5 x64) with ssl certificates placed in /tmp folder I encounter following errors (I hope someone can help with that).
DEBUG Scheduling task ManagedService Update: pid=org.ops4j.pax.url.mvn
DEBUG Scheduling task ManagedService Update: pid=org.ops4j.pax.url.wrap
DEBUG Scheduling task ManagedServiceFactory Update: factoryPid=org.apache.servicemix.kernel.filemonitor.FileMonitor
DEBUG Running task ManagedService Update: pid=org.ops4j.pax.url.mvn
DEBUG Running task ManagedService Update: pid=org.ops4j.pax.url.wrap
DEBUG Running task ManagedServiceFactory Update: factoryPid=org.apache.servicemix.kernel.filemonitor.FileMonitor
DEBUG Scheduling task Update: pid=org.apache.servicemix.shell
DEBUG Running task Update: pid=org.apache.servicemix.shell
DEBUG Scheduling task Fire ConfigurationEvent: pid=org.apache.servicemix.shell
DEBUG Running task Fire ConfigurationEvent: pid=org.apache.servicemix.shell
DEBUG Scheduling task Update: pid=org.apache.servicemix.transaction
DEBUG Running task Update: pid=org.apache.servicemix.transaction
DEBUG Scheduling task Fire ConfigurationEvent: pid=org.apache.servicemix.transaction
DEBUG Running task Fire ConfigurationEvent: pid=org.apache.servicemix.transaction
DEBUG Scheduling task Update: pid=org.apache.servicemix.management
DEBUG Running task Update: pid=org.apache.servicemix.management
DEBUG Scheduling task Fire ConfigurationEvent: pid=org.apache.servicemix.management
DEBUG Running task Fire ConfigurationEvent: pid=org.apache.servicemix.management
DEBUG Scheduling task Update: pid=org.apache.servicemix.features
DEBUG Running task Update: pid=org.apache.servicemix.features
DEBUG Scheduling task Fire ConfigurationEvent: pid=org.apache.servicemix.features
DEBUG Running task Fire ConfigurationEvent: pid=org.apache.servicemix.features
DEBUG Scheduling task Update: pid=org.ops4j.pax.url.mvn
DEBUG Running task Update: pid=org.ops4j.pax.url.mvn
DEBUG Scheduling task Fire ConfigurationEvent: pid=org.ops4j.pax.url.mvn
DEBUG Running task Fire ConfigurationEvent: pid=org.ops4j.pax.url.mvn
Application startup begins: 10/18/10 11:11 AM
Successfully bound network port: 80 on host address: PublicIP
Successfully bound network port: 443 on host address: PublicIP
Application Initialization: 9% complete. Subsystem 'com.vmware.vcloud.common.core' started
Successfully connected to database: jdbc:oracle:thin:@vcenter:1521/cloud
Successfully bound network port: 443 on host address: PublicIP
Successfully bound network port: 61616 on host address: PublicIP
Successfully bound network port: 61613 on host address: PublicIP
Uncaught Exception. Originating thread: Thread[SpringOsgiExtenderThread-11,5,spring-osgi-extender[6273305c]-threads]. Message: Error creating bean with name 'hibernateCacheRegions': Cannot create inner bean 'org.springframework.cache.ehcache.EhCacheFactoryBean#667262b6' of type http://org.springframework.cache.ehcache.EhCacheFactoryBean while setting bean property 'sourceList' with key ; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.cache.ehcache.EhCacheFactoryBean#667262b6' defined in URL : Cannot resolve reference to bean 'cacheManager' while setting bean property 'cacheManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'cacheManager' defined in URL : Invocation of init method failed; nested exception is net.sf.ehcache.CacheException: Problem creating connections: Error decrypting data.
Application shutdown event: Beginning
DEBUG Scheduling task Thread[Configuration Updater,5,main]
Application shutdown event: Application stop requested. Shutting down.
Part of vcloud-container-debug.log file:
2010-10-18 11:11:23,465 | FATAL | SpringOsgiExtenderThread-11 | AbstractCellApplication | Uncaught Exception. Originating thread: Thread[SpringOsgiExtenderThread-11,5,spring-osgi-extender[6273305c]-threads]. Message: Error creating bean with name hibernateCacheRegions: Cannot create inner bean org.springframework.cache.ehcache.EhCacheFactoryBean#667262b6 of type http://org.springframework.cache.ehcache.EhCacheFactoryBean while setting bean property sourceList with key ; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name org.springframework.cache.ehcache.EhCacheFactoryBean#667262b6 defined in URL : Cannot resolve reference to bean cacheManager while setting bean property cacheManager; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name cacheManager defined in URL : Invocation of init method failed; nested exception is net.sf.ehcache.CacheException: Problem creating connections: Error decrypting data. |
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'hibernateCacheRegions': Cannot create inner bean 'org.springframework.cache.ehcache.EhCacheFactoryBean#667262b6' of type http://org.springframework.cache.ehcache.EhCacheFactoryBean while setting bean property 'sourceList' with key ; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.cache.ehcache.EhCacheFactoryBean#667262b6' defined in URL : Cannot resolve reference to bean 'cacheManager' while setting bean property 'cacheManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'cacheManager' defined in URL : Invocation of init method failed; nested exception is net.sf.ehcache.CacheException: Problem creating connections: Error decrypting data.
+ at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:230)+
+ at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:117)+
+ at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveManagedList(BeanDefinitionValueResolver.java:287)+
+ at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:126)+
+ at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1245)+
+ at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1010)+
+ at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:472)+
+ at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)+
+ at java.security.AccessController.doPrivileged(Native Method)+
+ at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)+
+ at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)+
+ at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)+
+ at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)+
+ at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)+
+ at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)+
+ at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:423)+
+ at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:728)+
+ at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.access$1600(AbstractDelegatedExecutionApplicationContext.java:68)+
+ at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$4.run(AbstractDelegatedExecutionApplicationContext.java:343)+
+ at org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)+
+ at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:308)+
+ at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:138)+
+ at java.lang.Thread.run(Thread.java:619)+
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.cache.ehcache.EhCacheFactoryBean#667262b6' defined in URL : Cannot resolve reference to bean 'cacheManager' while setting bean property 'cacheManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'cacheManager' defined in URL : Invocation of init method failed; nested exception is net.sf.ehcache.CacheException: Problem creating connections: Error decrypting data.
+ at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:275)+
+ at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:104)+
+ at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1245)+
+ at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1010)+
+ at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:472)+
+ at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)+
+ at java.security.AccessController.doPrivileged(Native Method)+
+ at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)+
+ at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:219)+
+ ... 22 more+
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'cacheManager' defined in URL : Invocation of init method failed; nested exception is net.sf.ehcache.CacheException: Problem creating connections: Error decrypting data.
+ at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1338)+
+ at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:473)+
+ at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)+
+ at java.security.AccessController.doPrivileged(Native Method)+
+ at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)+
+ at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)+
+ at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)+
+ at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)+
+ at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)+
+ at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)+
+ at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:269)+
+ ... 30 more+
Caused by: net.sf.ehcache.CacheException: Problem creating connections: Error decrypting data.
+ at com.vmware.vcloud.common.ehcache.ActiveMqCacheManagerPeerProviderFactory.createCachePeerProvider(ActiveMqCacheManagerPeerProviderFactory.java:77)+
+ at net.sf.ehcache.config.ConfigurationHelper.createCachePeerProviders(ConfigurationHelper.java:282)+
+ at net.sf.ehcache.CacheManager.configure(CacheManager.java:319)+
+ at net.sf.ehcache.CacheManager.init(CacheManager.java:237)+
+ at net.sf.ehcache.CacheManager.<init>(CacheManager.java:210)+
+ at net.sf.ehcache.CacheManager.create(CacheManager.java:517)+
+ at org.springframework.cache.ehcache.EhCacheManagerFactoryBean.afterPropertiesSet(EhCacheManagerFactoryBean.java:104)+
+ at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1369)+
+ at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1335)+
+ ... 40 more+
Caused by: javax.jms.JMSException: Error decrypting data.
+ at org.apache.activemq.util.JMSExceptionSupport.create(JMSExceptionSupport.java:49)+
+ at org.apache.activemq.ActiveMQConnection.syncSendPacket(ActiveMQConnection.java:1255)+
+ at org.apache.activemq.ActiveMQConnection.ensureConnectionInfoSent(ActiveMQConnection.java:1350)+
+ at org.apache.activemq.ActiveMQConnection.createSession(ActiveMQConnection.java:300)+
+ at org.apache.activemq.pool.SessionPool.createSession(SessionPool.java:108)+
+ at org.apache.activemq.pool.SessionPool.makeObject(SessionPool.java:76)+
+ at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:974)+
+ at org.apache.activemq.pool.SessionPool.borrowSession(SessionPool.java:54)+
+ at org.apache.activemq.pool.ConnectionPool.createSession(ConnectionPool.java:108)+
+ at org.apache.activemq.pool.XaConnectionPool.createSession(XaConnectionPool.java:52)+
+ at org.apache.activemq.pool.PooledConnection.createSession(PooledConnection.java:141)+
+ at org.apache.activemq.pool.PooledConnection.createTopicSession(PooledConnection.java:137)+
+ at com.vmware.vcloud.common.ehcache.ActiveMqCacheManagerPeerProviderFactory.createCachePeerProvider(ActiveMqCacheManagerPeerProviderFactory.java:69)+
+ ... 48 more+
Caused by: com.vmware.ssdc.util.crypto.CryptoException: Error decrypting data.
+ at com.vmware.ssdc.util.AesEncryption.Decrypt(AesEncryption.java:136)+
+ at com.vmware.ssdc.util.AesEncryption.Decrypt(AesEncryption.java:149)+
+ at com.vmware.vcloud.jms.activemq.impl.SystemUserCellBrokerAuthenticator.getBrokerSystemUserPassword(SystemUserCellBrokerAuthenticator.java:57)+
+ at com.vmware.vcloud.jms.activemq.impl.SystemUserCellBrokerAuthenticator.doAuthentication(SystemUserCellBrokerAuthenticator.java:75)+
+ at com.vmware.vcloud.jms.activemq.impl.CellAuthenticatedBrokerFactory.doAddConnection(CellAuthenticatedBrokerFactory.java:182)+
+ at com.vmware.vcloud.jms.activemq.impl.CellAuthenticatedBrokerFactory.access$100(CellAuthenticatedBrokerFactory.java:43)+
+ at com.vmware.vcloud.jms.activemq.impl.CellAuthenticatedBrokerFactory$1.addConnection(CellAuthenticatedBrokerFactory.java:101)+
+ at org.apache.activemq.broker.MutableBrokerFilter.addConnection(MutableBrokerFilter.java:89)+
+ at org.apache.activemq.broker.TransportConnection.processAddConnection(TransportConnection.java:686)+
+ at org.apache.activemq.command.ConnectionInfo.visit(ConnectionInfo.java:134)+
+ at org.apache.activemq.broker.TransportConnection.service(TransportConnection.java:308)+
+ at org.apache.activemq.broker.TransportConnection$1.onCommand(TransportConnection.java:182)+
+ at org.apache.activemq.transport.ResponseCorrelator.onCommand(ResponseCorrelator.java:109)+
+ at org.apache.activemq.transport.TransportFilter.onCommand(TransportFilter.java:68)+
+ at org.apache.activemq.transport.vm.VMTransport.iterate(VMTransport.java:204)+
+ at org.apache.activemq.thread.PooledTaskRunner.runTask(PooledTaskRunner.java:122)+
+ at org.apache.activemq.thread.PooledTaskRunner$1.run(PooledTaskRunner.java:43)+
+ at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)+
+ at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)+
+ ... 1 more+
Caused by: javax.crypto.BadPaddingException: Given final block not properly padded
+ at com.sun.crypto.provider.SunJCE_f.b(DashoA13*..)+
+ at com.sun.crypto.provider.SunJCE_f.b(DashoA13*..)+
+ at com.sun.crypto.provider.AESCipher.engineDoFinal(DashoA13*..)+
+ at javax.crypto.Cipher.doFinal(DashoA13*..)+
+ at com.vmware.ssdc.util.AesEncryption.v2Decrypt(AesEncryption.java:171)+
+ at com.vmware.ssdc.util.AesEncryption.Decrypt(AesEncryption.java:130)+
+ ... 19 more+
2010-10-18 11:11:23,467 | INFO | SpringOsgiExtenderThread-11 | AbstractCellApplication | Application shutdown event: Beginning |
2010-10-18 11:11:25,474 | INFO | SpringOsgiExtenderThread-11 | AbstractCellApplication | Application shutdown event: Application stop requested. Shutting down. |
2010-10-18 11:11:28,236 | INFO | Cell shutdown hook | AbstractCellApplication | Application shutdown event: Received stop signal. Shutting down. |
2010-10-18 11:11:28,236 | WARN | Cell shutdown hook | AbstractCellApplication | Application shutdown event: Shutdown already in progress. Ignoring request. |
If you found this or any other answer useful please consider the use of the Helpful or correct buttons to award points
I recommend scanning these other two related threads that have some suggestions for fixing the problem:
From configuration step it seems to be working, but just after I start services then in vcloud-containter-info.log there are errors like provided above, and it does not seem to work.
Welcome to the Cloud Director configuration utility.
You will be prompted to enter a number of parameters that are necessary to
configure and start the Cloud Director service.
Please enter the path to the Java keystore containing your SSL certificates and
private keys: /tmp/certificates.ks
Error: unable to read file /tmp/certificates.ks. Please correct the file permissions.
Please enter the path to the Java keystore containing your SSL certificates and
private keys: /tmp/certificates.ks
Error: unable to read file /tmp/certificates.ks. Please correct the file permissions.
Please enter the path to the Java keystore containing your SSL certificates and
private keys: certificates.ks
Please enter the password for the keystore:
Connecting to the database: jdbc:oracle:thin:@vcenter:1521/cloud
Database configuration complete.
Cloud Director configuration is now complete.
Once the Cloud Director server has been started you will be able to
access the first-time setup wizard at this URL:
Would you like to start the Cloud Director service now? If you choose not
to start it now, you can manually start it at any time using this command:
service vmware-vcd start
The VCD service will be started automatically on boot. To disable this,
use the following command: chkconfig --del vmware-vcd
If you found this or any other answer useful please consider the use of the Helpful or correct buttons to award points
I recommend scanning these other two related threads that have some suggestions for fixing the problem:
VMWare vCloud Director(Ver. 1.0.0 , Build 285979 64 bit) on Centos 5.5 (64 bit)
I ran into the same error in a little different situation.
I was sucessfull in installing and configuring my VCD1 (first instance of Cloud Director) and Oracle server along with the vShield Manager.
I wanted to setup a second instance of Cloud Director (say VCD2) in a Cluster configuration that connects to the same Oracle server that is configured with VCD1.
I followed all the same steps as VCD1 and ran into the same error "javax.crypto.BadPaddingException: Given final block not properly padded" I noticed that I missed a step during installation and when I re-installed using the (r option) as mentioned in the Page 27 in the Install Guide, it fixed my error.
Here it is:
4 Run the installation file, supplying the pathname of the response file that you saved after you installed the first server host. Specify the -r option on the installation command line, and supply the full pathname to the response file as the argument to that option. installation-file -r <path-to-response-file> I copied the response file (/opt/vmware/cloud-director/etc/responses.properties) from VCD1 to VCD2 and used it during installation.
: ./<installation-file-name>.bin -r /opt/responses.properties
Hope this helps.
Madhuri Suda
I managed to solve this problem. Problem in my case was, that after I setup Oracle DB on windows server, then after a while I renamed a server and this was the issue. I had to reinstall Oracle DB, then re-configure it as previously, and then vCD worked again like a charm
If you found this or any other answer useful please consider the use of the Helpful or correct buttons to award points
In my case this helped
the configuration script is expecting the private key file to be readable by the vcloud user. To resolve the issue, you can change the ownership of the private key file to the vcloud user and group, like this:
`sudo chown vcloud:vcloud /etc/pki/tls/private/vcd.key`