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

                 Key: PLUTO-244
                 URL: http://issues.apache.org/jira/browse/PLUTO-244
             Project: Pluto
          Issue Type: Improvement
          Components: portlets-admin
    Affects Versions: 1.0.1, 1.0.2
         Environment: Pluto 1.0.2 branch (r429058 - contains PLUTO-216 and 
PLUTO-219), Tomcat 5.5.17, Ubuntu Linux, Sun JRE 1.5.0_06
            Reporter: Elliot Metsger
            Priority: Minor


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)
 
...


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to