問題描述
我在 WAS 8.5.5 中遇到了一個嚴重問題.根據我的要求,我已將 xmlparserV2.jar 包含在 JVM 類路徑中.我已經重新啟動了 WAS,并且服務器開始失敗并出現以下錯誤.我已經取出罐子并進行了測試.沒有該條目,服務器工作正常.
I had a severe issue in WAS 8.5.5. I have included the xmlparserV2.jar in JVM classpath as per my requirement. I have restarted the WAS and server start to failed with the follow errors. I have removed the jar and tested. Server is working fine with out that entry.
請告訴我原因以及如何解決.
Please let me know the reason and how can i resolve it.
[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 FilesIBMWebSphereAppServerprofilesAppSrv01logsffdcserver1_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 FilesIBMWebSphereAppServerprofilesAppSrv01logsffdcserver1_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)
推薦答案
JAR 文件包含一個 META-INFservices 目錄,其中包含將覆蓋服務器正在使用的 XML 處理器的文件.
The JAR file includes a META-INFservices directory which includes files that will override the XML processors being used by your server.
來自 Java SE javadoc
From Java SE javadoc
如果可用,請使用服務 API(如 JAR 規范中所述)來確定類名.服務 API 將在運行時可用的 jar 中的 META-INF/services/javax.xml.parsers.SAXParserFactory 文件中查找類名.
Use the Services API (as detailed in the JAR specification), if available, to determine the classname. The Services API will look for a classname in the file META-INF/services/javax.xml.parsers.SAXParserFactory in jars available to the runtime.
我使用 7-zip 從 META-INFservices 中刪除文件并改用那個 JAR.我的 XML 對象解析現在可以正常工作,其他所有內容均未受影響.
I used 7-zip to delete the files from the META-INFservices and used that JAR instead. My XML Object parsing works now and everything else is un-effected.
這篇關于WAS 8.5.5 中 xmlparserV2.jar 的類路徑問題的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!