在 jetspeed 中部署最简单的 portlet 失败

发布于 2024-12-13 12:11:44 字数 1709 浏览 1 评论 0原文

我指的是以下网页在 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

冰雪之触 2024-12-20 12:11:44

当我看到如下异常后,我看到了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 of start(), you can debug this method to find the details. If there is no exception in it, the best way is to check whether the simplest.war project is right or not.

活泼老夫 2024-12-20 12:11:44

您确定与您的应用程序相关的 psml 文件中的配置具有正确的 portlet 名称吗?

- First create new psml, change in it page id name, change title, short title, fragment id of portlet, its name
- In the deployed project, in web.xml change the name to be similar to the folder name in web apps folder

另外,在 portlet xml 文件中,将 portlet 名称更改为与 psml 文件中写入的名称类似

Are you sure that the configuration in the psml file related to your application has correct portlet name?

- First create new psml, change in it page id name, change title, short title, fragment id of portlet, its name
- In the deployed project, in web.xml change the name to be similar to the folder name in web apps folder

Also in portlet xml file change the portlet name to be similar to the one written in the psml file

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文