2013-05-09 39 views
0

我是iWidgets的新手,我正嘗試在WebSphere Portal中使用iWidgets。到目前爲止,我可以創建iWidget並註冊它,並將它添加到門戶頁面上。在WebSphere Portal中註冊iWidgets,註冊但portlet不可見

/ConfigEngine.sh register-iwidget-definition -DIWidgetDefinition=/HelloIWidget/HelloWidget.xml 

第一個-HelloIWidget被成功地註冊並添加作爲門戶page.But門戶,當我嘗試註冊另一個iWidget中,設好註冊的任務是成功的,但我沒能看到它的portlet的部分Portal服務器管理控制檯。

C:\IBM\WebSphere\wp_profile\ConfigEngine>ConfigEngine.bat register-iwidget-defin 
ition -DIWidgetDefinition=/MyHelloWidgetEVSUB/HelloEventSub.xml -DPortalAdminPwd 
=wpsadmin -DWasPassword=wpsadmin 
Licensed Materials - Property of IBM 
5724-E76, 5724-E77, 5655-M44 
(C) Copyright IBM Corp. All Rights Reserved. 

Running Configuration Engine task 'register-iwidget-definition' 
propertiesPath is ConfigEngine_temp.prop 
rootDir is C:\IBM\WebSphere\wp_profile\ConfigEngine 
Executing native2ascii with native encoding 'Cp1252': ConfigEngine_temp.prop_ -> 
ConfigEngine_temp_ascii.prop_ 
Native2ascii execution was successful! 
Loading system properties from ConfigEngine_temp_ascii.prop_ 
ConfigEngine: setting system property server.root=C:/IBM/WebSphere/AppServer 
ConfigEngine: setting system property was.repository.root=C:/IBM/WebSphere/wp_pr 
ofile/config 
ConfigEngine: setting system property JAVA_HOME=C:/IBM/WebSphere/AppServer/java 
ConfigEngine: setting system property CellName=IBMNC9REKB1JLG 
ConfigEngine: setting system property ws.ext.dirs=C:/IBM/WebSphere/AppServer/jav 
a/lib;C:/IBM/WebSphere/AppServer/classes;C:/IBM/WebSphere/AppServer/lib;C:/IBM/W 
ebSphere/AppServer/installedChannels;C:/IBM/WebSphere/AppServer/lib/ext;C:/IBM/W 
ebSphere/AppServer/web/help;C:/IBM/WebSphere/AppServer/deploytool/itp/plugins/co 
m.ibm.etools.ejbdeploy/runtime;./lib;./shared/app 
ConfigEngine: setting system property jvmArgFor64bit=-D64bit.args=none 
ConfigEngine: setting system property NodeName=IBMNC9REKB1JLG 
ConfigEngine: setting system property local.node=IBMNC9REKB1JLG 
ConfigEngine: setting system property was.root=C:/IBM/WebSphere/AppServer 
ConfigEngine: setting system property was.install.root=C:/IBM/WebSphere/AppServe 
r 
ConfigEngine: setting system property cfg.trace=C:/IBM/WebSphere/wp_profile/Conf 
igEngine/log/ConfigTrace.log 
ConfigEngine: setting system property local.cell=IBMNC9REKB1JLG 
RegistrySynchronized: true 
Registry already in sync 
[05/07/13 16:52:12.485 SGT] ssl.default.password.in.use.CWPKI0041W 
[05/07/13 16:52:12.803 SGT] ssl.disable.url.hostname.verification.CWPKI0027I 
[05/07/13 16:52:12.845 SGT] Client code attempting to load security configuratio 
n 
[05/07/13 16:52:20.445 SGT] Client code attempting to load security configuratio 
n 
Created admin client: [email protected] 
Created config Service Proxy: com.ibm.websphere.management.configservice.ConfigS 
[email protected] 
CELL: IBMNC9REKB1JLG 
NODE: IBMNC9REKB1JLG 
Websphere:_Websphere_Config_Data_Type=Registry,_Websphere_Config_Data_Id=cells/I 
BMNC9REKB1JLG|registry.xml#Registry_1365043526167,_WEBSPHERE_CONFIG_SESSION=anon 
ymous1367916748358 
[05/07/13 16:52:29.971 SGT] WSVR0801I 
loaded registry from WAS: registry.xml 
wasUserHome now set to: C:/IBM/WebSphere/wp_profile 
Buildfile: base_dynamic.xml 
Trying to override old definition of task property 
Trying to override old definition of task sleep 
Trying to override old definition of task java 
Trying to override old definition of task exec 

cleanup-work-dir: 
Tue May 07 16:52:49 SGT 2013 
    [echo] Cleaning up... 
    [delete] Deleting directory C:\IBM\WebSphere\wp_profile\ConfigEngine\config\w 
ork 
    [echo] Done. 
    [mkdir] Created dir: C:\IBM\WebSphere\wp_profile\ConfigEngine\config\work 

action-set-time-property: 
Tue May 07 16:52:49 SGT 2013 

action-init-zos: 
Tue May 07 16:52:49 SGT 2013 
    [echo] Setting property isZos to ${isZos} 
    [echo] Setting property jvmArgForZos to -Dzos.argsconversion=none 

action-set-managed-node-flag: 
Tue May 07 16:52:49 SGT 2013 
    [echo] Is this a Managed Node ? false 

action-set-conntype-property: 
Tue May 07 16:52:50 SGT 2013 
    [echo] wsadminConnType set to: SOAP 

init-cfg-files: 
Tue May 07 16:52:50 SGT 2013 
    [delete] Deleting directory C:\IBM\WebSphere\wp_profile\ConfigEngine\config\w 
ork 
    [mkdir] Created dir: C:\IBM\WebSphere\wp_profile\ConfigEngine\config\work 
    [copy] Copying 5 files to C:\IBM\WebSphere\wp_profile\ConfigEngine\config\w 
ork 
    [copy] Copying 1 file to C:\IBM\WebSphere\wp_profile\ConfigEngine\config\wo 
rk 
    [copy] Copying 7 files to C:\IBM\WebSphere\wp_profile\ConfigEngine\config\w 
ork 

set-wsadmin-scripting-classpath-in-jacl-properties-1: 
Tue May 07 16:52:52 SGT 2013 
    [echo] C:/IBM/WebSphere/wp_profile 
    [echo] wsadmin.properties com.ibm.ws.scripting.classpath:   '${com. 
ibm.ws.scripting.classpath}' 
    [echo] com.ibm.ws.scripting.classpath.initial:      'C:/IBM 
/WebSphere/wp_profile/ConfigEngine/lib/wkplc.misc.jar;C:/IBM/WebSphere/AppServer 
/deploytool/itp/batchboot.jar;C:/IBM/WebSphere/AppServer/deploytool/itp/batch2.j 
ar;C:/IBM/WebSphere/PortalServer/base/wp.base/shared/app/wp.base.jar;C:/IBM/WebS 
phere/PortalServer/shared/app/wp.base.jar;C:/IBM/WebSphere/wp_profile/ConfigEngi 
ne/shared/app/lotusworkplacelib/lwp.clbcmpAPI.jar' 

set-wsadmin-scripting-classpath-in-jacl-properties-2: 
Tue May 07 16:52:52 SGT 2013 
    [echo] jacl.properties com.ibm.ws.scripting.classpath:    'C:/IBM 
/WebSphere/wp_profile/ConfigEngine/lib/wkplc.misc.jar;C:/IBM/WebSphere/AppServer 
/deploytool/itp/batchboot.jar;C:/IBM/WebSphere/AppServer/deploytool/itp/batch2.j 
ar;C:/IBM/WebSphere/PortalServer/base/wp.base/shared/app/wp.base.jar;C:/IBM/WebS 
phere/PortalServer/shared/app/wp.base.jar;C:/IBM/WebSphere/wp_profile/ConfigEngi 
ne/shared/app/lotusworkplacelib/lwp.clbcmpAPI.jar' 
    [echo] jacl.properties com.ibm.ws.scripting.port:    '10025' 
    [echo] jacl.properties com.ibm.ws.scripting.host:    'local.porta 
l7.com' 

set-wsadmin-scripting-classpath-in-jacl-properties: 
Tue May 07 16:52:52 SGT 2013 

action-init-cfg-files-zos: 
Tue May 07 16:52:52 SGT 2013 

setup-additional-init-files: 
Tue May 07 16:52:52 SGT 2013 

init: 
Tue May 07 16:52:52 SGT 2013 
    [echo] 2013-05-07-04-52 
Trying to override old definition of task wplc-modify-server 
Trying to override old definition of task wplc-create-server 
Trying to override old definition of task wplc-remove-server 

set-properties: 
Tue May 07 16:52:57 SGT 2013 
[setproperty] Property PortalAdminId was set to wpsadmin 
[setproperty] Property PortalAdminGroupId was set to wpsadmins 
[setproperty] Property WpsDocReviewer was set to ${WpsDocReviewer} 
[setproperty] Property WpsContentAdministrators was set to ${WpsContentAdministr 
ators} 
[setproperty] Property UserSuffix was set to ${LDAPUserSuffix},${LDAPSuffix} 
[setproperty] Property GroupSuffix was set to ${LDAPGroupSuffix},${LDAPSuffix} 

action-pre-config: 
Tue May 07 16:52:58 SGT 2013 
    [echo] executing pre-configuration tasks 
    [isWas7] overwriting previous definition of property: null 
    [isWas7] +++value of property is 7.0.0.11 

action-set-config: 
Tue May 07 16:53:00 SGT 2013 
    [echo] executing set-configuration tasks 
    [echo] [email protected][email protected] 

wait-for-sync-to-complete: 
Tue May 07 16:53:00 SGT 2013 

start-portal-server: 
Tue May 07 16:53:00 SGT 2013 

set-instance-properties: 
Tue May 07 16:53:01 SGT 2013 

action-start-portal-server-service: 
Tue May 07 16:53:01 SGT 2013 
    [logmsg] [05/07/13 16:53:05.561 SGT] EJPCA3163I: Starting Server "WebSphere_P 
ortal" 
    [echo] Port '10039' is in use on host 'localhost' 
    [echo] An instance of the server 'WebSphere_Portal' may already be running 

action-set-managed-node-flag: 
Tue May 07 16:53:07 SGT 2013 
    [echo] Is this a Managed Node ? false 

action-set-conntype-property: 
Tue May 07 16:53:07 SGT 2013 
    [echo] wsadminConnType set to: SOAP 

set-wsadmin-scripting-classpath-in-jacl-properties-1: 
Tue May 07 16:53:08 SGT 2013 
    [echo] C:/IBM/WebSphere/wp_profile 
    [echo] wsadmin.properties com.ibm.ws.scripting.classpath:   '${com. 
ibm.ws.scripting.classpath}' 
    [echo] com.ibm.ws.scripting.classpath.initial:      'C:/IBM 
/WebSphere/wp_profile/ConfigEngine/lib/wkplc.misc.jar;C:/IBM/WebSphere/AppServer 
/deploytool/itp/batchboot.jar;C:/IBM/WebSphere/AppServer/deploytool/itp/batch2.j 
ar;C:/IBM/WebSphere/PortalServer/base/wp.base/shared/app/wp.base.jar;C:/IBM/WebS 
phere/PortalServer/shared/app/wp.base.jar;C:/IBM/WebSphere/wp_profile/ConfigEngi 
ne/shared/app/lotusworkplacelib/lwp.clbcmpAPI.jar' 

set-wsadmin-scripting-classpath-in-jacl-properties-2: 
Tue May 07 16:53:08 SGT 2013 
    [echo] jacl.properties com.ibm.ws.scripting.classpath:    'C:/IBM 
/WebSphere/wp_profile/ConfigEngine/lib/wkplc.misc.jar;C:/IBM/WebSphere/AppServer 
/deploytool/itp/batchboot.jar;C:/IBM/WebSphere/AppServer/deploytool/itp/batch2.j 
ar;C:/IBM/WebSphere/PortalServer/base/wp.base/shared/app/wp.base.jar;C:/IBM/WebS 
phere/PortalServer/shared/app/wp.base.jar;C:/IBM/WebSphere/wp_profile/ConfigEngi 
ne/shared/app/lotusworkplacelib/lwp.clbcmpAPI.jar' 
    [echo] jacl.properties com.ibm.ws.scripting.port:    '10025' 
    [echo] jacl.properties com.ibm.ws.scripting.host:    'local.porta 
l7.com' 

set-wsadmin-scripting-classpath-in-jacl-properties: 
Tue May 07 16:53:08 SGT 2013 

register-iwidget-definition: 
Tue May 07 16:53:08 SGT 2013 
[wplc-get-host-port-in-server] Task parameters: 
[wplc-get-host-port-in-server] Global attributes: 
[wplc-get-host-port-in-server]  server="WebSphere_Portal" 
[wplc-get-host-port-in-server]  osarch="amd64" 
[wplc-get-host-port-in-server]  node="IBMNC9REKB1JLG" 
[wplc-get-host-port-in-server]  pathseparator=";" 
[wplc-get-host-port-in-server]  engineinstalllocation="C:/IBM/WebSphere/wp_pr 
ofile/ConfigEngine" 
[wplc-get-host-port-in-server]  cell="IBMNC9REKB1JLG" 

[wplc-get-host-port-in-server] Instance attributes (Set 1 of 1): 
[wplc-get-host-port-in-server]  endPointName="SOAP_CONNECTOR_ADDRESS" 
[wplc-get-host-port-in-server]  attribute=[ *** NONE_SPECIFIED *** ] 
[wplc-get-host-port-in-server] end point: SOAP_CONNECTOR_ADDRESS found 
[wplc-get-host-port-in-server] Settings the host: local.portal7.com as ant prope 
rty: ${hostInJMX} 
[wplc-get-host-port-in-server] Settings the port: 10025 as ant property: ${portI 
nJMX} 
[wplc-get-host-port-in-server] Status = Complete 
    [echo] Determined soap host: local.portal7.com 
    [echo] Determined soap connector: 10025 

iseries-switch-to-was-user: 
Tue May 07 16:53:16 SGT 2013 
    [wsadmin] WASX7209I: Connected to process "WebSphere_Portal" on node IBMNC9REK 
B1JLG using SOAP connector; The type of process is: UnManagedProcess 
    [wsadmin] WASX7303I: The following options are passed to the scripting environ 
ment and are available as arguments that are stored in the argv variable: "[C:/I 
BM/WebSphere/wp_profile/ConfigEngine, IWidgetDefinition=/MyHelloWidgetEVSUB/Hell 
oEventSub.xml, IWidgetCatalog=${IWidgetCatalog}, PortletDefinition=${PortletDefi 
nition}, PortletUniqueName=${PortletUniqueName}]" 
    [wsadmin] false 
    [wsadmin] logged in as "uid=wpsadmin,o=defaultWIMFileBasedRealm" 
    [wsadmin] [05/07/13 16:54:16.715 SGT] EJPXD0001I 
    [wsadmin] EJPFD0085I: Report started at 5/7/13 4:54 PM.EJPFD0087I: Object [Obj 
ectIDImpl 'Z3_J1RDFTVJ849QD0IFUPU3HP1046', PORTLET_DEFINITION, VP: 0, [Domain: r 
el], DB: 0000-33ECF6FA9F8824DD807C3EFB117300C4] processed successfully.EJPFD0086 
I: Report completetd at 5/7/13 4:54 PM. 
    [wsadmin] success 

delete-temp-dirs: 
Tue May 07 16:54:25 SGT 2013 
    [delete] Deleting: C:\IBM\WebSphere\wp_profile\ConfigEngine\config\work\was\w 
p_portal.properties 
    [delete] Deleting: C:\IBM\WebSphere\wp_profile\ConfigEngine\properties\wkplc_ 
comp_ascii.properties 
    [delete] Deleting: C:\IBM\WebSphere\wp_profile\ConfigEngine\properties\wkplc_ 
ascii.properties 
    [delete] Deleting 5 files from C:\IBM\WebSphere\wp_profile\ConfigEngine\prope 
rties 

cleanup-work-dir: 
Tue May 07 16:54:26 SGT 2013 
    [echo] Cleaning up... 
    [delete] Deleting directory C:\IBM\WebSphere\wp_profile\ConfigEngine\config\w 
ork 
    [echo] Done. 
    [mkdir] Created dir: C:\IBM\WebSphere\wp_profile\ConfigEngine\config\work 

action-post-config: 
Tue May 07 16:54:26 SGT 2013 
    [echo] executing post-configuration tasks 

BUILD SUCCESSFUL 
Total time: 1 minute 47 seconds 
isIseries currently set to: null 
uploading registry 
Created admin client: [email protected] 
Created config Service Proxy: com.ibm.websphere.management.configservice.ConfigS 
[email protected] 
CELL: IBMNC9REKB1JLG 
NODE: IBMNC9REKB1JLG 
Websphere:_Websphere_Config_Data_Type=Registry,_Websphere_Config_Data_Id=cells/I 
BMNC9REKB1JLG|registry.xml#Registry_1365043526167,_WEBSPHERE_CONFIG_SESSION=anon 
ymous1367916867190 




update-registry-sync-property: 
Tue May 07 16:54:28 SGT 2013 
    [echo] updated RegistrySynchronized in file wkplc.properties with value: tr 
ue 
Return Value: 0 

回答

0

iWidgets通過克隆通用iWidget Portlet並將其分配給它來註冊。通常它也會得到一個奇怪的名字。由於所有Portlet都按照添加的順序顯示,請轉至管理 - Portlet,然後轉到最後一頁。很可能你的小部件在那裏。我無法找到重命名小部件的方式,因此我製作了它的副本,並在此時爲小部件指定一個新名稱。之後,原始小部件可以被刪除。

請注意,iWidget Portlet需要由mm_enabler模塊提供的widget_container功能。它默認不包含在主題中。可以通過修改配置文件json文件來包含它,例如http://infolib.lotus.com/resources/portal/8.0.0/doc/en_us/PT800ACD001/dev/themeopt_add_oobmod.html 或使用add-theme-modules COnfigEngine命令,該命令完全相同。 我還必須更改頁面主題配置文件才能添加我的小部件,否則我總是得到這個丟失的widget_container 2.1功能錯誤消息。

+0

add-theme-modules僅適用於WP8,對於混淆抱歉。但編輯配置文件json文件始終是可能的,但您需要有一個WebDAV客戶端。同時檢查是否包含pre-req模塊。對於WP8,我使用這些表http://infolib.lotus.com/resources/portal/8.0.0/doc/en_us/PT800ACD001/dev/themeopt_oob.html – 2013-06-02 20:17:27

+0

感謝您的信息,讓它工作。 – 2013-06-03 03:02:27