It would be helpful if you could create a sample app and attach it to
a JIRA issue. Then I'll have a look at it.

Nils-H

On Fri, Jun 19, 2009 at 9:52 PM, phillips1021<bphill...@ku.edu> wrote:
>
> Nils-H (or anyone else):
>
> I've duplicated this problem with 2.1.6 and portlets as follows:
>
> Created a Struts 2 web/portlet application with a pom.xml having a
> dependency on struts2-core-2.0.11.2.jar.  Works both as a normal web
> application and as a portlet application.
>
> Changed the dependencies to be struts2-core-2.1.6.jar and
> struts2-portlet-plugin-2.1.6.jar.  Running the application as a web
> application in Tomcat 6 results in a org.apache.jasper.JasperException:
> java.lang.NullPointerException whenever a Struts 2 action is called.
>
> Removed the dependency on struts2-portlet-plugin-2.1.6.jar and the
> application runs fine as a normal Struts 2 web application.
>
> I can provide the code that demonstrates the problem if it would be helpful.
>
> Is anyone on the Struts 2 development team researching the cause of this
> problem and a potential fix?
>
> Any insight into if this is an actual bug in 2.1.6 that will be fixed in a
> future release would be helpful.
>
> BTW the maven archtype specified here:
>
>    http://struts.apache.org/2.1.6/docs/struts-2-portlet-tutorial.html
>
> for the portlet tutorial doesn't work.
>
> Thanks for taking a look at this issue.  We had hope to develop Struts 2
> applications that can work as both a standalone web application and as a
> portlet in a portal container.
>
> Bruce
>
>
> 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
>
>
>
> --
> View this message in context: 
> http://www.nabble.com/Error-when-deploying-portlets-beside-a-normal-Struts2-web-app--tp23981728p24117787.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

Reply via email to