我指的是以下网页,以在Jetspeed 2上构建我的portlet。
一切都很好,但是在部署之后,它说-
无法检索最简单::最简单的Portlet定义

以下是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个

请任何答复将有所帮助。

谢谢

最佳答案

在看到如下异常之后,我看到了org.apache.jetspeed.deployment.impl.StandardDeploymentManager.java文件,首先您将看到一个start()方法,您可以调试该方法以查找详细信息。如果没有异常,最好的方法是检查simplest.war项目是否正确。

08-28 17:13