Howdy, >java.lang.NoClassDefFoundError: org/jdom/input/DOMBuilder
>now, I have the jdom.jar file in the WEB-INF/lib of my application >directory, and nowhere else. Furthermore, when I run this line of code from >within a jsp file, it works just fine. > >Does anybody know what I'm doing wrong here? > >Thanks, and sorry about bugging you with these beginner questions. :) Not a beginner question, and no need to apologize. The key here is to understand the difference between ClassNotFoundException and a NoClassDefFoundError. One of two things is happening: 1. (Less Likely) you are running with a different version of jdom.jar than the one against which you compiled the servlet. 2. (More likely) while you have only one jdom.jar files, the JDOM classes are present in other jars somewhere in your tomcat installation or endorsed directories. Look through jars, e.g. jar tvf thisjar.jar | grep "org.jdom" to see if they contain these classes. Your /WEB-INF/lib is the right place to have your JDOM jar file. It should be nowhere else. Unfortunately the classpath for JSPs is slightly different at runtime than the classpath for servlets. This complicates debugging of problems like these significantly. There used to be a way to get the actual classpath used by jasper to compiled JSPs at runtime, but I don't remember how to do it now. Seeing this classpath would help here. Yoav Shapira Millennium ChemInformatics This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
