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)

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web7095

  • via Google Groups by Roberto, 11 months ago
    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
  • Wrapper cannot find servlet class > > init.as or > > a class it depends on at org.apache.catalina.core.StandardWrapper.loadServlet( > > StandardWrapper.java:1035) at org.apache.catalina.core.StandardWrapper.allocate( > > StandardWrapper.java:750) at org.apache.catalina.servlets.InvokerServlet.serveRequest( > > InvokerServlet.java:369) at org.apache.catalina.servlets.InvokerServlet.doGet( > > InvokerServlet.java:133)
  • via Jenkins JIRA by Scott Tatum, 1 year ago
    allows you to publish your documents that are created in the build steps.", "name": "doclinks", "previousTimestamp": "2009-07-21T06:40:24.00Z", "releaseTimestamp": "2009-07-25T17:54:58.00Z", "requiredCore": "1.317", "title": "DocLinks Plugin", "url
  • Stack trace

    • 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(WebModule.java:97) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    You’re the first here who have seen this exception.