Hi,


I bought the the Java Servlet Programming(Oreilly) book From Amazon.com.

It is really superb.

But
I do have a problem with the code (MailServlet.java) sending the Mail from
Servlet. Let me explain the tasks I did.

I downloaded the com.oreilly package and extract it.

then I Got cos.jar file(after the extraction) and I put it in
c:\jdk1.2\jre\lib\ext

Then I change the Servlet code as follows

...
..
...
...
SmtpClient smtp = new SmtpClient("194.245.17.66:25");
..
..
..




194.245.17.66 is the IP of the machine where Mail server is running and
25 is the smtp port number(mailserver is not in my machine)

I did not change any single letter other than the above stated line just to
ckeck whether this code works properly.

Then I could compiled it with no errors but a one warning saying that
getServletContext().log(...     deprecated (am using jdk 1.2 and jsdk 2.1)


Then I just type http:\\localhost:7070\servlet\MailServlet


Then it Gives a Run time Error saying

java.lang.NoClassDefFoundError: com/oreilly/servlet/ParameterParser
.at MailServlet.doGet(MailServlet.java:21)
........
......
...



Please Help me to solve the Above Problem Quickly.


Waiting for a Early Answer.

Thanks in Advance

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to