You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "J.V." <jv...@gmail.com> on 2013/03/21 21:27:13 UTC
Exception thrown because of struts-config.xml
I have the following struts-config.xml below (a sample from the file).
I am well versed in well formatted XML and DTD's ( I have checked the
DTD agains my struts-config.xml file) and I still get an exception on
jboss startup (an older version of jboss 4.3GA - legacy app but I cannot
upgrade). I am using Struts 1.3.
Are there any reasons I would get this exception given the
struts-config.xml listed below?
thanks
J.V.
---
<!DOCTYPE struts-config PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 1.2//EN"
"http://jakarta.apache.org/struts/dtds/struts-config_1_2.dtd">
<struts-config>
<!-- form-beans -->
<form-beans>
<form-bean name="myFormBean" type="com.form.MyForm"/>
<!-- I have a number of these with properties, all well formed -->
</form-beans>
<!--
******************************************************************* -->
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - -
global-exceptions -->
<global-exceptions>
<exception
type="com.my.exception.MyException"
key="global.error.notAuthenticated"
path="/Login.jsp"
scope="request"/>
<exception
type="com.my.exception.NotAuthorizedException"
key="global.error.notAuthorized"
path="/NotAuthorized.jsp"
scope="request"/>
</global-exceptions>
<!--
******************************************************************* -->
<global-forwards>
<forward name="cssStyle" path="/style.css"/>
</global-forwards>
<!--
******************************************************************* -->
<action-mappings>
<action path="/doStart"
type="com.my.action.StartAction"
scope="request">
<forward name="login" path="/Login.jsp"/>
<forward name="memberCenter"
path="/action/doViewMemberCenter"/>
</action>
</action-mappings>
<!--
******************************************************************* -->
<controller
processorClass="com.my.web.SecurityRequestProcessor"
contentType="text/html;charset=UTF-8"
locale="true"
nocache="true"/>
<!--
******************************************************************* -->
<message-resources parameter="myResources" null="false"/>
<!--
******************************************************************* -->
<plug-in className="com.my.web.MyCachePlugIn"/>
<plug-in className="com.my.web.JobsPlugIn"/>
<!--
******************************************************************* -->
<!-- with this can remove the validate() method from each form and
declare rules in validator-user.xml -->
<plug-in className="org.apache.struts.validator.ValidatorPlugIn">
<set-property property="pathnames"
value="/WEB-INF/validator-rules.xml,
/WEB-INF/validator-user.xml"/>
</plug-in>
</struts-config>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: Exception thrown because of struts-config.xml
Posted by Lukasz Lenart <lu...@apache.org>.
What exception?
Regards
--
Ćukasz
+ 48 606 323 122 http://www.lenart.org.pl/
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: Exception thrown because of struts-config.xml
Posted by Paul Benedict <pb...@apache.org>.
What is the exception? And if you're on Struts 1.3, you should fix your 1.2
version in the DOCTYPE.
On Thu, Mar 21, 2013 at 3:27 PM, J.V. <jv...@gmail.com> wrote:
> I have the following struts-config.xml below (a sample from the file). I
> am well versed in well formatted XML and DTD's ( I have checked the DTD
> agains my struts-config.xml file) and I still get an exception on jboss
> startup (an older version of jboss 4.3GA - legacy app but I cannot
> upgrade). I am using Struts 1.3.
>
> Are there any reasons I would get this exception given the
> struts-config.xml listed below?
>
> thanks
>
> J.V.
>
> ---
> <!DOCTYPE struts-config PUBLIC
> "-//Apache Software Foundation//DTD Struts Configuration 1.2//EN"
> "http://jakarta.apache.org/**struts/dtds/struts-config_1_2.**dtd<http://jakarta.apache.org/struts/dtds/struts-config_1_2.dtd>
> ">
>
> <struts-config>
> <!-- form-beans -->
> <form-beans>
> <form-bean name="myFormBean" type="com.form.MyForm"/>
> <!-- I have a number of these with properties, all well formed -->
> </form-beans>
>
> <!-- ***********************************************************************
> -->
> <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - -
> global-exceptions -->
> <global-exceptions>
> <exception
> type="com.my.exception.**MyException"
> key="global.error.**notAuthenticated"
> path="/Login.jsp"
> scope="request"/>
> <exception
> type="com.my.exception.**NotAuthorizedException"
> key="global.error.**notAuthorized"
> path="/NotAuthorized.jsp"
> scope="request"/>
> </global-exceptions>
>
> <!-- ***********************************************************************
> -->
> <global-forwards>
> <forward name="cssStyle" path="/style.css"/>
> </global-forwards>
>
> <!-- ***********************************************************************
> -->
> <action-mappings>
>
> <action path="/doStart"
> type="com.my.action.**StartAction"
> scope="request">
> <forward name="login" path="/Login.jsp"/>
> <forward name="memberCenter" path="/action/**
> doViewMemberCenter"/>
> </action>
> </action-mappings>
>
> <!-- ***********************************************************************
> -->
> <controller
> processorClass="com.my.web.**SecurityRequestProcessor"
> contentType="text/html;**charset=UTF-8"
> locale="true"
> nocache="true"/>
>
> <!-- ***********************************************************************
> -->
> <message-resources parameter="myResources" null="false"/>
>
> <!-- ***********************************************************************
> -->
> <plug-in className="com.my.web.**MyCachePlugIn"/>
>
> <plug-in className="com.my.web.**JobsPlugIn"/>
>
> <!-- ***********************************************************************
> -->
> <!-- with this can remove the validate() method from each form and
> declare rules in validator-user.xml -->
> <plug-in className="org.apache.struts.**validator.ValidatorPlugIn">
> <set-property property="pathnames"
> value="/WEB-INF/validator-**rules.xml,
> /WEB-INF/validator-user.xml"/>
> </plug-in>
> </struts-config>
>
>
> ------------------------------**------------------------------**---------
> To unsubscribe, e-mail: user-unsubscribe@struts.**apache.org<us...@struts.apache.org>
> For additional commands, e-mail: user-help@struts.apache.org
>
>