File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes Error using Oreilly's packages...? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Error using Oreilly Watch "Error using Oreilly New topic

Error using Oreilly's packages...?

H Kisna

Joined: May 05, 2005
Posts: 5
SUBJECT: Error using Oreilly's packages...?

I have my Java Servlets under /local/tomcat/webapps/hari/WEB-INF/classes

My Java Servlets use Oreilly's predefined classes and I use that so as not to reinvent the wheel.
Oreliiy's classses are avaliable as "cos.jar" file and when I unjar them I get following structure

I have stored this cos.jar file under "/local/tomcat/webapps/hari/WEB-INF/lib/" and "/local/tomcat/webapps/lib/"and have these on my CLASSPATH.

In my Java Servlets, I do following import
import com.oreilly.servlet.MultipartRequest;
import com.oreilly.servlet.*;

It compiles everything fine BUT when I run my WEB APPLICATION ( it gives my following ERRORS wonder why...
------------------------------------------------------------------------------- -
description: The server encountered an internal error () that prevented
it from fulfilling this request.

javax.servlet.ServletException: Error instantiating servlet class
at org.apache.catalina.core.StandardWrapper.loadServlet(
root cause
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(
at java.lang.Class.getConstructor0(
at java.lang.Class.newInstance0(
at java.lang.Class.newInstance(
at org.apache.catalina.core.StandardWrapper.loadServlet(
------------------------------------------------------------------------------- ----

Can anyone point what is wrong here.,..


Adeel Ansari
Ranch Hand

Joined: Aug 15, 2004
Posts: 2874
Did you put your OReilly library on the path?
wood burning stoves
subject: Error using Oreilly's packages...?
It's not a secret anymore!