Uploaded image for project: 'Pluto'
  1. Pluto
  2. PLUTO-244

Pluto Admin portlet cannot deploy portlets which use a servlet 2.4 web.xml with namespaces

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Won't Fix
    • 1.0.1
    • unspecified
    • portlets-admin
    • None

    Description

      The pluto admin portlet can deploy portlets with servlet 2.3 and servlet 2.4 web.xml descriptors. However, it can only deploy 2.4 web.xml descriptors that do not utilize namespaces.

      For example, deploying a portlet with a descriptor like the one below succeeeds:
      <web-app version="2.4">
      <display-name>Servlet 2.4 Webapp</display-name>
      <description>A 2.4 Servlet</description>
      </web-app>

      But deploying a portlet with a descriptor using namespaces fails:
      <web-app xmlns="http://java.sun.com/xml/ns/j2ee"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
      version="2.4">
      <display-name>Servlet 2.4 Webapp</display-name>
      <description>A 2.4 Servlet</description>
      </web-app>

      And you will see this in the log:
      SEVERE: Error in Portlet
      java.lang.NullPointerException
      at org.apache.pluto.invoker.impl.PortletInvokerImpl.invoke(PortletInvokerImpl.java:109)
      at org.apache.pluto.invoker.impl.PortletInvokerImpl.load(PortletInvokerImpl.java:80)
      at org.apache.pluto.PortletContainerImpl.portletLoad(PortletContainerImpl.java:218)
      ...

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            emetsger Elliot Metsger
            emetsger Elliot Metsger
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment