Hi,
Is that JBoss 5? I think it looks like the issue I’ve run a few weeks ago while migrating our Spring-powered app from JBoss 4.2 to JBoss 5. IIRC we have solved the problem by adding metadata-complete=“true” tag to the root tag of our web.xml file.
Cheers,
Marcin
W dniu poniedziałek, 27 lutego 2012, 16:16:28 UTC+1 użytkownik Koen Molkenboer napisał:
Hi Allard,
Thanks for the response!
I was hoping that someone in this user group knows which option in
JBoss that is…
JBoss is part of the standard infra architecture, but for now we will
not apply to this standard and use tomcat. I don’t need a full JEE
server anyway.
Cheers,
Koen
Hi Koen,
sorry for the late response. Although the internet allows you to take away
international boundaries, as soon as you cross one yourself it seems to
become very hard to get a proper connection ;-).
It looks like the @Resource annotation is causing Spring and JBoss AS to
start a little war among eachother. I didn’t really anticipate this, and
might need to take the annotations out.
Until then: maybe there is a configuration option that tells JBoss not to
attempt to autowire the application for you?
Cheers,
Allard
Hi all,
Has anyone experience with running Axon on JBoss.
When I try to deploy my war, I get the following error:
java.lang.RuntimeException: mapped-name is required for
org.axonframework.repository.AbstractRepository/eventBus of deployment
ppi.war
at
org.jboss.web.tomcat.service.injection.WebResourceHandler.loadXmlResourceEn vRefs(WebResourceHandler.java:
287)
at
org.jboss.web.tomcat.service.injection.WebResourceHandler.loadXml(WebResour ceHandler.java:
325)
at
org.jboss.web.tomcat.service.TomcatInjectionContainer.processMetadata(Tomca tInjectionContainer.java:
550)
at
org.jboss.web.tomcat.service.WebCtxLoader.start(WebCtxLoader.java:
158)
…
The class AbstractRepository has a method setEventBus which has a
@Resource annotation.
I think JBoss scans the classpath finds the annotation and fails to
inject the resource. I don’t want JBoss to inject my resources or the
resources needed by Axon, I want Spring to do it. My application works
perfect in Tomcat.
Can anyone help?
Thanks!
W dniu poniedziałek, 27 lutego 2012, 16:16:28 UTC+1 użytkownik Koen Molkenboer napisał:
Hi Allard,
Thanks for the response!
I was hoping that someone in this user group knows which option in
JBoss that is…
JBoss is part of the standard infra architecture, but for now we will
not apply to this standard and use tomcat. I don’t need a full JEE
server anyway.
Cheers,
Koen
Hi Koen,
sorry for the late response. Although the internet allows you to take away
international boundaries, as soon as you cross one yourself it seems to
become very hard to get a proper connection ;-).
It looks like the @Resource annotation is causing Spring and JBoss AS to
start a little war among eachother. I didn’t really anticipate this, and
might need to take the annotations out.
Until then: maybe there is a configuration option that tells JBoss not to
attempt to autowire the application for you?
Cheers,
Allard
Hi all,
Has anyone experience with running Axon on JBoss.
When I try to deploy my war, I get the following error:
java.lang.RuntimeException: mapped-name is required for
org.axonframework.repository.AbstractRepository/eventBus of deployment
ppi.war
at
org.jboss.web.tomcat.service.injection.WebResourceHandler.loadXmlResourceEn vRefs(WebResourceHandler.java:
287)
at
org.jboss.web.tomcat.service.injection.WebResourceHandler.loadXml(WebResour ceHandler.java:
325)
at
org.jboss.web.tomcat.service.TomcatInjectionContainer.processMetadata(Tomca tInjectionContainer.java:
550)
at
org.jboss.web.tomcat.service.WebCtxLoader.start(WebCtxLoader.java:
158)
…
The class AbstractRepository has a method setEventBus which has a
@Resource annotation.
I think JBoss scans the classpath finds the annotation and fails to
inject the resource. I don’t want JBoss to inject my resources or the
resources needed by Axon, I want Spring to do it. My application works
perfect in Tomcat.
Can anyone help?
Thanks!
W dniu poniedziałek, 27 lutego 2012, 16:16:28 UTC+1 użytkownik Koen Molkenboer napisał:
Hi Allard,
Thanks for the response!
I was hoping that someone in this user group knows which option in
JBoss that is…
JBoss is part of the standard infra architecture, but for now we will
not apply to this standard and use tomcat. I don’t need a full JEE
server anyway.
Cheers,
Koen
Hi Koen,
sorry for the late response. Although the internet allows you to take away
international boundaries, as soon as you cross one yourself it seems to
become very hard to get a proper connection ;-).
It looks like the @Resource annotation is causing Spring and JBoss AS to
start a little war among eachother. I didn’t really anticipate this, and
might need to take the annotations out.
Until then: maybe there is a configuration option that tells JBoss not to
attempt to autowire the application for you?
Cheers,
Allard
Hi all,
Has anyone experience with running Axon on JBoss.
When I try to deploy my war, I get the following error:
java.lang.RuntimeException: mapped-name is required for
org.axonframework.repository.AbstractRepository/eventBus of deployment
ppi.war
at
org.jboss.web.tomcat.service.injection.WebResourceHandler.loadXmlResourceEn vRefs(WebResourceHandler.java:
287)
at
org.jboss.web.tomcat.service.injection.WebResourceHandler.loadXml(WebResour ceHandler.java:
325)
at
org.jboss.web.tomcat.service.TomcatInjectionContainer.processMetadata(Tomca tInjectionContainer.java:
550)
at
org.jboss.web.tomcat.service.WebCtxLoader.start(WebCtxLoader.java:
158)
…
The class AbstractRepository has a method setEventBus which has a
@Resource annotation.
I think JBoss scans the classpath finds the annotation and fails to
inject the resource. I don’t want JBoss to inject my resources or the
resources needed by Axon, I want Spring to do it. My application works
perfect in Tomcat.
Can anyone help?
Thanks!
W dniu poniedziałek, 27 lutego 2012, 16:16:28 UTC+1 użytkownik Koen Molkenboer napisał:
Hi Allard,
Thanks for the response!
I was hoping that someone in this user group knows which option in
JBoss that is…
JBoss is part of the standard infra architecture, but for now we will
not apply to this standard and use tomcat. I don’t need a full JEE
server anyway.
Cheers,
Koen
Hi Koen,
sorry for the late response. Although the internet allows you to take away
international boundaries, as soon as you cross one yourself it seems to
become very hard to get a proper connection ;-).
It looks like the @Resource annotation is causing Spring and JBoss AS to
start a little war among eachother. I didn’t really anticipate this, and
might need to take the annotations out.
Until then: maybe there is a configuration option that tells JBoss not to
attempt to autowire the application for you?
Cheers,
Allard
Hi all,
Has anyone experience with running Axon on JBoss.
When I try to deploy my war, I get the following error:
java.lang.RuntimeException: mapped-name is required for
org.axonframework.repository.AbstractRepository/eventBus of deployment
ppi.war
at
org.jboss.web.tomcat.service.injection.WebResourceHandler.loadXmlResourceEn vRefs(WebResourceHandler.java:
287)
at
org.jboss.web.tomcat.service.injection.WebResourceHandler.loadXml(WebResour ceHandler.java:
325)
at
org.jboss.web.tomcat.service.TomcatInjectionContainer.processMetadata(Tomca tInjectionContainer.java:
550)
at
org.jboss.web.tomcat.service.WebCtxLoader.start(WebCtxLoader.java:
158)
…
The class AbstractRepository has a method setEventBus which has a
@Resource annotation.
I think JBoss scans the classpath finds the annotation and fails to
inject the resource. I don’t want JBoss to inject my resources or the
resources needed by Axon, I want Spring to do it. My application works
perfect in Tomcat.
Can anyone help?
Thanks!
W dniu poniedziałek, 27 lutego 2012, 16:16:28 UTC+1 użytkownik Koen Molkenboer napisał: