|
View:
New views
7 Messages
—
Rating Filter:
Alert me
|
|
|
Re: JSP and PortletsI did the steps showed on that link but it doesn't work...Pluto can't start it...the error is
25-feb-2008 9.29.42 org.apache.catalina.core.StandardContext listenerStart GRAVE: Exception sending context initialized event to listener instance of class org.apache.pluto.driver.PortalStartupListener java.lang.NullPointerException and my web.xml file is <web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"> <filter> <filter-name>plutoPortalDriver</filter-name> <filter-class>org.apache.pluto.driver.PortalDriverFilter</filter-class> </filter> <filter-mapping> <filter-name>plutoPortalDriver</filter-name> <url-pattern>/about.jsp</url-pattern> </filter-mapping> <filter-mapping> <filter-name>plutoPortalDriver</filter-name> <url-pattern>/about.jsp/*</url-pattern> </filter-mapping> <listener> <listener-class>org.apache.pluto.driver.PortalStartupListener</listener-class> </listener> <session-config> <session-timeout> 30 </session-timeout> </session-config> <welcome-file-list> <welcome-file>index.jsp</welcome-file> </welcome-file-list> </web-app> |
|
|
Re: JSP and PortletsIf you just want 'run time' html - why do you need portlets? JSP will
do that in itself... Pierpaolo Lombardi wrote: > I did the steps showed on that link but it doesn't work...Pluto can't start > it...the error is > > 25-feb-2008 9.29.42 org.apache.catalina.core.StandardContext listenerStart > GRAVE: Exception sending context initialized event to listener instance of > class org.apache.pluto.driver.PortalStartupListener > java.lang.NullPointerException > > and my web.xml file is > > <web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi=" > http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation=" > http://java.sun.com/xml/ns/javaee > http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"> > > <filter> > <filter-name>plutoPortalDriver</filter-name> > <filter-class>org.apache.pluto.driver.PortalDriverFilter > </filter-class> > </filter> > > <filter-mapping> > <filter-name>plutoPortalDriver</filter-name> > <url-pattern>/about.jsp</url-pattern> > </filter-mapping> > > <filter-mapping> > <filter-name>plutoPortalDriver</filter-name> > <url-pattern>/about.jsp/*</url-pattern> > </filter-mapping> > > <listener> > <listener-class>org.apache.pluto.driver.PortalStartupListener > </listener-class> > </listener> > > <session-config> > <session-timeout> > 30 > </session-timeout> > </session-config> > > <welcome-file-list> > <welcome-file>index.jsp</welcome-file> > </welcome-file-list> > > </web-app> > > > This incoming email to UWE has been independently scanned for viruses by McAfee anti-virus software and none were detected > This email was independently scanned for viruses by McAfee anti-virus software and none were found |
|
|
Re: JSP and PortletsI need to assemble a page with one ore more portlets...Given a set of portlets, I want to choose those will compose my page depending from some parameters (in particular, I'm working in web service field...so the portlets chosen depend from the negotiation).
On 26/02/2008, Paul Hunnisett <Paul.Hunnisett@...> wrote: If you just want 'run time' html - why do you need portlets? JSP will |
|
|
|
|
|
Re: JSP and PortletsI followed that guide and didn't experience any problems, although I
used Jetty instead of Tomcat. Which libraries do you have in the Tomcat classpath, and which do you have in your web application? Nils-H On Tue, Feb 26, 2008 at 3:43 PM, Pierpaolo Lombardi <pier.lomb@...> wrote: > Hi to all! > > I'm trying to embedd portlets in a jsp at run-time...I used the guide at > this link http://portals.apache.org/pluto/faq.html#simple-embed > My jsp page is showed below...When I ask for the jsp by using the browser > an Exception occurs > > java.lang.NoClassDefFoundError: org/apache/pluto/PortletWindow > .... > .... > > Why? I put all the pluto .jar files in the tomcat dir dommon/lib but nothing > is changed... > > Can anyone help me? I think the problem is in the jsp page because the > portlet variable is not initialized (as I though but I'm not sure...) > > Thanks in advance > > > > > <html> > <head> > <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> > <title>JSP Page</title> > </head> > <body> > > <pluto:portlet portletId="${portlet}"> > <div class="portlet" id=">c:out value="${portlet}"/>"> > <div class="header"> > <h2 class="title"><pluto:title></pluto:title></h2> > </div> > <div class="body"> > <pluto:render></pluto:render> > </div> > </div> > </pluto:portlet> > > </body> > </html> > > |
|
|
Re: JSP and PortletsI put all the libratries of pluto in the tomcat common/lib dir....
aopalliance-1.0.jar commons-beanutils-1.7.0.jar commons-digester-1.8.jar commons-el.jar commons-fileupload-1.1.1.jar commons-io-1.3.1.jar commons-io-1.3.jar commons-logging-api-1.1.jar jasper-compiler.jar jasper-compiler-jdt.jar jasper-runtime.jar jsp-api.jar jstl-1.0.6.jar jstl.jar naming-factory.jar naming-factory-dbcp.jar naming-resources.jar pluto-portal-driver-1.1.4.jar pluto-portal-driver-impl-1.1.4.jar servlet-api.jar spring-beans-2.0.2.jar spring-context-2.0.2.jar spring-core-2.0.2.jar spring-web-2.0.2.jar standard-1.0.6.jar standard.jar On 26/02/2008, Nils-Helge Garli Hegvik <nilsga@...> wrote: I followed that guide and didn't experience any problems, although I |
|
|
Re: JSP and Portlets> I put all the libratries of pluto in the tomcat common/lib dir....
> > aopalliance-1.0.jar > commons-beanutils-1.7.0.jar > commons-digester-1.8.jar > commons-el.jar > commons-fileupload-1.1.1.jar > commons-io-1.3.1.jar > commons-io-1.3.jar > commons-logging-api-1.1.jar > jasper-compiler.jar > jasper-compiler-jdt.jar > jasper-runtime.jar > jsp-api.jar > jstl-1.0.6.jar > jstl.jar > naming-factory.jar > naming-factory-dbcp.jar > naming-resources.jar > pluto-portal-driver-1.1.4.jar > pluto-portal-driver-impl-1.1.4.jar Also put pluto-descriptor-api.jar and pluto-descriptor-impl.jar, as well as pluto-container.jar. You'll also want pluto-taglib.jar (or whatever its called), but that can go in you're web app if you'd prefer. Also, as a troubleshooting measure, try defining your web.xml as a servlet 2.3 application descriptor. Pluto might be freaking out over this... technically, a JSR 168 container is only required to support servlet 2.3, so you should plan your project implementation accordingly unless you know that your target platform supports a higher level of the spec. I've used this configuration in both Tomcat and Jetty and it works fine once you have all your JARs in the right place. -- Ben |
| Free embeddable forum powered by Nabble | Forum Help |