You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Ekrem Aksoy <fo...@yahoo.com> on 2001/06/03 13:03:55 UTC

i could not see the session example!!!

I am using 3.2.1 on SuSE 7, tomcat started well ,and i
was checking the examples but it gives this error:
Error: 500

Location: /examples/servlet/SessionExample

Internal Servlet Error:

java.lang.NoSuchMethodError:
javax.servlet.http.HttpSession: method
getAttributeNames()Ljava/util/Enumeration; not found
        at
SessionExample.doGet(SessionExample.java:70)
        at
javax.servlet.http.HttpServlet.service(HttpServlet.java:715)
        at
javax.servlet.http.HttpServlet.service(HttpServlet.java:840)
        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:475)
-----
,Then i tried my own session servlet and it gives same
error, i am a newbie, so what could be the problem...?
P.S: i think i set the CLASSPATH well

__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35 
a year!  http://personal.mail.yahoo.com/

Re: i could not see the session example!!!

Posted by Wyn Easton <wy...@yahoo.com>.
Just a guess, but since getAttributeNames() is a valid
servlet method, maybe you are picking up an old
servlet.jar file.  Check out your classpath and make
sure you are pointing to servlet.jar in the 3.2.1
tomcat you just installed.


--- Ekrem Aksoy <fo...@yahoo.com> wrote:
> I am using 3.2.1 on SuSE 7, tomcat started well ,and
> i
> was checking the examples but it gives this error:
> Error: 500
> 
> Location: /examples/servlet/SessionExample
> 
> Internal Servlet Error:
> 
> java.lang.NoSuchMethodError:
> javax.servlet.http.HttpSession: method
> getAttributeNames()Ljava/util/Enumeration; not found
>         at
> SessionExample.doGet(SessionExample.java:70)
>         at
>
javax.servlet.http.HttpServlet.service(HttpServlet.java:715)
>         at
>
javax.servlet.http.HttpServlet.service(HttpServlet.java:840)
>         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:475)
> -----
> ,Then i tried my own session servlet and it gives
> same
> error, i am a newbie, so what could be the
> problem...?
> P.S: i think i set the CLASSPATH well
> 
> __________________________________________________
> Do You Yahoo!?
> Get personalized email addresses from Yahoo! Mail -
> only $35 
> a year!  http://personal.mail.yahoo.com/


__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35 
a year!  http://personal.mail.yahoo.com/