Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

upload problem: NoClassDefFoundError: javax/servlet/ServletRequest

843836Jan 26 2005 — edited Mar 9 2005
Hello!
Well, in the source code below:

<%@ page import="java.io.*,java.util.*"%>
<%@ page import="com.oreilly.servlet.*"%>
<%
try
{
MultipartRequest multi = new MultipartRequest(request, "\\", 5 * 1024 * 1024);
Enumeration e = multi.getParameterNames();

out.println("<h3>Parametros recebidos<h3>");
out.println("<pre>");
while (e.hasMoreElements())
...
...

I'm trying to make a file upload using the cos.jar to provide the class MultipartRequest, but I�m catching the following error:

java.lang.NoClassDefFoundError: javax/servlet/ServletRequest
at com.oreilly.servlet.MultipartRequest.<init>(MultipartRequest.java:116)
....

Doe's somebody know's why?

Thank's for your attention,
Rafael

PS: Sorry for my bad english!
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 6 2005
Added on Jan 26 2005
12 comments
263 views