Women in Technology

Hear us Roar



Article:
  Deploying Web Applications to Tomcat
Subject:   Error with getServletContext
Date:   2002-07-24 07:39:05
From:   laubert
Hello, i am a french developper...


i have always this error when a i use this method getServletContext:


2002-07-24 04:39:15 - Ctx( ): Exception in: R( + /servlet/PoolTestServlet + null) - java.lang.NullPointerException
at javax.servlet.GenericServlet.getServletContext(GenericServlet.java:205)
at PoolTestServlet.doGet(PoolTestServlet.java:73)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
at org.apache.tomcat.core.Handler.service(Handler.java:286)
at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:210)
at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
at java.lang.Thread.run(Thread.java:536)



HELP ME PLEASE?


LUDOVIC


Main Topics Oldest First

Showing messages 1 through 1 of 1.

  • Error with getServletContext
    2003-04-14 06:46:22  anonymous2 [View]

    Hello,

    Have you found a solution?

    Tks,
    Nico (nidemesy@hotmail.com)