[JBoss/Spring Integration] - JBoss 4.2 Spring Deployer + Spring 2.08
by devnulled0
I'm in the process of refactoring an app to take advantage of the JBoss Spring Deployer and I'm running into some minor issues. I have a project layout very similar to the example project.. here is the basic gist of what is in the EAR file which gets deployed:
Services.spring -- these are the pojo services configured for the Spring deployer.
Services.jar -- EJB's which get injected with the above POJO's
Website.war -- Wicket app which has a service factory which in theory gets injected with the EJB's via JNDI.
The Spring configured POJO's load fine, and as far as I can tell the EJB's get injected correctly, but various exceptions happen with the Website.war.
At first it was missing some sort of class from the spring-web.jar, so I added it to the deployer. Now that the spring-web.jar is in the deployer, I'm getting an exception like this:
| 04:50:44,413 ERROR [ContextLoader] Context initialization failed
| java.lang.NoSuchMethodError: org.springframework.beans.factory.config.ConfigurableListableBeanFactory.registerScope(Ljava/lang/String;Lorg/springframework/beans/factory/config/Scope;)V
| at org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.postProcessBeanFactory(AbstractRefreshableWebApplicationContext.java:161)
| at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:294)
| at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:246)
| at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:189)
| at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:49)
| at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3854)
| at org.apache.catalina.core.StandardContext.start(StandardContext.java:4359)
| at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:761)
| at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:741)
| at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:553)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:589)
| at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:297)
| at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.apache.catalina.core.StandardContext.init(StandardContext.java:5310)
|
I also tried upgrading all of the jar's in the deployer to Spring 2.08 and ran into various problems because some of the methods the deployer relies on have been removed, etc.
The downloads section of the Spring Deployer is not at all clear to me, so I may have downloaded/implemented it wrong. I basically did this to create a Spring deployer that seems to work for the most part:
Downloaded the "Spring Deployer 1.3" and applied the JDK JAR from "Spring Deployer 2".
Anyhow, I guess I have a few questions around all of this:
1. Did I implement the deployer correctly? If not, what should I do?
2. What version of Spring is supported/shipped with the deployer?
3. Will Spring 2.0.8 or 2.5.1 support get rolled into the deployer anytime soon for JBoss 4.x? I think I ran into some bugs which put me on 2.0.8 (2.5.1 would be much preferred however)
Thanks,
- Brandon
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4122598#4122598
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4122598
18 years, 6 months
[Beginners Corner] - Re: JBoss starts but no access
by NSchweig
Hi,
with IE it is the same problem.
I use jdk1.5.0_14.
If I type http://localhost:8080 in my browser in the status bar stands:
Waiting... or waiting for localhost and I only see a white page.
I use Windows XP Professional (on my notebook Home edition but at the moment I only work on my pc)
If I try to access with my browser the server.log is updated with the following messages:
08-01-23 13:12:28,421 DEBUG [com.arjuna.ats.arjuna.logging.arjLogger] Periodic recovery - first pass <Mi, 23 Jan 2008 13:12:28>
| 2008-01-23 13:12:28,421 DEBUG [com.arjuna.ats.arjuna.logging.arjLogger] StatusModule: first pass
| 2008-01-23 13:12:28,421 DEBUG [com.arjuna.ats.txoj.logging.txojLoggerI18N] [com.arjuna.ats.internal.txoj.recovery.TORecoveryModule_3] - TORecoveryModule - first pass
| 2008-01-23 13:12:28,421 DEBUG [com.arjuna.ats.jta.logging.loggerI18N] [com.arjuna.ats.internal.jta.recovery.info.firstpass] Local XARecoveryModule - first pass
| 2008-01-23 13:12:38,421 DEBUG [com.arjuna.ats.arjuna.logging.arjLogger] Periodic recovery - second pass <Mi, 23 Jan 2008 13:12:38>
| 2008-01-23 13:12:38,421 DEBUG [com.arjuna.ats.arjuna.logging.arjLogger] AtomicActionRecoveryModule: Second pass
| 2008-01-23 13:12:38,421 DEBUG [com.arjuna.ats.txoj.logging.txojLoggerI18N] [com.arjuna.ats.internal.txoj.recovery.TORecoveryModule_6] - TORecoveryModule - second pass
| 2008-01-23 13:12:38,421 DEBUG [com.arjuna.ats.jta.logging.loggerI18N] [com.arjuna.ats.internal.jta.recovery.info.secondpass] Local XARecoveryModule - second pass
|
Later I will try the http-debugger.
Is it possible that it has anything to do with my failed installation of sun application server?
NSChweig
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4122595#4122595
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4122595
18 years, 6 months