I'm seeing:

2002-03-18 16:28:09 - /struts-SACT: action: init
2002-03-18 16:28:09 - /struts-SACT: action: Loading application resources
from resource ApplicationResources
2002-03-18 16:28:09 - /struts-SACT: action: Initializing configuration from
resource path /WEB-INF/struts-config.xml
2002-03-18 16:28:11 - /struts-SACT: action: Process servletName=action,
urlPattern=*.do
2002-03-18 16:28:11 - /struts-SACT: action: Mapping for servlet 'action' =
'*.do'

I don't know if the log file says this whether it is successful or not in
loading the file.

You may need to "up" the debug level from within your web.xml file.  See
below... (this will increase the amount of detail in your server's log file)

<web-app>
   <!-- Standard Action Servlet Configuration (with debugging) -->
   <servlet>
      <servlet-name>action</servlet-name>
      <servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
      <init-param>
         <param-name>application</param-name>
         <param-value>ApplicationResources</param-value>
      </init-param>
      <init-param>
         <param-name>config</param-name>
         <param-value>/WEB-INF/struts-config.xml</param-value>
      </init-param>
      <init-param>
         <param-name>debug</param-name>
         <param-value>6</param-value>
      </init-param>
.... Bla bla bla

Also check that you are referencing the file by it's correct name.  I
noticed you said "applicationresource.properties" in your message.
Therefore if it's stored in the /classes directory (not a subdirectory),
then the relevant web.xml excerpt should be

<init-param>
         <param-name>application</param-name>
         <param-value>applicationresource</param-value>
</init-param>

If this fails, then there may be an error in the file.

Hope this helps,

Lindsay

 -----Original Message-----
From:   Steven Dahlin [mailto:[EMAIL PROTECTED]] 
Sent:   19 March 2002 15:52
To:     [EMAIL PROTECTED]
Subject:        applicationresource.properties

How do I know if an applicationresource.properties file can be read?  I have

an applicationresource.properties file present in the WEB-INF/classes 
directory, but the messages are not being found.  Someone mentioned that the

log files would have a clue but I cannot find any indications in any of the 
log files that the file was found.  What "specifically" should I be seeing.

Thanks,
Steve



_________________________________________________________________
Send and receive Hotmail on your mobile device: http://mobile.msn.com


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

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

Reply via email to