Skip to Main Content

Integration

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

PetClinic (w/t Toplink ,HSQL DB)SpringframeworkDemo App setup issue

504881May 3 2006 — edited May 6 2006
Hi All,

I am tring very hard to setup petClinic Demo App provided in spring framework. i have configured the app to use TopLink with HSQL as my target DB.
when i try to deploy this app on OC4J, it fails with the following error
----------------
SEVERE: Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in ServletContext resource [WEB-INF/applicationContext-toplink.xml]: Cannot create inner bean 'org.springframework.samples.petclinic.toplink.HSQLPlatformWithNativeSequence#1c46ce0' while setting bean property 'databasePlatform'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.samples.petclinic.toplink.HSQLPlatformWithNativeSequence#1c46ce0' defined in ServletContext resource [WEB-INF/applicationContext-toplink.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.springframework.samples.petclinic.toplink.HSQLPlatformWithNativeSequence]: Constructor threw exception; nested exception is java.lang.NoSuchMethodError: org.springframework.samples.petclinic.toplink.HSQLPlatformWithNativeSequence.setUsesNativeSequencing(Z)V

Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.samples.petclinic.toplink.HSQLPlatformWithNativeSequence#1c46ce0' defined in ServletContext resource [WEB-INF/applicationContext-toplink.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.springframework.samples.petclinic.toplink.HSQLPlatformWithNativeSequence]: Constructor threw exception; nested exception is java.lang.NoSuchMethodError: org.springframework.samples.petclinic.toplink.HSQLPlatformWithNativeSequence.setUsesNativeSequencing(Z)V

Caused by: org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.springframework.samples.petclinic.toplink.HSQLPlatformWithNativeSequence]: Constructor threw exception; nested exception is java.lang.NoSuchMethodError: org.springframework.samples.petclinic.toplink.HSQLPlatformWithNativeSequence.setUsesNativeSequencing(Z)V

Caused by: java.lang.NoSuchMethodError: org.springframework.samples.petclinic.toplink.HSQLPlatformWithNativeSequence.setUsesNativeSequencing(Z)V

at org.springframework.samples.petclinic.toplink.HSQLPlatformWithNativeSequence.<init>(HSQLPlatformWithNativeSequence.java:27)

at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:82)
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:59)
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:52)

-----

can some one please help me to get this app running.

Thank you,
Raghavendra
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 3 2006
Added on May 3 2006
8 comments
800 views