Results 1 to 2 of 2

Thread: cocoon in combination with spring and hibernate3 - problems

  1. #1
    Join Date
    Apr 2005
    Posts
    9

    Default 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

  2. #2
    Join Date
    Feb 2005
    Posts
    217

    Default What constructors do you have for Country?

    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()"?

Similar Threads

  1. Replies: 6
    Last Post: Sep 2nd, 2005, 05:03 AM
  2. Replies: 0
    Last Post: May 20th, 2005, 02:14 PM
  3. Upgrade to Hibernate3 - Spring 1.2
    By maniestaloca in forum Data
    Replies: 11
    Last Post: Apr 22nd, 2005, 05:46 AM
  4. Spring and Hibernate3
    By pascal in forum Data
    Replies: 4
    Last Post: Jan 4th, 2005, 01:58 AM
  5. Replies: 5
    Last Post: Sep 2nd, 2004, 12:03 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •