[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

jaxb in a servlet typeNotPresentException

Posted on 2009-04-03
2
Medium Priority
?
582 Views
Last Modified: 2013-11-24
I'm using jaxb to generate xml content and it works fine until I try to access the classes from a servlet. Whenever I run the page it gets to this line:

requestor = JAXBContext.newInstance( "com.crmondemand.uamc.request" );

This is the error I get:

java.lang.TypeNotPresentException: Type javax.xml.bind.annotation.XmlAccessType not present

I've tried downloading various versions of jaxb and messing around with the classpath, but I have no idea what is really going on. Any help is appreciated.
0
Comment
Question by:Yittrium39
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 12

Accepted Solution

by:
basav_com earned 1500 total points
ID: 24065897
0
 

Author Closing Comment

by:Yittrium39
ID: 31566510
Thank you. It just came down to me having the wrong version of jaxb altogether. The version that comes with the jwsdp is outdated.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
In this post we will learn different types of Android Layout and some basics of an Android App.
Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
Suggested Courses

649 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question