portals-pluto-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From CDore...@hannaford.com
Subject Re: Failed to call my portlet in Pluto-1.1beta
Date Thu, 27 Jul 2006 14:49:36 GMT
Eric,

Did you run the Ant assemble task or Maven goal that adds the proper 
PortletServlet records to web.xml? Also check your portlet.xml for 
validity.
/Craig





"Eric Chow" <eric138@gmail.com> 
07/25/2006 11:10 PM
Please respond to
pluto-user@portals.apache.org


To
pluto-user@portals.apache.org
cc

Subject
Failed to call my portlet in Pluto-1.1beta






Hello,

I just download the Pluto-1.1-beta from Pluto site.

And I tried to deploy a simple example (phonebook) in it but failed.


I modified the
pluto-portal-driver-config.xml
====================================
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright 2004 The Apache Software Foundation.
Licensed  under the  Apache License,  Version 2.0  (the "License");
you may not use  this file  except in  compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed  under the  License is distributed on an "AS IS" BASIS,
WITHOUT  WARRANTIES OR CONDITIONS  OF ANY KIND, either  express  or
implied.

See the License for the specific language governing permissions and
limitations under the License.
-->

<pluto-portal-driver
   xmlns="
http://portals.apache.org/pluto/xsd/pluto-portal-driver-config.xsd"
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
   xsi:schemaLocation="
http://portals.apache.org/pluto/xsd/pluto-portal-driver-config.xsd

http://portals.apache.org/pluto/xsd/pluto-portal-driver-config.xsd"
   version="1.1">

 <portal-name>pluto-portal-driver</portal-name>
 <portal-version>1.1.0-beta1</portal-version>
 <container-name>Pluto Portal Driver</container-name>

 <supports>
   <portlet-mode>view</portlet-mode>
   <portlet-mode>edit</portlet-mode>
   <portlet-mode>help</portlet-mode>
   <portlet-mode>config</portlet-mode>

   <window-state>normal</window-state>
   <window-state>maximized</window-state>
   <window-state>minimized</window-state>
 </supports>

 <portlet-app>
   <context-path>/pluto</context-path>
   <portlets>
     <portlet name="AboutPortlet"/>
     <portlet name="AdminPortlet"/>
   </portlets>
 </portlet-app>

 <portlet-app>
   <context-path>/testsuite</context-path>
   <portlets>
     <portlet name="TestPortlet1"/>
     <portlet name="TestPortlet2"/>
   </portlets>
 </portlet-app>


 <portlet-app>
   <context-path>/phonebook-pluto</context-path>
   <portlets>
     <portlet name="PhonebookPortlet"/>
   </portlets>
 </portlet-app>

 <!-- Render configuration which defines the portal pages. -->
 <render-config default="Test Page">
   <page name="Test Page" uri="/WEB-INF/themes/pluto-default-theme.jsp">
     <portlet context="/testsuite" name="TestPortlet1"/>
     <portlet context="/testsuite" name="TestPortlet2"/>
   </page>
   <page name="Secondary Page" 
uri="/WEB-INF/themes/pluto-default-theme.jsp">
     <portlet context="/testsuite" name="TestPortlet1"/>
     <portlet context="/testsuite" name="TestPortlet2"/>
   </page>
   <page name="Third Page" uri="/WEB-INF/themes/pluto-default-theme.jsp">
     <portlet context="/phonebook-pluto" name="PhonebookPortlet"/>
   </page>
   <page name="About Pluto" uri="/WEB-INF/themes/pluto-default-theme.jsp">
     <portlet context="/pluto" name="AboutPortlet"/>
   </page>
   <page name="Pluto Admin" uri="/WEB-INF/themes/pluto-default-theme.jsp">
     <portlet context="/pluto" name="AdminPortlet"/>
   </page>
 </render-config>

</pluto-portal-driver>
=====================================


Exception when calling the portlet:


Error rendering portlet.
java.lang.NullPointerException
       at 
org.apache.pluto.internal.PortletDescriptorRegistry.createDefinition(PortletDescriptorRegistry.java:140)
       at 
org.apache.pluto.internal.PortletDescriptorRegistry.getPortletAppDD(PortletDescriptorRegistry.java:120)
       at 
org.apache.pluto.internal.impl.PortletEntityImpl.load(PortletEntityImpl.java:184)
       at 
org.apache.pluto.internal.impl.PortletEntityImpl.getPortletDefinition(PortletEntityImpl.java:145)
       at 
org.apache.pluto.internal.impl.RenderResponseImpl.isValidContentType(RenderResponseImpl.java:260)
       at 
org.apache.pluto.internal.impl.RenderResponseImpl.setContentType(RenderResponseImpl.java:123)
       at 
dev.simflet.demo.phonebook.PhonebookPortlet.doView(PhonebookPortlet.java:60)
       at javax.portlet.GenericPortlet.doDispatch(GenericPortlet.java:247)
       at 
dev.simflet.core.SimfletPortlet.doDispatch(SimfletPortlet.java:524)
       at javax.portlet.GenericPortlet.render(GenericPortlet.java:175)
       at dev.simflet.core.SimfletPortlet.render(SimfletPortlet.java:687)
       at 
org.apache.pluto.core.PortletServlet.dispatch(PortletServlet.java:204)
       at 
org.apache.pluto.core.PortletServlet.doGet(PortletServlet.java:139)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
       at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
       at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
       at 
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
       at 
org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:574)
       at 
org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:499)
       at 
org.apache.pluto.core.PortletInvoker.invoke(PortletInvoker.java:169)
       at 
org.apache.pluto.core.PortletInvoker.render(PortletInvoker.java:111)
       at 
org.apache.pluto.core.PortletContainerImpl.doRender(PortletContainerImpl.java:158)
       at 
org.apache.pluto.driver.tags.PortletTag.doStartTag(PortletTag.java:153)
       at 
org.apache.jsp.WEB_002dINF.themes.portlet_002dskin_jsp._jspx_meth_pluto_portlet_0(org.apache.jsp.WEB_002dINF.themes.portlet_002dskin_jsp:98)
       at 
org.apache.jsp.WEB_002dINF.themes.portlet_002dskin_jsp._jspService(org.apache.jsp.WEB_002dINF.themes.portlet_002dskin_jsp:73)
       at 
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
       at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
       at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
       at 
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
       at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
       at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
       at 
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
       at 
org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:574)
       at 
org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:499)
       at 
org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:966)
       at 
org.apache.jsp.WEB_002dINF.themes.pluto_002ddefault_002dtheme_jsp._jspx_meth_c_forEach_1(org.apache.jsp.WEB_002dINF.themes.pluto_002ddefault_002dtheme_jsp:468)
       at 
org.apache.jsp.WEB_002dINF.themes.pluto_002ddefault_002dtheme_jsp._jspService(org.apache.jsp.WEB_002dINF.themes.pluto_002ddefault_002dtheme_jsp:128)
       at 
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
       at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
       at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
       at 
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
       at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
       at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
       at 
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
       at 
org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463)
       at 
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398)
       at 
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
       at 
org.apache.pluto.driver.PortalDriverServlet.doGet(PortalDriverServlet.java:127)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
       at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
       at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
       at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
       at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
       at 
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:482)
       at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
       at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
       at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
       at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
       at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
       at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
       at 
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
       at 
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
       at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
       at java.lang.Thread.run(Thread.java:595)


Mime
View raw message