websphere门户网站中的Spring web mvc portlet

时间:2015-04-07 10:13:31

标签: java liferay websphere-portal

大家好我开发了一个Spring网络mvc 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,请不要犹豫,我会非常感激。

1 个答案:

答案 0 :(得分:0)

为了在WebSphere Portal中部署portlet,您需要portlet描述符(portlet.xml),带有@Controller注释的类以及类路径中的所有库。检查服务器日志以查找消息“此portlet不可用”的原因。 WAS v8在此路径中包含该文件:/opt/IBM/WebSphere/wp_profile/logs/WebSphere_Portal/SystemOut.log。