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.war 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: org.apache.jetspeed.deployment.impl.DeployPortletAppEventListener.deployPortletApplication(DeployPortletAppEventListener.java:224) 处的 WEB-INF/portlet.xml。 org.apache.jetspeed.deployment.impl.StandardDeploymentManager 上的 apache.jetspeed.deployment.impl.DeployPortletAppEventListener.invokeDeploy(DeployPortletAppEventListener.java:207)。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)在 org.apache.jetspeed.deployment.impl.StandardDeploymentManager$FileSystemScanner.run(StandardDeploymentManager.java:357) 引起:java.lang.IllegalArgumentException:org.apache.jetspeed.tools.deploy 的 WEB-INF/portlet.xml。 JetspeedDeploy.(JetspeedDeploy.java:182) 在 org.apache.jetspeed.tools.deploy.JetspeedDeploy.(JetspeedDeploy.java:96) 在 org.apache.jetspeed.deployment.impl.DeployPortletAppEventListener.deployPortletApplication(DeployPortletAppEventListener.java:219) ... 5 更多deployment.impl.StandardDeploymentManager.deploy(StandardDeploymentManager.java:178) 在 org.apache.jetspeed.deployment.impl.StandardDeploymentManager.fireDeploymentEvent(StandardDeploymentManager.java:209) 在 org.apache.jetspeed.deployment.impl.StandardDeploymentManager$FileSystemScanner。运行(StandardDeploymentManager.java:357) 引起:java.lang.IllegalArgumentException: org.apache.jetspeed.tools.deploy.JetspeedDeploy.(JetspeedDeploy.java:182) 处 org.apache.jetspeed 处的 WEB-INF/portlet.xml .tools.deploy.JetspeedDeploy.(JetspeedDeploy.java:96) 在 org.apache.jetspeed.deployment.impl.DeployPortletAppEventListener.deployPortletApplication(DeployPortletAppEventListener.java:219) ... 5 更多deployment.impl.StandardDeploymentManager.deploy(StandardDeploymentManager.java:178) 在 org.apache.jetspeed.deployment.impl.StandardDeploymentManager.fireDeploymentEvent(StandardDeploymentManager.java:209) 在 org.apache.jetspeed.deployment.impl.StandardDeploymentManager$FileSystemScanner。运行(StandardDeploymentManager.java:357) 引起:java.lang.IllegalArgumentException: org.apache.jetspeed.tools.deploy.JetspeedDeploy.(JetspeedDeploy.java:182) 处 org.apache.jetspeed 处的 WEB-INF/portlet.xml .tools.deploy.JetspeedDeploy.(JetspeedDeploy.java:96) 在 org.apache.jetspeed.deployment.impl.DeployPortletAppEventListener.deployPortletApplication(DeployPortletAppEventListener.java:219) ... 5 更多StandardDeploymentManager.fireDeploymentEvent(StandardDeploymentManager.java:209) at org.apache.jetspeed.deployment.impl.StandardDeploymentManager$FileSystemScanner.run(StandardDeploymentManager.java:357) 原因:java.lang.IllegalArgumentException: WEB-INF/portlet.xml at 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 更多StandardDeploymentManager.fireDeploymentEvent(StandardDeploymentManager.java:209) at org.apache.jetspeed.deployment.impl.StandardDeploymentManager$FileSystemScanner.run(StandardDeploymentManager.java:357) 原因:java.lang.IllegalArgumentException: WEB-INF/portlet.xml at 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 更多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 更多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 更多

请任何回复都会有所帮助。

谢谢你

4

2 回答 2

0

看到异常如下后,看到了 的文件org.apache.jetspeed.deployment.impl.StandardDeploymentManager.java,在头部会看到 的方法start(),可以调试这个方法来查找细节。如果其中没有异常,最好的方法是检查simplest.war项目是否正确。

于 2012-03-29T09:50:32.003 回答
0

您确定与您的应用程序相关的 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 文件中写入的名称相似

于 2017-09-05T11:34:18.653 回答