[jboss-user] [JBoss/Spring Integration] - Re: Jboss 5 Beta 4 Spring Problems
ragavgomatam
do-not-reply at jboss.com
Sun Feb 24 18:53:06 EST 2008
OK Ales....I think the problem is with the spring deployer...I did the following
(1) I installed twice jboss 5 beta 4 with and without spring deployer.
(2) In the jboss 5 beta 4 without spring deployer, I installed a WAR file ( spring 2.5 + struts + ibatis ) ....This installed fine and worked without any problem.
(3) I installed this same WAR in tomcat 6.0.1.4 and it installed fine without errors and worked fine.....
(4) I installed the same WAR file in jboss 5 beta 4 WITH spring deployer ( deployer + change in ejb3-aop-interceptors.xml) ....
(5) Problems started top appear......
(6) Removed the WAR (spring 2.5 + struts 1.2.9 + ibatis ) ....
(7) Installed JUST my Ejb 3 EAR with spring injection ....( Ejb 3 + Spring injection into ejb 3) ...Worked fine.....
Guess problem is ONLY when you have a Spring WAR with a Spring deployer...Errors start to appear and application does not install....
Using spring deployer 3.0
Error trace :-
18:50:01,562 INFO [ServerImpl] JBoss (Microcontainer) [5.0.0.Beta4 (build: SVNTag=JBoss_5_0_0_Beta4 date=200802091115)] Started in 42s:0ms
| 18:50:20,578 WARN [ClassLoaderManager] Unexpected error during load of:org.springframework.aop.framework.ProxyCreatorSupport
| java.lang.VerifyError: org/springframework/aop/framework/ProxyCreatorSupport: attempting to override final method org/springframework/aop/framework/AdvisedSupport.adviceChanged()V
| at java.lang.ClassLoader.defineClass1(Native Method)
| at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
| at org.jboss.classloader.spi.base.BaseClassLoader.access$200(BaseClassLoader.java:58)
| at org.jboss.classloader.spi.base.BaseClassLoader$1.run(BaseClassLoader.java:362)
| at org.jboss.classloader.spi.base.BaseClassLoader$1.run(BaseClassLoader.java:321)
| at org.jboss.classloader.spi.base.BaseClassLoader.loadClassLocally(BaseClassLoader.java:320)
| at org.jboss.classloader.spi.base.BaseClassLoader.loadClassLocally(BaseClassLoader.java:293)
| at org.jboss.classloader.spi.base.BaseDelegateLoader.loadClass(BaseDelegateLoader.java:75)
| at org.jboss.classloader.spi.filter.FilteredDelegateLoader.loadClass(FilteredDelegateLoader.java:91)
| at org.jboss.classloader.spi.base.ClassLoadingTask$ThreadTask.run(ClassLoadingTask.java:449)
| at org.jboss.classloader.spi.base.ClassLoaderManager.nextTask(ClassLoaderManager.java:251)
| at org.jboss.classloader.spi.base.ClassLoaderManager.process(ClassLoaderManager.java:145)
| at org.jboss.classloader.spi.base.BaseClassLoaderDomain.loadClass(BaseClassLoaderDomain.java:193)
| at org.jboss.classloader.spi.base.BaseClassLoaderDomain.loadClass(BaseClassLoaderDomain.java:1006)
| at org.jboss.classloader.spi.base.BaseClassLoader.loadClassFromDomain(BaseClassLoader.java:584)
| at org.jboss.classloader.spi.base.BaseClassLoader.loadClass(BaseClassLoader.java:234)
| at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
| at org.jboss.deployment.AnnotatedClassFilter.accepts(AnnotatedClassFilter.java:112)
| at org.jboss.deployment.AnnotatedClassFilter.visit(AnnotatedClassFilter.java:93)
| at org.jboss.virtual.plugins.vfs.helpers.WrappingVirtualFileHandlerVisitor.visit(WrappingVirtualFileHandlerVisitor.java:62)
| at org.jboss.virtual.plugins.context.AbstractVFSContext.visit(AbstractVFSContext.java:196)
| at org.jboss.virtual.plugins.context.AbstractVFSContext.visit(AbstractVFSContext.java:208)
| at org.jboss.virtual.plugins.context.AbstractVFSContext.visit(AbstractVFSContext.java:208)
| at org.jboss.virtual.plugins.context.AbstractVFSContext.visit(AbstractVFSContext.java:208)
| at org.jboss.virtual.plugins.context.AbstractVFSContext.visit(AbstractVFSContext.java:208)
| at org.jboss.virtual.plugins.context.AbstractVFSContext.visit(AbstractVFSContext.java:141)
| at org.jboss.virtual.VFS.visit(VFS.java:336)
| at org.jboss.virtual.VirtualFile.visit(VirtualFile.java:363)
| at org.jboss.deployment.AnnotationMetaDataDeployer.deploy(AnnotationMetaDataDeployer.java:157)
| at org.jboss.deployment.AnnotationMetaDataDeployer.deploy(AnnotationMetaDataDeployer.java:90)
| at 18:50:20,609 WARN [ClassLoaderManager] Unexpected error during load of:org.springframework.aop.support.MethodMatchers$ClassFilterAwareUnionMethodMatcher
| java.lang.IllegalAccessError: org/springframework/aop/support/MethodMatchers$ClassFilterAwareUnionMethodMatcher : org/springframework/aop/support/MethodMatchers$UnionMethodMatcher
| at java.lang.ClassLoader.defineClass1(Native Method)
| at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
| at org.jboss.classloader.spi.base.BaseClassLoader.access$200(BaseClassLoader.java:58)
| at org.jboss.classloader.spi.base.BaseClassLoader$1.run(BaseClassLoader.java:362)
| at org.jboss.classloader.spi.base.BaseClassLoader$1.run(BaseClassLoader.java:321)
| at org.jboss.classloader.spi.base.BaseClassLoader.loadClassLocally(BaseClassLoader.java:320)
| at org.jboss.classloader.spi.base.BaseClassLoader.loadClassLocally(BaseClassLoader.java:293)
| at org.jboss.classloader.spi.base.BaseDelegateLoader.loadClass(BaseDelegateLoader.java:75)
| at org.jboss.classloader.spi.filter.FilteredDelegateLoader.loadClass(FilteredDelegateLoader.java:91)
| at org.jboss.classloader.spi.base.ClassLoadingTask$ThreadTask.run(ClassLoadingTask.java:449)
| at org.jboss.classloader.spi.base.ClassLoaderManager.nextTask(ClassLoaderManager.java:251)
| at org.jboss.classloader.spi.base.ClassLoaderManager.process(ClassLoaderManager.java:145)
| at org.jboss.classloader.spi.base.BaseClassLoaderDomain.loadClass(BaseClassLoaderDomain.java:193)
| at org.jboss.classloader.spi.base.BaseClassLoaderDomain.loadClass(BaseClassLoaderDomain.java:1006)
| at org.jboss.classloader.spi.base.BaseClassLoader.loadClassFromDomain(BaseClassLoader.java:584)
| at org.jboss.classloader.spi.base.BaseClassLoader.loadClass(BaseClassLoader.java:234)
| at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
| at org.jboss.deployment.AnnotatedClassFilter.accepts(AnnotatedClassFilter.java:112)
| at org.jboss.deployment.AnnotatedClassFilter.visit(AnnotatedClassFilter.java:93)
| at org.jboss.virtual.plugins.vfs.helpers.WrappingVirtualFileHandlerVisitor.visit(WrappingVirtualFileHandlerVisitor.java:62)
| at org.jboss.virtual.plugins.context.AbstractVFSContext.visit(AbstractVFSContext.java:196)
| at org.jboss.virtual.plugins.context.AbstractVFSContext.visit(AbstractVFSContext.java:208)
| at org.jboss.virtual.plugins.context.AbstractVFSContext.visit(AbstractVFSContext.java:208)
| at org.jboss.virtual.plugins.context.AbstractVFSContext.visit(AbstractVFSContext.java:208)
| at org.jboss.virtual.plugins.context.AbstractVFSContext.visit(AbstractVFSContext.java:208)
| at org.jboss.virtual.plugins.context.AbstractVFSContext.visit(AbstractVFSContext.java:141)
| at org.jboss.virtual.VFS.visit(VFS.java:336)
| at org.jboss.virtual.VirtualFile.visit(VirtualFile.java:363)
| at org.jboss.deployment.AnnotationMetaDataDeployer.deploy(AnnotationMetaDataDeployer.java:157)
| at org.jboss.deployment.AnnotationMetaDataDeployer.deploy(AnnotationMetaDataDeployer.java:90)
| at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:169)
| 18:50:21,781 INFO [TomcatDeployment] deploy, ctxPath=/SpringIBatis, vfsUrl=SpringIBatis.war
| 18:50:22,125 INFO [[/SpringIBatis]] Initializing Spring root WebApplicationContext
| 18:50:22,125 INFO [ContextLoader] Root WebApplicationContext: initialization started
| 18:50:23,781 INFO [XmlBeanDefinitionReader] Loading XML bean definitions from ServletContext resource [/WEB-INF/spring-dao.xml]
| 18:50:26,031 INFO [XmlWebApplicationContext] Bean factory for application context [Root WebApplicationContext]: org.springframework.beans.factory.support.DefaultListableBeanFactory defining beans [jndiDs,ibatisSqlMapClient,personIntf,addrIntf]; root of BeanFactory hierarchy
| 18:50:26,031 INFO [XmlWebApplicationContext] 4 beans defined in application context [Root WebApplicationContext]
| 18:50:26,031 INFO [XmlWebApplicationContext] Unable to locate MessageSource with name 'messageSource': using default [org.springframework.context.support.DelegatingMessageSource at d236ce]
| 18:50:26,031 INFO [XmlWebApplicationContext] Unable to locate ApplicationEventMulticaster with name 'applicationEventMulticaster': using default [org.springframework.context.event.SimpleApplicationEventMulticaster at d238cc]
| 18:50:26,031 INFO [UiApplicationContextUtils] Unable to locate ThemeSource with name 'themeSource': using default [org.springframework.ui.context.support.ResourceBundleThemeSource at d32604]
| 18:50:26,031 INFO [DefaultListableBeanFactory] Pre-instantiating singletons in factory [org.springframework.beans.factory.support.DefaultListableBeanFactory defining beans [jndiDs,ibatisSqlMapClient,personIntf,addrIntf]; root of BeanFactory hierarchy]
| 18:50:26,234 INFO [DefaultListableBeanFactory] Destroying singletons in {org.springframework.beans.factory.support.DefaultListableBeanFactory defining beans [jndiDs,ibatisSqlMapClient,personIntf,addrIntf]; root of BeanFactory hierarchy}
| 18:50:26,234 ERROR [ContextLoader] Context initialization failed
| org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'addrIntf' defined in ServletContext resource [/WEB-INF/spring-dao.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.myapp.db.AddressImpl]: No default constructor found; nested exception is java.lang.NoSuchMethodException: com.myapp.db.AddressImpl.<init>()
| Caused by:
| org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.myapp.db.AddressImpl]: No default constructor found; nested exception is java.lang.NoSuchMethodException: com.myapp.db.AddressImpl.<init>()
| Caused by:
| java.lang.NoSuchMethodException: com.myapp.db.AddressImpl.<init>()
| at java.lang.Class.getConstructor0(Class.java:2706)
| at java.lang.Class.getDeclaredConstructor(Class.java:1985)
| at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:59)
| at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:52)
| at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:639)
| at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:625)
| at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
| at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:245)
| at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:141)
| at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:242)
| at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:156)
| at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:290)
| at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:348)
| at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:251)
| at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:190)
| at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)
| at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3860)
| at org.apache.catalina.core.StandardContext.start(StandardContext.java:4363)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4131718#4131718
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4131718
More information about the jboss-user
mailing list