- nested exception is java.lang.LinkageError: JAXB 2.0 API is being loaded from the bootstrap classloader, but this RI 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/)
很明顯,是說加載了2.0版本的,需要2.1版本的,很可能,你裝的就是1.6的jdk, 那麼現在今天在新的環境裏再次碰到此問題時,又回想起當初,特現在記下處理方式:
將jaxb-api.jar和jaxws-api.jar兩個jar包放到%{JAVA_HOME}\jre\lib\endorsed下即可,如果沒有endorsed,則新建一個.這兩個jar包我放提供在附件裏