1 Reply Latest reply on Aug 13, 2007 8:38 AM by cis rudlow

    sjsas and Seam. method not found exception

    cis rudlow Newbie

      I write simple application and I have problem, that I can't resolve. It always show me error that, method test.TestLocal_15902127.test() hasn't been found. There is Seam.propertis in web/conf dir in ejb project and there are all business interfaces. Please help.
      My error:

      javax.el.MethodNotFoundException: /template-client.xhtml @23,78
      action="#{test.test}": Method not found: test.TestLocal_15902127.test()
      javax.faces.el.MethodNotFoundException: javax.el.MethodNotFoundException:
      /template-client.xhtml @23,78 action="#{test.test}": Method not found:
      test.TestLocal_15902127.test()
       at
      javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:81)
       at
      com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:96)
       at javax.faces.component.UICommand.broadcast(UICommand.java:383)
       at
      org.ajax4jsf.framework.ajax.AjaxViewRoot.processEvents(AjaxViewRoot.java:180)
       at
      org.ajax4jsf.framework.ajax.AjaxViewRoot.broadcastEvents(AjaxViewRoot.java:158)
       at
      org.ajax4jsf.framework.ajax.AjaxViewRoot.processApplication(AjaxViewRoot.java:329)
       at
      com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:97)
       at
      com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:244)
      
      


      web.xml
      <?xml version="1.0" encoding="UTF-8"?>
      <web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
      http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
       <context-param>
       <param-name>com.sun.faces.verifyObjects</param-name>
       <param-value>true</param-value>
       </context-param>
       <context-param>
       <param-name>com.sun.faces.validateXml</param-name>
       <param-value>true</param-value>
       </context-param>
       <context-param>
       <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
       <param-value>.xhtml</param-value>
       </context-param>
       <context-param>
       <param-name>facelets.DEVELOPMENT</param-name>
       <param-value>false</param-value>
       </context-param>
       <context-param>
       <param-name>facelets.SKIP_COMMENTS</param-name>
       <param-value>true</param-value>
       </context-param>
       <servlet>
       <servlet-name>Faces Servlet</servlet-name>
       <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
       <load-on-startup>1</load-on-startup>
       </servlet>
       <servlet-mapping>
       <servlet-name>Faces Servlet</servlet-name>
       <url-pattern>*.xhtml</url-pattern>
       </servlet-mapping>
       <session-config>
       <session-timeout>
       30
       </session-timeout>
       </session-config>
       <welcome-file-list>
       <welcome-file>
       index.xhtml
       </welcome-file>
       </welcome-file-list>
       <context-param>
       <description>
       </description>
       <param-name>org.jboss.seam.core.init.jndiPattern</param-name>
       <param-value>java:comp/env/Tets-ejb/#{ejbName}/local</param-value>
       </context-param>
      
       <listener>
       <listener-class>org.jboss.seam.servlet.SeamListener</listener-class>
       </listener>
      
       <ejb-local-ref>
       <ejb-ref-name>Tets-ejb/TestBean/local</ejb-ref-name>
       <ejb-ref-type>Session</ejb-ref-type>
       <local>test.TestLocal</local>
       <ejb-link>TestBean</ejb-link>
       </ejb-local-ref>
      </web-app>
      
      


      <?xml version='1.0' encoding='UTF-8'?>
      <faces-config version="1.2"
       xmlns="http://java.sun.com/xml/ns/javaee"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
      http://java.sun.com/xml/ns/javaee/web-facesconfig_1_2.xsd">
      
       <application>
       <view-handler>
       com.sun.facelets.FaceletViewHandler
       </view-handler>
       </application>
       <lifecycle>
      <phase-listener>org.jboss.seam.jsf.SeamPhaseListener</phase-listener>
      </lifecycle>
       <application>
       <el-resolver>
       org.jboss.seam.jsf.SeamELResolver
       </el-resolver>
       </application>
      </faces-config>
      

      ejb-jar.xml

      <?xml version="1.0" encoding="UTF-8"?>
      <ejb-jar xmlns = "http://java.sun.com/xml/ns/javaee" version = "3.0"
      xmlns:xsi = "http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation =
      "http://java.sun.com/xml/ns/javaee
      http://java.sun.com/xml/ns/javaee/ejb-jar_3_0.xsd">
       <interceptors>
       <interceptor>
       <interceptor-class>
       org.jboss.seam.ejb.SeamInterceptor
       </interceptor-class>
       </interceptor>
       </interceptors>
      <assembly-descriptor>
      <interceptor-binding>
       <ejb-name>*</ejb-name>
       <interceptor-class>
       org.jboss.seam.ejb.SeamInterceptor
       </interceptor-class>
      </interceptor-binding>
      </assembly-descriptor>
      </ejb-jar>