I don't see anything obviously wrong with the struts-client.xml you posted, and it's valid according to the DTD... It's possible, though, that the config file parsing isn't coping properly with it being essentially empty. Since it *is* basically empty, why not just not include it?

Alternatively, you could try temporarily defining dummy form-bean, action-mapping, etc. items and see if that makes any difference. If that fixes it, the chances are there's a bug in the 1.1 config file loading. The other thing you could try would be upgrading to 1.2.7 to see if you get the same problem there.

L.

Kam Lung Leung wrote:
Hi,
I have not been able to figure out why I have the following exception from tomcat:
StandardContext[/ClientComponentTier]: Servlet /ClientComponentTier threw 
load() exception
javax.servlet.UnavailableException: Parsing error processing resource path  
/WEB-INF/struts-config-client.xml

The struts-config.xml and the struts-config-client.xml files contain
minimum decleration that are listed in this email.

Any help is greagly appreciated.

Kam Lung Leung

********************  debug information ********************
 2005-09-17 10:43:40 WebappLoader[/ClientComponentTier]: Deploy JAR 
/WEB-INF/lib/xercesImpl.jar to /usr/local/catalina/webapps/ClientCom
ponentTier/WEB-INF/lib/xercesImpl.jar
2005-09-17 10:43:41 StandardManager[/ClientComponentTier]: Seeding random 
number generator class java.security.SecureRandom
2005-09-17 10:43:41 StandardManager[/ClientComponentTier]: Seeding of random 
number generator has been completed
2005-09-17 10:43:42 
StandardWrapper[/ClientComponentTier:AlertClientActionServet]: Marking servlet 
AlertClientActionServet as unavailab
le
2005-09-17 10:43:42 StandardContext[/ClientComponentTier]: Servlet 
/ClientComponentTier threw load() exception
javax.servlet.UnavailableException: Parsing error processing resource path  
/WEB-INF/struts-config-client.xml
        at 
org.apache.struts.action.ActionServlet.handleConfigException(ActionServlet.java:1035)
        at 
org.apache.struts.action.ActionServlet.parseModuleConfigFile(ActionServlet.java:1014)
        at 
org.apache.struts.action.ActionServlet.initModuleConfig(ActionServlet.java:955)
        at org.apache.struts.action.ActionServlet.init(ActionServlet.java:470)
        at javax.servlet.GenericServlet.init(GenericServlet.java:256)
        at 
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:935)
        at 
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:823)
        at 
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3427)
        at 
org.apache.catalina.core.StandardContext.start(StandardContext.java:3628)
        at 
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:821)
        at 
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595)
        at 
org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:307)
        at org.apache.catalina.core.StandardHost.install(StandardHost.java:788)
        at 
org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:492)
        at 
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:400)
        at org.apache.catalina.startup.HostConfig.start(HostConfig.java:718)
        at 
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:358)
        at 
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:166)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1196)
        at org.apache.catalina.core.StandardHost.start(StandardHost.java:754)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
        at 
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:363)
        at 
org.apache.catalina.core.StandardService.start(StandardService.java:497)
        at 
org.apache.catalina.core.StandardServer.start(StandardServer.java:2190)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:512)
        at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
        at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)

*****************    web.xml   ****************************************
<web-app>
  <!-- Standard Action Servlet Configuration (with debugging) -->
  <servlet>
    <servlet-name>AlertClientActionServet</servlet-name>
    <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-config-client.xml</param-value>
    </init-param>
    <init-param>
      <param-name>debug</param-name>
      <param-value>0</param-value>
    </init-param>
    <init-param>
      <param-name>detail</param-name>
      <param-value>0</param-value>
    </init-param>
    <load-on-startup>1</load-on-startup>
  </servlet>


  <servlet-mapping>
    <servlet-name>AlertClientActionServet</servlet-name>
    <url-pattern>*.do</url-pattern>
  </servlet-mapping>

 <!-- Struts Tag Library Descriptors -->
  <taglib>
    <taglib-uri>struts-bean</taglib-uri>
    <taglib-location>/WEB-INF/tld/struts-bean.tld</taglib-location>
  </taglib>

  <taglib>
    <taglib-uri>struts-html</taglib-uri>
    <taglib-location>/WEB-INF/tld/struts-html.tld</taglib-location>
  </taglib>

  <taglib>
    <taglib-uri>struts-logic</taglib-uri>
    <taglib-location>/WEB-INF/tld/struts-logic.tld</taglib-location>
  </taglib>

  <!-- Nested Tag Library Descriptor -->
  <taglib>
    <taglib-uri>struts-nested</taglib-uri>
    <taglib-location>/WEB-INF/tld/struts-nested.tld</taglib-location>
  </taglib>

  <!-- Tiles Tag Library Descriptor -->
  <taglib>
    <taglib-uri>struts-tiles</taglib-uri>
    <taglib-location>/WEB-INF/tld/struts-tiles.tld</taglib-location>
  </taglib>
 <taglib>
    <taglib-uri>struts-template.tld</taglib-uri>
    <taglib-location>/WEB-INF/tld/struts-template.tld</taglib-location>
  </taglib>
  <!-- Template ejb LocalTag Library Descriptor -->
  <taglib>
    <taglib-uri>/ejb/HomeLocalTag</taglib-uri>
    <taglib-location>/WEB-INF/tld/ejbTagLib.tld</taglib-location>
  </taglib>

  <!-- Template ejb RemoteTag Library Descriptor -->
  <taglib>
    <taglib-uri>/ejb/HomeRemoteTag</taglib-uri>
    <taglib-location>/WEB-INF/tld/ejbTagLib.tld</taglib-location>
  </taglib>

</web-app>

************   struts-config.xml ************************************
<?xml version="1.0" encoding="ISO-8859-1" ?>

<!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-beans>
  </form-beans>

  <global-exceptions>
  </global-exceptions>

  <global-forwards>
  </global-forwards>

  <action-mappings>
  </action-mappings>

 <!-- ========== Controller Configuration ================================ -->

  <controller>
    <set-property property="inputForward" value="true"/>
  </controller>


  <!-- ========== Message Resources Definitions =========================== -->

  <message-resources
    parameter="resources.AlertClientComponent"/>
  </message-resources>


  <!-- ========== Plug Ins Configuration ================================== -->
 <plug-in className="org.apache.struts.plugins.ModuleConfigVerifier"/>

  <plug-in className="org.apache.struts.tiles.TilesPlugin" >
    <set-property property="definitions-config"
                  value="/WEB-INF/tiles-definitions.xml,
                         /WEB-INF/tiles-client-admin-definitions.xml" />
    <set-property property="definitions-parser-validate"
                  value="true" />
    <set-property property="moduleAware"
                  value="true" />
  </plug-in>

  <plug-in className="org.apache.struts.validator.ValidatorPlugIn" >
    <set-property property="pathnames"
                     value="/WEB-INF/validator-rules.xml,
                            /WEB-INF/validation.xml" />
  </plug-in>

</struts-config>

***************  struts-config-client.xml    ******************************
<?xml version="1.0" encoding="ISO-8859-1" ?>

<!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-beans>
  <!-- ========== Global Forward Definitions ============================== -->
  <global-forwards>
  </global-forwards>
  <!-- ========== Action Mapping Definitions ============================== -->
  <action-mappings>
  </action-mappings>
</struts-config>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to