Using Resin 3.0.8, Turbine 2.4-cvs, Merlin 3.2, Maven 1.0
Hibernate version:
2.1.6
Mapping documents:
The one loaded by Hibernate:
Code:
<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC
"-//Hibernate/Hibernate Mapping DTD//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd">
<hibernate-mapping>
<class name="com.fis.om.Application">
<id column="id" name="id">
<generator class="native" />
</id>
<property name="discount" />
<property name="start">
<column name="start" sql-type="DATE" />
</property>
<property name="end">
<column name="end" sql-type="DATE" />
</property>
<many-to-one name="company" class="com.fis.om.Company" />
<many-to-one name="package" class="com.fis.om.ServicePackage" />
<many-to-one name="tariff" class="com.fis.om.Tariff" />
<set
name="services"
>
<key column="application" />
<one-to-many class="com.fis.om.ApplicationService" />
</set>
</class>
</hibernate-mapping>
Code between sessionFactory.openSession() and session.close():N/A
Name and version of the database you are using:MySQL 4.0.13-beta
The generated SQL (show_sql=true):N/A
Debug level log excerpt:Code:
[08:31:25.110] Start Initializing service (early): MerlinComponentService
[DEBUG ] (kernel.logging): default priority: DEBUG
[DEBUG ] (kernel.logging): adding category: kernel, null
[DEBUG ] (kernel.context): logging system established
[DEBUG ] (kernel.context): setting runtime repository to: /root/.merlin/repository
[DEBUG ] (kernel.context): repository established: /root/.merlin/repository
${user.dir}: /usr/local/SUNWappserver/resin
${merlin.home}: /root/.merlin
Version: Merlin SMP 3.0
Build: ERROR-MISSING-PROPERTIES: snapshot.properties
Environment: Linux 2.4.20-9asp Java 1.4.2_04
Deployment Home: ${user.dir}/webapps/sales
System Repository: /usr/local/SUNWappserver/resin/webapps/sales/merlin/dud
Runtime Repository: /root/.merlin/repository
Library Anchor: ${user.dir}
Kernel Path: file:${user.dir}/webapps/sales/WEB-INF/conf/merlin/kernel.xml
Deployment Blocks: file:${user.dir}/webapps/sales/WEB-INF/conf/merlin/
Override Path:
Server Flag: true
Debug Flag: true
[DEBUG ] (kernel.logging): adding category: kernel, null
[DEBUG ] (kernel.context): model factory established
[DEBUG ] (kernel.logging): adding category: , null
[DEBUG ] (kernel.logging): adding category: , null
[DEBUG ] (classloader): base: ${user.dir}
[DEBUG ] (classloader): classpath:
[DEBUG ] (classloader.types): type install count: 0
[DEBUG ] (kernel): creating root containment context
[DEBUG ] (kernel): construction phase
[DEBUG ] (kernel): install phase
[INFO ] (kernel): installing: file:${user.dir}/webapps/sales/WEB-INF/conf/merlin/
[DEBUG ] (): including composite block: file:/usr/local/SUNWappserver/resin/webapps/sales/WEB-INF/conf/merlin/BLOCK-INF/block.xml
[DEBUG ] (): installing: salesWebApp
[DEBUG ] (kernel.logging): adding category: salesWebApp, null
[DEBUG ] (kernel.logging): adding category: salesWebApp, null
[DEBUG ] (salesWebApp.classloader): base: ${user.dir}
[DEBUG ] (salesWebApp): implicit entries: 1
[DEBUG ] (salesWebApp): repository declarations: 1
[DEBUG ] (salesWebApp): repository 0 contains 3 entries.
[DEBUG ] (salesWebApp.classloader): classpath: file:${user.dir}/webapps/sales/WEB-INF/conf/merlin/;file:/root/.merlin/repository/avalon-framework/jars/avalon-framework-impl-4.1.5.jar;file:/root/.merlin/repository/fis/jars/fis-om-impl-1.0.jar;file:/root/.merlin/repository/fis-sales/jars/fis-sales-1.0.jar
[DEBUG ] (salesWebApp.classloader.scanner): scanning: file:${user.dir}/webapps/sales/WEB-INF/conf/merlin/
[DEBUG ] (salesWebApp.classloader.scanner): scanning: file:/root/.merlin/repository/avalon-framework/jars/avalon-framework-impl-4.1.5.jar
[DEBUG ] (salesWebApp.classloader.scanner): scanning: file:/root/.merlin/repository/fis/jars/fis-om-impl-1.0.jar
[DEBUG ] (salesWebApp.classloader.scanner): type: com.fis.hibernate.HibernateServiceImpl
[DEBUG ] (salesWebApp.classloader.scanner): type: com.fis.hibernate.ProxoolConfiguratorImpl
[DEBUG ] (salesWebApp.classloader.scanner): type: com.fis.dao.impl.DaoFactoryImpl
[DEBUG ] (salesWebApp.classloader.scanner): scanning: file:/root/.merlin/repository/fis-sales/jars/fis-sales-1.0.jar
[DEBUG ] (salesWebApp.classloader.scanner): type: com.fis.request.ObjectRequestServiceImpl
[DEBUG ] (salesWebApp.classloader.types): type install count: 4
[DEBUG ] (salesWebApp.classloader.types): registered [type:com.fis.hibernate.HibernateServiceImpl/1].
[DEBUG ] (salesWebApp.classloader.types): registered [type:com.fis.hibernate.ProxoolConfiguratorImpl/1].
[DEBUG ] (salesWebApp.classloader.types): registered [type:com.fis.dao.impl.DaoFactoryImpl/1].
[DEBUG ] (salesWebApp.classloader.types): registered [type:com.fis.request.ObjectRequestServiceImpl/1].
[DEBUG ] (salesWebApp): installing: proxool
[DEBUG ] (salesWebApp): installing: hibernate
[DEBUG ] (salesWebApp): installing: objectRequest
[DEBUG ] (kernel): customization phase
[DEBUG ] (kernel): state: initialized
[DEBUG ] (kernel): kernel established
[DEBUG ] (kernel): state: starting
[DEBUG ] (kernel): state: model composition
[DEBUG ] (kernel.logging): adding category: , null
[DEBUG ] (): creating block: /salesWebApp
[DEBUG ] (kernel.logging): adding category: salesWebApp, null
[DEBUG ] (kernel.logging): adding category: salesWebApp, null
[DEBUG ] (salesWebApp): creating appliance: /salesWebApp/hibernate
[DEBUG ] (kernel.logging): adding category: salesWebApp.hibernate, null
[DEBUG ] (salesWebApp): creating appliance: /salesWebApp/proxool
[DEBUG ] (kernel.logging): adding category: salesWebApp.proxool, null
[DEBUG ] (salesWebApp): creating appliance: /salesWebApp/objectRequest
[DEBUG ] (kernel.logging): adding category: salesWebApp.objectRequest, null
[DEBUG ] (kernel): state: model assembly
[DEBUG ] (kernel): assembly phase
[DEBUG ] (): assembly phase
[DEBUG ] (salesWebApp): assembly phase
[DEBUG ] (salesWebApp.objectRequest.appliance): assembly phase
[DEBUG ] (salesWebApp.proxool.appliance): assembly phase
[DEBUG ] (salesWebApp.hibernate.appliance): assembly phase
[DEBUG ] (salesWebApp): resolving provider for: [com.fis.hibernate.ProxoolConfigurator] com.fis.hibernate.ProxoolConfigurator:1.0.0
[DEBUG ] (salesWebApp.hibernate.appliance): assigning service provider for key (com.fis.hibernate.ProxoolConfigurator): appliance:/salesWebApp/proxool
[DEBUG ] (kernel): state: block deployment
[DEBUG ] (kernel): deployment phase
[DEBUG ] (): deployment: block:/salesWebApp
[DEBUG ] (salesWebApp): deployment: appliance:/salesWebApp/proxool, appliance:/salesWebApp/hibernate, appliance:/salesWebApp/objectRequest
[DEBUG ] (salesWebApp.proxool.appliance): deployment (singleton/hard) [true]
[DEBUG ] (salesWebApp.proxool.appliance): new instance: 27134372
[DEBUG ] (salesWebApp.proxool.appliance): applying configuration to: 27134372
[DEBUG ] (salesWebApp.proxool.appliance): applying initialization to: 27134372
[DEBUG ] (salesWebApp.proxool.appliance): established: 27134372
[DEBUG ] (salesWebApp.proxool.appliance): activated instance: 16780239
[DEBUG ] (salesWebApp.hibernate.appliance): deployment (singleton/hard) [true]
[DEBUG ] (salesWebApp.hibernate.appliance): new instance: 480508
[DEBUG ] (salesWebApp.hibernate.appliance): applying service manager to: 480508
[DEBUG ] (salesWebApp.hibernate.appliance): resolved service [16780239] for the key [com.fis.hibernate.ProxoolConfigurator].
[DEBUG ] (salesWebApp.hibernate.appliance): applying configuration to: 480508
[08:31:27.790] Hibernate 2.1.6
[08:31:27.794] hibernate.properties not found
[08:31:27.802] using CGLIB reflection optimizer
[08:31:27.833] Mapping resource: com/fis/om/Application.hbm.xml
[08:31:28.579] Mapping class: com.fis.om.Application -> Application
[DEBUG ] (kernel): state: initialized
[08:31:29.715] Turbine/Merlin problem.
[08:31:29.715]
[08:31:29.715]
[08:31:29.715] ---- report -------------------------------------------------------
[08:31:29.715]
[08:31:29.715] Exception: org.apache.avalon.merlin.kernel.KernelException
[08:31:29.715] Message: Deployment failure.
[08:31:29.715]
[08:31:29.715] Cause: org.apache.avalon.activation.appliance.DeploymentException
[08:31:29.715] Message: Composite deployment failure in block: [block:/salesWebApp]
[08:31:29.715]
[08:31:29.715] Cause: org.apache.avalon.activation.lifecycle.LifecycleException
[08:31:29.715] Message: Unable to create a new component instance in appliance [/salesWebApp/hibernate] due to a component deployment failure.
[08:31:29.715]
[08:31:29.715] Cause: java.lang.NoClassDefFoundError
[08:31:29.715] Message: net/sf/hibernate/collection/Set
[08:31:29.715] ---- stack trace ---------------------------------------------------
[08:31:29.715]
[08:31:29.715] java.lang.NoClassDefFoundError: net/sf/hibernate/collection/Set
[08:31:29.715] at net.sf.hibernate.type.TypeFactory.set(TypeFactory.java:198)
[08:31:29.715] at net.sf.hibernate.mapping.Set.getCollectionType(Set.java:29)
[08:31:29.715] at net.sf.hibernate.mapping.Collection.getType(Collection.java:275)
[08:31:29.715] at net.sf.hibernate.cfg.Binder.bindProperty(Binder.java:454)
[08:31:29.715] at net.sf.hibernate.cfg.Binder.createProperty(Binder.java:1081)
[08:31:29.715] at net.sf.hibernate.cfg.Binder.propertiesFromXML(Binder.java:1061)
[08:31:29.715] at net.sf.hibernate.cfg.Binder.bindRootClass(Binder.java:362)
[08:31:29.715] at net.sf.hibernate.cfg.Binder.bindRoot(Binder.java:1256)
[08:31:29.715] at net.sf.hibernate.cfg.Configuration.add(Configuration.java:252)
[08:31:29.715] at net.sf.hibernate.cfg.Configuration.addInputStream(Configuration.java:288)
[08:31:29.715] at net.sf.hibernate.cfg.Configuration.addClass(Configuration.java:354)
[08:31:29.715] at com.fis.hibernate.HibernateServiceImpl.configure(HibernateServiceImpl.java:73)
[08:31:29.715] at org.apache.avalon.activation.appliance.impl.DefaultAppliance.applyConfiguration(DefaultAppliance.java:764)
[08:31:29.715] at org.apache.avalon.activation.appliance.impl.DefaultAppliance.access$1000(DefaultAppliance.java:112)
[08:31:29.715] at org.apache.avalon.activation.appliance.impl.DefaultAppliance$StandardFactory.newInstance(DefaultAppliance.java:1290)
[08:31:29.715] at org.apache.avalon.activation.lifestyle.impl.SingletonLifestyleHandler.refreshReference(SingletonLifestyleHandler.java:138)
[08:31:29.715] at org.apache.avalon.activation.lifestyle.impl.SingletonLifestyleHandler.resolve(SingletonLifestyleHandler.java:88)
[08:31:29.715] at org.apache.avalon.activation.appliance.impl.DefaultAppliance.resolve(DefaultAppliance.java:566)
[08:31:29.715] at org.apache.avalon.activation.appliance.impl.DefaultAppliance.deploy(DefaultAppliance.java:508)
[08:31:29.715] at org.apache.avalon.activation.appliance.impl.DefaultBlock.deploy(DefaultBlock.java:623)
[08:31:29.715] at org.apache.avalon.activation.appliance.impl.BlockThread.run(BlockThread.java:111)
[08:31:29.715]
[08:31:29.715] -------------------------------------------------------------------
Turbine/Merlin problem.
---- report -------------------------------------------------------
Exception: org.apache.avalon.merlin.kernel.KernelException
Message: Deployment failure.
Cause: org.apache.avalon.activation.appliance.DeploymentException
Message: Composite deployment failure in block: [block:/salesWebApp]
Cause: org.apache.avalon.activation.lifecycle.LifecycleException
Message: Unable to create a new component instance in appliance [/salesWebApp/hibernate] due to a component deployment failure.
Cause: java.lang.NoClassDefFoundError
Message: net/sf/hibernate/collection/Set
---- stack trace ---------------------------------------------------
java.lang.NoClassDefFoundError: net/sf/hibernate/collection/Set
at net.sf.hibernate.type.TypeFactory.set(TypeFactory.java:198)
at net.sf.hibernate.mapping.Set.getCollectionType(Set.java:29)
at net.sf.hibernate.mapping.Collection.getType(Collection.java:275)
at net.sf.hibernate.cfg.Binder.bindProperty(Binder.java:454)
at net.sf.hibernate.cfg.Binder.createProperty(Binder.java:1081)
at net.sf.hibernate.cfg.Binder.propertiesFromXML(Binder.java:1061)
at net.sf.hibernate.cfg.Binder.bindRootClass(Binder.java:362)
at net.sf.hibernate.cfg.Binder.bindRoot(Binder.java:1256)
at net.sf.hibernate.cfg.Configuration.add(Configuration.java:252)
at net.sf.hibernate.cfg.Configuration.addInputStream(Configuration.java:288)
at net.sf.hibernate.cfg.Configuration.addClass(Configuration.java:354)
at com.fis.hibernate.HibernateServiceImpl.configure(HibernateServiceImpl.java:73)
at org.apache.avalon.activation.appliance.impl.DefaultAppliance.applyConfiguration(DefaultAppliance.java:764)
at org.apache.avalon.activation.appliance.impl.DefaultAppliance.access$1000(DefaultAppliance.java:112)
at org.apache.avalon.activation.appliance.impl.DefaultAppliance$StandardFactory.newInstance(DefaultAppliance.java:1290)
at org.apache.avalon.activation.lifestyle.impl.SingletonLifestyleHandler.refreshReference(SingletonLifestyleHandler.java:138)
at org.apache.avalon.activation.lifestyle.impl.SingletonLifestyleHandler.resolve(SingletonLifestyleHandler.java:88)
at org.apache.avalon.activation.appliance.impl.DefaultAppliance.resolve(DefaultAppliance.java:566)
at org.apache.avalon.activation.appliance.impl.DefaultAppliance.deploy(DefaultAppliance.java:508)
at org.apache.avalon.activation.appliance.impl.DefaultBlock.deploy(DefaultBlock.java:623)
at org.apache.avalon.activation.appliance.impl.BlockThread.run(BlockThread.java:111)
-------------------------------------------------------------------
[08:31:29.721] Finish Initializing service (early): MerlinComponentService
Seems like a classloader problem, but I'm not sure. How can it be that one file from hibernate-2.1.6.jar is loaded and other is inaccassible?