+++ This bug was initially created as a clone of Bug #1060001 +++ If you create a bean in jbossws-cxf.xml and try to inject it into your endpoint, it doesn't work. example: <bean id="ServiceImpl" class="org.apache.cxf.cxf1332.Cxf1332Impl"> <property name="testBean" ref="testBean"/> </bean> <bean id="testBean" class="org.apache.cxf.cxf1332.TestBean"/> <jaxws:endpoint id="cxf1332" implementor="#ServiceImpl" address="http://localhost:${testutil.ports.Cxf1332Test}/Cxf1332"/>
Alessio Soldano <asoldano> updated the status of jira JBWS-3670 to Resolved
Created attachment 870053 [details] reproducer Reproducer attached. To run: - set JBOSS_HOME env var - install the org.springframework.spring module in JBoss - start JBoss - unzip project and cd to base folder - run `ant deploy` - run `ant test` If no error, then the test passed, but if the injection didn't work, you should see an error like this: [java] Exception in thread "main" java.lang.RuntimeException: Bean not injected [java] at com.redhat.gss.jaxws.Test.main(Test.java:25) [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [java] at java.lang.reflect.Method.invoke(Method.java:606) [java] at org.jboss.modules.Module.run(Module.java:292) [java] at org.jboss.modules.Main.main(Main.java:455) [java] Java Result: 1
Verified injection works with spring installed in module org.springframework.spring in slot main
Does this issue require an entry in the EAP 6.2.2 Release Notes? If so, please populate the details in the Doc Text field to allow ECS to begin drafting a note for it. Note: "$THING was broken and now $THING is fixed" is not a suitable release note draft.
Alessio Soldano <asoldano> updated the status of jira JBWS-3670 to Closed