You are viewing a plain text version of this content. The canonical link for it is here.
Posted to pluto-user@portals.apache.org by Patrick Gelin <pa...@free.fr> on 2005/03/22 09:47:12 UTC

Problem compiling my first portlet JSR 168...

Hi,   
   
I've got a problem compiling my first portlet JSR 168. Below is the error   
message. Could you please tell me where the problem come from? Is it a problem   
with pluto installation?   
   
...   
22 mars 2005 08:21:47 org.apache.pluto.portalImpl.services.log.LoggerImpl error 
GRAVE: Error in Portlet 
java.lang.NullPointerException 
    at org.apache.pluto.portalImpl.om.entity.impl.PortletEntityImpl. 
getPortletDefinition(PortletEntityImpl.java:82) 
    at org.apache.pluto.PortletContainerImpl. 
portletLoad(PortletContainerImpl.java:199) 
    at org.apache.pluto.portalImpl.core.PortletContainerWrapperImpl. 
portletLoad(PortletContainerWrapperImpl.java:94) 
    at org.apache.pluto.portalImpl.aggregation.PortletFragment. 
service(PortletFragment.java:120) 
    at org.apache.jsp.WEB_002dINF.aggregation.ColumnFragment_jsp. 
_jspService(org.apache.jsp.WEB_002dINF.aggregation.ColumnFragment_jsp:65) 
    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:99) 
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) 
... 
 
thanks for your help. 


Re: Problem compiling my first portlet JSR 168...

Posted by Patrick Gelin <pa...@free.fr>.
Carlos Soltero wrote:

> 
> 
Hi, thanks for your help but know there is an other error message:

- Etat HTTP 404 - Servlet pluto n'est pas disponible.
type Rapport d'état
- message Servlet pluto n'est pas disponible.
- description La ressource demandée (Servlet pluto n'est pas disponible.)
n'est pas disponible.
- Apache Tomcat/5.5.4

i think my webapp/portletapp is not suitable because I made my project with
netbean directly here and may be the deployment is not godd. My directory
tree looks like:

[gelinp@rheisxa001 portletapp]$ ll -R
.:
total 32
drwxrwxr-x  3 gelinp gelinp 4096 mar 22 08:12 build/
-rw-rw-r--  1 gelinp gelinp 2959 mar 23 11:09 build.xml
drwxrwxr-x  2 gelinp gelinp 4096 mar 22 07:52 conf/
drwxrwxr-x  2 gelinp gelinp 4096 mar 22 08:13 dist/
drwxrwxr-x  3 gelinp gelinp 4096 mar 23 11:09 nbproject/
drwxrwxr-x  3 gelinp gelinp 4096 mar 22 08:08 src/
drwxrwxr-x  2 gelinp gelinp 4096 mar 22 07:52 test/
drwxrwxr-x  4 gelinp gelinp 4096 mar 23 10:51 web/

./build:
total 4
drwxrwxr-x  2 gelinp gelinp 4096 mar 23 10:51 web/

./build/web:
total 4
-rw-rw-r--  1 gelinp gelinp 996 mar 22 08:13 index.jsp

./conf:
total 4
-rw-rw-r--  1 gelinp gelinp 23 mar 22 07:52 MANIFEST.MF

./dist:
total 3500
-rw-rw-r--  1 gelinp gelinp 3576980 mar 22 13:36 portletapp.war

./nbproject:
total 48
-rw-rw-r--  1 gelinp gelinp 29369 mar 23 11:09 build-impl.xml
-rw-rw-r--  1 gelinp gelinp   447 mar 23 11:09 genfiles.properties
drwxrwxr-x  2 gelinp gelinp  4096 mar 22 08:48 private/
-rw-rw-r--  1 gelinp gelinp  2004 mar 23 10:47 project.properties
-rw-rw-r--  1 gelinp gelinp  1070 mar 23 11:09 project.xml

./nbproject/private:
total 4
-rw-rw-r--  1 gelinp gelinp 413 mar 22 08:48 private.properties

./src:
total 4
drwxrwxr-x  3 gelinp gelinp 4096 mar 22 08:08 com/

./src/com:
total 4
drwxrwxr-x  2 gelinp gelinp 4096 mar 22 08:10 mycom/

./src/com/mycom:
total 4
-rw-rw-r--  1 gelinp gelinp 1961 mar 22 08:10 SamplePortlet.java

./test:
total 0

./web:
total 12
-rw-rw-r--  1 gelinp gelinp  996 mar 22 07:53 index.jsp
drwxrwxr-x  2 gelinp gelinp 4096 mar 22 07:53 META-INF/
drwxrwxr-x  4 gelinp gelinp 4096 mar 22 13:32 WEB-INF/

./web/META-INF:
total 4
-rw-rw-r--  1 gelinp gelinp 193 mar 22 07:53 context.xml

./web/WEB-INF:
total 16
drwxrwxr-x  2 gelinp gelinp 4096 mar 22 08:16 jsp/
-rw-rw-r--  1 gelinp gelinp 1912 mar 22 08:13 portlet.xml
drwxrwxr-x  2 gelinp gelinp 4096 mar 22 08:16 tld/
-rw-rw-r--  1 gelinp gelinp 1278 mar 22 13:32 web.xml

./web/WEB-INF/jsp:
total 4
-rw-rw-r--  1 gelinp gelinp 289 mar 22 08:16 portlet-jsp.jsp

./web/WEB-INF/tld:
total 8
-rw-rw-r--  1 gelinp gelinp 4223 mar 22 08:16 portlet.tld

Could you please tell me what is wrong? I followthe doc
http://www.netbeans.org/kb/articles/NBAndPortlets.html but I looks for an
old netbean version, not mine...

> Patrick Gelin wrote:
>> I've got a problem compiling my first portlet JSR 168. Below is the error
>> message. Could you please tell me where the problem come from? Is it a
>> problem with pluto installation?
> 
> Hi Patrick.  I had a similar error not long ago and David Botterill
> kindly provided the solution.  Check the file portletcontexts.txt in
> pluto's WEB-INF/data directory.  You need to include there the portlet's
> servlet context.  See David's message:
> 
> http://nagoya.apache.org/eyebrowse/ReadMsg?listName=
> pluto-user@portals.apache.org&msgNo=1122 
> 
> Hope that helps.
> 
>    Regards,
> 
>    -Carlos
> 
> 
> Disclaimer:
> 
> This message is intended only for the use of the Addressee and may contain
> information that is PRIVILEGED and CONFIDENTIAL. If you are not the
> intended recipient, dissemination of this communication is prohibited. If
> you have received this communication in error, please erase all copies of
> the message and its attachments and notify us immediately.

-- 




Re: Problem compiling my first portlet JSR 168...

Posted by Carlos Soltero <cs...@abacoinc.com>.

Patrick Gelin wrote:
> I've got a problem compiling my first portlet JSR 168. Below is the error   
> message. Could you please tell me where the problem come from? Is it a problem   
> with pluto installation?   

Hi Patrick.  I had a similar error not long ago and David Botterill 
kindly provided the solution.  Check the file portletcontexts.txt in 
pluto's WEB-INF/data directory.  You need to include there the portlet's 
servlet context.  See David's message:

http://nagoya.apache.org/eyebrowse/ReadMsg?listName=pluto-user@portals.apache.org&msgNo=1122

Hope that helps.

   Regards,

   -Carlos


Disclaimer:

This message is intended only for the use of the Addressee and may contain information that is PRIVILEGED and CONFIDENTIAL. If you are not the intended recipient, dissemination of this communication is prohibited. If you have received this communication in error, please erase all copies of the message and its attachments and notify us immediately.