Solved

jaxb in a servlet typeNotPresentException

Posted on 2009-04-03
2
545 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
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…
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.

744 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

11 Experts available now in Live!

Get 1:1 Help Now