如何使用RAD 8.0在WebSphere(WAS 7.0)上使用CXF Web服务部署Maven项目

时间:2013-11-25 04:35:20

标签: maven websphere cxf ibm-rad

我需要知道如何在Rational Application Developer(RAD)8.0中使用可以部署在WebSphere Application Server(WAS)7.0上的CXF Web服务/方面创建Maven项目。

我尝试过使用企业应用程序项目或动态Web应用程序(启用了CXF facet)然后将其转换为Maven - 它没有工作。我决定首先创建一个Maven项目,然后添加一个CXF方面( 2.7.7 ),动态Web模块( 2.5 - 3.0不能与应用程序服务器的组合一起使用,Web模块,CXF等)和WebSphere Web / WebSphere Extended,并将WebContent文件夹更改为src / main / webapp以遵守Maven结构。

这使我可以生成一个EAR项目,这是在WAS 7.0上部署所必需的。但是,在构建项目时(通过Maven Install或通过Project - > Build Project),我在web.xml文件中收到错误:

The servlet mapping "CXFServlet" refers to a servlet that is not defined    web.xml    /WSProvider/src/main/webapp/WEB-INF    Unknown    Web Problem

web.xml 的内容以及ibm-web-bnd.xmi和ibm-web-ext.xmi(由于版本控制,我不得不将它们从.xml重命名为.xmi) :

<?xml version="1.0" encoding="ISO-8859-1"?>
<web-app id="WebApp_ID" version="2.5"
    xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">

  <display-name>Archetype Created Web Application</display-name>
  <description>CXF Application</description>
  <context-param>
    <param-name>contextConfigLocation</param-name>
    <param-value>classpath:com/b4interview/ws/conf/beans.xml</param-value>
  </context-param>

  <listener>
    <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
  </listener>

  <servlet>
    <servlet-name>CXFServlet</servlet-name>
    <servlet-class>
       org.apache.cxf.transport.servlet.CXFServlet
    </servlet-class>
    <load-on-startup>1</load-on-startup>
  </servlet>

  <servlet-mapping>
    <servlet-name>CXFServlet</servlet-name>
    <url-pattern>/services/*</url-pattern>
  </servlet-mapping>

  <welcome-file-list>
    <welcome-file>index.jsp</welcome-file>
  </welcome-file-list>

</web-app>

IBM的Web-bnd.xmi

<?xml version="1.0" encoding="UTF-8"?>
<web-bnd
    xmlns="http://websphere.ibm.com/xml/ns/javaee"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://websphere.ibm.com/xml/ns/javaee http://websphere.ibm.com/xml/ns/javaee/ibm-web-bnd_1_0.xsd"
    version="1.0">

    <virtual-host name="default_host" />

</web-bnd>

网络-IBM-ext.xmi文件

<?xml version="1.0" encoding="UTF-8"?>
<web-ext
    xmlns="http://websphere.ibm.com/xml/ns/javaee"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://websphere.ibm.com/xml/ns/javaee http://websphere.ibm.com/xml/ns/javaee/ibm-web-ext_1_0.xsd"
    version="1.0">

    <reload-interval value="3"/>
    <enable-directory-browsing value="false"/>
    <enable-file-serving value="true"/>
    <enable-reloading value="true"/>
    <enable-serving-servlets-by-class-name value="false" />

</web-ext>

如果我尝试按原样部署应用程序,我会从日志中得到这个:

The publish encountered some problems and the application may not have been installed or it may have been successfully installed but was unable to start. View the Details to display the exceptions and server logs that occurred during the publish.  

======== WSProviderEAR ========

Failed to add or remove the application from the server: WSProviderEAR
[11/23/13 23:12:55:888 CST] 00000047 wtp           E org.eclipse.jst.j2ee.commonarchivecore.internal.impl.ModuleFileImpl processNoSuchClassException Annotations scanning of archive [ WSProvider.war ] completed with errors.  Could not find class [ org.junit.rules.TemporaryFolder ].
[11/23/13 23:12:56:171 CST] 00000047 wtp           E org.eclipse.jst.j2ee.commonarchivecore.internal.impl.EARFileImpl getDeploymentDescriptor An error occurred while processing the deployment descriptor, error message=IWAE0007E Could not load resource "WEB-INF/ibm-web-ext.xml" in archive "WSProvider.war"
[11/23/13 23:12:56:183 CST] 00000047 FfdcProvider  I com.ibm.ws.ffdc.impl.FfdcProvider logIncident FFDC1003I: FFDC Incident emitted on C:\Program Files\IBM\WebSphere\AppServer\profiles\AppSrv01\logs\ffdc\server1_50135013_13.11.23_23.12.56.17835875.txt com.ibm.ws.management.application.ExtensionHelper.processServerInstallExtensions 193
[11/23/13 23:12:56:247 CST] 00000047 FfdcProvider  I com.ibm.ws.ffdc.impl.FfdcProvider logIncident FFDC1003I: FFDC Incident emitted on C:\Program Files\IBM\WebSphere\AppServer\profiles\AppSrv01\logs\ffdc\server1_50135013_13.11.23_23.12.56.19535876.txt com.ibm.ws.management.application.SchedulerImpl.run 297
[11/23/13 23:12:56:251 CST] 00000047 SystemErr     R org.eclipse.jst.j2ee.commonarchivecore.internal.exception.DeploymentDescriptorLoadException: META-INF/application.xml
Stack trace of nested exception:
org.eclipse.jst.j2ee.commonarchivecore.internal.exception.ResourceLoadException: IWAE0007E Could not load resource "WEB-INF/ibm-web-ext.xml" in archive "WSProvider.war"
Stack trace of nested exception:
org.eclipse.jst.j2ee.internal.WrappedRuntimeException: Exception occurred loading WEB-INF/ibm-web-ext.xmi
Stack trace of nested exception:
org.eclipse.emf.ecore.resource.impl.ResourceSetImpl$1$DiagnosticWrappedException: org.eclipse.emf.ecore.xmi.PackageNotFoundException: Package with uri 'http://websphere.ibm.com/xml/ns/javaee' not found. (file:///C:/Program%20Files/IBM/WebSphere/AppServer/profiles/AppSrv01/WEB-INF/ibm-web-ext.xmi, 6, 16)
    at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.handleDemandLoadException(ResourceSetImpl.java:307)
    at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLoadHelper(ResourceSetImpl.java:268)
    at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.getResource(ResourceSetImpl.java:390)
    at com.ibm.ejs.models.base.bindings.commonbnd.AbstractTraversalHelper.getBindingOrExtensionInExistingResource(AbstractTraversalHelper.java:140)
    at com.ibm.ejs.models.base.bindings.commonbnd.AbstractTraversalHelper.getBindingOrExtension(AbstractTraversalHelper.java:109)
    at com.ibm.ejs.models.base.extensions.helper.CommonExtensionsHelper.getExtension(CommonExtensionsHelper.java:66)
    at com.ibm.ejs.models.base.extensions.webappext.WebAppExtensionsHelper.getWebAppExtension(WebAppExtensionsHelper.java:64)
    at com.ibm.etools.commonarchive.impl.WARFileImpl.getExtensions(WARFileImpl.java:441)
    at com.ibm.etools.commonarchive.impl.WARFileImpl.getContextRoot(WARFileImpl.java:736)
    at org.eclipse.jst.j2ee.commonarchivecore.internal.strategy.Ear50NoDDImportStrategyImpl.loadDeploymentDescriptor(Ear50NoDDImportStrategyImpl.java:388)
    at org.eclipse.jst.j2ee.commonarchivecore.internal.strategy.Ear50NoDDImportStrategyImpl.importMetaData(Ear50NoDDImportStrategyImpl.java:253)
    at org.eclipse.jst.j2ee.commonarchivecore.internal.impl.EARFileImpl.getDeploymentDescriptor(EARFileImpl.java:377)
    at com.ibm.etools.commonarchive.impl.EARFileImpl.initializeModuleExtensions(EARFileImpl.java:641)
    at com.ibm.etools.commonarchive.impl.EARFileImpl.initializeAfterOpen(EARFileImpl.java:720)
    at org.eclipse.jst.j2ee.commonarchivecore.internal.impl.CommonarchiveFactoryImpl.openSpecificArchive(CommonarchiveFactoryImpl.java:1517)
    at org.eclipse.jst.j2ee.commonarchivecore.internal.impl.CommonarchiveFactoryImpl.openEARFile(CommonarchiveFactoryImpl.java:1205)
    at com.ibm.etools.commonarchive.impl.CommonarchiveFactoryImpl.openEARFile(CommonarchiveFactoryImpl.java:552)
    at com.ibm.ws.management.application.client.AppInstallHelper.getArchive(AppInstallHelper.java:271)
    at com.ibm.ws.management.application.client.AppInstallHelper.getArchive(AppInstallHelper.java:174)
    at com.ibm.ws.management.application.ArchiveSchedulerImpl.getArchive(ArchiveSchedulerImpl.java:218)
    at com.ibm.ws.management.application.InstallSchedulerImpl.getEarFile(InstallSchedulerImpl.java:123)
    at com.ibm.isclite.deploy.task.IscTaskProvider.provideServerInstallExtensions(IscTaskProvider.java:54)
    at com.ibm.ws.management.application.ExtensionHelper.processServerInstallExtensions(ExtensionHelper.java:189)
    at com.ibm.ws.management.application.InstallSchedulerImpl.setupTasks(InstallSchedulerImpl.java:251)
    at com.ibm.ws.management.application.SchedulerImpl.run(SchedulerImpl.java:272)
    at java.lang.Thread.run(Thread.java:735)
Caused by: org.eclipse.emf.ecore.xmi.PackageNotFoundException: Package with uri 'http://websphere.ibm.com/xml/ns/javaee' not found. (file:///C:/Program%20Files/IBM/WebSphere/AppServer/profiles/AppSrv01/WEB-INF/ibm-web-ext.xmi, 6, 16)
    at org.eclipse.emf.ecore.xmi.impl.XMLHandler.getPackageForURI(XMLHandler.java:2330)
    at org.eclipse.emf.ecore.xmi.impl.XMLHandler.getFactoryForPrefix(XMLHandler.java:2168)
    at org.eclipse.emf.ecore.xmi.impl.XMLHandler.createObjectByType(XMLHandler.java:1143)
    at org.eclipse.emf.ecore.xmi.impl.XMLHandler.createTopObject(XMLHandler.java:1245)
    at org.eclipse.emf.ecore.xmi.impl.XMLHandler.processElement(XMLHandler.java:883)
    at org.eclipse.emf.ecore.xmi.impl.XMIHandler.processElement(XMIHandler.java:78)
    at org.eclipse.emf.ecore.xmi.impl.XMLHandler.startElement(XMLHandler.java:866)
    at org.eclipse.emf.ecore.xmi.impl.SAXWrapper.startElement(SAXWrapper.java:90)
    at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
    at org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(Unknown Source)
    at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source)
    at org.apache.xerces.impl.XMLDocumentScannerImpl$ContentDispatcher.scanRootElementHook(Unknown Source)
    at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
    at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(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 org.eclipse.emf.ecore.xmi.impl.XMLLoadImpl.load(XMLLoadImpl.java:179)
    at org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl.doLoad(XMLResourceImpl.java:179)
    at org.eclipse.wst.common.internal.emf.resource.CompatibilityXMIResourceImpl.basicDoLoad(CompatibilityXMIResourceImpl.java:180)
    at org.eclipse.wst.common.internal.emf.resource.CompatibilityXMIResourceImpl.doLoad(CompatibilityXMIResourceImpl.java:173)
    at org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(ResourceImpl.java:1094)
    at org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(ResourceImpl.java:900)
    at org.eclipse.wst.common.internal.emf.resource.CompatibilityXMIResourceImpl.load(CompatibilityXMIResourceImpl.java:259)
    at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLoad(ResourceSetImpl.java:249)
    at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLoadHelper(ResourceSetImpl.java:264)
    ... 24 more

[11/23/13 23:12:56:251 CST] 00000047 SystemErr     R Stack trace of nested exception:
[11/23/13 23:12:56:252 CST] 00000047 SystemErr     R org.eclipse.jst.j2ee.commonarchivecore.internal.exception.ResourceLoadException: IWAE0007E Could not load resource "WEB-INF/ibm-web-ext.xml" in archive "WSProvider.war"
Stack trace of nested exception:
org.eclipse.jst.j2ee.internal.WrappedRuntimeException: Exception occurred loading WEB-INF/ibm-web-ext.xmi
Stack trace of nested exception:
org.eclipse.emf.ecore.resource.impl.ResourceSetImpl$1$DiagnosticWrappedException: org.eclipse.emf.ecore.xmi.PackageNotFoundException: Package with uri 'http://websphere.ibm.com/xml/ns/javaee' not found. (file:///C:/Program%20Files/IBM/WebSphere/AppServer/profiles/AppSrv01/WEB-INF/ibm-web-ext.xmi, 6, 16)
    at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.handleDemandLoadException(ResourceSetImpl.java:307)
    at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLoadHelper(ResourceSetImpl.java:268)
    at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.getResource(ResourceSetImpl.java:390)
    at com.ibm.ejs.models.base.bindings.commonbnd.AbstractTraversalHelper.getBindingOrExtensionInExistingResource(AbstractTraversalHelper.java:140)
    at com.ibm.ejs.models.base.bindings.commonbnd.AbstractTraversalHelper.getBindingOrExtension(AbstractTraversalHelper.java:109)
    at com.ibm.ejs.models.base.extensions.helper.CommonExtensionsHelper.getExtension(CommonExtensionsHelper.java:66)
    at com.ibm.ejs.models.base.extensions.webappext.WebAppExtensionsHelper.getWebAppExtension(WebAppExtensionsHelper.java:64)
    at com.ibm.etools.commonarchive.impl.WARFileImpl.getExtensions(WARFileImpl.java:441)
    at com.ibm.etools.commonarchive.impl.WARFileImpl.getContextRoot(WARFileImpl.java:736)
    at org.eclipse.jst.j2ee.commonarchivecore.internal.strategy.Ear50NoDDImportStrategyImpl.loadDeploymentDescriptor(Ear50NoDDImportStrategyImpl.java:388)
    at org.eclipse.jst.j2ee.commonarchivecore.internal.strategy.Ear50NoDDImportStrategyImpl.importMetaData(Ear50NoDDImportStrategyImpl.java:253)
    at org.eclipse.jst.j2ee.commonarchivecore.internal.impl.EARFileImpl.getDeploymentDescriptor(EARFileImpl.java:377)
    at com.ibm.etools.commonarchive.impl.EARFileImpl.initializeModuleExtensions(EARFileImpl.java:641)
    at com.ibm.etools.commonarchive.impl.EARFileImpl.initializeAfterOpen(EARFileImpl.java:720)
    at org.eclipse.jst.j2ee.commonarchivecore.internal.impl.CommonarchiveFactoryImpl.openSpecificArchive(CommonarchiveFactoryImpl.java:1517)
    at org.eclipse.jst.j2ee.commonarchivecore.internal.impl.CommonarchiveFactoryImpl.openEARFile(CommonarchiveFactoryImpl.java:1205)
    at com.ibm.etools.commonarchive.impl.CommonarchiveFactoryImpl.openEARFile(CommonarchiveFactoryImpl.java:552)
    at com.ibm.ws.management.application.client.AppInstallHelper.getArchive(AppInstallHelper.java:271)
    at com.ibm.ws.management.application.client.AppInstallHelper.getArchive(AppInstallHelper.java:174)
    at com.ibm.ws.management.application.ArchiveSchedulerImpl.getArchive(ArchiveSchedulerImpl.java:218)
    at com.ibm.ws.management.application.InstallSchedulerImpl.getEarFile(InstallSchedulerImpl.java:123)
    at com.ibm.isclite.deploy.task.IscTaskProvider.provideServerInstallExtensions(IscTaskProvider.java:54)
    at com.ibm.ws.management.application.ExtensionHelper.processServerInstallExtensions(ExtensionHelper.java:189)
    at com.ibm.ws.management.application.InstallSchedulerImpl.setupTasks(InstallSchedulerImpl.java:251)
    at com.ibm.ws.management.application.SchedulerImpl.run(SchedulerImpl.java:272)
    at java.lang.Thread.run(Thread.java:735)
Caused by: org.eclipse.emf.ecore.xmi.PackageNotFoundException: Package with uri 'http://websphere.ibm.com/xml/ns/javaee' not found. (file:///C:/Program%20Files/IBM/WebSphere/AppServer/profiles/AppSrv01/WEB-INF/ibm-web-ext.xmi, 6, 16)
    at org.eclipse.emf.ecore.xmi.impl.XMLHandler.getPackageForURI(XMLHandler.java:2330)
    at org.eclipse.emf.ecore.xmi.impl.XMLHandler.getFactoryForPrefix(XMLHandler.java:2168)
    at org.eclipse.emf.ecore.xmi.impl.XMLHandler.createObjectByType(XMLHandler.java:1143)
    at org.eclipse.emf.ecore.xmi.impl.XMLHandler.createTopObject(XMLHandler.java:1245)
    at org.eclipse.emf.ecore.xmi.impl.XMLHandler.processElement(XMLHandler.java:883)
    at org.eclipse.emf.ecore.xmi.impl.XMIHandler.processElement(XMIHandler.java:78)
    at org.eclipse.emf.ecore.xmi.impl.XMLHandler.startElement(XMLHandler.java:866)
    at org.eclipse.emf.ecore.xmi.impl.SAXWrapper.startElement(SAXWrapper.java:90)
    at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
    at org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(Unknown Source)
    at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source)
    at org.apache.xerces.impl.XMLDocumentScannerImpl$ContentDispatcher.scanRootElementHook(Unknown Source)
    at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
    at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(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 org.eclipse.emf.ecore.xmi.impl.XMLLoadImpl.load(XMLLoadImpl.java:179)
    at org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl.doLoad(XMLResourceImpl.java:179)
    at org.eclipse.wst.common.internal.emf.resource.CompatibilityXMIResourceImpl.basicDoLoad(CompatibilityXMIResourceImpl.java:180)
    at org.eclipse.wst.common.internal.emf.resource.CompatibilityXMIResourceImpl.doLoad(CompatibilityXMIResourceImpl.java:173)
    at org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(ResourceImpl.java:1094)
    at org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(ResourceImpl.java:900)
    at org.eclipse.wst.common.internal.emf.resource.CompatibilityXMIResourceImpl.load(CompatibilityXMIResourceImpl.java:259)
    at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLoad(ResourceSetImpl.java:249)
    at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLoadHelper(ResourceSetImpl.java:264)
    ... 24 more

[11/23/13 23:12:56:252 CST] 00000047 SystemErr     R Stack trace of nested exception:
[11/23/13 23:12:56:253 CST] 00000047 SystemErr     R org.eclipse.jst.j2ee.internal.WrappedRuntimeException: Exception occurred loading WEB-INF/ibm-web-ext.xmi
Stack trace of nested exception:
org.eclipse.emf.ecore.resource.impl.ResourceSetImpl$1$DiagnosticWrappedException: org.eclipse.emf.ecore.xmi.PackageNotFoundException: Package with uri 'http://websphere.ibm.com/xml/ns/javaee' not found. (file:///C:/Program%20Files/IBM/WebSphere/AppServer/profiles/AppSrv01/WEB-INF/ibm-web-ext.xmi, 6, 16)
    at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.handleDemandLoadException(ResourceSetImpl.java:307)
    at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLoadHelper(ResourceSetImpl.java:268)
    at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.getResource(ResourceSetImpl.java:390)
    at com.ibm.ejs.models.base.bindings.commonbnd.AbstractTraversalHelper.getBindingOrExtensionInExistingResource(AbstractTraversalHelper.java:140)
    at com.ibm.ejs.models.base.bindings.commonbnd.AbstractTraversalHelper.getBindingOrExtension(AbstractTraversalHelper.java:109)
    at com.ibm.ejs.models.base.extensions.helper.CommonExtensionsHelper.getExtension(CommonExtensionsHelper.java:66)
    at com.ibm.ejs.models.base.extensions.webappext.WebAppExtensionsHelper.getWebAppExtension(WebAppExtensionsHelper.java:64)
    at com.ibm.etools.commonarchive.impl.WARFileImpl.getExtensions(WARFileImpl.java:441)
    at com.ibm.etools.commonarchive.impl.WARFileImpl.getContextRoot(WARFileImpl.java:736)
    at org.eclipse.jst.j2ee.commonarchivecore.internal.strategy.Ear50NoDDImportStrategyImpl.loadDeploymentDescriptor(Ear50NoDDImportStrategyImpl.java:388)
    at org.eclipse.jst.j2ee.commonarchivecore.internal.strategy.Ear50NoDDImportStrategyImpl.importMetaData(Ear50NoDDImportStrategyImpl.java:253)
    at org.eclipse.jst.j2ee.commonarchivecore.internal.impl.EARFileImpl.getDeploymentDescriptor(EARFileImpl.java:377)
    at com.ibm.etools.commonarchive.impl.EARFileImpl.initializeModuleExtensions(EARFileImpl.java:641)
    at com.ibm.etools.commonarchive.impl.EARFileImpl.initializeAfterOpen(EARFileImpl.java:720)
    at org.eclipse.jst.j2ee.commonarchivecore.internal.impl.CommonarchiveFactoryImpl.openSpecificArchive(CommonarchiveFactoryImpl.java:1517)
    at org.eclipse.jst.j2ee.commonarchivecore.internal.impl.CommonarchiveFactoryImpl.openEARFile(CommonarchiveFactoryImpl.java:1205)
    at com.ibm.etools.commonarchive.impl.CommonarchiveFactoryImpl.openEARFile(CommonarchiveFactoryImpl.java:552)
    at com.ibm.ws.management.application.client.AppInstallHelper.getArchive(AppInstallHelper.java:271)
    at com.ibm.ws.management.application.client.AppInstallHelper.getArchive(AppInstallHelper.java:174)
    at com.ibm.ws.management.application.ArchiveSchedulerImpl.getArchive(ArchiveSchedulerImpl.java:218)
    at com.ibm.ws.management.application.InstallSchedulerImpl.getEarFile(InstallSchedulerImpl.java:123)
    at com.ibm.isclite.deploy.task.IscTaskProvider.provideServerInstallExtensions(IscTaskProvider.java:54)
    at com.ibm.ws.management.application.ExtensionHelper.processServerInstallExtensions(ExtensionHelper.java:189)
    at com.ibm.ws.management.application.InstallSchedulerImpl.setupTasks(InstallSchedulerImpl.java:251)
    at com.ibm.ws.management.application.SchedulerImpl.run(SchedulerImpl.java:272)
    at java.lang.Thread.run(Thread.java:735)
Caused by: org.eclipse.emf.ecore.xmi.PackageNotFoundException: Package with uri 'http://websphere.ibm.com/xml/ns/javaee' not found. (file:///C:/Program%20Files/IBM/WebSphere/AppServer/profiles/AppSrv01/WEB-INF/ibm-web-ext.xmi, 6, 16)
    at org.eclipse.emf.ecore.xmi.impl.XMLHandler.getPackageForURI(XMLHandler.java:2330)
    at org.eclipse.emf.ecore.xmi.impl.XMLHandler.getFactoryForPrefix(XMLHandler.java:2168)
    at org.eclipse.emf.ecore.xmi.impl.XMLHandler.createObjectByType(XMLHandler.java:1143)
    at org.eclipse.emf.ecore.xmi.impl.XMLHandler.createTopObject(XMLHandler.java:1245)
    at org.eclipse.emf.ecore.xmi.impl.XMLHandler.processElement(XMLHandler.java:883)
    at org.eclipse.emf.ecore.xmi.impl.XMIHandler.processElement(XMIHandler.java:78)
    at org.eclipse.emf.ecore.xmi.impl.XMLHandler.startElement(XMLHandler.java:866)
    at org.eclipse.emf.ecore.xmi.impl.SAXWrapper.startElement(SAXWrapper.java:90)
    at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
    at org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(Unknown Source)
    at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source)
    at org.apache.xerces.impl.XMLDocumentScannerImpl$ContentDispatcher.scanRootElementHook(Unknown Source)
    at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
    at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(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 org.eclipse.emf.ecore.xmi.impl.XMLLoadImpl.load(XMLLoadImpl.java:179)
    at org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl.doLoad(XMLResourceImpl.java:179)
    at org.eclipse.wst.common.internal.emf.resource.CompatibilityXMIResourceImpl.basicDoLoad(CompatibilityXMIResourceImpl.java:180)
    at org.eclipse.wst.common.internal.emf.resource.CompatibilityXMIResourceImpl.doLoad(CompatibilityXMIResourceImpl.java:173)
    at org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(ResourceImpl.java:1094)
    at org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(ResourceImpl.java:900)
    at org.eclipse.wst.common.internal.emf.resource.CompatibilityXMIResourceImpl.load(CompatibilityXMIResourceImpl.java:259)
    at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLoad(ResourceSetImpl.java:249)
    at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLoadHelper(ResourceSetImpl.java:264)
    ... 24 more

[11/23/13 23:12:56:253 CST] 00000047 SystemErr     R Stack trace of nested exception:
[11/23/13 23:12:56:253 CST] 00000047 SystemErr     R org.eclipse.emf.ecore.resource.impl.ResourceSetImpl$1$DiagnosticWrappedException: org.eclipse.emf.ecore.xmi.PackageNotFoundException: Package with uri 'http://websphere.ibm.com/xml/ns/javaee' not found. (file:///C:/Program%20Files/IBM/WebSphere/AppServer/profiles/AppSrv01/WEB-INF/ibm-web-ext.xmi, 6, 16)
...
 org.eclipse.emf.ecore.xmi.PackageNotFoundException: Package with uri 'http://websphere.ibm.com/xml/ns/javaee' not found. (file:///C:/Program%20Files/IBM/WebSphere/AppServer/profiles/AppSrv01/WEB-INF/ibm-web-ext.xmi, 6, 16)

这显然指向以下缺少的架构“包含uri'http://websphere.ibm.com/xml/ns/javaee'未找到。

0 个答案:

没有答案