Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

basic jsp problem, call a servlet

Status
Not open for further replies.

tyris

Programmer
Nov 2, 2000
311
FR
well in fact i have found a begun of solution but not the entire one.

it seems that the way to call a servlet is :
"/servlet/name_of_the_class"
(in a <FORM ACTION=&quot;...&quot; METHOD=&quot;POST&quot;> or by entering the path in the navigator) (as it is written in IBM red books Servlet and JSP programming)

if i put something else the navigator answer &quot;page not found&quot; and if i use the path &quot;/servlet/name_of_the_class&quot; (in my case &quot;/servlet/ShowParameters&quot; ) , the server answer something like :

&quot; ERROR 500
An error has occured while processing
request:Message:Server caught unhandled exception from servlet[invoker]
Target Servlet: invoker
StackTrace:

Root Error-1: ShowParameters
java.lang.ClassNotFoundException: ShowParameters at .....

Wrapped Error-2: Servlet [ShowParameters]: Could not find required servlet class -
ShowParameters.class
javax.servlet.ServletException: Servlet [ShowParameters]: Could not find
required servlet class - ShowParameters.class at ....&quot;

and if i call an other servlet - that is on the same directory than the
one i tested above - in the browser with the same way
(&quot;/websphere/servlet/servlet_that_works&quot;)it works !!

Both servlet (the one that works and the one that not) are in the same directory, are both .class and are both called with the same method. but only one of them function.

this thing is getting me mad.
if you have any idea please tell me, i gonna search by my own too as always even if I'm really lost

Best regards X-),
Elise
 
Check the java forum.... I just responded. I hope it helps. I hope this helped! ;-)
- Casey Winans
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top