• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Error using Oreilly's packages...?

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
com/oreilly/servlet/*.classes

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 (http://us.hari.com/hari/BatchUpload1) it gives my following ERRORS wonder why...
------------------------------------------------------------------------------- -
description: The server encountered an internal error () that prevented
it from fulfilling this request.
exception

javax.servlet.ServletException: Error instantiating servlet class
util.BatchUpload1
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:865)
....
root cause
java.lang.NoClassDefFoundError:
com/oreilly/servlet/multipart/FileRenamePolicy
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Class.java:1618)
at java.lang.Class.getConstructor0(Class.java:1930)
at java.lang.Class.newInstance0(Class.java:278)
at java.lang.Class.newInstance(Class.java:261)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:856)
------------------------------------------------------------------------------- ----

Can anyone point what is wrong here.,..

Sincerely,

KISNA
 
Ranch Hand
Posts: 2874
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Did you put your OReilly library on the path?
 
Look! It's Leonardo da Vinci! And he brought a tiny ad!
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic