簡體   English   中英

Websphere Portal中的Spring Web MVC Portlet

[英]Spring web mvc portlet in websphere portal

大家好,我開發了一個Spring Web MVC Portlet,該Portlet在Liferay門戶中可以正常工作,但是當我將其上傳到Websphere時,會出現一條消息“此Portlet不可用”。 因此,為了解決這個問題,我使用以下命令創建了一個新的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或其他東西,請不要猶豫,我將非常感激。

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

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM