If a portlet uses EDIT mode, then all portlets in the
portlet.xml must declare that they support EDIT mode.
Nested Exception is javax.servlet.ServletException:
unsupported Portlet Mode used: edit
at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:536)
at
org.apache.jsp.preference_jsp._jspService(preference_jsp.java:95)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:210)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
com.meterware.servletunit.RequestDispatcherImpl.include(RequestDispatcherImpl.java:59)
at
org.apache.pluto.core.impl.PortletRequestDispatcherImpl.include(PortletRequestDispatcherImpl.java:51)
at
net.sf.portletunit.portlet.preference.PreferencePortlet.doView(PreferencePortlet.java:57)
at
javax.portlet.GenericPortlet.doDispatch(GenericPortlet.java:250)
at
javax.portlet.GenericPortlet.render(GenericPortlet.java:178)
at
org.apache.pluto.core.PortletServlet.dispatch(PortletServlet.java:205)
at
org.apache.pluto.core.PortletServlet.doPost(PortletServlet.java:150)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.pluto.core.PortletServlet.service(PortletServlet.java:140)
at
com.meterware.servletunit.PortletUnitInvocationContextImpl.service(PortletUnitInvocationContextImpl.java:86)
at
com.meterware.servletunit.PortletUnitClient.initializeInvocationContext(PortletUnitClient.java:643)
at
com.meterware.servletunit.PortletUnitClient.getResponse(PortletUnitClient.java:144)
at
net.sf.portletunit.PortletRunner.getResponse(PortletRunner.java:144)
at
net.sf.portletunit.test.TestPreferencePortlet.testPreferencePortlet(TestPreferencePortlet.java:56)
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 junit.framework.TestCase.runTest(TestCase.java:154)
at junit.framework.TestCase.runBare(TestCase.java:127)
at
junit.framework.TestResult$1.protect(TestResult.java:106)
at
junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:118)
at junit.framework.TestSuite.runTest(TestSuite.java:208)
at junit.framework.TestSuite.run(TestSuite.java:203)
at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:289)
at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:656)
at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:558)