Raible's Wiki
Raible Designs AppFuseHomepage- Korean - Chinese - Italian - Japanese QuickStart Guide User Guide Tutorials Other ApplicationsStruts ResumeSecurity Example Struts Menu
Set your name in
UserPreferences
Referenced by
JSPWiki v2.2.33
Hide Menu |
This is version 17.
It is not the current version, and thus it cannot be edited. 2006.08.08 - AppFuse 1.9 with Microsoft SQLServer 20001] download JDTS jarjdts jar and copy them to directory "appfuse/lib/jdts-1.2"2] Add this to "lib/lib.properties"# # JTDS SQL Server - http://jtds.sourceforge.net # jtds.version=1.2 jtds.dir=${lib.dir}/jtds-${jtds.version} jtds.jar=${jtds.dir}/jtds-${jtds.version}.jar 3] in "properties.xml" change this lines:<!-- Defaults for database.properties --> <property name="database.jar" location="${mssql.jar}"/> <property name="database.type" value="sqlserver"/> <property name="database.name" value="appfuse"/> <property name="database.host" value="localhost"/> <property name="database.username" value="sa"/> <property name="database.password" value="password"/> <!-- database URL for creating other dbs - used in db-create target --> <!--pro MSSQL nelze vytvorit databazi --> <property name="database.admin.url" value="jdbc:${database.type}://${database.host}/appfuse"/> <property name="database.admin.username" value="sa"/> <property name="database.admin.password" value="password"/> <property name="hibernate.dialect" value="org.hibernate.dialect.SybaseDialect"/> <property name="database.driver_class" value="net.sourceforge.jtds.jdbc.Driver"/> <property name="database.url" value="jdbc:${database.type}://${database.host}:1433/appfuse"/> <property name="database.show_sql" value="true"/> 4] Solving common problemsWhere should be the problem:
In my confiuration is after "ant setup-db" displayed net.sourceforge.jtds.jdbc.Driver at URL: jdbc:jtds:sqlserver://localhost:1433/appfuse 2003.11.21 - Microsoft SQLServer 2000 & AutoCommitI had problems with MSSQL and automatic transactions, the solution I have found:
2003.11.19 - AppFuse 0.9 with Microsoft SQLServer 2000I (D33nar) am having trouble running Appfuse 0.9 as well as struts resume. After successfully compiling and building Appfuse, I can start the application on tomcat and get it running, logon with tomcat/tomcat. The problem arises whenever I try modifying data, the JDBC connection performing the update never finishes and all subsequent JDBC connections are blocked by the update connection. I tried using Microsoft and weblogic drivers for JDBC, but face the same problem.. I have spent significant time and am continuing to debug the problem, but would like to hear from anyone out there who has got Appfuse or struts-resume running on SQLServer. UPDATE: I have traced the problem to JDBC auto-commit. I put a trace on the SQL sent to the server. A transaction is begun, but never committed, sometimes the driver/pool rolls it back with something like IF @@TRANCOUNT>0 ROLLBACK TRAN BEGIN TRAN I am not sure if it is
I also found that everthing works fine with auto-commit=true, which is not a solution
|