[
http://jira.jboss.com/jira/browse/JBSEAM-2765?page=all ]
Olivier Thierry updated JBSEAM-2765:
------------------------------------
Attachment: helloApp.zip
Here is a Maven project that reproduces the problem. It is composed of a Hello seam
component exposed as a web service. This Hello component depends on a ConsoleWriter Seam
component that outputs a message to System.out. Run mvn install and it will build an EAR
you can deploy on JBoss 4.2.0.GA. Then the web service can be called for example from
Eclipse Web services explorer. The WSDL URL is
http://localhost:8080/helloApp-ws/services/Hello?wsdl.
You will see a NullPointerException occurs when trying to access the ConsoleWriter
component injected in Hello component. Now uncomment the @Name and @Scope annotations in
Hello component, remove the lines in components.xml file ... and everything works well !
Injection doesn't work for Seam components declared in
components.xml when used as web services
-----------------------------------------------------------------------------------------------
Key: JBSEAM-2765
URL:
http://jira.jboss.com/jira/browse/JBSEAM-2765
Project: JBoss Seam
Issue Type: Bug
Components: WS
Affects Versions: 2.0.1.GA
Environment: JBoss 4.2.0.GA
Reporter: Olivier Thierry
Attachments: helloApp.zip
I created a Seam component and I want to expose it as a web service. Everything works
well when the component is declared with @Name annotation. But injection doesn't work
when the component is declared in components.xml file. The problem happens only when
calling the Seam component as a web service.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira