Hello,
I recently downloaded spring rc 1.1 . We are using spring + ejb on JBoss. I replaced the spring jars ( all jars form dist folder ) in jboss. But when i deploy my application and run it gives following error.
Error registering bean with name 'transactionManager' defined in class path resource [applicationContext-hibernate.xml]: Class that bean class [org.springframework.orm.hibernate.HibernateTransactionManager] depends on not found; nested exception is java.lang.NoClassDefFoundError: org/aopalliance/aop/AspectException
And when i put aopalliance.jar in my jboss lib it works fine. It means that aopalliance.jar is missing from ditribution. Please fix this.
Regards,
Shoaib Akhtar
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
aopallliance.jar can be found in lib/aopalliance, in the spring-framework-1.1-rc1-with-dependencies download. It's *not* part of spring.jar, as it is a separate project which we simply include the prebuilt jar file from.
BTW, regarding jars in dist directory: Note that those files are overlapping, i.e. take either the full spring.jar *or* an appropriate combination of spring-xxx.jar files. Else, you'd effectively have everything twice in your classpath.
Juergen
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2004-08-05
Hello,
Thanks Juergen for your reply. Actualliy i wondered why it was working before as in Spring 1 i have not placed aopalliance.jar in jboss lib folder.
Regrads,
Shoaib Akhtar
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello,
I recently downloaded spring rc 1.1 . We are using spring + ejb on JBoss. I replaced the spring jars ( all jars form dist folder ) in jboss. But when i deploy my application and run it gives following error.
Error registering bean with name 'transactionManager' defined in class path resource [applicationContext-hibernate.xml]: Class that bean class [org.springframework.orm.hibernate.HibernateTransactionManager] depends on not found; nested exception is java.lang.NoClassDefFoundError: org/aopalliance/aop/AspectException
And when i put aopalliance.jar in my jboss lib it works fine. It means that aopalliance.jar is missing from ditribution. Please fix this.
Regards,
Shoaib Akhtar
aopallliance.jar can be found in lib/aopalliance, in the spring-framework-1.1-rc1-with-dependencies download. It's *not* part of spring.jar, as it is a separate project which we simply include the prebuilt jar file from.
BTW, regarding jars in dist directory: Note that those files are overlapping, i.e. take either the full spring.jar *or* an appropriate combination of spring-xxx.jar files. Else, you'd effectively have everything twice in your classpath.
Juergen
Hello,
Thanks Juergen for your reply. Actualliy i wondered why it was working before as in Spring 1 i have not placed aopalliance.jar in jboss lib folder.
Regrads,
Shoaib Akhtar