Link to home
Start Free TrialLog in
Avatar of jjacksn
jjacksn

asked on

Problem trying to deploy my first Servlet

I'm trying to create a WAR file using Sun AppServer 8.1 deploytool.  I've created a class that extends HttpServlet and then selected it and all of its dependancies in the deploy tool, when I click next I get the following error:

ClassDef not found:   org.git.xpp.XmlStartTag

I have no idea why there would be some dependancy on this class.  Is this class used in Java 1.5?
ASKER CERTIFIED SOLUTION
Avatar of bloodredsun
bloodredsun
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of jjacksn
jjacksn

ASKER

yes, I just realized that was gjt, not git.  

Is it possible that a reference to dom4j in a .jar file is causing this issue?  my dependacies are:


dom4j-1.6.1.jar
jaxen.jar
jaxrpc-api.jar
junit.jar
By themselves they have no dependencies on it but XPP is dependent on Junit (xerces.jar is an optional component).

I would write a simple HelloWorld servlet, one with no dependencies, and then try to deploy this rather than one that deals with xml and testing. As I said, all you need to do is to compile the class, map it in the web.xml and then deploy.
Avatar of jjacksn

ASKER

turns on dom4j implements the XmlStartTag interface.  I downloaded the .class files from the website and it works now.