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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

need to stop and start not reload why???

Status
Not open for further replies.

chirpyform

Programmer
Jun 20, 2003
202
FR
I have installed Tomcat 4.1.27 and everything works as I would wish only if I do a reload then the error message:
javax.servlet.ServletException: the wrapper can't find the class servlet Serso or a class in which it is dependant.
Why is this?

All I am doing is using a web page that has 11 textfields and a button.The form in the web page does the action POST and my servlet Serso recuperates the information and runs a program. The response from the program is written in the servlet to a web page:
out.println(&quot;<html>&quot;);
out.println(&quot;<body>&quot;);
out.println(param+Call.startSearch(param));
resp.setContentType(&quot;text/html&quot;);
out.println(&quot;<form action=../form.html>&quot;);
out.println(&quot;<input type=submit value='Return' name=btnG>&quot;);
out.println(&quot;</form>&quot;);
out.println(&quot;</body>&quot;);
out.println(&quot;</html>&quot;);


If anyone has any ideas I would be grateful. I have already lost 2 days because of this!

Chris
 
Where have you placed your Serso servlet ? Have you got the context paths correct in your FORM action ?
 
yes
Everything works
Except when I reload the directory
<?xml version=&quot;1.0&quot; encoding=&quot;ISO-8859-1&quot;?>

<web-app>

<display-name>Classe Bonjour</display-name>
<description>
TD1 Servlet
</description>

<servlet>
<servlet-name>Serso</servlet-name>
<servlet-class>Serso</servlet-class>
</servlet>

<servlet-mapping>
<servlet-name>Serso</servlet-name>
<url-pattern>/servlet/Serso</url-pattern>
</servlet-mapping>

</web-app>
Thanks for the reply
Chris
 
so in your html page you have

<FORM ACTION=&quot;/servlet/Serso&quot; ....

and your Serso servlet is in

<context>/WEB-INF/classes

Your web.xml file should be

<servlet-mapping>
<servlet-name>Serso </servlet-name>
<url-pattern>Serso </url-pattern>
</servlet-mapping>

(as long as the invoker is operational (what maps the call /servlet/Serso to WEB-INF/classes/Serso)


Is this how you have it ?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top