You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Darryl Nortje <Da...@astrolabegroup.com> on 2001/12/03 08:55:09 UTC

RE: struts-config not found in Websphere 3.5.2 FixPack3

Hi Jon, firstly thanks for your replies, and sorry for my late replies.
Rough weekend.
here is the excerp from strutsexample.webapp where the ActionServlet mapping
is specified and then the struts-config.xml parm is specified. Does this
answer your question?

<servlet>
      <name>action</name>
      <description>Action Servlet</description>
      <code>org.apache.struts.action.ActionServlet</code>
      <servlet-path>*.do</servlet-path>
      <autostart>true</autostart>
	<init-parameter> 
		<name>application</name> 
		<value>ApplicationResources</value> 
	</init-parameter> 
	<init-parameter> 
		<name>config</name> 
		<value>/WEB-INF/struts-config.xml</value> 
	</init-parameter> 

-----Original Message-----
From: Jon.Ridgway [mailto:Jon.Ridgway@upco.co.uk]
Sent: Friday, November 30, 2001 2:44 PM
To: 'Struts Users Mailing List'
Subject: RE: struts-config not found in Websphere 3.5.2 FixPack3


Hi,

Have you added the ActionServlet mapping into your <webapp name>.webapp
file? This mapping tells the action servlet where to find struts-config.xml.
If you have the mapping what entry do you have for the config parameter?

Jon Ridgway
www.upco.co.uk


-----Original Message-----
From: jpablo [mailto:jpablo@spcom.com.ar] 
Sent: 30 November 2001 12:30
To: Struts Users Mailing List
Subject: struts-config not found in Websphere 3.5.2 FixPack3


        I'm configuring the Struts Action servlet on WebSphere 3.5.2
with fix pack 3, but I get an exception on startup (because this
server uses loadonstartup). The servlet cant find the
/WEB-INF/struts-config.xml file,

I have the following file:
  /opt/IBMWebAS/hosts/default_host/myapp/web/WEB-INF/struts-config.xml file,
And the documen root of my web application is:
    /opt/IBMWebAS/hosts/default_host/myapp/web/

    It is ok? Where shold be placed struts-config.xml? IMHO this
config is right.. but not working. Any suggestion or tip will be
really appreciated.


This is a fragment of default_servlet_stdout.log
---cut---
[01.11.30 10:04:39:385 GMT-02:00] e82f28da ServletInstan A SRVE0048I:
Loading servlet: "action"
[01.11.30 10:04:39:885 GMT-02:00] e82f28da WebGroup      A SRVE0091I:
[Servlet LOG]: "action: init"                                 
[01.11.30 10:04:39:987 GMT-02:00] e82f28da WebGroup      A SRVE0091I:
[Servlet LOG]: "action: Loading application resources from res
ource Cuida2Resources"

[01.11.30 10:04:39:990 GMT-02:00] e82f28da WebGroup      A SRVE0091I:
[Servlet LOG]: "action: Initializing configuration from resour
ce path /WEB-INF/struts-config.xml"

[01.11.30 10:04:40:005 GMT-02:00] e82f28da ServletInstan X Uncaught init()
exception thrown by servlet {0}: {1}                     
                                 "action"

                                 javax.servlet.UnavailableException: Missing
configuration resource for path /WEB-INF/struts-config.
xml

        at
org.apache.struts.action.ActionServlet.initMapping(ActionServlet.java:1316) 
---cut---

--
Juan Pablo Villaverde
Tec. en Infraestructura de Redes
Soluciones Punto Com S.A. 
http://www.spcom.com.ar



--
To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>

--
To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>