java - 找不到 websphere deployment.xml 组成单元

标签 java web-services websphere

在 websphere 中运行 Web 服务时,抛出此错误:

[5/8/16 17:33:05:862 EDT]     FFDC Exception:java.io.FileNotFoundException SourceId:com.ibm.ws.policyset.runtime.server.FileLocatorImpl.getAttachmentPath ProbeId:FFDC-2
java.io.FileNotFoundException: C:\Program Files (x86)\IBM\WebSphere\AppServer\profiles\AppSrv01\config\cells\Node01Cell\applications\null.ear\deployments\deployment.xml (The system cannot find the path specified.)
    at java.io.FileInputStream.open(Native Method)
    at java.io.FileInputStream.<init>(FileInputStream.java:149)
    at java.io.FileInputStream.<init>(FileInputStream.java:108)
    at sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:103)
    at sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:201)
    at org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unknown Source)
    at org.apache.xerces.impl.XMLVersionDetector.determineDocVersion(Unknown Source)
    at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
    at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
    at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
    at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
    at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
    at org.apache.xerces.jaxp.SAXParserImpl.parse(Unknown Source)
    at javax.xml.parsers.SAXParser.parse(Unknown Source)
    at com.ibm.ws.runtime.config.ConfigDocumentImpl.load(ConfigDocumentImpl.java:200)
    at com.ibm.ws.runtime.config.ConfigServiceImpl.getDocument(ConfigServiceImpl.java:182)
    at com.ibm.ws.runtime.config.ConfigServiceImpl.getDocumentObjects(ConfigServiceImpl.java:126)
    at com.ibm.ws.runtime.config.ConfigServiceImpl.getDocumentObjects(ConfigServiceImpl.java:120)
    at com.ibm.ws.policyset.runtime.server.FileLocatorImpl$2.run(FileLocatorImpl.java:176)
    at com.ibm.ws.policyset.runtime.server.FileLocatorImpl$2.run(FileLocatorImpl.java:174)
    at java.security.AccessController.doPrivileged(AccessController.java:280)
    at com.ibm.ws.policyset.runtime.server.FileLocatorImpl.getApplicationAttachment(FileLocatorImpl.java:173)
    at com.ibm.ws.policyset.runtime.server.FileLocatorImpl.getAttachmentPath(FileLocatorImpl.java:116)
    at com.ibm.ws.policyset.runtime.PolicySetUtil.getAttachmentPath(PolicySetUtil.java:436)
    at com.ibm.ws.policyset.runtime.PolicySetUtil.getClientAttachments(PolicySetUtil.java:216)
    at com.ibm.ws.websvcs.deployment.WASAxis2PolicySetConfigurator.getPolicySetAttachments(WASAxis2PolicySetConfigurator.java:437)
    at com.ibm.ws.websvcs.deployment.WASAxis2PolicySetConfigurator.associatePolicySets(WASAxis2PolicySetConfigurator.java:319)
    at com.ibm.ws.websvcs.client.WSClientConfigurationFactory.completeAxis2Configuration(WSClientConfigurationFactory.java:459)
    at org.apache.axis2.jaxws.description.impl.EndpointDescriptionImpl.<init>(EndpointDescriptionImpl.java:286)
    at org.apache.axis2.jaxws.description.impl.EndpointDescriptionImpl.<init>(EndpointDescriptionImpl.java:223)
    at org.apache.axis2.jaxws.description.impl.ServiceDescriptionImpl.updateEndpointDescription(ServiceDescriptionImpl.java:534)
    at org.apache.axis2.jaxws.description.impl.DescriptionFactoryImpl.updateEndpoint(DescriptionFactoryImpl.java:382)
    at org.apache.axis2.jaxws.description.DescriptionFactory.updateEndpoint(DescriptionFactory.java:180)
    at org.apache.axis2.jaxws.spi.ServiceDelegate.getPort(ServiceDelegate.java:597)
    at org.apache.axis2.jaxws.spi.ServiceDelegate.getPort(ServiceDelegate.java:513)
at javax.xml.ws.Service.getPort(Service.java:99)

有人能建议一下这是什么问题吗?

最佳答案

如果找不到原因,您可以尝试清除 WAS temp 和 wstemp 目录,然后重新安装您的应用程序。 (在某些情况下它帮助了我们..)

首先停止应用程序服务器,然后删除 temp/和 wstemp/下的所有内容(在安装时可能是: C:\Program Files (x86)\IBM\WebSphere\AppServer\profiles\AppSrv01\temp* 和 C:\Program Files (x86)\IBM\WebSphere\AppServer\profiles\AppSrv01\wstemp* ),然后在管理控制台上卸载并安装该应用程序。

您还可以检查是否有最新的修复包,他们修复了这样的一些问题..

http://www-01.ibm.com/support/docview.wss?uid=swg1PM94858

关于java - 找不到 websphere deployment.xml 组成单元,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37105553/

相关文章:

error-handling - WebSphere wsadmin testConnection错误消息

java - 从 Java 中的 ArrayList 中获取唯一的元素对

java - 将 BufferedImage 保存为 JPG 时数据已更改,但可以使用 PNG

java - 使用ITextRenderer从HTML生成pdf文件时出现编码问题

java - 如何限制 Canvas 的翻译矩阵?

asp.net - 网站/Web 服务部署环境不同/监控?

java - 请求可以直接到达 ejb 容器还是应该首先到达 Web 容器。有人可以解释一下吗?

excel - Alpha Vantage API Excel

java - Apache Camel RouteBuilder 配置方法

python - 解析 Jython 2.1 中的命令行选项