I created a web service which supposed to run on Apache tomcat. In that web service I call an application which uses jaxb.
I got h following failure:
CreateCorpusXML:createXMLdOC Exception while creating JAXBContext
javax.xml.bind.JAXBException
- with linked exception:
[java.lang.NoSuchFieldError: theInstance]

Well the fact that you're deploying javaee-api-6.0.jar to an application running on Tomcat 5 is already incredibly wrong. When you clean up your application's deployment (which probably means you will have to start to learn how stuff works) the problems will go away.