Stone的专栏

个人主页:http://njchenyi.googlepages.com/

用户操作
[即时聊天] [发私信] [加为好友]
njchenyi
njchenyi的公告
MSN:njchenyi@hotmail.com Gmail:njchenyi@gmail.com 我的QQ:24726542
最近评论
hitesh:Do you have the CSIT571 Assignment 2 and any Examination Feedback?
flying:让我领悟了很多
简直是一语惊醒梦中人啊
谢谢啦
呵呵
bangsen:请问楼主,你的 “ servertool > register -server PersistentServer -applicationName s1
-classpath path_to_server_class_files

The servertool registers the server, assigns……
bangsen:请问楼主,你的 “ servertool > register -server PersistentServer -applicationName s1
-classpath path_to_server_class_files

The servertool registers the server, assigns……
bangsen:请问楼主,你的 “ servertool > register -server PersistentServer -applicationName s1
-classpath path_to_server_class_files

The servertool registers the server, assigns……
文章分类
收藏
    相册
    定息贷款
    多边形裁剪
    图片
    个人链接
    MSN Space
    个人主页
    个人相册
    存档
    软件项目交易
    订阅我的博客
    XML聚合  FeedSky
    订阅到鲜果
    订阅到Google
    订阅到抓虾
    订阅到BlogLines
    订阅到Yahoo
    订阅到GouGou
    订阅到飞鸽
    订阅到Rojo
    订阅到newsgator
    订阅到netvibes

    原创 java.lang.LinkageError: JAXB 2.0 API is being loaded from the bootstrap classloader... 收藏

    新一篇: 用Java实现多线程服务器程序 | 旧一篇: MySQL的存储过程

    when trying to write and deploy a web-service under Netbeans 6.0 using Apache Tomcat 6.0, you get a weird error about an incompatibility between the JAXB libraries versions:
    **************************************WARNING***************************************To use JAX-WS 2.1 with JDK 6, newer versions of API jars need to be in bootclasspathbefore rt.jar. To do this you can use Java endorsed mechanism to override what is inJava platform. The easiest way to do so is to copy all jars from the C:\Program Files\NetBeans 6.0 Beta 1\java1\modules\ext\jaxws21\api folder to C:\Program Files\Apache Software Foundation\Apache Tomcat 6.0\endorsed.
    ************************************************************************************
    com.sun.xml.ws.transport.http.servlet.WSServletException: WSSERVLET11: failed to parse runtime descriptor: java.lang.LinkageError: JAXB 2.0 API is being loaded from the bootstrap classloader, but this RI (from jar:file://build/web/WEB-INF/lib/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. (See http://java.sun.com/j2se/1.5.0/docs/guide/standards/)

    What you need to do is exactly what suggested:
    copy the jar files from C:\Program Files\NetBeans 6.0 Beta 1\java1\modules\ext\jaxws21\api to C:\Program Files\Apache Software Foundation\Apache Tomcat 6.0\endorsedYou will need to create the "endorsed" folder under Tomcat 6 main folder;
    in my case, 6 jar files are copied:
    18/09/2007 14.51 89.193 jaxb-api.jar
    18/09/2007 14.51 36.005 jaxws-api.jar
    18/09/2007 14.51 23.246 jsr173_api.jar
    18/09/2007 14.51 7.956 jsr181-api.jar
    18/09/2007 14.51 5.948 jsr250-api.jar
    18/09/2007 14.51 18.623 saaj-api.jar

    Then you need to rebuild the project, restart tomcat and undeploy/redeploy your project, and everything should be fine.

    发表于 @ 2008年05月19日 08:54:08|评论(loading...)|编辑

    新一篇: 用Java实现多线程服务器程序 | 旧一篇: MySQL的存储过程

    评论

    #jnssvh 发表于2008-11-19 09:19:38  IP: 58.217.139.*
    能不能用中文呀,看着费劲@!!@
    #njchenyi 发表于2008-11-19 09:22:48  IP: 218.94.57.*
    做这行的看不懂英文咋行
    #njchenyi 发表于2008-11-19 09:23:42  IP: 218.94.57.*
    做这行的看不懂英文咋行
    发表评论  


    登录
    Csdn Blog version 3.1a
    Copyright © njchenyi