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
- with linked exception:
When the apache starts I got the following info:
INFO: validateJarFile(/usr/share/tomcat5/webapps/TextTechnionWS-1.0/WEB-INF/lib/javaee-api-6.0.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
The web is full with reporting of this error but the reports are with relation to GlassFish which I didn't use.
I use Maven 2,Aachee Tomcat 5, Java(TM) SE Runtime Environment (build 1.6.0_45-b06)
Java HotSpot(TM) 64-Bit Server VM (build 20.45-b01, mixed mode)
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.