Hi ! I'm starting to look at Turbine framework: I'm a novice so I apologize for dummy questions ;^) I downloaded the Apache-Turbine-20000721.tgz snapshot, installed Ant, configured and used the build script to make turbine and its jar archive. I have found several errors (some of them occured for missing packages from CLASSPATH, others for the code itself, IMHO), so I decided to take turbine.jar from the latest JetSpeed build (turbine-2.0.jar revision 1.14) http://www.working-dogs.com/jetspeed/cvsweb/index.cgi/jetspeed/lib/turbine-2 .0.jar I configured Turbine's and JServ's config file and I tried to log on on the default "log" screen http://my-server/servlet/Turbine/ The log screen appeared correctly, asking for login and pwd For dbms (on a WinNT machine), I'm using Access and an ODBC datasource (called 'turbine'); I also used the Access' db file found in the source directory (Turbine-AccessY2K.mdb) The datasource's username and pwd are 'dbUser' and 'dbPass' (defaulth authorization). Turbine config file (TurbineResources.properties) uses the JdbcOdbc driver: #### ODBC bridge database.default.driver=sun.jdbc.odbc.JdbcOdbcDriver database.default.url=jdbc:odbc:turbine database.default.username=dbUser database.default.password=dbPass The log on screen works correctly for invalid user/pwd; but if I use "turbine" and "turbine" for (login/passwd), like the default data in the db, the following error appears: --------- cut here ------------------------------------------------------------- There has been an error! Please review the exception below for more information. Get/Post Data: screen = DefaultScreen password = turbine action = LoginUser submit = Login username = turbine The exception is: java.sql.SQLException: ResultSet is closed at sun.jdbc.odbc.JdbcOdbcResultSet.checkOpen(JdbcOdbcResultSet.java:6336) at sun.jdbc.odbc.JdbcOdbcResultSet.clearWarnings(JdbcOdbcResultSet.java:1694) at sun.jdbc.odbc.JdbcOdbcResultSet.close(JdbcOdbcResultSet.java:1415) at com.workingdogs.village.DataSet.close(DataSet.java:340) at org.apache.turbine.om.peer.BasePeer.doUpdate(BasePeer.java:1222) at org.apache.turbine.om.peer.BasePeer.doUpdate(BasePeer.java:1129) at org.apache.turbine.om.user.peer.TurbineUserPeer.doUpdate(TurbineUserPeer.jav a:307) at org.apache.turbine.om.user.TurbineUser.updateLastLogin(TurbineUser.java:513) at org.apache.turbine.modules.actions.LoginUser.doPerform(LoginUser.java:105) at org.apache.turbine.modules.Action.perform(Action.java:77) at org.apache.turbine.modules.ActionLoader.exec(ActionLoader.java:111) at Turbine.doGet(Turbine.java:268) at Turbine.doPost(Turbine.java:368) at javax.servlet.http.HttpServlet.service(HttpServlet.java:521) at javax.servlet.http.HttpServlet.service(HttpServlet.java:588) at org.apache.jserv.JServConnection.processRequest(JServConnection.java:314) at org.apache.jserv.JServConnection.run(JServConnection.java:188) at java.lang.Thread.run(Thread.java:484) java.sql.SQLException: ResultSet is closed --------- cut here ------------------------------------------------------------- I don't know if the 'login screen' is only an example or it's a complete 'application'. To see if Turbine was correctly installed/builded, I compiled the HelloWorld example from the "getting-started.html" documentation; I made the right directory structure on my servlet repository, and I put the HelloWorld.class on my 'screen' subdir. I set the HelloWorld screen like the default one (instead of Login screen), and it worked ... so I'm thinking the problem si about the db access (IMHO). Any suggestion / resource (a small db-access example ...) ?? Thanks in advance, Luca Fossato ------------------------------------------------------------ To subscribe: [EMAIL PROTECTED] To unsubscribe: [EMAIL PROTECTED] Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/> Problems?: [EMAIL PROTECTED]
