1 2 Previous Next 21 Replies Latest reply on Sep 23, 2012 2:30 PM by Stan Silvert

    @EJB not working

    Mahesh Pal Newbie

      i am creating a jsf web application.i have EJB for my business logic.but when i use @EJB in my managed bean i get null pointer exception.i even tried @EJB with lookup attribut but no use.

      i am using jsf 1.2 richfaces 3.3.3 jee5 and jboss 7.0.1 application server.

      pls help.

        • 1. Re: @EJB not working
          Brendan Healey Master

          Mahesh I think we're going to need to see some of your code to sort this out.

           

          Regards,

          Brendan.

          • 2. Re: @EJB not working
            Mahesh Pal Newbie

            Thanks for your reply Brendan.

            here is my code

             

             

            test.xhtml

            ****************

            <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

            <html xmlns="http://www.w3.org/1999/xhtml"

                  xmlns:h="http://java.sun.com/jsf/html"

                  xmlns:a4j="http://richfaces.org/a4j"

                  xmlns:rich="http://richfaces.org/rich"

                  xmlns:f="http://java.sun.com/jsf/core"

                  xmlns:ui="http://java.sun.com/jsf/facelets">

             

            <head></head>

            <body>

             

                   <h:form>

                   <h:commandButton  value="submit" actionListener="#{testMB.action}" >

             

                   <a4j:support event="onclick" reRender="r"></a4j:support>

                   </h:commandButton>

                   <h:outputText value="#{testMB.name}" id="r" />

                   </h:form>

            </body>

            </html>

             

            ********************************

            testMB.java // managedBean

             

            ***********

            package Beans;

             

            import javax.ejb.EJB;

            import javax.faces.event.ActionEvent;

             

            import Bean.test1Local;

             

            public class testMB {

                @EJB

                test1Local test;

                String name;

                public String getName() {

                    return name;

                }

                public void setName(String name) {

                    this.name = name;

                }

             

                public void action(ActionEvent ae){

                    name=test.sayHello();

                    System.out.println(name);

                }

             

             

            }

            ********************************

             

            test1.java//my ejb

            *********************

            package Bean;

             

            import javax.ejb.Stateless;

             

            /**

            * Session Bean implementation class test1

            */

            @Stateless

            public class test1 implements test1Local {

             

                /**

                 * Default constructor.

                 */

                public test1() {

                    // TODO Auto-generated constructor stub

                }

                public String sayHello(){

                    return "hello";

                }

             

             

            }

            ******************************

            loal interface for session bean

            *********************

            package Bean;

             

            import javax.ejb.Local;

             

            @Local

            public interface test1Local {

                 public String sayHello();

             

            }

            ****************************

            faces-config for testMB

            *******

            <managed-bean>

              <managed-bean-name>testMB</managed-bean-name>

              <managed-bean-class>Beans.testMB</managed-bean-class>

              <managed-bean-scope>request</managed-bean-scope>

            </managed-bean>

            ********************************************

            errors stacktrace

            ******************************

            12:41:41,375 SEVERE [javax.faces.event] (http-localhost-127.0.0.1-8081-2) Received 'java.lang.NullPointerException' when invoking action listener '#{testMB.action}' for component 'j_id3'

            12:41:41,377 SEVERE [javax.faces.event] (http-localhost-127.0.0.1-8081-2) java.lang.NullPointerException

                at Beans.testMB.action(testMB.java:20)

                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

                at java.lang.reflect.Method.invoke(Method.java:597)

                at org.apache.el.parser.AstValue.invoke(AstValue.java:262)

                at org.apache.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:278)

                at com.sun.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:68)

                at javax.faces.event.MethodExpressionActionListener.processAction(MethodExpressionActionListener.java:99)

                at javax.faces.event.ActionEvent.processListener(ActionEvent.java:88)

                at javax.faces.component.UIComponentBase.broadcast(UIComponentBase.java:774)

                at javax.faces.component.UICommand.broadcast(UICommand.java:372)

                at org.ajax4jsf.component.AjaxViewRoot.processEvents(AjaxViewRoot.java:329)

                at org.ajax4jsf.component.AjaxViewRoot.broadcastEventsForPhase(AjaxViewRoot.java:304)

                at org.ajax4jsf.component.AjaxViewRoot.processPhase(AjaxViewRoot.java:261)

                at org.ajax4jsf.component.AjaxViewRoot.processApplication(AjaxViewRoot.java:474)

                at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:82)

                at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)

                at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)

                at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)

                at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329)

                at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)

                at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:206)

                at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290)

                at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:388)

                at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:515)

                at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280)

                at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)

                at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275)

                at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)

                at org.jboss.as.jpa.interceptor.WebNonTxEmCloserValve.invoke(WebNonTxEmCloserValve.java:50)

                at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:153)

                at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155)

                at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)

                at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)

                at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:368)

                at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877)

                at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:671)

                at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:930)

                at java.lang.Thread.run(Thread.java:662)

             

            12:41:41,429 WARNING [facelets.tag.component] (http-localhost-127.0.0.1-8081-4) facelets.RECREATE_VALUE_EXPRESSION_ON_BUILD_BEFORE_RESTORE is set to 'true' but facelets.BUILD_BEFORE_RESTORE is set to 'false' or unset. To use facelets.RECREATE_VALUE_EXPRESSION_ON_BUILD_BEFORE_RESTORE you must also set facelets.BUILD_BEFORE_RESTORE to 'true'!

            12:41:41,427 ERROR [org.ajax4jsf.component.AjaxViewRoot] (http-localhost-127.0.0.1-8081-2) Error processing faces event for the component j_id2:j_id3: javax.faces.event.AbortProcessingException: /test.xhtml @13,76 actionListener="#{testMB.action}": java.lang.NullPointerException

                at javax.faces.event.MethodExpressionActionListener.processAction(MethodExpressionActionListener.java:118) [jsf-api-1.2_15-B02.jar:1.2_15-20100923-SNAPSHOT]

                at javax.faces.event.ActionEvent.processListener(ActionEvent.java:88) [jsf-api-1.2_15-B02.jar:1.2_15-20100923-SNAPSHOT]

                at javax.faces.component.UIComponentBase.broadcast(UIComponentBase.java:774) [jsf-api-1.2_15-B02.jar:1.2_15-20100923-SNAPSHOT]

                at javax.faces.component.UICommand.broadcast(UICommand.java:372) [jsf-api-1.2_15-B02.jar:1.2_15-20100923-SNAPSHOT]

                at org.ajax4jsf.component.AjaxViewRoot.processEvents(AjaxViewRoot.java:329) [richfaces-impl-3.3.3.Final.jar:3.3.3.Final]

                at org.ajax4jsf.component.AjaxViewRoot.broadcastEventsForPhase(AjaxViewRoot.java:304) [richfaces-impl-3.3.3.Final.jar:3.3.3.Final]

                at org.ajax4jsf.component.AjaxViewRoot.processPhase(AjaxViewRoot.java:261) [richfaces-impl-3.3.3.Final.jar:3.3.3.Final]

                at org.ajax4jsf.component.AjaxViewRoot.processApplication(AjaxViewRoot.java:474) [richfaces-impl-3.3.3.Final.jar:3.3.3.Final]

                at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:82) [jsf-impl-1.2_15-B02.jar:1.2_15-20100923-SNAPSHOT]

                at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100) [jsf-impl-1.2_15-B02.jar:1.2_15-20100923-SNAPSHOT]

                at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118) [jsf-impl-1.2_15-B02.jar:1.2_15-20100923-SNAPSHOT]

                at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265) [jsf-api-1.2_15-B02.jar:1.2_15-20100923-SNAPSHOT]

                at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329) [jbossweb-7.0.13.Final.jar:]

                at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.13.Final.jar:]

                at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:206) [richfaces-impl-3.3.3.Final.jar:3.3.3.Final]

                at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290) [richfaces-impl-3.3.3.Final.jar:3.3.3.Final]

                at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:388) [richfaces-impl-3.3.3.Final.jar:3.3.3.Final]

                at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:515) [richfaces-impl-3.3.3.Final.jar:3.3.3.Final]

                at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) [jbossweb-7.0.13.Final.jar:]

                at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.13.Final.jar:]

                at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275) [jbossweb-7.0.13.Final.jar:]

                at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161) [jbossweb-7.0.13.Final.jar:]

                at org.jboss.as.jpa.interceptor.WebNonTxEmCloserValve.invoke(WebNonTxEmCloserValve.java:50) [jboss-as-jpa-7.1.1.Final.jar:7.1.1.Final]

                at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:153) [jboss-as-web-7.1.1.Final.jar:7.1.1.Final]

                at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155) [jbossweb-7.0.13.Final.jar:]

                at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [jbossweb-7.0.13.Final.jar:]

                at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [jbossweb-7.0.13.Final.jar:]

                at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:368) [jbossweb-7.0.13.Final.jar:]

                at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877) [jbossweb-7.0.13.Final.jar:]

                at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:671) [jbossweb-7.0.13.Final.jar:]

                at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:930) [jbossweb-7.0.13.Final.jar:]

                at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_24]

            Caused by: java.lang.NullPointerException

                at Beans.testMB.action(testMB.java:20) [classes:]

                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.6.0_24]

                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [rt.jar:1.6.0_24]

                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [rt.jar:1.6.0_24]

                at java.lang.reflect.Method.invoke(Method.java:597) [rt.jar:1.6.0_24]

                at org.apache.el.parser.AstValue.invoke(AstValue.java:262) [jbossweb-7.0.13.Final.jar:]

                at org.apache.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:278) [jbossweb-7.0.13.Final.jar:]

                at com.sun.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:68) [jsf-facelets-1.1.15.jar:1.1.15]

                at javax.faces.event.MethodExpressionActionListener.processAction(MethodExpressionActionListener.java:99) [jsf-api-1.2_15-B02.jar:1.2_15-20100923-SNAPSHOT]

                ... 31 more

            • 3. Re: @EJB not working
              Danilo Diaz Newbie

              Im having a really weird behavior using jboss 7.1.1. The injected EJB via @EJB are always null in managed beans but in servlets they are injected as usual. I have tried everything... I dont know what else to do.

              Im using jsf 2.1...

               

              PLS HELP

              • 4. Re: @EJB not working
                Danilo Diaz Newbie

                I cant find any info about this on the internet but i have seen two more people runnning into the same problem...

                • 5. Re: @EJB not working
                  Brendan Healey Master

                  I just noticed that you have class names starting with lowercase letters, this may well be causing problems so

                  rename them to TestMB, Test1 & Test1Local and try again. If that doesn't work try this:

                   

                  @EJB(lookup="java:module/Test1!Bean.Test1")

                   

                  It's been ages since I used EE 5 but I can remember it being a total pain getting everything lined up correctly

                  to get even the simplest example code to work, so you have my sympathies.

                   

                   

                   

                  Regards,

                  Brendan.

                   

                   

                   


                  Freelance Java Enterprise Developer


                  JSF Richfaces Ajax Java 6/7 (scjp) EE 6 HTML CSS JavaScript jQuery MySQL JPA Hibernate Eclipselink

                  Spring Oracle SQL JPQL Sybase EJB CDI Glassfish Apache JAX-RS Primefaces UNIX Paypal and more..

                  • 6. Re: @EJB not working
                    Mahesh Pal Newbie

                    dont think lower case can cause a problem because simple ejb lookup is working fine.

                    • 7. Re: @EJB not working
                      iabughosh Master

                      @Mahesh

                      try adding this parameter to web.xml :

                      <context-param>

                                  <param-name>com.sun.faces.injectionProvider</param-name>

                                  <param-value>org.jboss.web.jsf.integration.injection.JBossInjectionProvider</param-value>

                      </context-param>

                       

                      regards,

                      • 8. Re: @EJB not working
                        jaikiran pai Master

                        Are you using JSF 1.2? Maybe it's related to this bug https://issues.jboss.org/browse/AS7-5564, a fix for which has just been issued.

                        • 9. Re: @EJB not working
                          Mahesh Pal Newbie

                          hello Ibrahim

                          thx for ur comment.. i tried including this context parameter but i got message "org.jboss.web.jsf.integration.injection.JBossInjectionProvider" can't be loaded. then i checked and found out that this class was not available in my JSF implementation. i downloadded "org.jboss.web.jsf.integration.injection.JBossInjectionProvider.java" file and included in my project.

                          but i got error.

                          Injection failed on managed bean.: javax.naming.NameNotFoundException:

                          javax.faces.el.EvaluationException: java.lang.NullPointerException

                              at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:102) [jsf-api-1.2_15-B02.jar:1.2_15-20100923-SNAPSHOT]

                              at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102) [jsf-impl-1.2_15-B02.jar:1.2_15-20100923-SNAPSHOT]

                              ... 30 more

                          • 10. Re: @EJB not working
                            Mahesh Pal Newbie

                            hi jaikiran.

                            i am very new to jboss and jsf. can u explaind what are the files or jar file i have to include as a seperate module

                            • 11. Re: @EJB not working
                              Mahesh Pal Newbie

                              here i m giving my log trace..

                               

                               

                               

                              10:53:04,227 ERROR [org.jboss.web.jsf.integration.injection.JBossInjectionProvider] (http-localhost-127.0.0.1-8081-4) Injection failed on managed bean.: javax.naming.NameNotFoundException: Beans.ejbtest/loc -- service jboss.naming.context.java."Beans.ejbtest".loc

                                  at org.jboss.as.naming.ServiceBasedNamingStore.lookup(ServiceBasedNamingStore.java:97)

                                  at org.jboss.as.naming.NamingContext.lookup(NamingContext.java:178)

                                  at org.jboss.as.naming.InitialContext.lookup(InitialContext.java:113)

                                  at org.jboss.as.naming.NamingContext.lookup(NamingContext.java:214)

                                  at javax.naming.InitialContext.lookup(InitialContext.java:392) [rt.jar:1.6.0_24]

                                  at org.jboss.web.jsf.integration.injection.JBossInjectionProvider.lookupFieldResource(JBossInjectionProvider.java:240) [classes:]

                                  at org.jboss.web.jsf.integration.injection.JBossInjectionProvider.inject(JBossInjectionProvider.java:172) [classes:]

                                  at com.sun.faces.mgbean.BeanBuilder.injectResources(BeanBuilder.java:205) [jsf-impl-1.2_15-B02.jar:1.2_15-20100923-SNAPSHOT]

                                  at com.sun.faces.mgbean.BeanBuilder.build(BeanBuilder.java:107) [jsf-impl-1.2_15-B02.jar:1.2_15-20100923-SNAPSHOT]

                                  at com.sun.faces.mgbean.BeanManager.createAndPush(BeanManager.java:406) [jsf-impl-1.2_15-B02.jar:1.2_15-20100923-SNAPSHOT]

                                  at com.sun.faces.mgbean.BeanManager.create(BeanManager.java:215) [jsf-impl-1.2_15-B02.jar:1.2_15-20100923-SNAPSHOT]

                                  at com.sun.faces.el.ManagedBeanELResolver.resolveBean(ManagedBeanELResolver.java:204) [jsf-impl-1.2_15-B02.jar:1.2_15-20100923-SNAPSHOT]

                                  at com.sun.faces.el.ManagedBeanELResolver.getValue(ManagedBeanELResolver.java:76) [jsf-impl-1.2_15-B02.jar:1.2_15-20100923-SNAPSHOT]

                                  at com.sun.faces.el.DemuxCompositeELResolver._getValue(DemuxCompositeELResolver.java:173) [jsf-impl-1.2_15-B02.jar:1.2_15-20100923-SNAPSHOT]

                                  at com.sun.faces.el.DemuxCompositeELResolver.getValue(DemuxCompositeELResolver.java:200) [jsf-impl-1.2_15-B02.jar:1.2_15-20100923-SNAPSHOT]

                                  at org.apache.el.parser.AstIdentifier.getValue(AstIdentifier.java:72) [jbossweb-7.0.13.Final.jar:]

                                  at org.apache.el.parser.AstValue.getTarget(AstValue.java:94) [jbossweb-7.0.13.Final.jar:]

                                  at org.apache.el.parser.AstValue.invoke(AstValue.java:244) [jbossweb-7.0.13.Final.jar:]

                                  at org.apache.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:278) [jbossweb-7.0.13.Final.jar:]

                                  at com.sun.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:68) [jsf-facelets-1.1.15.jar:1.1.15]

                                  at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:88) [jsf-api-1.2_15-B02.jar:1.2_15-20100923-SNAPSHOT]

                                  at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102) [jsf-impl-1.2_15-B02.jar:1.2_15-20100923-SNAPSHOT]

                                  at javax.faces.component.UICommand.broadcast(UICommand.java:387) [jsf-api-1.2_15-B02.jar:1.2_15-20100923-SNAPSHOT]

                                  at org.ajax4jsf.component.AjaxViewRoot.processEvents(AjaxViewRoot.java:329) [richfaces-impl-3.3.3.Final.jar:3.3.3.Final]

                                  at org.ajax4jsf.component.AjaxViewRoot.broadcastEventsForPhase(AjaxViewRoot.java:304) [richfaces-impl-3.3.3.Final.jar:3.3.3.Final]

                                  at org.ajax4jsf.component.AjaxViewRoot.processPhase(AjaxViewRoot.java:261) [richfaces-impl-3.3.3.Final.jar:3.3.3.Final]

                                  at org.ajax4jsf.component.AjaxViewRoot.processApplication(AjaxViewRoot.java:474) [richfaces-impl-3.3.3.Final.jar:3.3.3.Final]

                                  at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:82) [jsf-impl-1.2_15-B02.jar:1.2_15-20100923-SNAPSHOT]

                                  at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100) [jsf-impl-1.2_15-B02.jar:1.2_15-20100923-SNAPSHOT]

                                  at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118) [jsf-impl-1.2_15-B02.jar:1.2_15-20100923-SNAPSHOT]

                                  at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265) [jsf-api-1.2_15-B02.jar:1.2_15-20100923-SNAPSHOT]

                                  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329) [jbossweb-7.0.13.Final.jar:]

                                  at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.13.Final.jar:]

                                  at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:206) [richfaces-impl-3.3.3.Final.jar:3.3.3.Final]

                                  at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290) [richfaces-impl-3.3.3.Final.jar:3.3.3.Final]

                                  at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:388) [richfaces-impl-3.3.3.Final.jar:3.3.3.Final]

                                  at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:515) [richfaces-impl-3.3.3.Final.jar:3.3.3.Final]

                                  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) [jbossweb-7.0.13.Final.jar:]

                                  at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.13.Final.jar:]

                                  at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275) [jbossweb-7.0.13.Final.jar:]

                                  at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161) [jbossweb-7.0.13.Final.jar:]

                                  at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:489) [jbossweb-7.0.13.Final.jar:]

                                  at org.jboss.as.jpa.interceptor.WebNonTxEmCloserValve.invoke(WebNonTxEmCloserValve.java:50) [jboss-as-jpa-7.1.1.Final.jar:7.1.1.Final]

                                  at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:153) [jboss-as-web-7.1.1.Final.jar:7.1.1.Final]

                                  at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155) [jbossweb-7.0.13.Final.jar:]

                                  at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [jbossweb-7.0.13.Final.jar:]

                                  at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [jbossweb-7.0.13.Final.jar:]

                                  at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:368) [jbossweb-7.0.13.Final.jar:]

                                  at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877) [jbossweb-7.0.13.Final.jar:]

                                  at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:671) [jbossweb-7.0.13.Final.jar:]

                                  at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:930) [jbossweb-7.0.13.Final.jar:]

                                  at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_24]

                               

                              10:53:04,317 SEVERE [javax.enterprise.resource.webcontainer.jsf.application] (http-localhost-127.0.0.1-8081-4) java.lang.NullPointerException: javax.faces.el.EvaluationException: java.lang.NullPointerException

                                  at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:102) [jsf-api-1.2_15-B02.jar:1.2_15-20100923-SNAPSHOT]

                                  at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102) [jsf-impl-1.2_15-B02.jar:1.2_15-20100923-SNAPSHOT]

                                  at javax.faces.component.UICommand.broadcast(UICommand.java:387) [jsf-api-1.2_15-B02.jar:1.2_15-20100923-SNAPSHOT]

                                  at org.ajax4jsf.component.AjaxViewRoot.processEvents(AjaxViewRoot.java:329) [richfaces-impl-3.3.3.Final.jar:3.3.3.Final]

                                  at org.ajax4jsf.component.AjaxViewRoot.broadcastEventsForPhase(AjaxViewRoot.java:304) [richfaces-impl-3.3.3.Final.jar:3.3.3.Final]

                                  at org.ajax4jsf.component.AjaxViewRoot.processPhase(AjaxViewRoot.java:261) [richfaces-impl-3.3.3.Final.jar:3.3.3.Final]

                                  at org.ajax4jsf.component.AjaxViewRoot.processApplication(AjaxViewRoot.java:474) [richfaces-impl-3.3.3.Final.jar:3.3.3.Final]

                                  at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:82) [jsf-impl-1.2_15-B02.jar:1.2_15-20100923-SNAPSHOT]

                                  at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100) [jsf-impl-1.2_15-B02.jar:1.2_15-20100923-SNAPSHOT]

                                  at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118) [jsf-impl-1.2_15-B02.jar:1.2_15-20100923-SNAPSHOT]

                                  at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265) [jsf-api-1.2_15-B02.jar:1.2_15-20100923-SNAPSHOT]

                                  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329) [jbossweb-7.0.13.Final.jar:]

                                  at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.13.Final.jar:]

                                  at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:206) [richfaces-impl-3.3.3.Final.jar:3.3.3.Final]

                                  at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290) [richfaces-impl-3.3.3.Final.jar:3.3.3.Final]

                                  at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:388) [richfaces-impl-3.3.3.Final.jar:3.3.3.Final]

                                  at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:515) [richfaces-impl-3.3.3.Final.jar:3.3.3.Final]

                                  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) [jbossweb-7.0.13.Final.jar:]

                                  at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.13.Final.jar:]

                                  at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275) [jbossweb-7.0.13.Final.jar:]

                                  at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161) [jbossweb-7.0.13.Final.jar:]

                                  at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:489) [jbossweb-7.0.13.Final.jar:]

                                  at org.jboss.as.jpa.interceptor.WebNonTxEmCloserValve.invoke(WebNonTxEmCloserValve.java:50) [jboss-as-jpa-7.1.1.Final.jar:7.1.1.Final]

                                  at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:153) [jboss-as-web-7.1.1.Final.jar:7.1.1.Final]

                                  at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155) [jbossweb-7.0.13.Final.jar:]

                                  at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [jbossweb-7.0.13.Final.jar:]

                                  at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [jbossweb-7.0.13.Final.jar:]

                                  at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:368) [jbossweb-7.0.13.Final.jar:]

                                  at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877) [jbossweb-7.0.13.Final.jar:]

                                  at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:671) [jbossweb-7.0.13.Final.jar:]

                                  at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:930) [jbossweb-7.0.13.Final.jar:]

                                  at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_24]

                              Caused by: java.lang.NullPointerException

                                  at Beans.ejbtest.hv(ejbtest.java:15) [classes:]

                                  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.6.0_24]

                                  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [rt.jar:1.6.0_24]

                                  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [rt.jar:1.6.0_24]

                                  at java.lang.reflect.Method.invoke(Method.java:597) [rt.jar:1.6.0_24]

                                  at org.apache.el.parser.AstValue.invoke(AstValue.java:262) [jbossweb-7.0.13.Final.jar:]

                                  at org.apache.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:278) [jbossweb-7.0.13.Final.jar:]

                                  at com.sun.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:68) [jsf-facelets-1.1.15.jar:1.1.15]

                                  at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:88) [jsf-api-1.2_15-B02.jar:1.2_15-20100923-SNAPSHOT]

                                  ... 31 more

                               

                              10:53:04,381 WARNING [javax.enterprise.resource.webcontainer.jsf.lifecycle] (http-localhost-127.0.0.1-8081-4) #{ejbtest.hv}: java.lang.NullPointerException: javax.faces.FacesException: #{ejbtest.hv}: java.lang.NullPointerException

                                  at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:118) [jsf-impl-1.2_15-B02.jar:1.2_15-20100923-SNAPSHOT]

                                  at javax.faces.component.UICommand.broadcast(UICommand.java:387) [jsf-api-1.2_15-B02.jar:1.2_15-20100923-SNAPSHOT]

                                  at org.ajax4jsf.component.AjaxViewRoot.processEvents(AjaxViewRoot.java:329) [richfaces-impl-3.3.3.Final.jar:3.3.3.Final]

                                  at org.ajax4jsf.component.AjaxViewRoot.broadcastEventsForPhase(AjaxViewRoot.java:304) [richfaces-impl-3.3.3.Final.jar:3.3.3.Final]

                                  at org.ajax4jsf.component.AjaxViewRoot.processPhase(AjaxViewRoot.java:261) [richfaces-impl-3.3.3.Final.jar:3.3.3.Final]

                                  at org.ajax4jsf.component.AjaxViewRoot.processApplication(AjaxViewRoot.java:474) [richfaces-impl-3.3.3.Final.jar:3.3.3.Final]

                                  at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:82) [jsf-impl-1.2_15-B02.jar:1.2_15-20100923-SNAPSHOT]

                                  at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100) [jsf-impl-1.2_15-B02.jar:1.2_15-20100923-SNAPSHOT]

                                  at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118) [jsf-impl-1.2_15-B02.jar:1.2_15-20100923-SNAPSHOT]

                                  at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265) [jsf-api-1.2_15-B02.jar:1.2_15-20100923-SNAPSHOT]

                                  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329) [jbossweb-7.0.13.Final.jar:]

                                  at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.13.Final.jar:]

                                  at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:206) [richfaces-impl-3.3.3.Final.jar:3.3.3.Final]

                                  at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290) [richfaces-impl-3.3.3.Final.jar:3.3.3.Final]

                                  at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:388) [richfaces-impl-3.3.3.Final.jar:3.3.3.Final]

                                  at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:515) [richfaces-impl-3.3.3.Final.jar:3.3.3.Final]

                                  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) [jbossweb-7.0.13.Final.jar:]

                                  at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.13.Final.jar:]

                                  at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275) [jbossweb-7.0.13.Final.jar:]

                                  at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161) [jbossweb-7.0.13.Final.jar:]

                                  at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:489) [jbossweb-7.0.13.Final.jar:]

                                  at org.jboss.as.jpa.interceptor.WebNonTxEmCloserValve.invoke(WebNonTxEmCloserValve.java:50) [jboss-as-jpa-7.1.1.Final.jar:7.1.1.Final]

                                  at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:153) [jboss-as-web-7.1.1.Final.jar:7.1.1.Final]

                                  at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155) [jbossweb-7.0.13.Final.jar:]

                                  at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [jbossweb-7.0.13.Final.jar:]

                                  at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [jbossweb-7.0.13.Final.jar:]

                                  at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:368) [jbossweb-7.0.13.Final.jar:]

                                  at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877) [jbossweb-7.0.13.Final.jar:]

                                  at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:671) [jbossweb-7.0.13.Final.jar:]

                                  at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:930) [jbossweb-7.0.13.Final.jar:]

                                  at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_24]

                              Caused by: javax.faces.el.EvaluationException: java.lang.NullPointerException

                                  at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:102) [jsf-api-1.2_15-B02.jar:1.2_15-20100923-SNAPSHOT]

                                  at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102) [jsf-impl-1.2_15-B02.jar:1.2_15-20100923-SNAPSHOT]

                                  ... 30 more

                              Caused by: java.lang.NullPointerException

                                  at Beans.ejbtest.hv(ejbtest.java:15) [classes:]

                                  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.6.0_24]

                                  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [rt.jar:1.6.0_24]

                                  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [rt.jar:1.6.0_24]

                                  at java.lang.reflect.Method.invoke(Method.java:597) [rt.jar:1.6.0_24]

                                  at org.apache.el.parser.AstValue.invoke(AstValue.java:262) [jbossweb-7.0.13.Final.jar:]

                                  at org.apache.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:278) [jbossweb-7.0.13.Final.jar:]

                                  at com.sun.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:68) [jsf-facelets-1.1.15.jar:1.1.15]

                                  at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:88) [jsf-api-1.2_15-B02.jar:1.2_15-20100923-SNAPSHOT]

                                  ... 31 more

                               

                              10:53:04,454 SEVERE [javax.enterprise.resource.webcontainer.jsf.lifecycle] (http-localhost-127.0.0.1-8081-4) JSF1054: (Phase ID: INVOKE_APPLICATION 5, View ID: /test.xhtml) Exception thrown during phase execution: javax.faces.event.PhaseEvent[source=com.sun.faces.lifecycle.LifecycleImpl@dc0dd8]

                              10:53:04,457 ERROR [org.ajax4jsf.webapp.BaseXMLFilter] (http-localhost-127.0.0.1-8081-4) Exception in the filter chain: javax.servlet.ServletException: #{ejbtest.hv}: java.lang.NullPointerException

                                  at javax.faces.webapp.FacesServlet.service(FacesServlet.java:277) [jsf-api-1.2_15-B02.jar:1.2_15-20100923-SNAPSHOT]

                                  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329) [jbossweb-7.0.13.Final.jar:]

                                  at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.13.Final.jar:]

                                  at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:206) [richfaces-impl-3.3.3.Final.jar:3.3.3.Final]

                                  at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290) [richfaces-impl-3.3.3.Final.jar:3.3.3.Final]

                                  at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:388) [richfaces-impl-3.3.3.Final.jar:3.3.3.Final]

                                  at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:515) [richfaces-impl-3.3.3.Final.jar:3.3.3.Final]

                                  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) [jbossweb-7.0.13.Final.jar:]

                                  at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.13.Final.jar:]

                                  at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275) [jbossweb-7.0.13.Final.jar:]

                                  at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161) [jbossweb-7.0.13.Final.jar:]

                                  at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:489) [jbossweb-7.0.13.Final.jar:]

                                  at org.jboss.as.jpa.interceptor.WebNonTxEmCloserValve.invoke(WebNonTxEmCloserValve.java:50) [jboss-as-jpa-7.1.1.Final.jar:7.1.1.Final]

                                  at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:153) [jboss-as-web-7.1.1.Final.jar:7.1.1.Final]

                                  at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155) [jbossweb-7.0.13.Final.jar:]

                                  at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [jbossweb-7.0.13.Final.jar:]

                                  at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [jbossweb-7.0.13.Final.jar:]

                                  at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:368) [jbossweb-7.0.13.Final.jar:]

                                  at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877) [jbossweb-7.0.13.Final.jar:]

                                  at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:671) [jbossweb-7.0.13.Final.jar:]

                                  at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:930) [jbossweb-7.0.13.Final.jar:]

                                  at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_24]

                              Caused by: javax.faces.FacesException: #{ejbtest.hv}: java.lang.NullPointerException

                                  at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:118) [jsf-impl-1.2_15-B02.jar:1.2_15-20100923-SNAPSHOT]

                                  at javax.faces.component.UICommand.broadcast(UICommand.java:387) [jsf-api-1.2_15-B02.jar:1.2_15-20100923-SNAPSHOT]

                                  at org.ajax4jsf.component.AjaxViewRoot.processEvents(AjaxViewRoot.java:329) [richfaces-impl-3.3.3.Final.jar:3.3.3.Final]

                                  at org.ajax4jsf.component.AjaxViewRoot.broadcastEventsForPhase(AjaxViewRoot.java:304) [richfaces-impl-3.3.3.Final.jar:3.3.3.Final]

                                  at org.ajax4jsf.component.AjaxViewRoot.processPhase(AjaxViewRoot.java:261) [richfaces-impl-3.3.3.Final.jar:3.3.3.Final]

                                  at org.ajax4jsf.component.AjaxViewRoot.processApplication(AjaxViewRoot.java:474) [richfaces-impl-3.3.3.Final.jar:3.3.3.Final]

                                  at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:82) [jsf-impl-1.2_15-B02.jar:1.2_15-20100923-SNAPSHOT]

                                  at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100) [jsf-impl-1.2_15-B02.jar:1.2_15-20100923-SNAPSHOT]

                                  at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118) [jsf-impl-1.2_15-B02.jar:1.2_15-20100923-SNAPSHOT]

                                  at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265) [jsf-api-1.2_15-B02.jar:1.2_15-20100923-SNAPSHOT]

                                  ... 21 more

                              Caused by: javax.faces.el.EvaluationException: java.lang.NullPointerException

                                  at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:102) [jsf-api-1.2_15-B02.jar:1.2_15-20100923-SNAPSHOT]

                                  at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102) [jsf-impl-1.2_15-B02.jar:1.2_15-20100923-SNAPSHOT]

                                  ... 30 more

                              Caused by: java.lang.NullPointerException

                                  at Beans.ejbtest.hv(ejbtest.java:15) [classes:]

                                  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.6.0_24]

                                  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [rt.jar:1.6.0_24]

                                  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [rt.jar:1.6.0_24]

                                  at java.lang.reflect.Method.invoke(Method.java:597) [rt.jar:1.6.0_24]

                                  at org.apache.el.parser.AstValue.invoke(AstValue.java:262) [jbossweb-7.0.13.Final.jar:]

                                  at org.apache.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:278) [jbossweb-7.0.13.Final.jar:]

                                  at com.sun.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:68) [jsf-facelets-1.1.15.jar:1.1.15]

                                  at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:88) [jsf-api-1.2_15-B02.jar:1.2_15-20100923-SNAPSHOT]

                                  ... 31 more

                               

                              10:53:04,510 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/WEBEARWeb].[Faces Servlet]] (http-localhost-127.0.0.1-8081-4) Servlet.service() for servlet Faces Servlet threw exception: java.lang.NullPointerException

                                  at Beans.ejbtest.hv(ejbtest.java:15) [classes:]

                                  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.6.0_24]

                                  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [rt.jar:1.6.0_24]

                                  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [rt.jar:1.6.0_24]

                                  at java.lang.reflect.Method.invoke(Method.java:597) [rt.jar:1.6.0_24]

                                  at org.apache.el.parser.AstValue.invoke(AstValue.java:262) [jbossweb-7.0.13.Final.jar:]

                                  at org.apache.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:278) [jbossweb-7.0.13.Final.jar:]

                                  at com.sun.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:68) [jsf-facelets-1.1.15.jar:1.1.15]

                                  at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:88) [jsf-api-1.2_15-B02.jar:1.2_15-20100923-SNAPSHOT]

                                  at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102) [jsf-impl-1.2_15-B02.jar:1.2_15-20100923-SNAPSHOT]

                                  at javax.faces.component.UICommand.broadcast(UICommand.java:387) [jsf-api-1.2_15-B02.jar:1.2_15-20100923-SNAPSHOT]

                                  at org.ajax4jsf.component.AjaxViewRoot.processEvents(AjaxViewRoot.java:329) [richfaces-impl-3.3.3.Final.jar:3.3.3.Final]

                                  at org.ajax4jsf.component.AjaxViewRoot.broadcastEventsForPhase(AjaxViewRoot.java:304) [richfaces-impl-3.3.3.Final.jar:3.3.3.Final]

                                  at org.ajax4jsf.component.AjaxViewRoot.processPhase(AjaxViewRoot.java:261) [richfaces-impl-3.3.3.Final.jar:3.3.3.Final]

                                  at org.ajax4jsf.component.AjaxViewRoot.processApplication(AjaxViewRoot.java:474) [richfaces-impl-3.3.3.Final.jar:3.3.3.Final]

                                  at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:82) [jsf-impl-1.2_15-B02.jar:1.2_15-20100923-SNAPSHOT]

                                  at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100) [jsf-impl-1.2_15-B02.jar:1.2_15-20100923-SNAPSHOT]

                                  at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118) [jsf-impl-1.2_15-B02.jar:1.2_15-20100923-SNAPSHOT]

                                  at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265) [jsf-api-1.2_15-B02.jar:1.2_15-20100923-SNAPSHOT]

                                  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329) [jbossweb-7.0.13.Final.jar:]

                                  at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.13.Final.jar:]

                                  at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:206) [richfaces-impl-3.3.3.Final.jar:3.3.3.Final]

                                  at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290) [richfaces-impl-3.3.3.Final.jar:3.3.3.Final]

                                  at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:388) [richfaces-impl-3.3.3.Final.jar:3.3.3.Final]

                                  at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:515) [richfaces-impl-3.3.3.Final.jar:3.3.3.Final]

                                  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) [jbossweb-7.0.13.Final.jar:]

                                  at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.13.Final.jar:]

                                  at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275) [jbossweb-7.0.13.Final.jar:]

                                  at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161) [jbossweb-7.0.13.Final.jar:]

                                  at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:489) [jbossweb-7.0.13.Final.jar:]

                                  at org.jboss.as.jpa.interceptor.WebNonTxEmCloserValve.invoke(WebNonTxEmCloserValve.java:50) [jboss-as-jpa-7.1.1.Final.jar:7.1.1.Final]

                                  at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:153) [jboss-as-web-7.1.1.Final.jar:7.1.1.Final]

                                  at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155) [jbossweb-7.0.13.Final.jar:]

                                  at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [jbossweb-7.0.13.Final.jar:]

                                  at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [jbossweb-7.0.13.Final.jar:]

                                  at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:368) [jbossweb-7.0.13.Final.jar:]

                                  at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877) [jbossweb-7.0.13.Final.jar:]

                                  at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:671) [jbossweb-7.0.13.Final.jar:]

                                  at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:930) [jbossweb-7.0.13.Final.jar:]

                                  at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_24]

                              • 12. Re: @EJB not working
                                Danilo Diaz Newbie

                                I found this tag in my web.xml

                                <context-param>

                                    <param-name>com.sun.faces.injectionProvider</param-name>

                                    <param-value>

                                        com.sun.faces.vendor.WebContainerInjectionProvider

                                    </param-value>

                                </context-param>

                                 

                                I removed it and everything is working fine now

                                 

                                It worked on jboss 6.1 but not on jboss 7.1.1. NOW IT WORKS

                                • 13. Re: @EJB not working
                                  Mahesh Pal Newbie

                                  hi Danilo,

                                  i read about this context param. com.sun.faces.vendor.WebContainerInjectionProvider is a default injection provider so even if u dont use this param in web.xml, same injection provider will be used.any way i dont have this context param in my web.xml

                                  but as u said its working.....

                                  r u using the server provided jsf ??????

                                  if not can u please attach ur web.xml if u dont mind.

                                  • 14. Re: @EJB not working
                                    Danilo Diaz Newbie

                                    HI, this is my web.xml (without the "evil" tag)

                                     

                                    <?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>LOCALE</param-name>

                                        <param-value>es-CO</param-value>

                                    </context-param>

                                    <context-param>

                                      <param-name>com.sun.faces.enableRestoreView11Compatibility</param-name>

                                      <param-value>true</param-value>

                                    </context-param>

                                    <context-param>

                                      <param-name>facelets.LIBRARIES</param-name>

                                      <param-value>/META-INF/customtags.taglib.xml</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>javax.faces.STATE_SAVING_METHOD</param-name>

                                      <param-value>server</param-value>

                                    </context-param>

                                    <context-param>

                                      <param-name>org.ajax4jsf.COMPRESS_SCRIPT</param-name>

                                      <param-value>true</param-value>

                                    </context-param>

                                    <context-param>

                                      <param-name>org.ajax4jsf.COMPRESS_STYLE</param-name>

                                      <param-value>true</param-value>

                                    </context-param>

                                    <context-param>

                                      <param-name>org.ajax4jsf.SKIN</param-name>

                                      <param-value>classic</param-value>

                                    </context-param>

                                    <context-param>

                                         <param-name>javax.faces.DISABLE_FACELET_JSF_VIEWHANDLER</param-name>

                                         <param-value>true</param-value>

                                    </context-param>

                                     

                                    <!-- Context params Ajax4Jsf -->

                                    <context-param>

                                      <param-name>org.ajax4jsf.VIEW_HANDLERS</param-name>

                                      <param-value>com.sun.facelets.FaceletViewHandler</param-value>

                                    </context-param>

                                    <context-param>

                                      <param-name>org.ajax4jsf.handleViewExpiredOnClient</param-name>

                                      <param-value>true</param-value>

                                    </context-param>

                                     

                                     

                                     

                                    <filter>

                                      <display-name>Ajax4jsf Filter</display-name>

                                      <filter-name>ajax4jsf</filter-name>

                                      <filter-class>org.ajax4jsf.Filter</filter-class>

                                    </filter>

                                    <filter>

                                      <display-name>FiltroSeguridad</display-name>

                                      <filter-name>FiltroSeguridad</filter-name>

                                      <filter-class>com.jtccia.gestorclientes.web.filter.FiltroSeguridad</filter-class>

                                      <init-param>

                                       <param-name>acceptedURLs</param-name>

                                       <param-value>/ServletReinicio,

                                                       /gestion/consultaGestiones.jsf,

                                                       /a4j/*,

                                                    /stylesheet/*,

                                                    /img/*,

                                                    /js/*,

                                                    /error/*,

                                                    *.css,

                                                    *.js,

                                                    *.png,

                                                    *.jpg,

                                                    *.gif,

                                                    *.ico</param-value>

                                      </init-param>

                                    </filter>

                                    <filter-mapping>

                                      <filter-name>ajax4jsf</filter-name>

                                      <servlet-name>Faces Servlet</servlet-name>

                                      <dispatcher>REQUEST</dispatcher>

                                      <dispatcher>FORWARD</dispatcher>

                                      <dispatcher>INCLUDE</dispatcher>

                                    </filter-mapping>

                                    <filter-mapping>

                                      <filter-name>FiltroSeguridad</filter-name>

                                      <url-pattern>/*</url-pattern>

                                      <dispatcher>FORWARD</dispatcher>

                                      <dispatcher>INCLUDE</dispatcher>

                                      <dispatcher>REQUEST</dispatcher>

                                    </filter-mapping>

                                    <!-- listener -->

                                    <listener>

                                      <listener-class>com.jtccia.gestorclientes.web.listener.ServletContextListener</listener-class>

                                    </listener>

                                    <listener>

                                      <listener-class>com.jtccia.gestorclientes.web.listener.WebSessionListener</listener-class>

                                    </listener>

                                    <servlet>

                                      <servlet-name>Faces Servlet</servlet-name>

                                      <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>

                                      <load-on-startup>1</load-on-startup>

                                    </servlet>

                                    <servlet>

                                      <description>Servlet generador de Reportes</description>

                                      <display-name>ServletReportes</display-name>

                                      <servlet-name>ServletReportes</servlet-name>

                                      <servlet-class>com.jtccia.gestorclientes.web.servlet.ServletReportes</servlet-class>

                                    </servlet>

                                    <servlet>

                                      <description>Servlet Reinicio del Cache de Multivaluados</description>

                                      <display-name>ServletReinicio</display-name>

                                      <servlet-name>ServletReinicio</servlet-name>

                                      <servlet-class>com.jtccia.gestorclientes.web.servlet.ServletReinicio</servlet-class>

                                    </servlet>

                                     

                                     

                                     

                                     

                                     

                                    <servlet-mapping>

                                      <servlet-name>Faces Servlet</servlet-name>

                                      <url-pattern>*.jsf</url-pattern>

                                    </servlet-mapping>

                                    <servlet-mapping>

                                      <servlet-name>ServletReportes</servlet-name>

                                      <url-pattern>/servletReportes</url-pattern>

                                    </servlet-mapping>

                                     

                                    <servlet-mapping>

                                      <servlet-name>ServletReinicio</servlet-name>

                                      <url-pattern>/ServletReinicio</url-pattern>

                                    </servlet-mapping>

                                     

                                    <session-config>

                                      <session-timeout>60</session-timeout> 

                                    </session-config>

                                    <error-page>

                                      <error-code>403</error-code>

                                      <location>/error/error403.xhtml</location>

                                    </error-page>

                                    <error-page>

                                      <exception-type>java.lang.IllegalArgumentException</exception-type>

                                      <location>/error/sinSession.html</location>

                                    </error-page>

                                     

                                    <error-page>

                                      <exception-type>com.jtccia.gestorclientes.excepcion.SistemaExcepcion</exception-type>

                                      <location>/error/errorNoControlado.html</location>

                                    </error-page>

                                     

                                    </web-app>

                                    1 2 Previous Next