【问题标题】:Classpath Issue with xmlparserV2.jar in WAS 8.5.5WAS 8.5.5 中 xmlparserV2.jar 的类路径问题
【发布时间】:2015-03-16 13:51:00
【问题描述】:

我在 WAS 8.5.5 中遇到了一个严重问题。根据我的要求,我已将 xmlparserV2.jar 包含在 JVM 类路径中。我已经重新启动了 WAS,并且服务器开始失败并出现以下错误。我已经取出罐子并进行了测试。没有该条目,服务器工作正常。

请告诉我原因以及如何解决。

[3/16/15 6:30:12:406 PDT] 00000001 MBeanDescript W   ADMN0001W: The service is unable to parse the MBean descriptor file com.ibm.websphere.management.exception.DescriptorParseException: ADMN0001W: The service is unable to parse the MBean descriptor file com/ibm/ws/management/descriptor/xml/AdminService.xml.
at com.ibm.ws.management.descriptor.MBeanDescriptorLoader.loadDescriptor(MBeanDescriptorLoader.java:182)
at com.ibm.ws.management.descriptor.MBeanDescriptorManager.loadDescriptorFile(MBeanDescriptorManager.java:415)
at com.ibm.ws.management.descriptor.MBeanDescriptorManager.getDescriptor(MBeanDescriptorManager.java:190)
at com.ibm.ws.management.MBeanFactoryImpl.activateMBean(MBeanFactoryImpl.java:507)

[3/16/15 6:30:12:500 PDT] 00000001 FfdcProvider  W com.ibm.ws.ffdc.impl.FfdcProvider logIncident FFDC1003I: FFDC Incident emitted on C:\Program Files\IBM\WebSphere\AppServer\profiles\AppSrv01\logs\ffdc\server1_b9ae2bfa_15.03.16_06.30.12.4211342510407965994963.txt com.ibm.ws.management.component.AdminImpl.initialize 217
[3/16/15 6:30:12:500 PDT] 00000001 AdminInitiali A   ADMN0015I: The administration service is initialized.
[3/16/15 6:30:12:562 PDT] 00000001 MBeanDescript W   ADMN0001W: The service is unable to parse the MBean descriptor file com.ibm.websphere.management.exception.DescriptorParseException: ADMN0001W: The service is unable to parse the MBean descriptor file com/ibm/ws/management/descriptor/xml/ConfigRepository.xml.
at com.ibm.ws.management.descriptor.MBeanDescriptorLoader.loadDescriptor(MBeanDescriptorLoader.java:182)
at com.ibm.ws.management.descriptor.MBeanDescriptorManager.loadDescriptorFile(MBeanDescriptorManager.java:415)
at com.ibm.ws.management.descriptor.MBeanDescriptorManager.getDescriptor(MBeanDescriptorManager.java:190)
at com.ibm.ws.ffdc.impl.FfdcProvider logIncident FFDC1003I: FFDC Incident emitted on C:\Program Files\IBM\WebSphere\AppServer\profiles\AppSrv01\logs\ffdc\server1_b9ae2bfa_15.03.16_06.30.12.5627002919638891875819.txt com.ibm.ws.management.repository.FileRepository.initialize 149

[3/16/15 6:30:12:578 PDT] 00000001 FileRepositor E   ADMR0006E: An error occurred activating MBean: com.ibm.websphere.management.exception.AdminException: ADMN0005E: The service is unable to activate MBean: type ConfigRepository, collaborator com.ibm.ws.management.repository.FileRepository@df91d010, configuration ID repository, descriptor null.
at com.ibm.ws.management.MBeanFactoryImpl.activateMBean(MBeanFactoryImpl.java:772)
at com.ibm.ws.management.MBeanFactoryImpl.activateMBean(MBeanFactoryImpl.java:476)

【问题讨论】:

    标签: java xml xml-parsing websphere


    【解决方案1】:

    JAR 文件包含一个 META-INF\services 目录,其中包含将覆盖服务器正在使用的 XML 处理器的文件。

    来自 Java SE javadoc

    如果可用,请使用服务 API(如 JAR 规范中所述)来确定类名。服务 API 将在运行时可用的 jar 中的 META-INF/services/javax.xml.parsers.SAXParserFactory 文件中查找类名。

    我使用 7-zip 从 META-INF\services 中删除文件并改用那个 JAR。我的 XML 对象解析现在可以正常工作,其他所有内容均未受影响。

    【讨论】:

      【解决方案2】:

      这个问题解决了吗?

      因为我也面临同样的问题。 首先获取 - java.sql.SQLException: java.lang.NoClassDefFoundError: oracle.xml.parser.v2.XMLParseException 如果我们在 JDBC 类路径中添加 xmlparserv2.jar 然后应用程序运行正常,则解决此问题我的 JVM 迷上了(不能登录 cosole)。从类路径中删除此 jar 后,服务器运行正常。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2015-05-04
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2016-09-04
        • 2012-05-06
        相关资源
        最近更新 更多