在 jetspeed 中部署最简单的 portlet 失败
我指的是以下网页在 Jetspeed 2 上构建我的 portlet。 一切都很好,但部署后,它说- 无法检索最简单的 Portlet 定义::Simplest
以下是 jetspeed-deployment.log 内容 - 03.11.2011 18:21:51 错误 [org.apache.jetspeed.deployment.impl.StandardDeploymentManager.fireDeploymentEvent():240] 部署失败 E:\Jetspeed-2.2.2\webapps\jetspeed\WEB-INF\deploy\simplest 。战争 04.11.2011 09:41:33 错误 [org.apache.jetspeed.deployment.impl.StandardDeploymentManager.dispatch():273] java.lang.IllegalArgumentException: WEB-INF/portlet.xml org.apache.jetspeed.deployment.DeploymentException:java.lang.IllegalArgumentException:WEB-INF/portlet.xml 在 org.apache.jetspeed.deployment.impl.DeployPortletAppEventListener.deployPortletApplication(DeployPortletAppEventListener.java:224) 在 org.apache.jetspeed.deployment.impl.DeployPortletAppEventListener.invokeDeploy(DeployPortletAppEventListener.java:207) 在 org.apache.jetspeed.deployment.impl.StandardDeploymentManager.dispatch(StandardDeploymentManager.java:264) 在 org.apache.jetspeed.deployment.impl.StandardDeploymentManager.deploy(StandardDeploymentManager.java:178) 在 org.apache.jetspeed.deployment.impl.StandardDeploymentManager.fireDeploymentEvent(StandardDeploymentManager.java:209) 在 org.apache.jetspeed.deployment.impl.StandardDeploymentManager$FileSystemScanner.run(StandardDeploymentManager.java:357) 引起原因:java.lang.IllegalArgumentException:WEB-INF/portlet.xml 在 org.apache.jetspeed.tools.deploy.JetspeedDeploy。(JetspeedDeploy.java:182) 在 org.apache.jetspeed.tools.deploy.JetspeedDeploy。(JetspeedDeploy.java:96) 在 org.apache.jetspeed.deployment.impl.DeployPortletAppEventListener.deployPortletApplication(DeployPortletAppEventListener.java:219) ... 5 更多
请任何回复都会有帮助。
谢谢
I am referring to following webpage to build my portlet on Jetspeed 2.
Everything is fine, but after deployment, It says-
Failed to retrieve Portlet Definition for simplest::Simplest
Following is the jetspeed-deployment.log contents-
03.11.2011 18:21:51 ERROR [org.apache.jetspeed.deployment.impl.StandardDeploymentManager.fireDeploymentEvent():240] Failure deploying E:\Jetspeed-2.2.2\webapps\jetspeed\WEB-INF\deploy\simplest.war
04.11.2011 09:41:33 ERROR [org.apache.jetspeed.deployment.impl.StandardDeploymentManager.dispatch():273] java.lang.IllegalArgumentException: WEB-INF/portlet.xml
org.apache.jetspeed.deployment.DeploymentException: java.lang.IllegalArgumentException: WEB-INF/portlet.xml
at org.apache.jetspeed.deployment.impl.DeployPortletAppEventListener.deployPortletApplication(DeployPortletAppEventListener.java:224)
at org.apache.jetspeed.deployment.impl.DeployPortletAppEventListener.invokeDeploy(DeployPortletAppEventListener.java:207)
at org.apache.jetspeed.deployment.impl.StandardDeploymentManager.dispatch(StandardDeploymentManager.java:264)
at org.apache.jetspeed.deployment.impl.StandardDeploymentManager.deploy(StandardDeploymentManager.java:178)
at org.apache.jetspeed.deployment.impl.StandardDeploymentManager.fireDeploymentEvent(StandardDeploymentManager.java:209)
at org.apache.jetspeed.deployment.impl.StandardDeploymentManager$FileSystemScanner.run(StandardDeploymentManager.java:357)
Caused by: java.lang.IllegalArgumentException: WEB-INF/portlet.xml
at org.apache.jetspeed.tools.deploy.JetspeedDeploy.(JetspeedDeploy.java:182)
at org.apache.jetspeed.tools.deploy.JetspeedDeploy.(JetspeedDeploy.java:96)
at org.apache.jetspeed.deployment.impl.DeployPortletAppEventListener.deployPortletApplication(DeployPortletAppEventListener.java:219)
... 5 more
Please any reply will be helpful.
Thank You
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
当我看到如下异常后,我看到了
org.apache.jetspeed.deployment.impl.StandardDeploymentManager.java
文件,在头部你会看到一个start()
方法,你可以调试这个方法来找到细节。如果没有异常,最好的办法就是检查simplest.war
项目是否正确。After I saw the exception as follows, I saw the file of
org.apache.jetspeed.deployment.impl.StandardDeploymentManager.java
, at head you will see a method ofstart()
, you can debug this method to find the details. If there is no exception in it, the best way is to check whether thesimplest.war
project is right or not.您确定与您的应用程序相关的 psml 文件中的配置具有正确的 portlet 名称吗?
另外,在 portlet xml 文件中,将 portlet 名称更改为与 psml 文件中写入的名称类似
Are you sure that the configuration in the psml file related to your application has correct portlet name?
Also in portlet xml file change the portlet name to be similar to the one written in the psml file