javax.servlet.ServletException: Uh oh -- JNDI problem ! >         at com.solaiemes.RCS.servlet.RCSGWSipServlet.init > (RCSGWSipServlet.java:52) >         at org.apache.catalina.core.StandardWrapper.loadServlet > (StandardWrapper.java:1048) > > So, it is not able to instantiate the listener class. Is there any > configuration change needed? > > Thanks  a lot. > -Roberto > > On Dec 1, 12:44 pm, Vladimir Ralev <vladimi...@gmail.com> wrote: > > > The NPE comes from your code, so what on line 40 in your servlet? Also, > > you should use > > @Resource(mappedName="java:comp/env/sip/RCSGW/SipFactory") SipFactory > > sipFactory; > > > The place for RCSGW is the name of the EAR, not the name of the > > servlet, and thus you don't have dependencies on the servlet. > > > On Tue, Dec 1, 2009 at 12:46 PM, Roberto <rvaqu...@googlemail.com> wrote: > > > OK, as I said, I have created my servlet class, and included it into > > > the sip.xml config file. > > > > When the AS starts, it gives an error upon initialization of the > > > servlet. > > > > The good news is that the servlet class is found properly. But, > > > somehow is not successfully initialized. > > > > Any idea? > > > > Thanks a lot. > > > _Roberto > > > > 11:33:53,386 ERROR [[/RCSGW]] StandardWrapper.Throwable > > > java.lang.NullPointerException at com.solaiemes.RCS.servlet.RCSGWSipServlet.init > > > (RCSGWSipServlet.java:40) at org.apache.catalina.core.StandardWrapper.loadServlet > > > (StandardWrapper.java:1048) at org.apache.catalina.core.StandardWrapper.allocate > > > (StandardWrapper.java:777) at > > > org.mobicents.servlet.sip.core.session.SipListenersHolder.loadListeners > > > (SipListenersHolder.java:103) at org.mobicents.servlet.sip.startup.SipStandardContext.listenerStart > > > (SipStandardContext.java:348) at org.apache.catalina.core.StandardContext.start > > > (StandardContext.java:4393) at org.mobicents.servlet.sip.startup.SipStandardContext.start > > > (SipStandardContext.java:285) at > > > org.jboss.web.tomcat.service.deployers.TomcatConvergedDeployment.performDeployInternal > > > (TomcatConvergedDeployment.java:276) at > > > org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy > > > (TomcatDeployment.java:142) at org.jboss.web.deployers.AbstractWarDeployment.start > > > (AbstractWarDeployment.java:461) at org.jboss.sip.deployers.ConvergedSipModule.startModule > > > (ConvergedSipModule.java:68)

Google Groups | Roberto | 7 years ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    Developing a SIP application with SEAM framework

    Google Groups | 7 years ago | Roberto
    javax.servlet.ServletException: Uh oh -- JNDI problem ! >         at com.solaiemes.RCS.servlet.RCSGWSipServlet.init > (RCSGWSipServlet.java:52) >         at org.apache.catalina.core.StandardWrapper.loadServlet > (StandardWrapper.java:1048) > > So, it is not able to instantiate the listener class. Is there any > configuration change needed? > > Thanks  a lot. > -Roberto > > On Dec 1, 12:44 pm, Vladimir Ralev <vladimi...@gmail.com> wrote: > > > The NPE comes from your code, so what on line 40 in your servlet? Also, > > you should use > > @Resource(mappedName="java:comp/env/sip/RCSGW/SipFactory") SipFactory > > sipFactory; > > > The place for RCSGW is the name of the EAR, not the name of the > > servlet, and thus you don't have dependencies on the servlet. > > > On Tue, Dec 1, 2009 at 12:46 PM, Roberto <rvaqu...@googlemail.com> wrote: > > > OK, as I said, I have created my servlet class, and included it into > > > the sip.xml config file. > > > > When the AS starts, it gives an error upon initialization of the > > > servlet. > > > > The good news is that the servlet class is found properly. But, > > > somehow is not successfully initialized. > > > > Any idea? > > > > Thanks a lot. > > > _Roberto > > > > 11:33:53,386 ERROR [[/RCSGW]] StandardWrapper.Throwable > > > java.lang.NullPointerException at com.solaiemes.RCS.servlet.RCSGWSipServlet.init > > > (RCSGWSipServlet.java:40) at org.apache.catalina.core.StandardWrapper.loadServlet > > > (StandardWrapper.java:1048) at org.apache.catalina.core.StandardWrapper.allocate > > > (StandardWrapper.java:777) at > > > org.mobicents.servlet.sip.core.session.SipListenersHolder.loadListeners > > > (SipListenersHolder.java:103) at org.mobicents.servlet.sip.startup.SipStandardContext.listenerStart > > > (SipStandardContext.java:348) at org.apache.catalina.core.StandardContext.start > > > (StandardContext.java:4393) at org.mobicents.servlet.sip.startup.SipStandardContext.start > > > (SipStandardContext.java:285) at > > > org.jboss.web.tomcat.service.deployers.TomcatConvergedDeployment.performDeployInternal > > > (TomcatConvergedDeployment.java:276) at > > > org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy > > > (TomcatDeployment.java:142) at org.jboss.web.deployers.AbstractWarDeployment.start > > > (AbstractWarDeployment.java:461) at org.jboss.sip.deployers.ConvergedSipModule.startModule > > > (ConvergedSipModule.java:68)

    Root Cause Analysis

    1. javax.servlet.ServletException

      Uh oh -- JNDI problem ! >         at com.solaiemes.RCS.servlet.RCSGWSipServlet.init > (RCSGWSipServlet.java:52) >         at org.apache.catalina.core.StandardWrapper.loadServlet > (StandardWrapper.java:1048) > > So, it is not able to instantiate the listener class. Is there any > configuration change needed? > > Thanks  a lot. > -Roberto > > On Dec 1, 12:44 pm, Vladimir Ralev <vladimi...@gmail.com> wrote: > > > The NPE comes from your code, so what on line 40 in your servlet? Also, > > you should use > > @Resource(mappedName="java:comp/env/sip/RCSGW/SipFactory") SipFactory > > sipFactory; > > > The place for RCSGW is the name of the EAR, not the name of the > > servlet, and thus you don't have dependencies on the servlet. > > > On Tue, Dec 1, 2009 at 12:46 PM, Roberto <rvaqu...@googlemail.com> wrote: > > > OK, as I said, I have created my servlet class, and included it into > > > the sip.xml config file. > > > > When the AS starts, it gives an error upon initialization of the > > > servlet. > > > > The good news is that the servlet class is found properly. But, > > > somehow is not successfully initialized. > > > > Any idea? > > > > Thanks a lot. > > > _Roberto > > > > 11:33:53,386 ERROR [[/RCSGW]] StandardWrapper.Throwable > > > java.lang.NullPointerException at com.solaiemes.RCS.servlet.RCSGWSipServlet.init > > > (RCSGWSipServlet.java:40) at org.apache.catalina.core.StandardWrapper.loadServlet > > > (StandardWrapper.java:1048) at org.apache.catalina.core.StandardWrapper.allocate > > > (StandardWrapper.java:777) at > > > org.mobicents.servlet.sip.core.session.SipListenersHolder.loadListeners > > > (SipListenersHolder.java:103) at org.mobicents.servlet.sip.startup.SipStandardContext.listenerStart > > > (SipStandardContext.java:348) at org.apache.catalina.core.StandardContext.start > > > (StandardContext.java:4393) at org.mobicents.servlet.sip.startup.SipStandardContext.start > > > (SipStandardContext.java:285) at > > > org.jboss.web.tomcat.service.deployers.TomcatConvergedDeployment.performDeployInternal > > > (TomcatConvergedDeployment.java:276) at > > > org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy > > > (TomcatDeployment.java:142) at org.jboss.web.deployers.AbstractWarDeployment.start > > > (AbstractWarDeployment.java:461) at org.jboss.sip.deployers.ConvergedSipModule.startModule > > > (ConvergedSipModule.java:68)

      at org.jboss.web.deployers.WebModule.start()
    2. JBoss Application Server Server
      WebModule.start
      1. org.jboss.web.deployers.WebModule.start(WebModule.java:97)
      1 frame
    3. Java RT
      NativeMethodAccessorImpl.invoke0
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      1 frame