Hi Marius,
Finally it works! I just replaced the deployer with jboss-spring-jdk5-2.5.jar.
It works now. Thank you so so much!
I have few other questions for you:
1. With this spring deployer, can the jboss-spring.xml in the spring archive
file take the tokens from a properties file in default/
OK, thanks for posting the stacktrace. It seems indeed like you have an old
version of the deployer.
In the newer versions, DefaultBeanDefinitionDocumentReader is used instead of
DefaultXmlBeanDefinitionParser.
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=42
Marius,
Here is the stacktrace. Please take a look while I am trying to sync up
versions as you advised.
Thanks,
| 2009-11-20 15:52:44,238 ERROR [org.jboss.deployment.MainDeployer] Could not
create deployment:
file:/C:/jboss-4.2.2.GA/server/default/deploy/MySpringBean.spring
|
| jav
Ivan,
For 4.2 you need to use the 2.x version of the deployer (version 3.x works with
AS5).
Also, it seems like you are using a relatively old version of the deployer
(that's what causes the NoClassDefFoundError).
Please make sure that you're using latest deployer (2.1) , which is to be found
Hi Marius,
I did more testing. The problem is becoming more specific.
I tried both spring deployer release 2 and release 3.
It contains
| jboss-spring-jdk5.jar
| spring-aop.jar
| spring-beans.jar
| spring-context.jar
| spring-core.jar
|
I am not clear which version of the spring
Marius,
Yes, it is the class-loader version problem. I put all spring jars into
default/lib, but still run into exceptions. Here are what I did.
The spring deployer contained the following jars:
| jboss-spring-jdk5.jar
| spring-aop.jar
| spring-beans.jar
| spring-context.jar
| spring-
OK, so we solved the parent application context lookup problem.
The next one is a classloader problem:
org.springframework.beans.factory.BeanFactory is an interface and
org.jboss.spring.factory.NamedXmlApplicationContext implements it, but I
suspect you also have Spring bundled inside your war
Marius,
Thank you so much. With the changes as you suggested, I am moving forward one
more step further, but still got the following exception.
[CODE]
2009-11-19 20:15:58,943 INFO [STDOUT] 20:15:58,943 ERROR [ContextLoader]
Context initialization failed
org.springframework.beans.factory.acces
Hi Ivan,
Try creating an xml called beanRefContext.xml and place it on the classpath -
eg. inside WEB-INF/classes - you need that for the
ContextSingletonBeanFactoryLocator.
Place your
element inside that xml and remove it from the web context definition.
BTW - using classpath*:*.xml may not
Thank you so much for the quick reply.
I have same feeling about JDNI lookup. But what is the correct way to retrieve
it?
Is there any example of retrieving deployed bean from web app?
Thanks,
Ivan
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4266671#4266
My first guess would be that you're using jndi-lookup wrong.
Dunno otherwise why it would call your mainAppContext a bean here:
anonymous wrote :
| org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean
named 'mainApplicationContext' is defined
|
View the original post :
11 matches
Mail list logo