1

我正在尝试将一个开箱即用的 portlet 部署到我的 WebSphere Portal 6.0 环境中。我对其中一个 JSP 进行了较小的 HTML 更改,任何后续部署都会导致以下错误:

EJPAQ1316E: Could not process the selected file from the browse button as a WAR file. Make sure it is a WAR file and try again.

com.ibm.portal.WpsException: EJPAQ1316E: Could not process the selected file from the browse button as a WAR file.  Make sure it is a WAR file and try again.   at com.ibm.wps.portlets.portletmanager.actions.UploadWarFileAction.putDisplayableStringsIntoActionForm(UploadWarFileAction.java:401)    at com.ibm.wps.portlets.portletmanager.actions.UploadWarFileAction.doExecute(UploadWarFileAction.java:244)  at com.ibm.wps.portlets.adminstruts.actions.BaseAction.execute(BaseAction.java:64)  at com.ibm.wps.portlets.struts.WpsRequestProcessor.processActionPerform(WpsRequestProcessor.java:338)   at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274) at com.ibm.wps.portlets.struts.WpsStrutsPortlet.processActionPerformed(WpsStrutsPortlet.java:1947)  at com.ibm.wps.portlets.struts.WpsStrutsPortlet.actionPerformed(WpsStrutsPortlet.java:1637) at com.ibm.wps.portlets.adminstruts.WpsAdminStrutsPortlet.actionPerformed(WpsAdminStrutsPortlet.java:261)   at com.ibm.wps.pe.pc.legacy.SPIPortletInterceptorImpl.handleEvents(SPIPortletInterceptorImpl.java:323)

EJPPD0035E: The WAR file D:IBMPortaldeployed empfile.war could not be extracted into directory D:IBMPortaldeployed emp empfile.war.6.

com.ibm.wps.command.applications.AppWarFileException: EJPPD0035E: The WAR file D:IBMPortaldeployed  empfile.war could not be extracted into directory D:IBMPortaldeployed   emp empfile.war.6.WrappedException is: java.io.IOException: The given input stream is not an archive.   at com.ibm.wps.command.applications.AbstractApplicationsCommand.throwAppWarFileException(AbstractApplicationsCommand.java:380)  at com.ibm.wps.command.applications.AbstractApplicationsCommand.extractArchive(AbstractApplicationsCommand.java:714)    at com.ibm.wps.command.applications.GetPortletApplicationInfoCommand.execute(GetPortletApplicationInfoCommand.java:117) at com.ibm.wps.portlets.portletmanager.utils.WebModuleInstallUpdateUtil.getPortletInfoFromWarBytes(WebModuleInstallUpdateUtil.java:297) at com.ibm.wps.portlets.portletmanager.utils.WebModuleInstallUpdateUtil.getConcreteAppsFromFormFile(WebModuleInstallUpdateUtil.java:239)    at com.ibm.wps.portlets.portletmanager.actions.UploadWarFileAction.putDisplayableStringsIntoActionForm(UploadWarFileAction.java:357)    at com.ibm.wps.portlets.portletmanager.actions.UploadWarFileAction.doExecute(UploadWarFileAction.java:244)  at com.ibm.wps.portlets.adminstruts.actions.BaseAction.execute(BaseAction.java:64)

java.io.IOException: The given input stream is not an archive.
java.io.IOException: The given input stream is not an archive.  at com.ibm.wps.util.ArchiveExtracter.extract(ArchiveExtracter.java(Compiled Code))  at com.ibm.wps.util.ArchiveFileUtils.extractArchive(ArchiveFileUtils.java:86)   at com.ibm.wps.command.applications.AbstractApplicationsCommand.extractArchive(AbstractApplicationsCommand.java:712)    at com.ibm.wps.command.applications.GetPortletApplicationInfoCommand.execute(GetPortletApplicationInfoCommand.java:117) at com.ibm.wps.portlets.portletmanager.utils.WebModuleInstallUpdateUtil.getPortletInfoFromWarBytes(WebModuleInstallUpdateUtil.java:297) at com.ibm.wps.portlets.portletmanager.utils.WebModuleInstallUpdateUtil.getConcreteAppsFromFormFile(WebModuleInstallUpdateUtil.java:239)    at com.ibm.wps.portlets.portletmanager.actions.UploadWarFileAction.putDisplayableStringsIntoActionForm(UploadWarFileAction.java:357)    at com.ibm.wps.portlets.portletmanager.actions.UploadWarFileAction.doExecute(UploadWarFileAction.java:244)  at com.ibm.wps.portlets.adminstruts.actions.BaseAction.execute(BaseAction.java:64)

我在做任何明显错误的事情吗?正如我所说,我没有对实际代码进行任何更改,只是它的布局方式。

谢谢

罗尼

更新:更多信息:我正在尝试重新部署 portlet lwp.peoplefinder.jsr168.war。我提到的小改动非常小,即<br>从文件 ProfileField_inc.jsp 中删除了 4 个标签(如果有人熟悉的话)。

4

2 回答 2

0

我认为这是 WAS 的一个已知特性。对于 portlet,您必须在世界末日之前使用原始文件名。所以如果你有ie。在第一次部署时,war 文件名中的内部版本号是重新部署时必须使用的。

于 2011-09-17T22:11:34.763 回答
0

卸载战争,部署为新的,将 portlet 重新放置到页面或重新运行脚本。

于 2014-10-16T08:48:48.767 回答