aspose file tools
The moose likes Servlets and the fly likes JSP 500 Error Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Servlets
Reply Bookmark "JSP 500 Error " Watch "JSP 500 Error " New topic
Author

JSP 500 Error

Mary Wang
Greenhorn

Joined: Mar 15, 2001
Posts: 3
I got a JSP problem. Here is my web page:
http://www.webappcabaret.com/ganchen/
I insert two links in my main web page. The one is linked to the first Number Guess project, which generates a random number from 1 to 100. Another one is linked to the modified version, which I can set the number range for a random number. The following is the problem.
After I tested one project, I just click "back" button and back to my main page and tried to test another one. I got error message (500 Internal Server Error) and some exceptions. But when I closed the window and open a new window, another project worked and no error message. Then I found out I can not run those two projects in the same window, which is
not right.
Dose anyone know what is the problem? Is that because when I run the second project, the first one is still running. By the way, those two JSP pages does not share Java Beans. Should I use "implements SingleThreadModel"?
Thanks,
Madhav Lakkapragada
Ranch Hand

Joined: Jun 03, 2000
Posts: 5040
it says its a ClassCastException.....
Root Cause:
java.lang.ClassCastException: num.NumberGuessBean
at scjd.jsp.number._0002fscjd_0002fjsp_0002fnumber_0002fnum_0002ejspnum_jsp_0._jspService(_0002fscjd_0002fjsp_0002fnumber_0002fnum_0002ejspnum_jsp_0.java:66)
Is this what you are seeing too......
- satya

Take a Minute, Donate an Hour, Change a Life
http://www.ashanet.org/workanhour/2006/?r=Javaranch_ML&a=81
Mark Savory
Ranch Hand

Joined: Feb 08, 2001
Posts: 122
Please post your JSP code.
Mary Wang
Greenhorn

Joined: Mar 15, 2001
Posts: 3
Madhav, yes, this is what I got. But if you did another way, which you click the "another version of Number Guess" and test the program and then go back to main page and click "Number Guess Project". You got anothe error message:
Root cause:
java.lang.ClassCastException: number.NGBean
at scjd.jsp.num._0002fscjd_0002fjsp_0002fnum_0002fnumguess_
It seems those two programs have some conflict.
OOO...Oh! I find the error when I was coping my code into this message. I used the same id names for both JSP files, which caused the conflict.
Thanks, Madhav and Mark! Thanks for your replying!
Madhav Lakkapragada
Ranch Hand

Joined: Jun 03, 2000
Posts: 5040
OOO...Oh! I find the error when I was coping my code into this message. I used the same id names
I guess then it should be common Cut, Copy, Paste bug......
Good luck........
- satya
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: JSP 500 Error
 
Similar Threads
Consequences of long unemployed period ??
free servlet hosting provider?
free servlet hosting provider?
Popup window question
Popup window question