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.properties
: XmlAccessPort
和WpsHostPort
等於13040
如果你有一些線索,這將是一個真正的幫助! 在此先感謝
'sun.io.MalformedInputException'建議文件不用UTF-8編碼。我沒有在發佈的文本中看到任何可疑的內容,但是值得在十六進制編輯器中檢查文件以查找任何不尋常的內容。 – McDowell
嗨Nicolas嘗試使用以下命令捕獲一個文件中的輸出:/PortalServer/bin/xmlaccess.sh -in deployIL1Portlet.xml -out \ home \ wasadm \ deployPortlet.xml -user wasadm -password ***** **** -url http:// localhost:13040/wps/config並共享deployPortlet.xml文件 –