我使用Netbeans 8.0.2与JDK 1.8和Glassfish 4.1.1创建了一个web应用程序。我的应用程序使用Web服务在数据库中存储信息。它运行良好。所以我不得不将netbeans工具更新到8.2版本:现在,如果我调用我的Web服务将信息存储在数据库中,我会得到以下异常:
无法初始化org.apache.xml.security.Init类
我在lib目录中加载的jar如下:
- 激活-1.1.1.1.jar
- aopalliance-1.0罐
- asm-3.3罐
- avalon框架-4.1.3.jar
- bcprov-jdk15-1.45罐
- 通用代码1.7.jar
- commons-email-1.3.3.jar
- commons-io-2.2.jar
- commons-lang-2.4.jar
- commons-lang3-3.3.2.jar
- 普通日志-1.1.jar
- cxf-api-2.3.3.jar
- cxf-common-schema-2.3.3.jar
- cxf-通用工具-2.3.3.jar
- cxf-rt-bindings-soap-2.3.3.jar
- cxf-rt-bindings-xml-2.3.3.jar
- cxf-rt-core-2.3.3.jar
- cxf-rt-databinding-jaxb-2.3.3.jar
- cxf-rt-frontend-jaxws-2.3.3.jar
- cxf-rt-frontend-sample-2.3.3.jar
- cxf-rt-transports-common-2.3.3.jar
- cxf-rt-transports-http-2.3.3.jar
- cxf-rt-ws-addr-2.3.3.jar
- cxf-rt-ws-security-2..3.jar
- cxf-tools-common-2.3.3.jar
- geronimo-javamail_1.4_spec-1.7.1.jar
- jasypt-1.9.2.jar
- javaee-endorse-api-7.0.jar
- javax.json-api-1.0.jar
- javax.mail-1.5.2.jar
- javax.ws.rs-api-2.0.jar
- jaxb-api-2.2.7.jar
- jaxb-impl-2.113.jar
- jcl-over-slf4j-1.7.18.jar
- joda-time-2.2罐
- log4j-1.2.12.jar
- logkit--1.01.jar
- 邮件-1.4.5.jar
- neethi-3.0.3.jar
- ognl-2.6.11jar
- opensaml-2.6.1.jar
- openws-1.5.1.jar
- oro-2.0.8.jar
- poi-3.12.jar
- poi-ooxml-3.12罐
- poi-ooxml-schemas3.12.jar
- serializer-2.7.1.jar
- servlet-api-2.3.jar
- slf4j-api-1.7.7.jar
- 弹簧操作-4.0.6.RELEASE.jar
- 弹簧-外壳-4.0.6.RELEASE.jar
- 弹簧标记2.4.1.RELEASE.jar
- 弹簧-文本-4.0.6.RELEASE.jar
- 弹簧芯-4.0.6.RELEASE.jar
- 弹簧-压力4.0.6.RELEASE.jar
- 弹簧面2.4.1.RELEASE.jar
- 弹簧-js-2.4.1.RELEASE.jar
- spring-js-resources-2.4.1.RELEASE.jar
- 弹簧-网站-3.0.5.RELEASE.jar
- spring-webflow-2.4.1.RELEASE.jar
- spring-webmvc-4.0.6.RELEASE.jar
- stax-api-1.0-2.jar
- stax-api-1.0.1.jar
- stax2-api-3.0.2.jar
- 验证-api-1.1.0.Final.jar
- woodstox-core-as-4.0.8.jar
- wsdl4j-1.6.2.jar
- wss4j-1.5.11.jar
- wss4j-ws-security-common-2.0.1.jar
- xalan-2.7.1.jar
- xml-apis-13.04.jar
- xml-resolver-1.2.jar
- xmlbeans-2.6.0.jar
- XmlSchema-1.4.5.jar
- XmlSchema-1.4.7.jar
- xmlsec-2.0.8.jar
- xmltooling-1.1.4.1.jar
知道吗?感谢
NetBeans 8.2附带Glassfish 4.1.1,NetBeans 8.0.2附带Glassffish 4.1。我用NetBeans 8.2运行Glassfish 4.1。