> This is the reason why my the instructions for my CHS [1] sample app
> explicitly state that you should *exclude* the hsqldb Cocoon block from
> the build. Inside CHS there is a Spring component that wraps HSQLDB and
> ensures that it is available before the datasource is initialized. I
> did that for exactly the same reasons you mention here.
>
> [1] http://cocoondev.org/main/117/43.html
Oooooh... This is really interesting ! Do you think it's possible for
me to integrate such a component in my application ? How ? (I've tried
to download and install CHS but I have weird java path issues I don't
understand... :oS)
On the other hand I've tried to setup a MySQL 4.1.11 database with a
mysql-connector-J 3.1.8 and when the application is initialized, I get
some ClassNotFoundException on org.aspectj.lang.Signature ! (see the
error in error.log)
And Google didn't help me much on that. Any idea ?
--
Sebastien ARBOGAST
- Creating shared instance of singleton bean 'sessionFactory'
- Creating shared instance of singleton bean 'dataSource'
- Destroying singletons in factory
{org.springframework.beans.factory.support.DefaultListableBeanFactory defining
beans
[messageSource,sessionFactory,hibernateInterceptor,transactionManager,roleDao,roleDaoTarget,userDao,userDaoTarget,privilegeDao,privilegeDaoTarget,moduleDao,moduleDaoTarget,siteDao,siteDaoTarget,serviceTransactionInterceptor,rolesManagementTarget,rolesManagement,usersManagementTarget,usersManagement,modulesManagementTarget,modulesManagement,securityManagementTarget,securityManagement,dataSource];
root of BeanFactory hierarchy}
- Destroying singletons in factory
{org.springframework.beans.factory.support.DefaultListableBeanFactory defining
beans [beanRefFactory]; root of BeanFactory hierarchy}
- Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'beanRefFactory' defined in ServletContext resource
[/WEB-INF/classes/beanRefFactory.xml]: Instantiation of bean failed; nested
exception is org.springframework.beans.FatalBeanException: Could not
instantiate class
[org.springframework.context.support.ClassPathXmlApplicationContext];
constructor threw exception; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'sessionFactory' defined in class path resource
[applicationContext.xml]: Can't resolve reference to bean 'dataSource' while
setting property 'dataSource'; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'dataSource' defined in class path resource
[applicationContext-dataSource.xml]: Error setting property values; nested
exception is org.springframework.beans.PropertyAccessExceptionsException:
PropertyAccessExceptionsException (1 errors); nested propertyAccessExceptions
are: [org.springframework.beans.MethodInvocationException: Property
'driverClassName' threw exception; nested exception is
java.lang.NoClassDefFoundError: org/aspectj/lang/Signature]
org.springframework.beans.FatalBeanException: Could not instantiate class
[org.springframework.context.support.ClassPathXmlApplicationContext];
constructor threw exception; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'sessionFactory' defined in class path resource
[applicationContext.xml]: Can't resolve reference to bean 'dataSource' while
setting property 'dataSource'; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'dataSource' defined in class path resource
[applicationContext-dataSource.xml]: Error setting property values; nested
exception is org.springframework.beans.PropertyAccessExceptionsException:
PropertyAccessExceptionsException (1 errors); nested propertyAccessExceptions
are: [org.springframework.beans.MethodInvocationException: Property
'driverClassName' threw exception; nested exception is
java.lang.NoClassDefFoundError: org/aspectj/lang/Signature]
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'sessionFactory' defined in class path resource
[applicationContext.xml]: Can't resolve reference to bean 'dataSource' while
setting property 'dataSource'; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'dataSource' defined in class path resource
[applicationContext-dataSource.xml]: Error setting property values; nested
exception is org.springframework.beans.PropertyAccessExceptionsException:
PropertyAccessExceptionsException (1 errors); nested propertyAccessExceptions
are: [org.springframework.beans.MethodInvocationException: Property
'driverClassName' threw exception; nested exception is
java.lang.NoClassDefFoundError: org/aspectj/lang/Signature]
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'dataSource' defined in class path resource
[applicationContext-dataSource.xml]: Error setting property values; nested
exception is org.springframework.beans.PropertyAccessExceptionsException:
PropertyAccessExceptionsException (1 errors); nested propertyAccessExceptions
are: [org.springframework.beans.MethodInvocationException: Property
'driverClassName' threw exception; nested exception is
java.lang.NoClassDefFoundError: org/aspectj/lang/Signature]
PropertyAccessExceptionsException (1 errors)
org.springframework.beans.MethodInvocationException: Property 'driverClassName'
threw exception; nested exception is java.lang.NoClassDefFoundError:
org/aspectj/lang/Signature
java.lang.NoClassDefFoundError: org/aspectj/lang/Signature
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at
org.springframework.jdbc.datasource.DriverManagerDataSource.setDriverClassName(DriverManagerDataSource.java:85)...
...---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]