struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ahearn, Denis" <DEN...@firepond.com>
Subject Error "Cannot find message resources under key ui" when attemptin g to subclass FormBeanConfig in struts-config.xml
Date Thu, 21 Nov 2002 17:51:27 GMT
Has anyone successfully subclassed the FormBeanConfig associated with a
<form-bean> element?

For example:
    <form-bean name="myForm" type="org.apache.struts.action.DynaActionForm"
className="mypackage.MyFormBeanConfig">
	.
	.
	.
    </form-bean>

When I try this, I get the following exception:

	javax.servlet.ServletException: Cannot find message resources under
key ui
		at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
l.java:494)
		at org.apache.jsp.logon_jsp._jspService(logon_jsp.java:280)
		at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:136)
		at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
		at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2
04)
		at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:289)
		at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
		at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
		at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
		at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
		at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:260)
		at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
		at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
		at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
		at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:191)
		at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
		at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase
.java:471)
		at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
		at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
		at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
		at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2396)
		at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
		at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
		at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
		at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
		at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172
)
		at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
		at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
		at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
		at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:174)
		at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
		at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
		at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
		at
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
		at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405)
		at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne
ction(Http11Protocol.java:380)
		at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508)
		at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:533)
		at java.lang.Thread.run(Thread.java:479)

I am using the Struts 1.1-b2, and Tomcat 4.1.  If I remove the
className="mypackage.MyFormBeanConfig" from my <form-bean> element, then my
application works fine.

Does anyone have any hints on what is causing this exception?

Thanks,
Denis

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message