Hi Oleg,
I currently have the parameters to the ActionServlet in web.xml as
follows.
<!-- 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>2</param-value>
</init-param>
<init-param>
<param-name>detail</param-name>
<param-value>2</param-value>
</init-param>
<init-param>
<param-name>validate</param-name>
<param-value>true</param-value>
</init-param>
<load-on-startup>2</load-on-startup>
</servlet>
This seems to be as you are saying to have it. I also have the
classpath set to find the directory where my ApplicationResources.properties
file is and it contains the 'index.title' and other string property values.
Unfortunately this doesn't seem to solve the problem. Any other ideas?
Thanks,
John
-----Original Message-----
From: Oleg V Alexeev [SMTP:[EMAIL PROTECTED]]
Sent: Wednesday, June 20, 2001 10:19 AM
To: [EMAIL PROTECTED]
Subject: Re: newbie question: Missing message for key
index.title error
Hello John,
You must place string for key index.title to the your resources.
Name for the resource bundle is in parameter application in servlet
description for ActionServlet in web.xml.
Wednesday, June 20, 2001, 12:55:40 PM, you wrote:
ONJH> Hi Everyone,
ONJH> Could anyone please tell me why I am getting the following
error message
ONJH> when trying to run the 'blank' example that comes with Struts?
ONJH> Cheers,
ONJH> John
ONJH> Error 500
ONJH> An error has occured while processing
ONJH> request:http://localhost:8080/blank/index.jsp
ONJH> Message: Server caught unhandled exception from servlet [jsp]:
Missing
ONJH> message for key index.title
ONJH> Target Servlet: jsp
ONJH> StackTrace:
ONJH> Root Error-1: Missing message for key index.title
ONJH> javax.servlet.jsp.JspException: Missing message for key
index.title
ONJH> java.lang.Throwable(java.lang.String)
java.lang.Exception(java.lang.String)
ONJH> javax.servlet.jsp.JspException(java.lang.String) int
ONJH> org.apache.struts.taglib.bean.MessageTag.doStartTag() void
ONJH>
blank._index_xjsp_jspsrc_910258570._jspService(javax.servlet.http.HttpServle
ONJH> tRequest, javax.servlet.http.HttpServletResponse) void
ONJH>
org.apache.jasper.runtime.HttpJspBase.service(javax.servlet.http.HttpServlet
ONJH> Request, javax.servlet.http.HttpServletResponse) void
ONJH>
javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest,
ONJH> javax.servlet.ServletResponse) void
ONJH>
org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(javax.servlet
ONJH> .http.HttpServletRequest,
javax.servlet.http.HttpServletResponse, boolean)
ONJH> void
ONJH>
org.apache.jasper.runtime.JspServlet.serviceJspFile(javax.servlet.http.HttpS
ONJH> ervletRequest, javax.servlet.http.HttpServletResponse,
java.lang.String,
ONJH> java.lang.Throwable, boolean) void
ONJH>
org.apache.jasper.runtime.JspServlet.service(javax.servlet.http.HttpServletR
ONJH> equest, javax.servlet.http.HttpServletResponse) void
ONJH>
javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest,
ONJH> javax.servlet.ServletResponse) void
ONJH>
com.ibm.servlet.engine.webapp.StrictServletInstance.doService(javax.servlet.
ONJH> ServletRequest, javax.servlet.ServletResponse) void
ONJH>
com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service(javax.servlet.
ONJH> ServletRequest, javax.servlet.ServletResponse) void
ONJH>
com.ibm.servlet.engine.webapp.IdleServletState.service(com.ibm.servlet.engin
ONJH> e.webapp.StrictLifecycleServlet, javax.servlet.ServletRequest,
ONJH> javax.servlet.ServletResponse) void
ONJH>
com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service(javax.servlet.S
ONJH> ervletRequest, javax.servlet.ServletResponse) void
ONJH>
com.ibm.servlet.engine.webapp.ServletInstance.service(javax.servlet.ServletR
ONJH> equest, javax.servlet.ServletResponse,
ONJH> com.ibm.servlet.engine.webapp.WebAppServletInvocationEvent)
void
ONJH>
com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispatch(com.ibm.se
ONJH> rvlet.engine.webapp.ServletInstanceReference,
javax.servlet.ServletRequest,
ONJH> javax.servlet.ServletResponse,
ONJH> com.ibm.servlet.engine.webapp.WebAppServletInvocationEvent)
void
ONJH>
com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatch(javax.servle
ONJH> t.ServletRequest, javax.servlet.ServletResponse,
ONJH> com.ibm.servlet.engine.webapp.WebAppServletInvocationEvent)
void
ONJH>
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispatch(c
ONJH> om.ibm.servlet.engine.webapp.WebAppRequest,
ONJH> javax.servlet.http.HttpServletResponse, boolean) void
ONJH>
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch(javax.servlet
ONJH> .ServletRequest, javax.servlet.ServletResponse, boolean) void
ONJH>
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward(javax.servlet.
ONJH> ServletRequest, javax.servlet.ServletResponse) void
ONJH>
com.ibm.servlet.engine.srt.WebAppInvoker.handleInvocationHook(java.lang.Obje
ONJH> ct) void
ONJH>
com.ibm.servlet.engine.invocation.CachedInvocation.handleInvocation(java.lan
ONJH> g.Object) void
ONJH>
com.ibm.servlet.engine.invocation.CacheableInvocationContext.invoke(java.lan
ONJH> g.Object) void
ONJH>
com.ibm.servlet.engine.srp.ServletRequestProcessor.dispatchByURI(java.lang.S
ONJH> tring, com.ibm.servlet.engine.srp.ISRPConnection) void
ONJH>
com.ibm.servlet.engine.oselistener.OSEListenerDispatcher.service(com.ibm.ser
ONJH> vlet.engine.oselistener.api.IOSEConnection) void
ONJH>
com.ibm.servlet.engine.http_transport.HttpTransportHandler.handleConnection(
ONJH> java.net.Socket) void
ONJH>
com.ibm.servlet.engine.http_transport.HttpTransportHandler.run() void
ONJH> java.lang.Thread.run()
ONJH> Wrapped Error-2: Missing message for key index.title
ONJH> javax.servlet.ServletException: Missing message for key
index.title
ONJH> java.lang.Throwable(java.lang.String)
java.lang.Exception(java.lang.String)
ONJH> javax.servlet.ServletException(java.lang.Throwable) void
ONJH>
org.apache.jasper.runtime.PageContextImpl.handlePageException(java.lang.Exce
ONJH> ption) void
ONJH>
blank._index_xjsp_jspsrc_910258570._jspService(javax.servlet.http.HttpServle
ONJH> tRequest, javax.servlet.http.HttpServletResponse) void
ONJH>
org.apache.jasper.runtime.HttpJspBase.service(javax.servlet.http.HttpServlet
ONJH> Request, javax.servlet.http.HttpServletResponse) void
ONJH>
javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest,
ONJH> javax.servlet.ServletResponse) void
ONJH>
org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(javax.servlet
ONJH> .http.HttpServletRequest,
javax.servlet.http.HttpServletResponse, boolean)
ONJH> void
ONJH>
org.apache.jasper.runtime.JspServlet.serviceJspFile(javax.servlet.http.HttpS
ONJH> ervletRequest, javax.servlet.http.HttpServletResponse,
java.lang.String,
ONJH> java.lang.Throwable, boolean) void
ONJH>
org.apache.jasper.runtime.JspServlet.service(javax.servlet.http.HttpServletR
ONJH> equest, javax.servlet.http.HttpServletResponse) void
ONJH>
javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest,
ONJH> javax.servlet.ServletResponse) void
ONJH>
com.ibm.servlet.engine.webapp.StrictServletInstance.doService(javax.servlet.
ONJH> ServletRequest, javax.servlet.ServletResponse) void
ONJH>
com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service(javax.servlet.
ONJH> ServletRequest, javax.servlet.ServletResponse) void
ONJH>
com.ibm.servlet.engine.webapp.IdleServletState.service(com.ibm.servlet.engin
ONJH> e.webapp.StrictLifecycleServlet, javax.servlet.ServletRequest,
ONJH> javax.servlet.ServletResponse) void
ONJH>
com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service(javax.servlet.S
ONJH> ervletRequest, javax.servlet.ServletResponse) void
ONJH>
com.ibm.servlet.engine.webapp.ServletInstance.service(javax.servlet.ServletR
ONJH> equest, javax.servlet.ServletResponse,
ONJH> com.ibm.servlet.engine.webapp.WebAppServletInvocationEvent)
void
ONJH>
com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispatch(com.ibm.se
ONJH> rvlet.engine.webapp.ServletInstanceReference,
javax.servlet.ServletRequest,
ONJH> javax.servlet.ServletResponse,
ONJH> com.ibm.servlet.engine.webapp.WebAppServletInvocationEvent)
void
ONJH>
com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatch(javax.servle
ONJH> t.ServletRequest, javax.servlet.ServletResponse,
ONJH> com.ibm.servlet.engine.webapp.WebAppServletInvocationEvent)
void
ONJH>
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispatch(c
ONJH> om.ibm.servlet.engine.webapp.WebAppRequest,
ONJH> javax.servlet.http.HttpServletResponse, boolean) void
ONJH>
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch(javax.servlet
ONJH> .ServletRequest, javax.servlet.ServletResponse, boolean) void
ONJH>
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward(javax.servlet.
ONJH> ServletRequest, javax.servlet.ServletResponse) void
ONJH>
com.ibm.servlet.engine.srt.WebAppInvoker.handleInvocationHook(java.lang.Obje
ONJH> ct) void
ONJH>
com.ibm.servlet.engine.invocation.CachedInvocation.handleInvocation(java.lan
ONJH> g.Object) void
ONJH>
com.ibm.servlet.engine.invocation.CacheableInvocationContext.invoke(java.lan
ONJH> g.Object) void
ONJH>
com.ibm.servlet.engine.srp.ServletRequestProcessor.dispatchByURI(java.lang.S
ONJH> tring, com.ibm.servlet.engine.srp.ISRPConnection) void
ONJH>
com.ibm.servlet.engine.oselistener.OSEListenerDispatcher.service(com.ibm.ser
ONJH> vlet.engine.oselistener.api.IOSEConnection) void
ONJH>
com.ibm.servlet.engine.http_transport.HttpTransportHandler.handleConnection(
ONJH> java.net.Socket) void
ONJH>
com.ibm.servlet.engine.http_transport.HttpTransportHandler.run() void
ONJH> java.lang.Thread.run()
ONJH> Wrapped Error-3: Server caught unhandled exception from
servlet [jsp]:
ONJH> Missing message for key index.title
ONJH> com.ibm.servlet.engine.webapp.UncaughtServletException: Server
caught
ONJH> unhandled exception from servlet [jsp]: Missing message for
key index.title
ONJH> java.lang.Throwable(java.lang.String)
java.lang.Exception(java.lang.String)
ONJH> javax.servlet.ServletException(java.lang.String,
java.lang.Throwable)
ONJH>
com.ibm.websphere.servlet.error.ServletErrorReport(java.lang.String,
ONJH> java.lang.Throwable)
ONJH>
com.ibm.servlet.engine.webapp.WebAppErrorReport(java.lang.String,
ONJH> java.lang.Throwable)
ONJH>
com.ibm.servlet.engine.webapp.UncaughtServletException(java.lang.String,
ONJH> java.lang.Throwable) void
ONJH>
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispatch(c
ONJH> om.ibm.servlet.engine.webapp.WebAppRequest,
ONJH> javax.servlet.http.HttpServletResponse, boolean) void
ONJH>
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch(javax.servlet
ONJH> .ServletRequest, javax.servlet.ServletResponse, boolean) void
ONJH>
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward(javax.servlet.
ONJH> ServletRequest, javax.servlet.ServletResponse) void
ONJH>
com.ibm.servlet.engine.srt.WebAppInvoker.handleInvocationHook(java.lang.Obje
ONJH> ct) void
ONJH>
com.ibm.servlet.engine.invocation.CachedInvocation.handleInvocation(java.lan
ONJH> g.Object) void
ONJH>
com.ibm.servlet.engine.invocation.CacheableInvocationContext.invoke(java.lan
ONJH> g.Object) void
ONJH>
com.ibm.servlet.engine.srp.ServletRequestProcessor.dispatchByURI(java.lang.S
ONJH> tring, com.ibm.servlet.engine.srp.ISRPConnection) void
ONJH>
com.ibm.servlet.engine.oselistener.OSEListenerDispatcher.service(com.ibm.ser
ONJH> vlet.engine.oselistener.api.IOSEConnection) void
ONJH>
com.ibm.servlet.engine.http_transport.HttpTransportHandler.handleConnection(
ONJH> java.net.Socket) void
ONJH>
com.ibm.servlet.engine.http_transport.HttpTransportHandler.run() void
ONJH> java.lang.Thread.run()
--
Best regards,
Oleg mailto:[EMAIL PROTECTED]