Solved

jaxb in a servlet typeNotPresentException

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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
V.simple question about Android packages and libraries 1 38
Html Table Looping (part 2) 5 35
Eclipse with various Java releases 7 50
jmeter usage 4 37
For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
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…
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

733 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