我指的是以下网页在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) 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: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个
请回复任何问题。
谢谢
答案 0 :(得分:0)
在我看到如下异常之后,我看到了org.apache.jetspeed.deployment.impl.StandardDeploymentManager.java
的文件,你会看到start()
的方法,你可以调试这个方法来查找详细信息。如果没有例外,最好的方法是检查simplest.war
项目是否正确。
答案 1 :(得分: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文件中写入的名称