3 Replies Latest reply on Aug 30, 2009 8:30 PM by Charles Akalugwu


    Aaron Siri Newbie


      I'm trying to get a pure WS environment using Seam and Enunciate.  In doing this I'm trying to strip out all of the JSF stuff and then get Enunciate to insert all of the WS stuff.

      I got the WS parts to work.  I was able to make a very simple Web Service object (for both SOAP and REST requests) and was able to call it successfully.  However, the Seam parts don't seem to be working well.

      I made my simple service object a Seam-managed component, and according to the logs Seam detected it and registered it.  The problem I'm seeing is that none of the bijection appears to be working.  The result is always a null reference.

      My simple web service is below:

      public class WebServiceTest {
           @In CurrentTime currentTime;
           @Logger private Log log;
           public WebServiceResult getResult(@PathParam("name") String name) {
                log.info("Hi there", null);
                Date time = currentTime.getCurrentTime();
                WebServiceResult result = new WebServiceResult();
                return result;

      In this case both currentTime and log are null.

      I've tried various combinations of filters/servlets in web.xml and am wondering what is the minimum needed to get this to work.  My goal is to keep it as simple as possible.  No JSF but have support for the Seam lifecycle, AOP/annotations, EL expressions, etc.

      Thanks for any assistance.