struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Mitchell" <jmitc...@telocity.com>
Subject RE: Error "Cannot find message resources under key ui" when attempting to subclass FormBeanConfig in struts-config.xml
Date Thu, 21 Nov 2002 18:40:48 GMT
Apparently, you are trying to use a 'message resources under key ui' and it is
not found :/

Have you validated that it is there?

Can you post your Dyna extension?



--
James Mitchell
Software Engineer/Struts Evangelist
http://www.open-tools.org

"If you were plowing a field, which would you rather use? Two strong oxen or
1024 chickens?"
- Seymour Cray (1925-1996), father of supercomputing


> -----Original Message-----
> From: Ahearn, Denis [mailto:DENISA@firepond.com]
> Sent: Thursday, November 21, 2002 12:51 PM
> To: 'struts-user@jakarta.apache.org'
> Subject: Error "Cannot find message resources under key ui" when
> attempting to subclass FormBeanConfig in struts-config.xml
>
>
> 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
>


--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@jakarta.apache.org>


Mime
View raw message