Thanks again for all your support !
I did change the persistence.xml files but then I got this error
message.
[INFO] 14:37:14,796 DEBUG gwt-log:72 - puName: HSQLDB-HOSTED-MODE-PU
[INFO] 14:37:14,796 DEBUG gwt-log:72 - dsName: jdbc/HSQLDB-TOMCAT7-CP
[INFO] 14:37:14,796 DEBUG gwt-log:72 - set Persistence Unit name =
HSQLDB-HOSTED-MODE-PU
[INFO] 14:37:14,828 DEBUG gwt-log:72 - FileUpload Servlet
[INFO] 14:37:14,828 DEBUG gwt-log:72 - tmpDir: C:\DOCUME~1\arlejeun
\LOCALS~1\Temp\Jetty_127_0_0_1_8888_www____-fojw0f
[INFO] 14:37:14,828 DEBUG gwt-log:72 - destinationDir: C:\eclipse
\Workspace\gwtcx\gwtcx-samples\gwtcx-sample-serendipity\target\www
\files\upload
[INFO] 14:37:14,828 DEBUG gwt-log:72 - FileDownload Servlet
[INFO] 14:37:14,828 DEBUG gwt-log:72 - destinationDir: C:\eclipse
\Workspace\gwtcx\gwtcx-samples\gwtcx-sample-serendipity\target\www
\files\download
[INFO] 14:37:14,859 DEBUG JspServlet:80 - Le répertoire de travail
(scratch dir) pour le moteur de JSP est: C:\DOCUME~1\arlejeun
\LOCALS~1\Temp\Jetty_127_0_0_1_8888_www____-fojw0f\jsp
[INFO] 14:37:14,859 DEBUG JspServlet:82 - IMPORTANT: Ne pas modifier
les servlets générées
[INFO] 14:37:47,562 DEBUG gwt-log:72 - createEntityManager() - puName:
HSQLDB-HOSTED-MODE-PU
[INFO] 14:37:49,125 WARN SettingsFactory:147 - Could not obtain
connection to query metadata
[INFO] java.sql.SQLException: wrong database file version
The latest version I installed on my environment is hsqldb-2.2.5 and
I've seen that this database is not compatible with the one used in
the gwtcx\libs folder so I install the latest hsqldb.jar on my local
repository.
Then it did work just fine .. with the dashboard examples and the
calendar modules.
I'm learning a lot from your framework & tutorials which are both very
clear and instructive.
Thanks again Rob for your time !
Arnaud
On 19 sep, 22:39, Rob Ferguson <
rob.fergu...@uptick.com.au> wrote:
> Hi,
>
> There is a copy of the database in the sample's \src\main\webapp\data
> directory. When you build the sample is copied to
> \target\gwtcx-sample-serendipity-0.7.0-SNAPSHOT\data.
>
> A copy of the SQL for the sample database is generated in /target/hibernate3
> directory.
>
> You just need to update the url entry in the persistence.xml file:
>
> ->
>
> <!-- HSQLDB HOSTED MODE PU -->
> <persistence-unit name="HSQLDB-HOSTED-MODE-PU"
> transaction-type="RESOURCE_LOCAL">
> <provider>org.hibernate.ejb.HibernatePersistence</provider>
> <class>com.gwtcx.server.domain.User</class>
> <class>com.gwtcx.server.domain.Account</class>
> <class>com.gwtcx.server.domain.Address</class>
> <class>com.gwtcx.server.domain.Report</class>
> <exclude-unlisted-classes/>
> <properties>
> <property name="hibernate.dialect"
> value="org.hibernate.dialect.HSQLDialect" />
> <property name="hibernate.connection.driver_class"
> value="org.hsqldb.jdbcDriver" />
> * <property name="hibernate.connection.url"
> value="jdbc:hsqldb:file:/tools/common/tomcat-7.0.16/webapps/serendipity/data/serendipitydb;ifexists=true"
> />*
> jdbc:hsqldb:file:/tools/common/tomcat-7.0.16/webapps/serendipity/data/serendipitydb;shutdown=true
> username SA
> password
> transiso TRANSACTION_READ_COMMITTED
>
> # This file must be placed in $HSQLDB_HOME/home (e.g. C:\Users\Rob
> Ferguson).
>
> ->
>
> Cheers
> Rob
>
> > Arnaud- Masquer le texte des messages précédents -
>
> - Afficher le texte des messages précédents -