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?
LVL 5
jjacksnAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

bloodredsunCommented:
org.git.xpp.XmlStartTag is not listed as a class file in any of the Java JDK. Is it listed as a dependency on your deployment or mentioned in the web.xml? If it is, then remove it.

There is such a thing as the org.gjt.xpp.XmlStartTag interface (as seen here http://www.extreme.indiana.edu/xgws/xsoap/xpp/download/PullParser2/doc/api/org/gjt/xpp/XmlStartTag.html) but it has no place in servlets as it is the Xml Pull Parser http://www.extreme.indiana.edu/xgws/xsoap/xpp/.

All you should really need to do is to transfer your servlet class, making sure that it is mapped in the web.xml and that should be it.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
jjacksnAuthor Commented:
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
bloodredsunCommented:
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.
jjacksnAuthor Commented:
turns on dom4j implements the XmlStartTag interface.  I downloaded the .class files from the website and it works now.  
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
JSP

From novice to tech pro — start learning today.