Bas Ven [
https://community.jboss.org/people/batter] created the discussion
"Re: Accessing spring beans that are deployed in a war."
To view the discussion, visit:
https://community.jboss.org/message/829806#829806
--------------------------------------------------------------
Making some progress and the war does get deployed succesfully, but I still see nothing
being registered in JNDI and when I call an EJB where a spring bean should get injected I
see a naming exception that the beanfactory ('SpringCommander') could not be
found:
java.lang.IllegalStateException: javax.naming.NameNotFoundException:
SpringCommander -- service jboss.naming.context.java.jboss.SpringCommander
org.jboss.spring.support.SpringInjectionSupport.lookup(SpringInjectionSupport.java:180)
org.jboss.spring.support.SpringInjectionSupport.getObjectFromBeanFactory(SpringInjectionSupport.java:136)
org.jboss.spring.support.SpringInjectionSupport.injectToField(SpringInjectionSupport.java:202)
org.jboss.spring.support.SpringInjectionSupport.inject(SpringInjectionSupport.java:80)
org.jboss.spring.callback.SpringLifecycleInterceptor.postConstruct(SpringLifecycleInterceptor.java:43)
I do see in the log file that at startup the jboss-spring.xml is found:
09:36:53,492 INFO
[org.springframework.beans.factory.xml.XmlBeanDefinitionReader] (MSC service thread 1-14)
Loading XML bean definitions from
"/content/commander-server.war/META-INF/jboss-spring.xml"
09:36:53,526 INFO [org.springframework.beans.factory.support.DefaultListableBeanFactory]
(MSC service thread 1-14) Pre-instantiating singletons in
org.springframework.beans.factory.support.DefaultListableBeanFactory@6e9e2a8a: defining
beans [dataSourceManager,commanderServer]; root of factory hierarchy
Although that does seem to come from the spring framework. Is there anything I can turn
on logging wise to see if snowdrop is actually trying to register beans with JNDI?
--------------------------------------------------------------
Reply to this message by going to Community
[
https://community.jboss.org/message/829806#829806]
Start a new discussion in Snowdrop at Community
[
https://community.jboss.org/choose-container!input.jspa?contentType=1&...]