2015-04-07 69 views
0

嗨,大家,我開發了一個在Liferay門戶中正常工作的Spring web mvc portlet,但是當我在websphere上上傳時出現「此portlet不可用」消息。所以想解決這個問題我創建了一個新的portlet項目使用:websphere portal中的Spring web mvc portlet

mvn archetype:generate -DgroupId=com.ibm.tools.archetype -DartifactId=portletapp-portlet20 -DarchetypeArtifactId=portletapp-portlet20 -DinteractiveMode=false -DarchetypeRepository=http://public.dhe.ibm.com/ibmdl/export/pub/software/websphere/wasdev/maven/repository/ -DarchetypeGroupId=com.ibm.tools.archetype 

然後我改變什麼應該改變。將portlet上傳到liferay門戶並且它可以正常工作,但是在Websphere門戶中卻沒有。所以你建議我做什麼?如果在eclipse或其他東西上有插件來創建websphere portlet,請不要猶豫,我會很感激。

回答

0

爲了在WebSphere Portal中部署portlet,您需要portlet描述符(portlet.xml),帶有@Controller批註的類以及類路徑中的所有庫。檢查您的服務器日誌,找出消息「此portlet不可用」的原因。 WAS v8具有此路徑中的文件:/opt/IBM/WebSphere/wp_profile/logs/WebSphere_Portal/SystemOut.log。

相關問題