Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / December 2006

Tip: Looking for answers? Try searching our database.

servlet cannot find JTidy

Thread view: 
Damo - 18 Dec 2006 22:00 GMT
HI
I'm writing a web app using a serevlet. I wrote it using netbeans 5.5.
It involves using JTidy which is in the libraries folder of my project.
When I deploy the app, JTidy is deployed to the correct folder. but
when I try to run it it gives me a servlet exception .
org.w3c.tidy.Tidy cannot be found. I cannot for the life of me figure
out why this.
JTidy is being used in a normal class file , which is in turn being
called by the servlet. I've compiled and ran the class file that uses
JTidy and it compiles and does what it is supposed to. Its just when i
add the call from the servlet that things go pear-shaped.
Has anyone had a problem like this and be able to guide me?
Cheers
Manish Pandit - 18 Dec 2006 22:34 GMT
> When I deploy the app, JTidy is deployed to the correct folder.

Did you check if the jar is present in WEB-INF/lib folder of the app?
That is one of the folders the container is looking at. If missing, try
copying it over and see if it works!

-cheers,
Manish
Damo - 18 Dec 2006 22:42 GMT
Ye the Tidy.zip folder is present  in WEB-INF/lib folder. Its being
deployed locally on localhost:8084/... .Does this make any difference.
Damo - 18 Dec 2006 23:42 GMT
does anyone have a Tidy.jar file. I want to try use it instead of this
damn Tidy.zip
Manish Pandit - 19 Dec 2006 00:18 GMT
> does anyone have a Tidy.jar file. I want to try use it instead of this
> damn Tidy.zip

Go to
http://sourceforge.net/project/showfiles.php?group_id=13153&package_id=11263
and download the zip. Once done, extract the zip and locate the
Tidy.jar file in the build subfolder. You should be using this jar file
and not the original zip file.

-cheers,
Manish


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.