Hi, My struts application is installed on a WebSphere Application Server. AppServer and OS is installed in english language version. In the struts application I'm setting the locale to german, for formatting date and time values and saving to database - it works fine so far. After rebooting the server (all installed applications will be restarted), I get an error message when saving datetime values to database: Date/Timeformat is not valid. So the application is not working, despite of locale is set correctly.
If I restart the single application in the WebSphere Administratior Console it works again. This problem appears only if server/os language and locale I'm setting are different. Im setting the locale like this: Locale.setDefault(new Locale("de","DE","EURO")); Locale loc = new Locale("de","DE","EURO"); VSApplicationContext.setLocale(loc); The date-Fields look like this <input type="text" name="rentObjTransactWB.planCheckInDate" value="<bean:write name="rentInfoForm" property="rentObjTransactWB.planCheckInDate" bundle="format" formatKey="format.shortDate"/>"> and the Resource contains the key format.shortDate=dd.MM.yyyy Using: IBM WebSphere Application Server for Network Deployment, 5.0.2.4 JDK Version: 1.4.2_06-b03 Struts 1.1 Versata Struts SystemOut.log [9/7/05 14:56:14:156 CEST] da6e2e5 WebGroup I SRVE0180I: [Online Reservierung] [/OnlineReservierung] [Servlet.LOG]: [SEVERE] (2005-09-07 14:56:14 CEST com.versata.vstruts.struts.action.VLSStandardAction handleException) Handling exception; forward alias = "saveAllFailure", exception message = "DataSource "rentObjTransactDS" cannot parse "08.09.2005" as a valid DATE for field "PlanCheckInDate" (using Format instance stored under key "rentInfoForm.rentObjTransactWB.planCheckInDate")" [9/7/05 14:56:14:156 CEST] da6e2e5 WebGroup I SRVE0181I: [Online Reservierung] [/OnlineReservierung] [Servlet.LOG]: [SEVERE] (2005-09-07 14:56:14 CEST com.versata.vstruts.struts.action.VLSStandardAction handleException) Created ActionError for IllegalArgumentException; key = "vls.error.global", exception message = "An exception was encountered while updating data" : java.lang.IllegalArgumentException: An exception was encountered while updating data at com.versata.vstruts.model.BeanModel.updateDataState(BeanModel.java:423) at com.versata.vstruts.struts.action.VLSStandardAction.dsSaveAll(VLSStandardAction.java:770) Thanks for help Silvija