VMware Cloud Community
JM_Almagro
Contributor
Contributor

Java Error

Hi to all!

I'm trying to configure vCloud in a RH5. I already installed all correctly, but I still get the 404 error.

In vcloud-debug.log I see a java error:

ERROR | SpringOsgiExtenderThread-11 | OsgiBundleXmlApplicationContext | Post refresh error |

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'hibernateCacheRegions': Cannot create inner bean 'org.springframework.cache.ehcache.EhCacheFactoryBean#360c7f06' 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#360c7f06' 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.

But I don't know what it means.... I see anything about decrypting, and I re-generated the certificates files, with same error...

Please somebody can help me?

Thanks in advance

0 Kudos
9 Replies
admin
Immortal
Immortal

Various passwords are stored (encrypted) in $VCLOUD_HOME/etc/global.properties. Each time the cell starts it uses the system encryption key to decrypt those values and connect to the database, etc. It sounds like you've got encrypted values that were not encrypted with the (currently set) encryption key.

You can either reset everything (DB, global.properties) or if you've got a responses.properties file you can reconfigure the misbehaving cell using that, but it's pretty involved to know which settings and files need to be cleared.

The quickest solution is to reset the database, uninstall the vCD RPM, and reinstall it (making sure that the existing configuration files in $VCLOUD_HOME/etc get removed when you uninstall to ensure you get fresh copies).

JM_Almagro
Contributor
Contributor

Hello!

Thanks for the quick response.

I did that you told me, and I don't get the error now. But I still get 404 error.

In vcloud-container-debug.log I see this lines:

2010-10-04 18:22:53,562 | ERROR | Timer-0 | DependencyWaiterApplicationContextExecutor | Unable to create application context for http://com.vmware.vcloud.ui.configuration, unsatisfied dependencies: Dependency on http://(objectClass=com.vmware.ssdc.backend.interfaces.services.BackendRootService) (from bean ), Dependency on http://(objectClass=com.vmware.vcloud.api.presentation.service.CatalogService) (from bean ), Dependency on http://(objectClass=com.vmware.vcloud.api.presentation.service.InitialConfigService) (from bean ), Dependency on http://(objectClass=com.vmware.vcloud.api.presentation.service.OrgService) (from bean ), Dependency on http://(objectClass=com.vmware.vcloud.api.presentation.service.RclService) (from bean ), Dependency on http://(objectClass=com.vmware.ssdc.backend.interfaces.ISecurityManager) (from bean ), Dependency on http://(objectClass=com.vmware.vcloud.api.presentation.service.SystemService) (from bean ), Dependency on http://(objectClass=com.vmware.vcloud.api.presentation.service.VdcService) (from bean ), Dependency on http://(objectClass=com.vmware.vcloud.vimproxy.VimProxyService) (from bean ), Dependency on http://(objectClass=com.vmware.vcloud.net.LogicalNetworkManager) (from bean ), Dependency on http://(objectClass=com.vmware.vcloud.net.IpScopeManager) (from bean ) |

org.springframework.context.ApplicationContextException: Application context initialization for 'com.vmware.vcloud.ui.configuration' has timed out

at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.timeout(DependencyWaiterApplicationContextExecutor.java:428)

at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.access$000(DependencyWaiterApplicationContextExecutor.java:51)

at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$WatchDogTask.run(DependencyWaiterApplicationContextExecutor.java:108)

at java.util.TimerThread.mainLoop(Timer.java:512)

at java.util.TimerThread.run(Timer.java:462)

And I'm lost again...

Thanks in advance

0 Kudos
JM_Almagro
Contributor
Contributor

Problem solved....

Like I saw this pasts days, DNS DNS DNS DNS DNS....

I has to add to my host file the IP of the vcloud director, and it works!!!!

Thanks for your help

0 Kudos
Sabirin
Contributor
Contributor

Hi JM_Almagro.

I'm having same problem with you,

i can't figured it what you mean by DNS DNS DNS DNS,

Could you please tell me the solution ?

Thanks

0 Kudos
admin
Immortal
Immortal

Ensure that all addresses are resolvable - forward & reverse lookup, long & short. This goes for the Linux system you're running vCD on, the IP addresses you've specified for the HTTP service and console proxy, the Oracle DB server hostname, and all of the vCenter Server/ESX IPs.

0 Kudos
JM_Almagro
Contributor
Contributor

Like kmsmith says, you must to be able to resolve all addresses by DNS, the short and FQDN name.

All elements involved in the infraestructure (vcloud, client, database server, etc) must resolve each other by DNS.

I hope I helped you with this.

0 Kudos
Sabirin
Contributor
Contributor

same error here....

i already fix the DNS configuration to resolv short, fqdn, ip but still no luck Smiley Sad

Does anyone have same experience with me ?

Thanks

2010-10-19 16:27:02,937 | ERROR | Timer-0 | DependencyWaiterApplicationContextExecutor | Unable to create application context for http://com.vmware.vcloud.ui.configuration, unsatisfied dependencies: Dependency on http://(objectClass=com.vmware.ssdc.backend.interfaces.services.BackendRootService) (from bean ), Dependency on http://(objectClass=com.vmware.vcloud.api.presentation.service.CatalogService) (from bean ), Dependency on http://(objectClass=com.vmware.vcloud.api.presentation.service.InitialConfigService) (from bean ), Dependency on http://(objectClass=com.vmware.vcloud.api.presentation.service.OrgService) (from bean ), Dependency on http://(objectClass=com.vmware.vcloud.api.presentation.service.RclService) (from bean ), Dependency on http://(objectClass=com.vmware.ssdc.backend.interfaces.ISecurityManager) (from bean ), Dependency on http://(objectClass=com.vmware.vcloud.api.presentation.service.SystemService) (from bean ), Dependency on http://(objectClass=com.vmware.vcloud.api.presentation.service.VdcService) (from bean ), Dependency on http://(objectClass=com.vmware.vcloud.vimproxy.VimProxyService) (from bean ), Dependency on http://(objectClass=com.vmware.vcloud.net.LogicalNetworkManager) (from bean ), Dependency on http://(objectClass=com.vmware.vcloud.net.IpScopeManager) (from bean ) |

org.springframework.context.ApplicationContextException: Application context initialization for 'com.vmware.vcloud.ui.configuration' has timed out

at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.timeout(DependencyWaiterApplicationContextExecutor.java:428)

at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.access$000(DependencyWaiterApplicationContextExecutor.java:51)

at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$WatchDogTask.run(DependencyWaiterApplicationContextExecutor.java:108)

at java.util.TimerThread.mainLoop(Timer.java:512)

at java.util.TimerThread.run(Timer.java:462)

0 Kudos
brugh
Enthusiast
Enthusiast

hm, same error here. i checked, doublechecked and rechecked the dns entries, even added a few cnames of things the cell MAY need, but no luck. i also still get the java errors. is there a log i can upload for somebody to know what's going wrong?

0 Kudos
admin
Immortal
Immortal

You can run $VCLOUD_HOME/bin/vmware-vcd-support to generate a tarball of the logs and system information, which can then be attached to a support request.

0 Kudos