Hi, I upgrade my struts 1.1 files to struts 1.2.7. When I used struts 1.1 , I can get a connection with DataSource in struts-config.xml like that codes: struts-config.xml ---------------------------- <data-source key="db1"> <set-property property="driverClass" value="oracle.jdbc.driver.OracleDriver"/> <set-property property="url" value="jdbc:oracle:thin:@xxx.xxx.xxx.xxx:1521:mydb"/> <set-property property="maxCount" value="5"/> <set-property property="minCount" value="1"/> <set-property property="user" value="user"/> <set-property property="password" value="pass"/> </data-source> in java files ---------------- ServletContext context = servlet.getServletContext(); DataSource dataSource = (DataSource) context.getAttribute("db1"); But now, I cant get any connection with the codes above. Now I am using this codes in excute() method (new codes) ---------------------------------- dataSource = getDataSource(request,"db1"); connection = dataSource.getConnection(); It doesnt work and give it an error message: 503 Service Unavailable Servlet error: Initializing application data source db1 Any ideas? Thanks, Erol
__________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com