Solved

jaxb in a servlet typeNotPresentException

Posted on 2009-04-03
2
548 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
2 Comments
 
LVL 12

Accepted Solution

by:
basav_com earned 500 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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

Suggested Solutions

Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.

929 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now