Thanks. I will try your suggestions.

I have already tried using the default properties file an dthat didnt do
anything.  I have checked my locale picker is returning a valid locale but I
will turn it off and see what happens, I susepct nothing.  The error appears
to be coming from java.util.ResourceBundle.getBundle (see stack trace
below).  Which suggests to me that it can't find the properties file.  Also
as you can see it spots the correct properties file to use and I have made
sure there is a default one there with no locale to fail safe.

Elsewhere in my code I load other properties files that are in the same
directory and that works fine.  Also I have checked the files are in
WEB-INF/classes and they are.

java.util.MissingResourceException: Could not find the form field resource
bundle needed by Stripes. This almost certainly means that a properties file
called 'fieldlabels.properties' could not be found in the classpath. This
properties file is needed to lookup form field names. Please ensure the file
exists in WEB-INF/classes or elsewhere in your classpath.
        at java.util.ResourceBundle.throwMissingResourceException(Unknown 
Source)
        at java.util.ResourceBundle.getBundleImpl(Unknown Source)
        at java.util.ResourceBundle.getBundle(Unknown Source)
        at
net.sourceforge.stripes.localization.DefaultLocalizationBundleFactory.getFormFieldBundle(DefaultLocalizationBundleFactory.java:113)
        at
net.sourceforge.stripes.localization.LocalizationUtility.getLocalizedFieldName(LocalizationUtility.java:66)
        at
net.sourceforge.stripes.tag.InputTagSupport.getLocalizedFieldName(InputTagSupport.java:269)
        at
net.sourceforge.stripes.tag.InputTagSupport.getLocalizedFieldName(InputTagSupport.java:238)
        at
net.sourceforge.stripes.tag.InputButtonSupportTag.doEndInputTag(InputButtonSupportTag.java:75)
        at
net.sourceforge.stripes.tag.InputTagSupport.doEndTag(InputTagSupport.java:442)
        at
org.apache.jsp.jsp.enduser.Login_jsp._jspx_meth_s_005fsubmit_005f0(Login_jsp.java:597)
        at
org.apache.jsp.jsp.enduser.Login_jsp._jspx_meth_s_005fform_005f0(Login_jsp.java:468)
        at
org.apache.jsp.jsp.enduser.Login_jsp._jspx_meth_s_005flayout_002dcomponent_005f3(Login_jsp.java:393)
        at
org.apache.jsp.jsp.enduser.Login_jsp._jspx_meth_s_005flayout_002drender_005f0(Login_jsp.java:188)
        at org.apache.jsp.jsp.enduser.Login_jsp._jspService(Login_jsp.java:106)
        at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
        at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
        at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
        at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646)
        at
org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:436)
        at
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374)
        at
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302)
        at
net.sourceforge.stripes.action.ForwardResolution.execute(ForwardResolution.java:110)
        at
net.sourceforge.stripes.controller.DispatcherHelper$7.intercept(DispatcherHelper.java:483)
        at
net.sourceforge.stripes.controller.ExecutionContext.proceed(ExecutionContext.java:158)
        at
net.sourceforge.stripes.controller.HttpCacheInterceptor.intercept(HttpCacheInterceptor.java:99)
        at
net.sourceforge.stripes.controller.ExecutionContext.proceed(ExecutionContext.java:155)
        at
net.sourceforge.stripes.controller.BeforeAfterMethodInterceptor.intercept(BeforeAfterMethodInterceptor.java:113)
        at
net.sourceforge.stripes.controller.ExecutionContext.proceed(ExecutionContext.java:155)
        at
net.sourceforge.stripes.controller.ExecutionContext.wrap(ExecutionContext.java:74)
        at
net.sourceforge.stripes.controller.DispatcherHelper.executeResolution(DispatcherHelper.java:477)
        at
net.sourceforge.stripes.controller.DispatcherServlet.executeResolution(DispatcherServlet.java:286)
        at
net.sourceforge.stripes.controller.DispatcherServlet.service(DispatcherServlet.java:170)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at
net.sourceforge.stripes.controller.StripesFilter.doFilter(StripesFilter.java:247)
        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
        at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
        at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
        at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
        at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
        at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
        at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)
        at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
        at 
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454)
        at java.lang.Thread.run(Unknown Source)


-- 
View this message in context: 
http://www.nabble.com/Can-not-get-Stripes-to-read-properties-files-tp26074042p26075724.html
Sent from the stripes-users mailing list archive at Nabble.com.


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users

Reply via email to