cocoon in combination with spring and hibernate3 - problems
Hi,
I'm using the cocoon-framework in combination with spring1.2 and hibernate3.
When I'm trying to start cocoon, it gives me an error loading the spring-framework.
exception at bottom:
...
18:27:45.937 EVENT Loading Spring root WebApplicationContext
...
INFO [main] (XmlBeanDefinitionReader.java:132) - Loading XML bean definitions from class path resource [de/fhkempten/webedi/cocoon/portal/spring/applicationContext.xml]
...
INFO [main] (AbstractBeanFactory.java:218) - Creating shared instance of singleton bean 'sessionFactory'
Starting HSQL server...
...
[Server@acb158]: Initiating startup sequence...
INFO [main] (Environment.java:460) - Hibernate 3.0
INFO [main] (Environment.java:506) - using CGLIB reflection optimizer
...
[Server@acb158]: Server socket opened successfully in 688 ms.
INFO [main] (HbmBinder.java:258) - Mapping class: de.fhkempten.webedi.cocoon.portal.model.Group -> Grouptable
...
INFO [main] (SessionFactoryImpl.java:140) - building session factory
WARN [main] (Configurator.java:126) - No configuration found. Configuring ehcache from ehcache-failsafe.xml found in the classpath: jar:file:/C:/Test/cocoon-2.1.7_spring_hibernate3/build/webapp/WEB-INF/lib/
WARN [main] (EhCacheProvider.java:97) - Could not find configuration [de.fhkempten.webedi.cocoon.portal.model.Billing]; using defaults.
WARN [main] (EhCacheProvider.java:97) - Could not find configuration [de.fhkempten.webedi.cocoon.portal.model.Inventory]; using defaults.
WARN [main] (EhCacheProvider.java:97) - Could not find configuration [de.fhkempten.webedi.cocoon.portal.model.Country]; using defaults.
ERROR [main] (CGLIBLazyInitializer.java:103) - CGLIB Enhancement failed: de.fhkempten.webedi.cocoon.portal.model.Country
java.lang.IllegalArgumentException: Superclass has no null constructors but no arguments were given
at net.sf.cglib.proxy.Enhancer.emitConstructors(Enhan cer.java:783)
at net.sf.cglib.proxy.Enhancer.emit(Enhancer.java:749 )
Has someone got a clue what this means?
Thanks
jonny
What constructors do you have for Country?
Quote:
CGLIB Enhancement failed: de.fhkempten.webedi.cocoon.portal.model.Country
java.lang.IllegalArgumentException: Superclass has no null constructors but no arguments were given
I would play around with Country and any superclasses it has to see if you can fix it. Can you ever say "new Country()"?