JAXB 2.1 API loaded from the bootstrap classloader, but it needs 2.2 API

I am trying to deploy a Java web service into a Tomcat 5.5.20 server. I have the web service packaged in a .war file in Tomcat's webapps directory, and I can see that the .war file gets extracted when I start Tomcat.
However, I get the following error when I start Tomcat:
Apr 22, 2012 5:16:31 AM com.sun.xml.ws.transport.http.servlet.WSServletContextLstener contextInitialized
INFO: WSSERVLET12: JAX-WS context listener initializing
Apr 22, 2012 5:16:31 AM com.sun.xml.ws.transport.http.servlet.WSServletContextLstener parseAdaptersAndCreateDelegate
SEVERE: WSSERVLET11: failed to parse runtime descriptor: java.lang.LinkageError: JAXB 2.1 API is being loaded from the bootstrap classloader, but this RI (from jar:file:/home/username/WebNMS/apache/tomcat/webapps/WebServices/WEB-INF/lib/jaxb-impl.jar!/com/sun/xml/bind/v2/model/impl/ModelBuilder.class) needs 2.2 API. Use the endorsed directory mechanism to place jaxb-api.jar in the bootstrap classloader. (See http://java.sun.com/j2se/1.6.0/docs/guide/standards/)
java.lang.LinkageError: JAXB 2.1 API is being loaded from the bootstrap classloader, but this RI (from jar:file:/home/username/WebNMS/apache/tomcat/webapps/WebServices/WEB-INF/lib/jaxb-impl.jar!/com/sun/xml/bind/v2/model/impl/ModelBuilder.class) needs 2.2 API. Use the endorsed directory mechanism to place jaxb-api.jar in the bootstrap classloader. (See http://java.sun.com/j2se/1.6.0/docs/guide/standards/)
at com.sun.xml.bind.v2.model.impl.ModelBuilder.(ModelBuilder.java:178)
In the /home/username/WebNMS/apache/tomcat/webapps/WebServices/WEB-INF/lib directory is where all the jar files from JAX-WS 2.2.6 are, including jaxb-api.jar.
I already added "-Djava.endorsed.dirs=/home/username/WebNMS/apache/tomcat/webapps/WebServices/WEB-INF/lib" to the command that starts the WebNMS process that starts Tomcat, but that didn't help.
Also, I tried adding a symbolic link called "endorsed" in the /home/username/WebNMS/jre/lib directory that points to /home/username/WebNMS/apache/tomcat/webapps/WebServices/WEB-INF/lib, and that didn't help either.
One interesting thing is that when I do a "find /home/username/WebNMS -name jaxb-api.jar", it only finds the one jaxb-api.jar in the /home/username/WebNMS/apache/tomcat/webapps/WebServices/WEB-INF/lib directory. There are no other jaxb-api.jar files. So I don't know why the error is saying that the JAXB 2.1 API is being loaded, when there's only the JAXB 2.2.6 API jar file. Unless it's finding something outside the /home/username/WebNMS dir, but that shouldn't happen considering I tried 2 different ways to set up the endorsed dir.
Edited by: sljava on Apr 26, 2012 4:10 PM

This seems to be the answer: https://jaxb.dev.java.net/guide/Migrating_JAXB_2_0_applications_to_JavaSE_6.html#Using_JAXB_2_1_with_JavaSE_6
Place the 2.1 jaxb-api.jar into $JRE_HOME/lib/endorsed. This essentially makes your JRE to "JRE 6 + JAXB 2.1". This won't affect any other applications that use this JRE, and it's easy. On the other hand, in various scenarios you may not be able to alter the JRE.

Similar Messages

  • "JAXB 2.0 API is being loaded from the bootstrap ..." error in 1.6.0_07

    OK, I'm about tearing my hair out in clumps now!
    I get the above error when trying to compile a simple SOAP web service onto Tomcat 6.0.16.
    I've trawled the forums and Google and have tried the following: -
    1. I've re-installed the SDK and RE at rc 1.6.0_07 in case I missed the bug update on 18th July.
    2. Even though I shouldn't have to do this in 1.6.0_07 I've also tried: -
    a. Making an endorsed directory under TOMCAT_HOME and copying the JAX-WS 2.1 jar files in from NETBEANS\java2\modules\ext\jaxws21\api.
    b. Making an endorsed directory under JAVA_HOME\lib and copying the JAX-WS 2.1 jar files in from NETBEANS\java2\modules\ext\jaxws21\api.
    However, every time I stop Tomcat and do an undeploy/redeply on the web service I still get the "JAXB 2.0 API is being loaded from the bootstrap ..." error.
    What am I missing / doing wrong?
    Setup: -
    Win XP SP2
    Netbeans 6.5 Beta
    Java version 1.6.0_07rc

    Dear Juraj
    When a finally find what I have been searching occured a mistake in a program and the program had to be cancelled. It happened when we expected it the least. I do not know why have you getting angry. I did not tak� your calculator. Even touched it. No metter how big pitfalls are we have to do our our best to succeed.
    Best wishes
    Chose Carreras

  • JAXB 2.1 w/JDK 6 Error. bootstrap classloader issue.

    When I run one of my JUnit tests, I get this error:
    JAXB 2.0 API is being loaded from the bootstrap classloader, but this RI (from jar:file:/usr/local/netbeans-6.0/java1/modules/ext/jaxws21/jaxb-impl.jar!/com/sun/xml/bind/v2/model/impl/ModelBuilder.class) needs 2.1 API. Use the endorsed directory mechanism to place jaxb-api.jar in the bootstrap classloader.
    So, I copy jaxb-api.jar into /usr/lib/jvm/java-6-sun-1.6.0.03/jre/lib/endorsed/jaxb-impl.jar
    Then I get this error:
    JAXB 2.0 API is being loaded from the bootstrap classloader, but this RI (from jar:file:/usr/lib/jvm/java-6-sun-1.6.0.03/jre/lib/endorsed/jaxb-impl.jar!/com/sun/xml/bind/v2/model/impl/ModelBuilder.class) needs 2.1 API
    OS: Ubuntu 7.10
    JVM: Sun 1.6.0.03
    IDE: NetBeans 6.0
    How do I resolve?

    This seems to be the answer: https://jaxb.dev.java.net/guide/Migrating_JAXB_2_0_applications_to_JavaSE_6.html#Using_JAXB_2_1_with_JavaSE_6
    Place the 2.1 jaxb-api.jar into $JRE_HOME/lib/endorsed. This essentially makes your JRE to "JRE 6 + JAXB 2.1". This won't affect any other applications that use this JRE, and it's easy. On the other hand, in various scenarios you may not be able to alter the JRE.

  • HT1391 I have down loaded a number of songs but after a short while they go messing. I tunes can not find them. If I down load from a cd there is no problems. I tunes can always find them. For that reason I no longer down load from the I tunes store. why

    iTunes can not find the music that was down loaded form the iTunes store. Why? Where is it locateded? They are there and play for a short while then they disappear. Why? What is happening to the songs that I have down loaded????? Anything that I import form a cd is still there!
    Why can't iTunes find what I down loaded from the iTune store???????
    If Heaven
    3:31
    Andy Griggs
    This I Gotta See
    Country
    17
    In front of the "if" there is a gray circle with and "!" in the center. When I click on the song to play I get this message.The song could not be used because the original file could not be found.

    iTunes can not find the music that was down loaded form the iTunes store. Why? Where is it locateded? They are there and play for a short while then they disappear. Why? What is happening to the songs that I have down loaded????? Anything that I import form a cd is still there!
    Why can't iTunes find what I down loaded from the iTune store???????
    If Heaven
    3:31
    Andy Griggs
    This I Gotta See
    Country
    17
    In front of the "if" there is a gray circle with and "!" in the center. When I click on the song to play I get this message.The song could not be used because the original file could not be found.

  • Do you have to down load from the internet using apple's recover partition, every time you need to do a clean install? or can you make a copy of Mt Lion onto a USB stick and install off that?

    Do you have to down load Mountain Lion from the internet every time you need to do a clean install? or can you make a copy of Mt Lion onto a USB stick and install off that?
    Thanks

    Yes you can make a USB stick of Lion or Mt Lion. Use Lion Disk Maker after you download OS X from the internet.
    For Lion you have to point the download to an external drive and watch when it completes and reboots the system to start the install disconnect the external. If you bought Mt Lion from the Mac App Store then you can download it from there and just cancel the install when it comes up on the desktop.
    If you are downloading from the Recovery HD or from the Online Internet Recovery system, slightly different then the built in Recovery HD, then again you need to point it to an external drive and discoonect that drive when the system reboots to start the real install.
    Then use Lion disk maker to create either a DVD disc or USB thumb of the install files.

  • Question about scrolling and Movie Clips Loaded from the Library

    I hope I am posting this in the right forum.
    Ok, I'm using actionscript 2.0, and I am trying to make a scrolling image gallery. I have a movie clip with three layers. the first contains a movie clip used as a scroll bar. The second is a mask used to hide the overflow content, and the third contains movie clip thumbnails. when I click one of the thumbnails, it loads a symbol containing a larger version of the picture over top of the thumbnails on the same layer. My problem is, the large image is added at the very top of the movie clip, even when it is scrolled out of sight. I want it to appear in sight, so the user doesn't have to scroll all the way back up to the top to see it. This is annoying and confusing. Is there a way to do this?
    Here is the code I used to create the scroll effect (there is actually a whole lot more to the code but it is very long, so I am not adding it now. I will if it is needed though) 
    (Oh, and there is no text involved in this. I just got this code off a tutorial and I haven't changed the variable names yet)
        var scrollUpper:Number = 58;
        var scrollLower:Number = 309;
        var textLower:Number = 60;
        var textUpper:Number = -179;
        var scrollRange:Number = scrollLower - scrollUpper;
        var textRange:Number = textLower - textUpper;
        var startY:Number = imagesHolder_mc.thumbs_mc._y;
        function scroll(){
           var moved:Number = imagesHolder_mc.scroller_mc._y - scrollUpper;
           var pctMoved:Number = moved/scrollRange;
           var textMove:Number = pctMoved*textRange;
           imagesHolder_mc.thumbs_mc._y = textLower - textMove;
        imagesHolder_mc.scroller_mc.onPress = function(){
           this.startDrag(false,this._x,scrollUpper,this._x,scrollLower);
           this.onMouseMove = scroll;
        imagesHolder_mc.scroller_mc.onRelease = scroller_mc.onReleaseOutside = function(){
           this.stopDrag();
           this.onMouseMove = null}

    Thanks for your reply. I'll try to explain it better. I have a long, vertically scrolling movie clip. This movie clip contains lots of thumbnails. When I click a thumbnail, the full sized image is loaded from the library and displayed within the same movie clip. when I click the full size movie clip, it disappears again, and I can click another thumbnail to display another full size image. So I'm not just adding more and more stuff to the gallery if that's what you were thinking. I'm just clicking thumbnails to display the full size image so I can look at it, closing it, and moving on.
    But the full sized image is fixed at the very top of the scrolling movie clip, so if I click a thumbnail at the very bottom, I have to scroll all the way back up to the top to see the full size image. I just want the full size image to appear on screen no matter how far down I have scrolled to click a thumbnail.
    I made my basic gallery useing this tutorial:
    http://flashexplained.com/actionscript/making-the-ultimate-dynamic-image-gallery-in-flash- 8/
    if you want to take a look at that, to get an idea of what I'm talking about.
    Now I'm just trying to add some scrolling functionality, which wasn't included, but I don't really understand actionscript well enough to do this easily on my own.
    Sorry for the long reply. I hope this is clearer.

  • I just want to know what Apple computer to get to play Civilization V down loaded from the App store.

    I just want to know what Apple computer to get to play Civilization V down loaded from the App store.
    The game Civ5 processes a turn in single core mode. It says “please wait” while it processes a turn. If the intel i7 CPU is “fourth generation” it is twice as fast for civ5 turn processing. It does not matter if you have more memory or a better graphics chip. So, I can get a smaller cheeper Apple computer as long as it is fourth generation. I tested three new iMacs, two new MacPros and two mac minis.
    See:
    http://apolyton.net/showthread.php/193302-Civ-5-Processor-performance-analyzis-a t-Gamespot
    I have looked at that darned “please wait” message for years. Now it can be 60 seconds on a new MacPro6,1 or late 2012 Mac mini and 30 seconds on a new iMac. Even the 21.5 iMac 3.1 GHz has 3.9 GHz turbo boost for single core and it is supposed to be fourth generation.
    Some of that does not seem to true for the new 21.5 inch iMac I just tested (Fusion drive). Mac Mini 54 seconds 21.5 iMac 49 seconds.
      Cliff Nelson

    Legality aside (I'm not a lawyer and have no opinion on the matter) in order to make a purchase of an iPhone 5 you would need to travel to a country where they are for sale and purchase it there. Be sure to get one that is officially unlocked or you would not be able to use it with your cell carrier. Be sure that your carrier supports use of the iPhone before you buy. Also note that the warranty of the iPhone is only valid in the country of purchase.
    Appe does not ship outside of the countries where it sells the phones.

  • Widgets loaded from the apple site don't install ...

    i'm trying to install widgets to my MBP running OSX 10.8.4 that i have loaded from the apple site, and it refuses to install them saying my security settings prohibit installations of software not approved by apple.  how to change that setting?  i can't find an option in the preferences to allow the widgets to run.  i'm assuming the .zip files are ok if they came from apple..... what am i missing?

    See KB Article:  http://support.apple.com/kb/HT5290 OS X: About Gatekeeper 

  • HT1725 I can not get any app to finish loading from the app store.  Anyone else having this problem

    I can not get any app to finish loading from the app store.  Anyone else having this problem?

    Why has nothing been done on this? I still have this problem today on Chrome and on the latest OSX.

  • HT201272 I downloaded ringtone from the app store,but then i had to change my phone. I thought i had backed up all of mydownloads but the ringtone did not load to the new phone. I have the receipt number in my e-mail but don,t know how to retrieve it

    I downloaded ringtone from the app store,but then i had to change my phone. I thought i had backed up all of mydownloads but the ringtone did not load to the new phone. I have the receipt number in my e-mail but don,t know how to retrieve it

    I downloaded ringtone from the app store,but then i had to change my phone. I thought i had backed up all of mydownloads but the ringtone did not load to the new phone. I have the receipt number in my e-mail but don,t know how to retrieve it

  • My imac won't load from the white screen with the logo on? What shall I do?

    My imac won't load from the white screen with the apple logo and buffering sign? What shall I do..

    Try any of the steps suggested in this article that you haven't already tried:
    http://support.apple.com/kb/TS2570?viewlocale=en_US&locale=en_US

  • Why do my pages load from the right?

    Hello
    If you visit
    http://www.enhancedwireless.net/index.html
    many or all the pages load by jerking in from the right as
    opposed to simply appearing in place after you click on a link to a
    page. Why and what is the solution - if you could be specific as to
    what I would do to fix, I'd appreciate it. I've messed with this
    periodically over months to no avail.
    Thank you very much
    KB

    don't know... they load from the top down for me...
    "iwics2" <[email protected]> wrote in
    message
    news:elcdqt$g4$[email protected]..
    > Hello
    >
    > If you visit
    >
    >
    http://www.enhancedwireless.net/index.html
    >
    > many or all the pages load by jerking in from the right
    as opposed to
    > simply
    > appearing in place after you click on a link to a page.
    Why and what is
    > the
    > solution - if you could be specific as to what I would
    do to fix, I'd
    > appreciate it. I've messed with this periodically over
    months to no avail.
    >
    > Thank you very much
    >
    > KB
    >

  • I am trying to down load apps from the app store but the system says my password does not work even though I just changed it

    I am trying to download an app from the app store but the ID apple gives me is old and out of date so how do I change the ID apple has on file?

    Its just Apple's system. They won't charge you so I wouldn't worry about giving them the billing information.

  • I recently downloaded music from the iTunes store but it doesn't play on my iPod

    I recently downloaded music through the iTunes store and synched it manually to my iPod nano (5th generation) and while it shows up on my iPod when I scroll through my list of artists/songs/albums it will not play any sound if selected and will not play through at all. At the very best all it will do is skip ahead 1 to 2 songs. What do I need to do?
    I think it's also worth noting that the songs work on my other devices (laptop and iPad mini) absolutely fine with zero issues.

    I had some time finally figuring why I could buy and download from the Itunes store, but could not load it on my IPOD. What finally worked was plugging my IPOD in to the computer, as I would when "syncing", and, after loading, it would show my device in the side bar. You have to go to VIEW in the top Tool Bar and click on SHOW SIDE BAR in the drop down menu. "SUMMARY' tab, on top, is what I clicked on to show an option of restoring my IPOD to the factory defaults. It erases everything on the IPOD, but gives an option of AUTOFILL afterwards, which it does from the computer. This is one solution of many you could try. Good luck.

  • My Mail program has gone south on Leopard on my 27-month old Macbook. I can't send, even though the server details are correct. I tried reinstalling from the install DVD - but no go: no longer compatible, evidently.. What to do?

    My Mail program has gone south on Leopard on my 27-month old Macbook. I can't send, even though the server details are correct. I tried reinstalling the Mail program from the install DVD, but no go; apparently that two-year old Mail is no longer compatible with my up-to-date Leopard. I tried deleting the account (hotmail) from Mail and setting up a different account (Yahoo). After loading all the inbox two things happened: first, I still couldn't send, and second, when I closed the Mail window the whole inbox then disappeared and doesn't come back. Although I couldn't reinstall the Mail program from the install DVD, would it still be possible to reinstall the whole system from that DVD? If I do, will I lose files or will there be another problem since that DVD is now over two years old?
    Thanks for any suggestions; they will be much appreciated.
    P.S. I've just noticed that now I can't change the desktop picture: I go through the motions in Preferences, but the new picture doesn't appear on the desktop. Is there a systemic problem?

    You are waiting for an apology to something that happened over a year ago? Really? This is why there is a manager in the store. You have a problem with an employee you speak to the manager. Just like you did on the phone. You would have gotten your apology in July 2013.
    Here is the information about your upgrade fee.
    Upgrade Fee
    It is because when you have a problem you (customers) go running to the store and want to take up the time of the reps to fix it. Other carriers have third parties that deal with technical support and those locations are few and far between. VZW provides this directly through their stores. Also, when you subsidize a $650 and pay $200 VZW has to pay $400. Your monthly service fee doesn't begin to scratch the surface of paying that back. Not with all the money that is put into the network and its improvements.
    Then over a year later you get someone on the phone who apologized and offered to waive the fee on your phone and you didn't take it? That offer won't come down the pike again.
    One thing you should know is that all these employees are people and as such they sometimes come off cross. I doubt that you speak to everyone so sweetly all the time. Cut them a little slack and put this whole thing behind you after 15 months. Either upgrade with VZW or move on.

Maybe you are looking for