2 Replies Latest reply on Jun 19, 2008 1:58 PM by Alex Kavo

    Setting up a new Eclipse project

    Alex Kavo Novice

      Hi!


      I went throught this tutorial:
      New Eclipse project
      After creating the action (ping) I go to the ping.seam and click on the ping button.
      But after clicking I get this error:


      Caused by javax.servlet.ServletException with message: "#{ping.ping}: javax.el.PropertyNotFoundException: /ping.xhtml @22,53 action="#{ping.ping}": Target Unreachable, identifier 'ping' resolved to null"



      This error I also get when I try other HelloWorld examples or when I just generate entities from with the ui. Did I forget something? Do I have to create Database tables before? I tried to generate the action with the seam-gen and also with the eclipse plugin. But I always get this error.


      Please help.
      Thx.

        • 1. Re: Setting up a new Eclipse project
          Joshua Jackson Master

          Show us your seam action source code here.

          • 2. Re: Setting up a new Eclipse project
            Alex Kavo Novice

            This code was created automatically by SEAM:


            package com.sap.agora.test.session;
            
            import javax.ejb.Stateless;
            import org.jboss.seam.annotations.Name;
            import org.jboss.seam.annotations.In;
            import org.jboss.seam.annotations.Logger;
            import org.jboss.seam.log.Log;
            import org.jboss.seam.faces.FacesMessages;
            
            @Stateless
            @Name("ping")
            public class PingBean implements Ping {
                    
                @Logger private Log log;
                    
                @In FacesMessages facesMessages;
                
                public void ping()
                {
                    log.info("ping.ping() action called");
                    facesMessages.add("ping");
                }    
            }