Java Mailing List Archive

http://www.gg3721.com/

Home » Struts Users Mailing List »

Struts2 on Websphere portal 6.1.0.0

Dinesh Narayanan

2008-07-31

Replies: Find Java Web Hosting

Author LoginPost Reply
Has Anybody tried Struts2 (Struts-2.0.11.2) on Websphere portal 6.1.0.0? I
am running into issues when I tried a very simple JSR168 example. Any help
would be appreciated. Is there some example of struts2 sample in websphere
portal 6.1?

A) My portlet.xml contains the following entries
<init-param>
       <name>viewNamespace</name>
       <value>/view</value>
    </init-param>

 <!-- The default action to invoke in view mode. -->
 <init-param>
       <name>defaultViewAction</name>
       <value>index</value>
 </init-param>


B) My struts.xml is
<struts>
<package name="view" extends="struts-portlet-default" namespace="/view">
  <action name="index" class="com.myCompany.proj1.ExampleAction">
    <result name="success">/WEB-INF/view/index.jsp</result>
  </action>
</package>
</struts>

And I get the following exception.
[7/30/08 23:48:05:386 PDT] 0000002a XmlConfigurat E
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider
reloadRequiredPackages Unable to find parent packages struts-portlet-default
[7/30/08 23:48:05:401 PDT] 0000002a ObjectTypeDet I
com.opensymphony.xwork2.util.ObjectTypeDeterminerFactory <clinit> Setting
DefaultObjectTypeDeterminer as default ...
[7/30/08 23:48:05:448 PDT] 0000002a Jsr168Dispatc E
org.apache.struts2.portlet.dispatcher.Jsr168Dispatcher serviceAction Could
not find action
[7/30/08 15:15:05:782 PDT] 0000003f Jsr168Dispatc E
org.apache.struts2.portlet.dispatcher.Jsr168Dispatcher serviceAction Could
not find action
                     There is no Action mapped for namespace
/view and action name index. - [unknown location]
  at
com.opensymphony.xwork2.DefaultActionProxy.prepare (DefaultActionProxy.java:186)
  at
org.apache.struts2.impl.StrutsActionProxyFactory.createActionProxy (StrutsActionProxyFactory.java:41)
  at
org.apache.struts2.impl.StrutsActionProxyFactory.createActionProxy (StrutsActionProxyFactory.java:34)
  at
org.apache.struts2.portlet.dispatcher.Jsr168Dispatcher.serviceAction (Jsr168Dispatcher.java:415)
  at
org.apache.struts2.portlet.dispatcher.Jsr168Dispatcher.render (Jsr168Dispatcher.java:299)
  at
com.ibm.ws.portletcontainer.invoker.impl.PortletFilterChainImpl.doFilter(PortletFilterChainImpl.java:128)
  at
com.ibm.wps.propertybroker.standard.filter.C2APortletFilter.doFilter(C2APortletFilter.java:185)
  at
com.ibm.ws.portletcontainer.invoker.impl.PortletFilterChainImpl.doFilter(PortletFilterChainImpl.java:120)
  at
com.ibm.ws.portletcontainer.invoker.impl.PortletServlet.doDispatch(PortletServlet.java:573)
  at
com.ibm.ws.portletcontainer.invoker.impl.PortletServletCollaboratorChainImpl.doCollaborator(PortletServletCollaboratorChainImpl.java:114)
  at
com.ibm.isclite.container.collaborator.PortletServletCollaborator.doRender(PortletServletCollaborator.java:68)
  at
com.ibm.ws.portletcontainer.invoker.impl.PortletServletCollaboratorChainImpl.doCollaborator(PortletServletCollaboratorChainImpl.java:105)
  at
com.ibm.ws.portletcontainer.rrd.RRDServerPortletServletCollaborator.doRender(RRDServerPortletServletCollaborator.java:123)
  at
com.ibm.ws.portletcontainer.invoker.impl.PortletServletCollaboratorChainImpl.doCollaborator(PortletServletCollaboratorChainImpl.java:105)
  at
com.ibm.ws.portletcontainer.cache.CacheCollaborator.doRender(CacheCollaborator.java:92)

I have made sure that class loader loads one ones included in webApp first.
What else could I be possibly missing? Pls let me know if you need more info

Thanks
Dinesh
©2008 gg3721.com - Jax Systems, LLC, U.S.A.