[jboss-cvs] jboss-seam/examples/hibernate2 ...
Michael Yuan
michael.yuan at jboss.com
Fri Dec 1 18:57:22 EST 2006
User: myuan
Date: 06/12/01 18:57:22
Modified: examples/hibernate2 build.xml readme.txt
Log:
make WL and GF both work ...
Revision Changes Path
1.6 +4 -1 jboss-seam/examples/hibernate2/build.xml
(In the diff below, changes in quantity of whitespace are not shown.)
Index: build.xml
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/examples/hibernate2/build.xml,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -b -r1.5 -r1.6
--- build.xml 30 Nov 2006 04:43:15 -0000 1.5
+++ build.xml 1 Dec 2006 23:57:22 -0000 1.6
@@ -207,9 +207,11 @@
<include name="ajax4jsf.jar" />
<include name="oscache-2.3.2.jar" />
</lib>
+ <!--
<lib dir="${applib}/mc">
<include name="*.jar" />
</lib>
+ -->
<lib dir="${lib}">
<include name="myfaces-api-1.1.4.jar" />
<include name="myfaces-impl-1.1.4.jar" />
@@ -239,10 +241,10 @@
</fileset>
<fileset dir="${resources}">
<include name="seam.properties" />
- <include name="import.sql" />
</fileset>
<fileset dir="${resources}/glassfish">
<include name="hibernate.cfg.xml" />
+ <include name="import.sql" />
</fileset>
</jar>
@@ -280,6 +282,7 @@
</lib>
<classes dir="${resources}/glassfish">
<include name="log4j.xml" />
+ <include name="GlassfishDerbyDialect.class" />
</classes>
<fileset dir="${view}"/>
</war>
1.2 +10 -2 jboss-seam/examples/hibernate2/readme.txt
(In the diff below, changes in quantity of whitespace are not shown.)
Index: readme.txt
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/examples/hibernate2/readme.txt,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- readme.txt 30 Nov 2006 04:43:15 -0000 1.1
+++ readme.txt 1 Dec 2006 23:57:22 -0000 1.2
@@ -2,7 +2,7 @@
It can be deployed in JBoss AS 4.x, WebLogic, Glassfish, Tomcat without
the EJB3 container.
-JBoss AS 4.0.5 (no EJB3):
+JBoss AS 4.0.5 (with or without EJB3):
* Install JBoss AS 4.0.5 with the default J2EE profile
* ant jboss
* Deploy build/jboss-seam-hibernate.war
@@ -12,7 +12,7 @@
WebLogic 9.2:
* Install WebLogic 9.2
* ant weblogic
- * Start WebLogic
+ * Start the WebLogic "examples" server
* Load the admin console http://localhost:7001/console/
* Deploy build/jboss-seam-hibernate.war
* Access the app at http://localhost:7001/jboss-seam-hibernate/
@@ -32,3 +32,11 @@
* Deploy build/jboss-seam-hibernate.war as Web App
* Access the app at http://localhost:8080/jboss-seam-hibernate/
+NOTES TO GLASSFISH:
+ In order for the app to work out of the box with Glassfish, we have
+ used the Derby (i.e., Java DB) database in Glassfish. However,
+ we strongly recommend you to use a non-Derby data source (e.g., HSQL
+ is a much better embeded DB) if possible. The
+ WEB/classes/GlassfishDerbyDialect.class is a special hack to get around
+ a Derby bug in Glassfish TM. You must use it as your Hibernate dialect
+ if you were to use Derby with Glassfish.
More information about the jboss-cvs-commits
mailing list