2013-01-24 58 views
0

我是IBM技术的新成员,我的公司要求我在的IBM Websphere Portal Server 6.1基础上实现portlet。使用xmlaccess脚本部署的IBM WebSphere Portal Server 6

我想使用脚本shell部署或更新我的portlet。第一个问题,有没有一个脚本可以做到这一点?

如果xmlAccess.sh,我想这命令:

/PortalServer/bin/xmlaccess.sh -in deployIL1Portlet.xml -user wasadm -password ********* -url http://localhost:13040/wps/config 

deployIL1Portlet.xml内容:

<?xml version="1.0" encoding="UTF-8" ?> 
<request 
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
    xsi:noNamespaceSchemaLocation="PortalConfig_6.0.1.xsd" 
    type="update"> 
    <portal action="locate"> 
     <web-app action="update" active="true" uid="fr.laposte.disf.il1.portlet.QuizPortlet"> 
      <url>file:///data1/wasWP61IL1D101N1/il1/il1.war</url> 
     </web-app> 
    </portal> 
</request> 

我有这样的错误:

EJPXB0006I: Connecting to URL http://localhost:13040/wps/config 
EJPXB0002I: Reading input file /data1/wasWP61IL1D101N1/profile/PortalServer/bin/deployIL1Portlet.xml 
EJPXB0013E: An error occurred while receiving the response. 
EJPXB0016E: An error occurred on the client: sun.io.MalformedInputException 

在IBM论坛,我发现: http://www.ibm.com/developerworks/forums/thread.jspa?threadID=205808

所以我住​​进wkplc_comp.propertiesXmlAccessPortWpsHostPort等于13040

如果你有一些线索,这将是一个真正的帮助! 在此先感谢

+1

'sun.io.MalformedInputException'建议文件不用UTF-8编码。我没有在发布的文本中看到任何可疑的内容,但是值得在十六进制编辑器中检查文件以查找任何不寻常的内容。 – McDowell

+0

嗨Nicolas尝试使用以下命令捕获一个文件中的输出:/PortalServer/bin/xmlaccess.sh -in deployIL1Portlet.xml -out \ home \ wasadm \ deployPortlet.xml -user wasadm -password ***** **** -url http:// localhost:13040/wps/config并共享deployPortlet.xml文件 –

回答

1

您可以使用以下策略:

首先,通过管理控制台安装应用程序。然后,一旦安装,您可以导出webapp配置以生成XML文件,您可以通过xmlaccess将其用于将来更新。

相关问题