You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Martin Gainty <mg...@hotmail.com> on 2003/12/31 14:17:03 UTC
Re: Configuration Issue when Splitting up the struts-config.xml file
Straight from Craig McClanahan
"splitting struts-config.xml":
<?xml version="1.0"?>
<!DOCTYPE ... [
<!ENTITY part1 SYSTEM "form-beans.xml">
<!ENTITY part2 SYSTEM "global-forwards.xml">
<!ENTITY part3 SYSTEM "action-mappings.xml">
]>
<struts-config>
<form-beans>
&part1;
</form-beans>
<global-forwards>
&part2;
</global-forwards>
<action-mappings>
&part3;
</action-mappings>
</struts-config>
-Martin
----- Original Message -----
From: "Harrison, Joseph" <JO...@saic.com>
To: <st...@jakarta.apache.org>
Sent: Wednesday, December 31, 2003 8:18 AM
Subject: Configuration Issue when Splitting up the struts-config.xml file
> All,
>
>
>
> I recently brought my struts application to a relatively stable point (no
> problems whatsoever).
>
> However, I split apart my struts-config.xml file into 6 sub struts xml
> files. I updated the web.xml file, but it gives me the following error
> when trying to parse the resource paths.
>
> [ERROR] ActionServlet - -Parsing error processing resource path
> WEB-INF/struts-config.xml
>
> WEB-INF/struts-arrest.xml
> WEB-INF/struts-history.xml
> WEB-INF/struts-profiles.xml
> WEB-INF/struts-reports.xml
> WEB-INF/struts-subject.xml
> WEB-INF/struts-support.xml <java.lang.NullPointerException>
>
> My web.xml file looks like this
>
> <servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
> <init-param>
> <param-name>config</param-name>
> <param-value>
> WEB-INF/struts-config.xml,
> WEB-INF/struts-arrest.xml,
> WEB-INF/struts-history.xml,
> WEB-INF/struts-profiles.xml,
> WEB-INF/struts-reports.xml,
> WEB-INF/struts-subject.xml,
> WEB-INF/struts-support.xml
> </param-value>
> </init-param>
>
>
> Is there some sort of parsing or setup problem that I am unaware of? If
so,
> is there a patch that I can download to fix this. I am using JDeveloper
9i
> to build and run my application if it makes a difference.
>
>
>
> Thanks,
>
> Joe
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org