0 Replies Latest reply on May 22, 2015 3:19 PM by sboscarine

    Getting started with Seam Spring on EAP 6.4?

    sboscarine

      Hello.

      Can anyone provide leads as to why this Hello World Servlet isn't working?  There are no errors.  It just always prints null.

      @WebServlet( urlPatterns = { "/diagnostics" })
      public class DiagnosticsServlet extends HttpServlet {
          @Produces
          @SpringContext
          @Configuration(locations = "classpath:applicationContext.xml")
          private ApplicationContext context;
      
          @Inject @SpringContext
          private ApplicationContext applicationContext;
          
          protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
              PrintWriter out = response.getWriter();
              out.println("Hello World " + applicationContext);
              out.close();
          }
      
      }
      

       

      The applicationContext.xml is in the classpath.  There's not much to it.  Spring Seam 3.1.5.Final is in my POM and so is Spring 4.1.6.RELEASE.

       

      Any suggestions on troubleshooting?

       

      Is Seam Spring still the recommended way for bridging legacy Spring into CDI?

       

      Thanks in advance,
      Steven