javax.servlet.ServletException: Uh oh -- JNDI problem !

Google Groups | Roberto | 7 years ago
  1. 0

    Developing a SIP application with SEAM framework

    Google Groups | 7 years ago | Roberto
    javax.servlet.ServletException: Uh oh -- JNDI problem !
  2. 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)
  3. 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)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 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)
  6. 0

    Need help for hibernate datasource config and dialect loading for hibernate 4.3.8 with tomcat 6.0.36

    Stack Overflow | 2 years ago
    javax.servlet.ServletException: Unable to lookup JNDI name [java:comp/env/jdbc/db2]

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. javax.servlet.ServletException

      Uh oh -- JNDI problem !

      at com.solaiemes.RCS.servlet.RCSGWSipServlet.init()
    2. com.solaiemes.RCS
      RCSGWSipServlet.init
      1. com.solaiemes.RCS.servlet.RCSGWSipServlet.init(RCSGWSipServlet.java:52)
      1 frame
    3. Glassfish Core
      StandardWrapper.loadServlet
      1. org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1048)
      1 frame