It's not a secret anymore!
The moose likes JSP and the fly likes build exceptions issue Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "build exceptions issue" Watch "build exceptions issue" New topic

build exceptions issue

umasha narasi

Joined: Oct 19, 2009
Posts: 4

In my project I am using

import javax.xml.bind.JAXBException;

Above package throwing errors as, " The type javax.xml.bind.JAXBException cannot be resolved. It is indirectly referenced from required .class files"

Could anyone please help me in this issue.

Teena George
Ranch Hand

Joined: May 01, 2008
Posts: 82

Hello Umasha,

I used to get this error (though for other imports). I am not able to reproduce the error now. Did you try cleaning and building the application?
If the error is still there, please post the code here, including your imports.

Prasanna Lakshmi

Joined: Mar 24, 2009
Posts: 3
Hi Umasha,

Can you just check the types of webservices you are using in te project.
there are JAXWS rt(run time), jaxws dp. Which one is using in your project. Also make sure that jar file are in the class path
of the project.

Reply back me if you still get the same problem.

Prasanna M

umasha narasi

Joined: Oct 19, 2009
Posts: 4
Thanks Teena George and Prasanna Lakshmi for the valuable suggesstion.............

That issue is resolved by adding the Jar file named as "jaxb-api.jar"

Now its working fine...

Once again thanks folks..

I agree. Here's the link:
subject: build exceptions issue
It's not a secret anymore!