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 Martial BRISOU <mb...@sqli.com> on 2004/02/12 09:41:53 UTC
Pb in portlet.xml
Hi all,
I'm a new french user. I try to use the Pluto PortletContainer to manage
Java Portlets (with JSR168 standard). I want to display a portlet in a
JSP page so i try to develop my portal (based on your portal example).
First, I try to launch my webapp with your portal implementaion example.
When I start my webapp, I call this servlet :
<servlet>
<servlet-name>initPortal</servlet-name>
<servlet-class>org.apache.pluto.portalImpl.Servlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
And i've got this :
PortletDefinitionRegistryService initializing...
DEBUG org.apache.pluto.portalImpl.services Loading the following
Portlet Applications XML
files...C:\programs\eclipse-2.1.1\workspace\IJ\web\WEB-INF\portlet.xml,
C:\programs\eclipse-2.1.1\workspace\IJ\web\WEB-INF\web.xml
ServiceManager: An unidentified error occurred
java.lang.IllegalArgumentException: No attributes are implemented
at
org.apache.crimson.jaxp.DocumentBuilderFactoryImpl.setAttribute(DocumentBuilderFactoryImpl.java:93)
at
org.apache.pluto.portalImpl.xml.XmlParser.parsePortletXml(XmlParser.java:81)
at
org.apache.pluto.portalImpl.services.portletdefinitionregistry.PortletDefinitionRegistryServiceFileImpl.load(PortletDefinitionRegistryServiceFileImpl.java:212)
at
org.apache.pluto.portalImpl.services.portletdefinitionregistry.PortletDefinitionRegistryServiceFileImpl.load(PortletDefinitionRegistryServiceFileImpl.java:189)
at
org.apache.pluto.portalImpl.services.portletdefinitionregistry.PortletDefinitionRegistryServiceFileImpl.init(PortletDefinitionRegistryServiceFileImpl.java:165)
at
org.apache.pluto.portalImpl.services.ServiceManager.init(ServiceManager.java:250)
at
org.apache.pluto.portalImpl.services.ServiceManager.init(ServiceManager.java:125)
at org.apache.pluto.portalImpl.Servlet.init(Servlet.java:105)
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:935)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:823)
at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3422)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3623)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:754)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:363)
at org.apache.catalina.core.StandardService.start(StandardService.java:497)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:2190)
at org.apache.catalina.startup.Catalina.start(Catalina.java:512)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
I think it comes because of my portlet.xml file. This is the file :
<?xml version="1.0" encoding="UTF-8"?>
<portlet-app
xmlns="/org/apache/pluto/portalImpl/xml/portlet-app_1_0.xsd"
version="1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="/org/apache/pluto/portalImpl/xml/portlet-app_1_0.xsd
/org/apache/pluto/portalImpl/xml/portlet-app_1_0.xsd">
<portlet>
<description>A Sample Portlet That Does Nothing</description>
<portlet-name>SimplePortlet</portlet-name>
<display-name>Simple Portlet</display-name>
<portlet-class>com.compagny.portal.portlet.SimplePortlet</portlet-class>
<init-param>
<name>jspView</name>
<value>/jsp/cg57-porlet/SimplePorlet/view.jsp</value>
</init-param>
<init-param>
<name>jspEdit</name>
<value>/jsp/cg57-porlet/SimplePorlet/edit.jsp</value>
</init-param>
<expiration-cache>-1</expiration-cache>
<supports>
<mime-type>text/html</mime-type>
<portlet-mode>VIEW</portlet-mode>
<portlet-mode>EDIT</portlet-mode>
</supports>
<supported-locale>en</supported-locale>
<portlet-info>
<title>Simple Portlet</title>
<short-title>Simple</short-title>
<keywords>Simple</keywords>
</portlet-info>
</portlet>
</portlet-app>
Do you have an idea ?
--
Martial Brisou
Ingénieur Concepteur Développeur
ABCIAL Groupe SQLI
mail: mbrisou@sqli.com
Need a concrete example
Posted by Martial BRISOU <mb...@sqli.com>.
My questions are :
- How can I use PortletContainer ?
- How can I display a portlet without using org.apache.pluto.PortalImpl
package ? For example, call the renderPortlet() method of
PortletContainer in a JSP page.
Do I must develop my personnal portal ? What can I do ?
Thanks to answer... I want use your implementation but, I don't
understand very well all things.
Best regards,
Martial
--
Martial Brisou
Ingénieur Concepteur Développeur
ABCIAL Groupe SQLI
mail: mbrisou@sqli.com