You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Mason Holding <mh...@scale8.com> on 2000/05/10 02:14:19 UTC

Error: 500 on servlet example

Hi all,

I was able to successfully install tomcat on a redhat machine with a 2.2.12
kernel running with apache 1.3.9, jdk1.2.2.  All of the servlet examples
work fine except for the SessionExample, where it returns the Error: 500.
The trace looks like the following:

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:541)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:646)

What's up with this?  It claims there is no such method in sun's servlet
code.  I know this is not true because I checked.

Any ideas?


--Mason Holding

RE: Error: 500 on servlet example

Posted by Andrew Cathrow <ac...@seagull.nl>.
Servlet examples are already compiled code - but JSP's are source that is
compiled on the first request for them.
It sounds like javac cannot be found - or issues with classpath - is
java_home correctly set ?


-----Original Message-----
From: Mason Holding [mailto:mholding@scale8.com]
Sent: 10 May 2000 01:14
To: 'tomcat-user@jakarta.apache.org'
Subject: Error: 500 on servlet example



Hi all,

I was able to successfully install tomcat on a redhat machine with a 2.2.12
kernel running with apache 1.3.9, jdk1.2.2.  All of the servlet examples
work fine except for the SessionExample, where it returns the Error: 500.
The trace looks like the following:

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:541)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:646)

What's up with this?  It claims there is no such method in sun's servlet
code.  I know this is not true because I checked.

Any ideas?


--Mason Holding

--------------------------------------------------------------------------
To unsubscribe, email: tomcat-user-unsubscribe@jakarta.apache.org
For additional commmands, email: tomcat-user-help@jakarta.apache.org


RE: Error: 500 on servlet example

Posted by James DiZoglio <ze...@firstworld.net>.
I also found my bashrc file.

Jim

-----Original Message-----
From: Carl Parrish [mailto:cparrish@computerprep.com]
Sent: Tuesday, May 09, 2000 5:44 PM
To: tomcat-user@jakarta.apache.org
Subject: RE: Error: 500 on servlet example


I think I must have screwed up my %Java_Home% variable setting. Because All
of my serverlets examples are working but none of my JSP examples are. Where
do I find the Java_Home variable and what *should* it be set for?

Carl Parrish
Webmaster
ComputerPREP.com


-----Original Message-----
From: James DiZoglio [mailto:zeppelin@firstworld.net]
Sent: Tuesday, May 09, 2000 5:26 PM
To: tomcat-user@jakarta.apache.org
Subject: RE: Error: 500 on servlet example


enviornment variables are not set.

-----Original Message-----
From: Mason Holding [mailto:mholding@scale8.com]
Sent: Tuesday, May 09, 2000 5:14 PM
To: 'tomcat-user@jakarta.apache.org'
Subject: Error: 500 on servlet example



Hi all,

I was able to successfully install tomcat on a redhat machine with a 2.2.12
kernel running with apache 1.3.9, jdk1.2.2.  All of the servlet examples
work fine except for the SessionExample, where it returns the Error: 500.
The trace looks like the following:

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:541)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:646)

What's up with this?  It claims there is no such method in sun's servlet
code.  I know this is not true because I checked.

Any ideas?


--Mason Holding

--------------------------------------------------------------------------
To unsubscribe, email: tomcat-user-unsubscribe@jakarta.apache.org
For additional commmands, email: tomcat-user-help@jakarta.apache.org



--------------------------------------------------------------------------
To unsubscribe, email: tomcat-user-unsubscribe@jakarta.apache.org
For additional commmands, email: tomcat-user-help@jakarta.apache.org


--------------------------------------------------------------------------
To unsubscribe, email: tomcat-user-unsubscribe@jakarta.apache.org
For additional commmands, email: tomcat-user-help@jakarta.apache.org


RE: Error: 500 on servlet example

Posted by James DiZoglio <ze...@firstworld.net>.
I found a file that I created at the time as a reminder of how I installed
jdk and tomcat on rh6.1. I read through it, I was initially generated as a
reminder to myself of the steps I took if the system crashes. hope not to
cryptics.

Jim

-----Original Message-----
From: Carl Parrish [mailto:cparrish@computerprep.com]
Sent: Tuesday, May 09, 2000 5:44 PM
To: tomcat-user@jakarta.apache.org
Subject: RE: Error: 500 on servlet example


I think I must have screwed up my %Java_Home% variable setting. Because All
of my serverlets examples are working but none of my JSP examples are. Where
do I find the Java_Home variable and what *should* it be set for?

Carl Parrish
Webmaster
ComputerPREP.com


-----Original Message-----
From: James DiZoglio [mailto:zeppelin@firstworld.net]
Sent: Tuesday, May 09, 2000 5:26 PM
To: tomcat-user@jakarta.apache.org
Subject: RE: Error: 500 on servlet example


enviornment variables are not set.

-----Original Message-----
From: Mason Holding [mailto:mholding@scale8.com]
Sent: Tuesday, May 09, 2000 5:14 PM
To: 'tomcat-user@jakarta.apache.org'
Subject: Error: 500 on servlet example



Hi all,

I was able to successfully install tomcat on a redhat machine with a 2.2.12
kernel running with apache 1.3.9, jdk1.2.2.  All of the servlet examples
work fine except for the SessionExample, where it returns the Error: 500.
The trace looks like the following:

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:541)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:646)

What's up with this?  It claims there is no such method in sun's servlet
code.  I know this is not true because I checked.

Any ideas?


--Mason Holding

--------------------------------------------------------------------------
To unsubscribe, email: tomcat-user-unsubscribe@jakarta.apache.org
For additional commmands, email: tomcat-user-help@jakarta.apache.org



--------------------------------------------------------------------------
To unsubscribe, email: tomcat-user-unsubscribe@jakarta.apache.org
For additional commmands, email: tomcat-user-help@jakarta.apache.org


--------------------------------------------------------------------------
To unsubscribe, email: tomcat-user-unsubscribe@jakarta.apache.org
For additional commmands, email: tomcat-user-help@jakarta.apache.org


RE: Error: 500 on servlet example

Posted by Carl Parrish <cp...@computerprep.com>.
I apologize, I should have given more details. I'm running on an WinNT 4.0
box with Apache and JDK 1.2.2 . The actual error I'm recieving is.

ERROR: 500
Location /example/jsp/num/numguess.jsp (this of course changes depending on
which example I'm trying to run)
sun/tools/javac/main

Since it seems to have a problem finding javac and javac is in the tools.jar
file. I'm assuming that my JAVA_HOME variable is screwed up. I am not
however a Windoze person and have no idea what files that would be in. Can I
just edit that with a simple text editor? I hate this system GUI tool.

Carl Parrish
Webmaster
ComputerPREP.com


-----Original Message-----
From: James DiZoglio [mailto:zeppelin@firstworld.net]
Sent: Tuesday, May 09, 2000 5:59 PM
To: tomcat-user@jakarta.apache.org; cparrish@computerprep.com
Subject: RE: Error: 500 on servlet example


I can't recall the exact variable that needs to be set. It is one of the jsp
env. need to add it to the bsh file. I havn't touched this in a while. I
remember that after the eigth try and searching around. I restarted the
whole install of jdk and tomcat following the vars one at a time. Also I
walked through the tomcat.sh or startup.sh files and manually set something
in there. There was some check I can't recall that was causing the env not
to initiate the way I assumed. But for the good side. It all works.

Jim

-----Original Message-----
From: Carl Parrish [mailto:cparrish@computerprep.com]
Sent: Tuesday, May 09, 2000 5:44 PM
To: tomcat-user@jakarta.apache.org
Subject: RE: Error: 500 on servlet example


I think I must have screwed up my %Java_Home% variable setting. Because All
of my serverlets examples are working but none of my JSP examples are. Where
do I find the Java_Home variable and what *should* it be set for?

Carl Parrish
Webmaster
ComputerPREP.com


-----Original Message-----
From: James DiZoglio [mailto:zeppelin@firstworld.net]
Sent: Tuesday, May 09, 2000 5:26 PM
To: tomcat-user@jakarta.apache.org
Subject: RE: Error: 500 on servlet example


enviornment variables are not set.

-----Original Message-----
From: Mason Holding [mailto:mholding@scale8.com]
Sent: Tuesday, May 09, 2000 5:14 PM
To: 'tomcat-user@jakarta.apache.org'
Subject: Error: 500 on servlet example



Hi all,

I was able to successfully install tomcat on a redhat machine with a 2.2.12
kernel running with apache 1.3.9, jdk1.2.2.  All of the servlet examples
work fine except for the SessionExample, where it returns the Error: 500.
The trace looks like the following:

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:541)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:646)

What's up with this?  It claims there is no such method in sun's servlet
code.  I know this is not true because I checked.

Any ideas?


--Mason Holding

--------------------------------------------------------------------------
To unsubscribe, email: tomcat-user-unsubscribe@jakarta.apache.org
For additional commmands, email: tomcat-user-help@jakarta.apache.org



--------------------------------------------------------------------------
To unsubscribe, email: tomcat-user-unsubscribe@jakarta.apache.org
For additional commmands, email: tomcat-user-help@jakarta.apache.org


--------------------------------------------------------------------------
To unsubscribe, email: tomcat-user-unsubscribe@jakarta.apache.org
For additional commmands, email: tomcat-user-help@jakarta.apache.org



--------------------------------------------------------------------------
To unsubscribe, email: tomcat-user-unsubscribe@jakarta.apache.org
For additional commmands, email: tomcat-user-help@jakarta.apache.org


RE: Error: 500 on servlet example

Posted by James DiZoglio <ze...@firstworld.net>.
I can't recall the exact variable that needs to be set. It is one of the jsp
env. need to add it to the bsh file. I havn't touched this in a while. I
remember that after the eigth try and searching around. I restarted the
whole install of jdk and tomcat following the vars one at a time. Also I
walked through the tomcat.sh or startup.sh files and manually set something
in there. There was some check I can't recall that was causing the env not
to initiate the way I assumed. But for the good side. It all works.

Jim

-----Original Message-----
From: Carl Parrish [mailto:cparrish@computerprep.com]
Sent: Tuesday, May 09, 2000 5:44 PM
To: tomcat-user@jakarta.apache.org
Subject: RE: Error: 500 on servlet example


I think I must have screwed up my %Java_Home% variable setting. Because All
of my serverlets examples are working but none of my JSP examples are. Where
do I find the Java_Home variable and what *should* it be set for?

Carl Parrish
Webmaster
ComputerPREP.com


-----Original Message-----
From: James DiZoglio [mailto:zeppelin@firstworld.net]
Sent: Tuesday, May 09, 2000 5:26 PM
To: tomcat-user@jakarta.apache.org
Subject: RE: Error: 500 on servlet example


enviornment variables are not set.

-----Original Message-----
From: Mason Holding [mailto:mholding@scale8.com]
Sent: Tuesday, May 09, 2000 5:14 PM
To: 'tomcat-user@jakarta.apache.org'
Subject: Error: 500 on servlet example



Hi all,

I was able to successfully install tomcat on a redhat machine with a 2.2.12
kernel running with apache 1.3.9, jdk1.2.2.  All of the servlet examples
work fine except for the SessionExample, where it returns the Error: 500.
The trace looks like the following:

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:541)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:646)

What's up with this?  It claims there is no such method in sun's servlet
code.  I know this is not true because I checked.

Any ideas?


--Mason Holding

--------------------------------------------------------------------------
To unsubscribe, email: tomcat-user-unsubscribe@jakarta.apache.org
For additional commmands, email: tomcat-user-help@jakarta.apache.org



--------------------------------------------------------------------------
To unsubscribe, email: tomcat-user-unsubscribe@jakarta.apache.org
For additional commmands, email: tomcat-user-help@jakarta.apache.org


--------------------------------------------------------------------------
To unsubscribe, email: tomcat-user-unsubscribe@jakarta.apache.org
For additional commmands, email: tomcat-user-help@jakarta.apache.org



RE: Error: 500 on servlet example

Posted by Carl Parrish <cp...@computerprep.com>.
I think I must have screwed up my %Java_Home% variable setting. Because All
of my serverlets examples are working but none of my JSP examples are. Where
do I find the Java_Home variable and what *should* it be set for?

Carl Parrish
Webmaster
ComputerPREP.com


-----Original Message-----
From: James DiZoglio [mailto:zeppelin@firstworld.net]
Sent: Tuesday, May 09, 2000 5:26 PM
To: tomcat-user@jakarta.apache.org
Subject: RE: Error: 500 on servlet example


enviornment variables are not set.

-----Original Message-----
From: Mason Holding [mailto:mholding@scale8.com]
Sent: Tuesday, May 09, 2000 5:14 PM
To: 'tomcat-user@jakarta.apache.org'
Subject: Error: 500 on servlet example



Hi all,

I was able to successfully install tomcat on a redhat machine with a 2.2.12
kernel running with apache 1.3.9, jdk1.2.2.  All of the servlet examples
work fine except for the SessionExample, where it returns the Error: 500.
The trace looks like the following:

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:541)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:646)

What's up with this?  It claims there is no such method in sun's servlet
code.  I know this is not true because I checked.

Any ideas?


--Mason Holding

--------------------------------------------------------------------------
To unsubscribe, email: tomcat-user-unsubscribe@jakarta.apache.org
For additional commmands, email: tomcat-user-help@jakarta.apache.org



--------------------------------------------------------------------------
To unsubscribe, email: tomcat-user-unsubscribe@jakarta.apache.org
For additional commmands, email: tomcat-user-help@jakarta.apache.org


RE: Error: 500 on servlet example

Posted by James DiZoglio <ze...@firstworld.net>.
enviornment variables are not set.

-----Original Message-----
From: Mason Holding [mailto:mholding@scale8.com]
Sent: Tuesday, May 09, 2000 5:14 PM
To: 'tomcat-user@jakarta.apache.org'
Subject: Error: 500 on servlet example



Hi all,

I was able to successfully install tomcat on a redhat machine with a 2.2.12
kernel running with apache 1.3.9, jdk1.2.2.  All of the servlet examples
work fine except for the SessionExample, where it returns the Error: 500.
The trace looks like the following:

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:541)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:646)

What's up with this?  It claims there is no such method in sun's servlet
code.  I know this is not true because I checked.

Any ideas?


--Mason Holding

--------------------------------------------------------------------------
To unsubscribe, email: tomcat-user-unsubscribe@jakarta.apache.org
For additional commmands, email: tomcat-user-help@jakarta.apache.org