Raj Saini <rajsaini <at> gmail.com> writes:

> 
> You need JetspeedContainerServlet and its mapping in your web.xml if you
> dont drop your .war in jetspeed deploy folder. Jetspeed deploy folder will
> add servlet and its mapping into web.xml when it deploys the wars.
> 
> If you deploy your portlets as directory (expanded wars) you will need to
> add JetspeedContainerServlets and its mapping in your web.xml file.
> 
> Regards,
> 
> Raj
> 

Thanks, I must have copied my web.xml from a portlet web application that was
already deployed when I was building my latest one.

I am still puzzled about having to include the following block in my web.xml.

  <security-role>
    <description>The admin role</description>
    <role-name>admin</role-name>
  </security-role>

If I do not include this block, the deployment of the war file via jetspeed
will fail.

Why must I include this role declaration?

The logs are not helpful in determining the problem.  deployment.log just says:

Failed to load portlet application for portlet-app

And the tomcat logs have this stack trace, but again, not very useful:

 INFO: Remove all registry entries defined for portlet application portlet-app
 INFO: Loading portlet.xml....portlet-app
 INFO: No extended metadata found.
 INFO: Loading web.xml....portlet-app
ERROR: Failed to load portlet application for portlet-app
- JetspeedContainerServlet: initialization failed for Portlet Application at: 
portlet-app
org.apache.jetspeed.components.portletregistry.RegistryException: 
Failed to load portlet application for portlet-app
        at org.apache.jetspeed.tools.pamanager.PortletApplicationManager.
registerPortletApplication(PortletApplicationManager.java:273)
        at org.apache.jetspeed.tools.pamanager.PortletApplicationManager.
startPA(PortletApplicationManager.java:372)
        at org.apache.jetspeed.tools.pamanager.PortletApplicationManager.
startPortletApplication(PortletApplicationManager.java:120)
        at org.apache.jetspeed.container.JetspeedContainerServlet.
attemptStart(JetspeedContainerServlet.java:168)
        at org.apache.jetspeed.container.JetspeedContainerServlet.
access$200(JetspeedContainerServlet.java:52)
        at org.apache.jetspeed.container.JetspeedContainerServlet$1.
run(JetspeedContainerServlet.java:139)
        at java.util.TimerThread.mainLoop(Timer.java:512)
        at java.util.TimerThread.run(Timer.java:462)


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to