PDA

View Full Version : BeanCreationException when deploying Spring Beans during Tomcat 5 startup


rade
Mar 16th, 2006, 04:51 AM
Hi,

I tried to start my web application, that uses the advantages of the Spring framework, on standalone Tomcat 5 with JBoss 4.0.3 ejb-container.

The following issue happens during the Spring bean creation:

org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'AService' defined in ServletContext resource [/WEB-INF/spring-remoteservices.xml]: Can't resolve reference to bean 'ARemoteEJB' while setting property 'ARemoteEJB'; nested exception is org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'ARemoteEJB' defined in ServletContext resource [/WEB-INF/spring-remoteservices.xml]: Initialization of bean failed; nested exception is javax.naming.CommunicationException: null
org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'ARemoteEJB' defined in ServletContext resource [/WEB-INF/spring-remoteservices.xml]: Initialization of bean failed; nested exception is javax.naming.CommunicationException: null
javax.naming.CommunicationException [Root exception is java.io.InvalidClassException: org.jboss.invocation.InvokerInterceptor; unable to create instance]
at org.jnp.interfaces.NamingContext.lookup(NamingCont ext.java:707)
at org.jnp.interfaces.NamingContext.lookup(NamingCont ext.java:572)
at javax.naming.InitialContext.lookup(InitialContext. java:351)
at org.springframework.jndi.JndiTemplate$1.doInContex t(JndiTemplate.java:123)
at org.springframework.jndi.JndiTemplate.execute(Jndi Template.java:85)
at org.springframework.jndi.JndiTemplate.lookup(JndiT emplate.java:121)
at org.springframework.jndi.JndiLocatorSupport.lookup (JndiLocatorSupport.java:71)

My JBoss 4.0.3 application server is running fine. Why is Spring telling me that
the org.jboss.invocation.InvokerInterceptor class is invalid?

Has anyone an answer to that issue?

Best regards,

Rade