Is the testsuite application and the example portlet packaged in the same war file?
Original Message: ----------------- From: Nguyen Viet Trieu [EMAIL PROTECTED] Date: Sun, 8 May 2005 23:30:15 -0700 (PDT) To: [email protected] Subject: RE: problem when modify testsuite Hi, I have already did it. --- Muhammad Kashif <[EMAIL PROTECTED]> wrote: > > > Hi, > > > > You also have to add your portlet application > context in file > portletcontext.txt. > > > > -Kashif > > _____ > > From: Nguyen Viet Trieu [mailto:[EMAIL PROTECTED] > Sent: Saturday, May 07, 2005 9:08 AM > To: [email protected] > Subject: problem when modify testsuite > > > > Hi, > I have tested two portlets in testsuite example. But > when i tried to deploy first portlet in chapter 02 > from apress.com i met the error : > > SEVERE : Error in Portlet > java.lang.NullPointerException > at > org.apache.pluto.portalimpl.om.servlet.impl.ServletDefinitionImpl.getRequest > Dispatcher > (ServletDefintionimpl.java:118) > .......... > I want to run two portlet. The Portlet in left hand > is > the one in testsuite. The Portlet in right hand is > my > portlet. > when i run link > <http://localhost:8080/viettrieu/portalvt/> > http://localhost:8080/viettrieu/portalvt/ and > clicked > Test link in left hand the portlet > which belongs to testsuite was fine. But in the > right > hand my portlet had error : > > Error occurred in portlet! > > here is my conf. files : > portlet.xml : > <portlet> > <description>First Portlet for the Apress > Portlet book by Jeff Linwood and David > Minter.</description> > > <portlet-name>PortletTrieu</portlet-name> > > <display-name>First Portlet</display-name> > > > <portlet-class>com.portalbook.portlets.FirstPortlet</portlet-class> > > <expiration-cache>-1</expiration-cache> > > <supports> > <mime-type>text/html</mime-type> > <portlet-mode>VIEW</portlet-mode> > </supports> > > <portlet-info> > <title>First Portlet</title> > <short-title>1st Portlet</short-title> > <keywords>First, Portlet</keywords> > </portlet-info> > </portlet> > > web.xml : > <web-app> > <display-name>Pluto Testsuite</display-name> > <context-param> > <param-name>parameter-name</param-name> > <param-value>parameter-value</param-value> > </context-param> > <context-param> > <param-name>test-parameter-name</param-name> > > <param-value>test-parameter-val</param-value> > </context-param> > <servlet> > <servlet-name>PortletTrieu</servlet-name> > <display-name>TestPortlet2 > Wrapper</display-name> > <description>Automated generated Portlet > Wrapper</description> > > <servlet-class>org.apache.pluto.core.PortletServlet</servlet-class> > <init-param> > <param-name>portlet-guid</param-name> > > <param-value>trieu.PortletTrieu</param-value> > </init-param> > <init-param> > <param-name>portlet-class</param-name> > > <param-value>com.portalbook.portlets.FirstPortlet</param-value> > </init-param> > <security-role-ref> > <role-name>plutoTestRole</role-name> > <role-link>tomcat</role-link> > </security-role-ref> > </servlet> > <taglib> > > <taglib-uri> <http://java.sun.com/portlet> > http://java.sun.com/portlet</taglib-uri> > > <taglib-location>/WEB-INF/tld/portlet.tld</taglib-location> > </taglib> > <security-role> > <role-name>tomcat</role-name> > </security-role> > </web-app> > > portletentityregistry.xml : > <portlet-entity-registry> > <application id="4"> > <definition-id>trieu</definition-id> > <portlet id="1"> > > <definition-id>trieu.PortletTrieu</definition-id> > <preferences> > <pref-name>TestName4</pref-name> > <pref-value>TestValue4</pref-value> > <read-only>true</read-only> > </preferences> > <preferences> > <pref-name>TEST</pref-name> > <pref-value>TEST_VALUE</pref-value> > <pref-value>ANOTHER</pref-value> > <read-only>false</read-only> > </preferences> > </portlet> > </application> > <application id="3"> > <definition-id>testsuite</definition-id> > <portlet id="1"> > > <definition-id>testsuite.TestPortlet1</definition-id> > <preferences> > <pref-name>TestName4</pref-name> > <pref-value>TestValue4</pref-value> > <read-only>true</read-only> > </preferences> > </portlet> > </application> > </portlet-entity-regist > > _____ > > Do you Yahoo!? > Yahoo! > <http://us.rd.yahoo.com/mail_us/taglines/security/*http:/promotions.yahoo.co > m/new_mail/static/protection.html> Mail - You care > about security. So do > we. > > Discover Yahoo! Find restaurants, movies, travel and more fun for the weekend. Check it out! http://discover.yahoo.com/weekend.html -------------------------------------------------------------------- mail2web - Check your email from the web at http://mail2web.com/ .
