I am experiencing the exact same problem ever since I moved to struts 2.1.6.
This was not a problem in struts 2.0.14, and in fact, we've stayed with struts 2.0.14 for this very reason. Todd Kofford tkoff...@ku.edu University of Kansas - IT -----Original Message----- From: IainM [mailto:iain.mil...@live.co.uk] Sent: Friday, June 12, 2009 4:04 AM To: user@struts.apache.org Subject: Re: Error when deploying portlets beside a normal Struts2 web app? We have struts.xml set up so that the portlet package extends struts-portlet-default and the normal actions extend struts-default. The problem manifests even if all we do is add the portlet-plugin jar into the WEB-INF/lib directory and do no other setup of portlets. So there seems to be something in the portlet plugin which is affecting normal action functionality. Iain. Nils-Helge Garli wrote: > > If you're using portlets, your package must extend > "struts-portlet-default" instead of "struts-default". It should be > possible to run servlet actions and portlet actions in the same > application. > > Nils-H > > > On Thu, Jun 11, 2009 at 3:52 PM, IainM<iain.mil...@live.co.uk> wrote: >> >> Hi, >> >> I have an existing Struts2 (2.1.6) web app which I would like to add a >> couple of portlets to. I have added the portlet plugin and a portel.xml >> file >> and developed a couple of plugins which I have successfully run in JBOSS >> Portal. My problem is that the addition of the portlet plugin >> (struts2-portlet-plugin-2.1.6) seems to break my existing web pages. For >> example, when I have an action which forwards onto a very plain jsp file >> that shows a form (using <s:form>) I get a NullPointerException as below: >> >> org.apache.jasper.JasperException: java.lang.NullPointerException >> >> org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:521) >> >> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:415) >> >> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:336) >> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265) >> javax.servlet.http.HttpServlet.service(HttpServlet.java:803) >> etc... >> >> root cause >> >> java.lang.NullPointerException >> >> org.apache.struts2.components.UIBean.evaluateParams(UIBean.java:792) >> org.apache.struts2.components.UIBean.end(UIBean.java:510) >> >> org.apache.struts2.views.jsp.ComponentTagSupport.doEndTag(ComponentTagSupport.java:42) >> >> org.apache.jsp.cardSearch_jsp._jspx_meth_s_005ftextfield_005f0(cardSearch_jsp.java:583) >> >> org.apache.jsp.cardSearch_jsp._jspx_meth_s_005fform_005f0(cardSearch_jsp.java:530) >> org.apache.jsp.cardSearch_jsp._jspService(cardSearch_jsp.java:296) >> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) >> javax.servlet.http.HttpServlet.service(HttpServlet.java:803) >> >> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:373) >> >> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:336) >> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265) >> javax.servlet.http.HttpServlet.service(HttpServlet.java:803) >> >> org.apache.struts2.dispatcher.ServletDispatcherResult.doExecute(ServletDispatcherResult.java:154) >> >> org.apache.struts2.dispatcher.StrutsResultSupport.execute(StrutsResultSupport.java:186) >> etc..... >> >> If I remove the portlet plugin (and the portlet.xml file which points to >> one >> of the classes from the plugin) all of my original webpages work without >> any >> issues so it's definetly the plugin that's causing a conflict. >> >> Can I not deploy a struts2 application that includes both normal web >> pages >> and portlets? Or is there a way around this problem. >> >> Any help would be greatly appreciated. >> >> Iain. >> -- >> View this message in context: >> http://www.nabble.com/Error-when-deploying-portlets-beside-a-normal-Struts2-web-app--tp23981728p23981728.html >> Sent from the Struts - User mailing list archive at Nabble.com. >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org >> For additional commands, e-mail: user-h...@struts.apache.org >> >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > > > -- View this message in context: http://www.nabble.com/Error-when-deploying-portlets-beside-a-normal-Struts2-web-app--tp23981728p23995311.html Sent from the Struts - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org