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)

Searched on Google with the first line of a JAVAstack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Google Groups by Roberto, 1 year 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
```javax.servlet.ServletException: Uh oh -- JNDI problem !
> > >         at com.solaiemes.RCS.servlet.RCSGWSipServlet.init
> > > (RCSGWSipServlet.java:52)
> > > (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)
> > > > > (StandardWrapper.java:1048)
at org.apache.catalina.core.StandardWrapper.allocate
> > > > > (StandardWrapper.java:777)
at
>
> > > > > (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)```

Users with the same issue

You are the first who have seen this exception.

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.