Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Struts - HTTP 500 Internal Server Error

843836Mar 1 2005 — edited Mar 4 2005
Every time I request a Struts Action Mapping to forward using one of it's declared local forwards I get the folowing:

HTTP 500 Internal Server Error - The page cannot be displayed

My Web App uses struts/tiles and I am requesting the local forward from a Java Action Class with - return mapping.findForward("success").

I know that the class is returning the findForward request, however the subsequent jsp is not displayed. Is there any way of debugging this? there is no compile/runtime issues and the xml within struts-config is correctly formed.

Any ideas??

The Struts-Config.xml file is:
------------------------------------------------------------

<?xml version = '1.0' encoding = 'UTF-8'?>
<!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.1//EN" "http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd">
<struts-config>
<!--Form bean definitions-->
<form-beans>
<form-bean name="cancelActionForm" type="uk.co.company.common.cancelActionForm"/>
<form-bean name="orderActionForm" type="uk.co.company.common.orderActionForm"/>
<form-bean name="customerActionForm" type="uk.co.company.common.customerActionForm"/>
<form-bean name="expenseActionForm" type="uk.co.company.common.expenseActionForm"/>
<form-bean name="retrieveCustomerDetailsActionForm" type="uk.co.company.common.retrieveCustomerDetailsActionForm"/>
<form-bean name="searchActionForm" type="uk.co.company.common.searchActionForm"/>
</form-beans>

<!--Global forward definitions-->
<global-forwards>
<forward name="displayEmptySearch" path="/displayEmptySearch.do"/>
</global-forwards>

<!--Struts action mapping definitions-->
<action-mappings>
<action path="/displayEmptySearch" name="searchActionForm" forward="tlcosBase.Search"/>
<action path="/showVersion" forward="tlcosBase.Version"/>
<action path="/newOrder" forward="tlcosBase.Order"/>
<action path="/newCustomer" forward="tlcosBase.Customer"/>
<action path="/newExpense" forward="tlcosBase.Expense"/>
<action path="/newTaxReport" forward="tlcosBase.TaxReport"/>

<action name="orderActionForm" path="/persistOrder" type="uk.co.company.common.orderActionClass" scope="request" validate="false">
<forward name="success" path="/tlcosBase.OrderComplete"/>
<forward name="failure" path="/tlcosBase.Error"/>
</action>

<action name="customerActionForm" path="/persistCustomer" type="uk.co.company.common.customerActionClass" scope="request" validate="false">
<forward name="success" path="/tlcosBase.CustomerComplete"/>
<forward name="failure" path="/tlcosBase.Error"/>
</action>

<action name="expenseActionForm" path="/persistExpense" type="uk.co.company.common.expenseActionClass" scope="request" validate="false">
<forward name="success" path="/tlcosBase.ExpenseComplete"/>
<forward name="failure" path="/tlcosBase.Error"/>
</action>

<action name="orderActionForm" path="/viewCustomerList" type="uk.co.company.common.viewCustomerListActionClass">
<forward name="success" path="/tlcosBase.CustomerList"/>
<forward name="failure" path="/tlcosBase.Error"/>
</action>

<action name="retrieveCustomerDetailsActionForm" path="/retrieveCustomerDetails" type="uk.co.company.common.retrieveCustomerDetailsActionClass">
<forward name="success" path="/newOrder.do"/>
<forward name="failure" path="/tlcosBase.Error"/>
</action>

<action name="searchActionForm" path="/getSearchType" type="uk.co.company.common.searchActionClass" scope="request">
<forward name="success" path="/tlcosBase.SecondrySearchForm"/>
<forward name="failure" path="/tlcosBase.Error"/>
</action>

<action name="searchActionForm" path="/performSearch" type="uk.co.company.common.searchActionClass" scope="request">
<forward name="success" path="/tlcosBase.SearchResults"/>
<forward name="failure" path="/tlcosBase.Error"/>
</action>
</action-mappings>

<message-resources null="false" parameter="resources.ApplicationResources" />

<!--Struts plug-in definitions-->
<plug-in className="org.apache.struts.tiles.TilesPlugin">
<set-property property="definitions-config" value="/WEB-INF/config/tiles-def.xml"/>
</plug-in>
</struts-config>

------------------------------------------------------------

Thanks.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 1 2005
Added on Mar 1 2005
5 comments
453 views