You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Jim Young <jy...@asd.net> on 2007/02/27 05:56:43 UTC

Struts 2 with Tiles 2 Running under WebSphere 6.1

Has anyone gotten Struts 2 and Tiles 2 to work under Websphere 6.1.
 
We are a site that has many pages down using Struts 1 and Tiles.  We are testing Struts 2 with Tiles 2 but cannot get it to work.  
After performing the action the result returned from Struts 2 has the following error on the jsp page:
 Error 404: SRVE0190E: File not found: /home/Home.action. 
 
The jsp that started the action has the following link:
<p><a href="<s:url value="/home/Home.action" />">Home</a></p>

 
 
Home/Home.action was the action performed.  The XML file for the action looks like this:
  

<package name="HomePackage" extends="tiles-default" namespace="/home" >

<action name="Home" class="com.ourcompany.nav.HeaderNavAction" method="home">

<result type="tiles">Home.page</result>

<result name="success" type="tiles">Home.page</result>

</action>

</package>

 

The tiles-xml file looks like this:

<!DOCTYPE tiles-definitions PUBLIC

"-//Apache Software Foundation//DTD Tiles Configuration 2.0//EN"

"http://struts.apache.org/dtds/tiles-config_2_0.dtd">

<tiles-definitions>

 

<definition name="publicLayout" template="/layouts/publicLayout.jsp">

<put name="title" value="Public Definition Page" />

<put name="header" value="/layouts/common/header.jsp" />

<put name="footer" value="/layouts/common/footer.jsp" />

<put name="legal" value="/layouts/common/legal.jsp" />

</definition>

<definition name="Home.page" extends="publicLayout">

<put name="title" value="Home Page" />

<put name="body" value="/homeBody.jsp" />

</definition>

 

</tiles-definitions>

 

The console for WebSphere 6.1 shows that the layout of the page is being built:

 0000001f ServletWrappe I SRVE0242I: [oursite.EAR] [/oursite] [/layouts/publicLayout.jsp]: Initialization successful.

 0000001f ServletWrappe I SRVE0242I: [oursite.EAR] [/oursite] [/layouts/common/header.jsp]: Initialization successful.

0000001f ServletWrappe I SRVE0242I: [oursite.EAR] [/oursite] [/homeBody.jsp]: Initialization successful.

0000001f ServletWrappe I SRVE0242I: [oursite.EAR] [/oursite] [/layouts/common/footer.jsp]: Initialization successful.

0000001f ServletWrappe I SRVE0242I: [oursite.EAR] [/oursite] [/layouts/common/legal.jsp]: Initialization successful.

 

We ran the process under debug and found the action being performed okay.  We are having trouble determing if WebSphere 6.1 is the problem or is something not setup in Struts 2 or Tiles 2.

Any help or thoughts would be appreciated.

Thanks

Jim