Portlet未部署 [英] Portlet not getting deployed

查看:62
本文介绍了Portlet未部署的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我遇到了一个奇怪的问题,我花了很多时间来解决这个问题. 要构建我的portlet,我没有使用sdk,而是使用自己的ant脚本来完成这项工作.直到出现这种奇怪的情况,一切都很好.

I have this strange problem at which I have spent stupid amount of time. To build my portlet, I haven't used sdk and I am using my own ant script do the job. It works all well till this wierd situation.

我基本上是使用portal-service.jar中的很多类来更改角色设置等.将其包含在构建路径中并再次部署时.它没有被部署.在外壳上,它显示了部署,下面是日志:

I am basically using a lot class from portal-service.jar to change role settings etc. When I include it in my build path and deploy it again. It doesn't get deployed. On shell it shows the deployment, below is the log:

将1个文件复制到C:\ liferay-portal \ tomcat-6.0.29 \ webapps \ ch1_HelloWorld

Copying 1 file to C:\liferay-portal\tomcat-6.0.29\webapps\ch1_HelloWorld

删除目录C:\ liferay-portal \ tomcat-6.0.29 \ temp \ 20121016060846753

Deleting directory C:\liferay-portal\tomcat-6.0.29\temp\20121016060846753

06:08:47,887信息[PortletAutoDeployListener:81]已成功复制C:\ liferay-portal \ tomcat-6.0.29 \ deploy \ ch1_HelloWorld.war的Portlet.

06:08:47,887 INFO [PortletAutoDeployListener:81] Portlets for C:\liferay-portal\tomcat-6.0.29\deploy\ch1_HelloWorld.war copied successfully.

部署将在几秒钟内开始. 2012年10月16日上午6:08:56 org.apache.catalina.startup.HostConfig checkResources

Deployment will start in a few seconds. 16 Oct, 2012 6:08:56 AM org.apache.catalina.startup.HostConfig checkResources

INFO:重新加载上下文[/ch1_HelloWorld]

INFO: Reloading context [/ch1_HelloWorld]

就是这样!后来,它没有显示(正常情况下)该Portlet可供使用.在浏览器中,添加选项卡"下,该选项从不显示.这可能是什么问题.该portlet是一个简单的hello world portlet,可访问角色信息

That's it! Later it doesnt show (as it does normally) that the portlet is available to use. In browser, under the "add tab", the option is never shown. What can be the issue for this. The portlet is a simple hello world portlet that access role information

推荐答案

我基本上是使用portal-service.jar中的很多类来更改角色设置等.将其包含在构建路径中并再次部署时.它没有被部署.在外壳上,它显示了部署,下面是日志:

I am basically using a lot class from portal-service.jar to change role settings etc. When I include it in my build path and deploy it again. It doesn't get deployed. On shell it shows the deployment, below is the log:

您是否已将portal-service.jar放入WEB-INF/lib?如果是这样,请将其从此处删除,然后将其添加到其他目录(my_project/lib)中,而不是将其添加到构建路径中.

Did you put portal-service.jar to WEB-INF/lib? If so remove it from there and add it to some other (my_project/lib) directory than add it to build path.

还请确保在部署之后,portal-service.jar不在部署的WEB-INF/lib中. 更好的是,先取消部署总比重新部署好.

Also make sure that after deployment portal-service.jar is not in your deployed WEB-INF/lib. Better yet, first undeploy than redeploy.

这篇关于Portlet未部署的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆