[jboss-cvs] jboss-seam/examples/hibernate ...

Peter Muir peter at bleepbleep.org.uk
Sun Dec 23 14:53:03 EST 2007


  User: pmuir   
  Date: 07/12/23 14:53:03

  Added:       examples/hibernate           .cvsignore build-glassfish.xml
                        build-weblogic92.xml readme.txt build-tomcat55.xml
                        build-tomcat6.xml build.xml build-websphere61.xml
                        build-jboss405.xml build-jboss.xml
  Log:
  JBSEAM-2387 and tidy up library usage
  
  Revision  Changes    Path
  1.3       +0 -0      jboss-seam/examples/hibernate/.cvsignore
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: .cvsignore
  ===================================================================
  RCS file: .cvsignore
  diff -N .cvsignore
  --- /dev/null	1 Jan 1970 00:00:00 -0000
  +++ .cvsignore	23 Dec 2007 19:53:03 -0000	1.3
  @@ -0,0 +1,2 @@
  +build
  +test-output
  
  
  
  1.1      date: 2007/12/23 19:53:03;  author: pmuir;  state: Exp;jboss-seam/examples/hibernate/build-glassfish.xml
  
  Index: build-glassfish.xml
  ===================================================================
  <?xml version="1.0"?>
  
  <project name="Hibernate Booking" default="noejb.archive" basedir=".">
  
      <!-- Naming -->
      <property name="Name"                   value="The Hibernate Example for Glassfish"/>
      <property name="example.name"           value="jboss-seam-hibernate"/>
  
      <!-- resources -->
      <property name="resources.dir" value="resources-glassfish" />
  	<property name="dist.dir" value="dist-glassfish" />
  	<property name="exploded-archives.dir" value="exploded-archives-glassfish" />
         
      <!-- Libraries to include -->
      <property name="seam.ui.lib"    value="true"/>
      <property name="seam.debug.lib" value="true"/>
      <property name="facelets.lib"   value="true"/>
      <property name="richfaces.lib"   value="true"/>
  
      <import file="../build.xml"/>
  
      <fileset id="noejb.war.lib.extras" dir="${seam.dir}">
      	<!-- Seam deps -->
      	<include name="lib/javassist.jar"/>
      	<include name="lib/dom4j.jar" />
      	
      	<!-- Hibernate and deps -->
          <include name="lib/hibernate.jar"/>
      	<include name="lib/hibernate-commons-annotations.jar"/>
          <include name="lib/hibernate-annotations.jar"/>
      	<include name="lib/hibernate-entitymanager.jar"/>
      	<include name="lib/hibernate-validator.jar"/>
      	<include name="examples/jpa/lib/jboss-archive-browsing.jar" />
      	<include name="lib/jboss-common-core.jar" />
      	<include name="lib/cglib.jar"/>
      	<include name="lib/antlr.jar" />
      	<include name="lib/commons-logging.jar" />
      	<include name="lib/commons-collections.jar" />
      </fileset>
  	
  	<fileset id="noejb.war.extras" dir="${resources.dir}">
  		<include name="WEB-INF/classes/**/*" />
  	</fileset>
         
  </project>
  
  
  
  
  1.1      date: 2007/12/23 19:53:03;  author: pmuir;  state: Exp;jboss-seam/examples/hibernate/build-weblogic92.xml
  
  Index: build-weblogic92.xml
  ===================================================================
  <?xml version="1.0"?>
  
  <project name="Hibernate Booking" default="noejb.archive" basedir=".">
  
      <!-- Naming -->
      <property name="Name"                   value="The Hibernate Example for WebLogic 9.2"/>
      <property name="example.name"           value="jboss-seam-hibernate"/>
  
      <!-- resources -->
      <property name="resources.dir" value="resources-weblogic92" />
  	<property name="dist.dir" value="dist-weblogic92" />
  	<property name="exploded-archives.dir" value="exploded-archives-weblogic92" />
         
      <!-- Libraries to include -->
      <property name="seam.ui.lib"    value="true"/>
      <property name="seam.debug.lib" value="true"/>
      <property name="facelets.lib"   value="true"/>
      <property name="richfaces.lib"   value="true"/>
  
      <import file="../build.xml"/>
  
  	<fileset id="noejb.war.lib.extras" dir="${seam.dir}">
  	      <!-- Seam deps -->
  	      <include name="lib/dom4j.jar" />
  	      <include name="lib/javassist.jar" />
  
  	      <!-- Misc -->
  	      <include name="lib/jta.jar" />
  	      <include name="lib/commons-beanutils.jar" />
  	      <include name="lib/commons-digester.jar" />
  	      <include name="lib/commons-collections.jar" />
  	      <include name="lib/commons-logging.jar" />
  	      <!-- JSF (and related) implementation -->
  	      <include name="lib/jsf-api.jar" />
  	      <include name="lib/jsf-impl.jar" />
  	      <include name="lib/jstl.jar" />
  	      <include name="examples/jpa/lib/el-ri.jar" />
  	      <include name="lib/el-api.jar" />
  
  	      <!-- Hibernate and deps -->
  	      <include name="lib/hibernate.jar" />
  	      <include name="lib/hibernate-commons-annotations.jar" />
  	      <include name="lib/hibernate-annotations.jar" />
  	      <include name="lib/hibernate-entitymanager.jar" />
  	      <include name="lib/hibernate-validator.jar" />
  	      <include name="examples/jpa/lib/jboss-archive-browsing.jar" />
  	      <include name="lib/persistence-api.jar" />
  	      <include name="lib/cglib.jar" />
  	      <include name="lib/antlr.jar" />
  	    </fileset>
  	
  	<fileset id="noejb.war.extras" dir="${resources.dir}">
  		<include name="WEB-INF/classes/**/*" />
  	</fileset>
         
  </project>
  
  
  
  
  1.5       +69 -80    jboss-seam/examples/hibernate/readme.txt
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: readme.txt
  ===================================================================
  RCS file: readme.txt
  diff -N readme.txt
  --- /dev/null	1 Jan 1970 00:00:00 -0000
  +++ readme.txt	23 Dec 2007 19:53:03 -0000	1.5
  @@ -0,0 +1,71 @@
  +Seam Hibernate Example
  +=======================
  +
  +This is the Hotel Booking example implemented in Seam and Hibernate POJOs.
  +It can be deployed in JBoss AS 4.x, WebLogic, Glassfish and Tomcat without
  +the EJB3 container.
  +
  +JBoss AS 4.2.x:
  +  * Install JBoss AS with the default profile
  +  * ant jboss
  +  * Deploy dist-jboss/jboss-seam-hibernate.war
  +  * Start JBoss AS 
  +  * Access the app at http://localhost:8080/jboss-seam-hibernate/
  +
  +JBoss AS 4.0.5.GA:
  +  * Install JBoss AS with the default profile (with or without EJB3)
  +  * ant jboss405
  +  * Deploy dist-jboss/jboss-seam-hibernate.war
  +  * Start JBoss AS 
  +  * Access the app at http://localhost:8080/jboss-seam-hibernate/
  +
  +WebLogic 9.2:
  +  * Install WebLogic 9.2
  +  * ant weblogic92
  +  * Start the WebLogic "examples" server
  +  * Load the admin console http://localhost:7001/console/
  +  * Deploy dist-weblogic92/jboss-seam-hibernate.war
  +  * Access the app at http://localhost:7001/jboss-seam-hibernate/
  +
  +WebSphere 6.1: (Special thanks to Denis Forveille)
  +
  +  * Install and run WebSphere 6.1
  +  * In Application Servers -> <server> -> Web Container Settings -> Web Container -> Custom Properties, set "com.ibm.ws.webcontainer.invokefilterscompatibility" to "true"
  +  * ant websphere61
  +  * Install dist-websphere61/jboss-seam-hibernate.war and specify a context_root
  +  * From the "Enterprise Applications" list select: "jboss-seam-hibernate_war" --> "Manager Modules" --> "jboss-seam-hibernate.war" --> "Classes loaded with application class loader first", and then Apply
  +  * Start the application
  +  * Access it at http://localhost:9080/context_root/index.html
  +
  +Plain Tomcat (special thanks to Ralph Schaer)
  +  * Install Tomcat 5.5 or Tomcat 6
  +  * Copy the lib/hsqldb.jar into $TOMCAT_HOME/common/lib (Tomcat 5.5) or $TOMCAT_HOME/lib (Tomcat 6)
  +  * ant tomcat
  +  * Deploy dist-tomcat55/jboss-seam-hibernate.war or dist-tomcat6/jboss-seam-hibernate.war to $TOMCAT_HOME/webapps/jboss-seam-hibernate.war
  +  * Start Tomcat
  +  * Access the app at http://localhost:8080/jboss-seam-hibernate/
  +
  +Tomcat with embeddable JBoss (the build is the same as JBoss 4.2.0 GA WAR):
  +  * Install Tomcat
  +  * Install Embeddable JBoss
  +  * ant jboss
  +  * Deploy dist-jboss/jboss-seam-hibernate.war
  +  * Start Tomcat
  +  * Access the app at http://localhost:8080/jboss-seam-hibernate/
  +
  +Glassfish
  +  * Install Glassfish v1 UR1
  +  * ant glassfish
  +  * Start GlassFish
  +  * Load the admin console http://localhost:4848/
  +  * Deploy dist-glassfish/jboss-seam-hibernate.war as Web App
  +  * Access the app at http://localhost:8080/jboss-seam-hibernate/
  +
  +NOTES FOR GLASSFISH USERS:
  +  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 embedded 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 are using Derby with Glassfish.
  
  
  
  1.1      date: 2007/12/23 19:53:03;  author: pmuir;  state: Exp;jboss-seam/examples/hibernate/build-tomcat55.xml
  
  Index: build-tomcat55.xml
  ===================================================================
  <?xml version="1.0"?>
  
  <project name="Hibernate Booking" default="noejb.archive" basedir=".">
  
      <!-- Naming -->
      <property name="Name"                   value="The Hibernate Example for plain Tomcat 5.5"/>
      <property name="example.name"           value="jboss-seam-hibernate"/>
  
      <!-- resources -->
      <property name="resources.dir" value="resources-tomcat" />
  	<property name="dist.dir" value="dist-tomcat55" />
  	<property name="exploded-archives.dir" value="exploded-archives-tomcat55" />
         
      <!-- Libraries to include -->
      <property name="seam.ui.lib"    value="true"/>
      <property name="seam.debug.lib" value="true"/>
      <property name="facelets.lib"   value="true"/>
      <property name="richfaces.lib"   value="true"/>
  
      <import file="../build.xml"/>
  
      <fileset id="noejb.war.lib.extras" dir="${seam.dir}">
          <include name="lib/commons-beanutils.jar"/>
          <include name="lib/commons-collections.jar"/>
          <include name="lib/commons-digester.jar"/>
          <include name="lib/commons-lang.jar"/>
          <include name="lib/commons-logging.jar"/>
          <include name="lib/jsf-api.jar"/>
      	<include name="lib/jsf-impl.jar"/>
          <include name="lib/jstl.jar"/>
      	<include name="lib/dom4j.jar" />
          <include name="lib/hibernate.jar"/>
      	<include name="lib/hibernate-commons-annotations.jar"/>
          <include name="lib/hibernate-annotations.jar"/>
      	<include name="lib/hibernate-entitymanager.jar"/>
      	<include name="lib/hibernate-validator.jar"/>
          <include name="lib/javassist.jar"/>
      	<include name="lib/persistence-api.jar" />
          <include name="examples/jpa/lib/el-ri.jar"/>
      	<include name="lib/el-api.jar" />
          <include name="lib/cglib.jar"/>
          <include name="lib/jta.jar"/>
      	<include name="lib/antlr.jar" />
          <!--
          <include name="examples/hibernate2/lib/mc/*.jar"/>
          -->
      </fileset>
  	
  	<fileset id="noejb.war.extras" dir="${resources.dir}">
  		<include name="META-INF/context.xml" />
  	</fileset>
         
  </project>
  
  
  
  
  1.1      date: 2007/12/23 19:53:03;  author: pmuir;  state: Exp;jboss-seam/examples/hibernate/build-tomcat6.xml
  
  Index: build-tomcat6.xml
  ===================================================================
  <?xml version="1.0"?>
  
  <project name="Hibernate Booking" default="noejb.archive" basedir=".">
  
  	<!-- Naming -->
  	<property name="Name" value="The Hibernate Example for plain Tomcat 6.0" />
  	<property name="example.name" value="jboss-seam-hibernate" />
  
  	<!-- resources -->
  	<property name="resources.dir" value="resources-tomcat" />
  	<property name="dist.dir" value="dist-tomcat6" />
  	<property name="exploded-archives.dir" value="exploded-archives-tomcat6" />
  
  	<!-- Libraries to include -->
  	<property name="seam.ui.lib" value="true" />
  	<property name="seam.debug.lib" value="true" />
  	<property name="facelets.lib" value="true" />
  	<property name="richfaces.lib" value="true" />
  
  	<import file="../build.xml" />
  
  	<fileset id="noejb.war.lib.extras" dir="${seam.dir}">
  		<include name="lib/commons-beanutils.jar"/>
          <include name="lib/commons-collections.jar"/>
          <include name="lib/commons-digester.jar"/>
          <include name="lib/commons-lang.jar"/>
          <include name="lib/commons-logging.jar"/>
  		<include name="lib/jsf-api.jar" />
  		<include name="lib/jsf-impl.jar" />
  		<include name="lib/jstl.jar" />
  		<include name="lib/dom4j.jar" />
  		<include name="lib/hibernate.jar" />
  		<include name="lib/hibernate-commons-annotations.jar" />
  		<include name="lib/hibernate-annotations.jar" />
  		<include name="lib/hibernate-entitymanager.jar" />
  		<include name="lib/hibernate-validator.jar" />
  		<include name="lib/javassist.jar" />
  		<include name="lib/persistence-api.jar" />
  		<include name="lib/cglib.jar" />
  		<include name="lib/jta.jar" />
  		<include name="lib/antlr.jar" />
  	</fileset>
  
  	<fileset id="noejb.war.extras" dir="${resources.dir}">
  		<include name="META-INF/context.xml" />
  	</fileset>
  
  </project>
  
  
  
  
  1.19      +49 -71    jboss-seam/examples/hibernate/build.xml
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: build.xml
  ===================================================================
  RCS file: build.xml
  diff -N build.xml
  --- /dev/null	1 Jan 1970 00:00:00 -0000
  +++ build.xml	23 Dec 2007 19:53:03 -0000	1.19
  @@ -0,0 +1,54 @@
  +<?xml version="1.0"?>
  +
  +<project name="Hibernate Booking" default="jboss" basedir=".">
  +
  +   <target name="jboss" description="Build the Hibernate Booking example artifacts, and deploy to JBoss 4.2.0.GA">
  +     	<ant antfile="build-jboss.xml"/>
  +   </target>
  +	
  +	<target name="jboss.undeploy" description="Build the Hibernate Booking example artifacts, and deploy to JBoss 4.2.0.GA">
  +	     <ant antfile="build-jboss.xml" target="jbosswar.undeploy"/>
  +	</target>
  +
  +   <target name="jboss405" description="Build the Hibernate Booking example artifacts, suitable for deployment to JBoss 4.0.5.GA">
  +     	<ant antfile="build-jboss405.xml"/>
  +   </target>
  +
  +   <target name="glassfish" description="Build the Hibernate Booking example artifacts, suitable for deployment to Glassfish V2">
  +     	<ant antfile="build-glassfish.xml"/>
  +   </target>
  +
  +   <target name="weblogic92" description="Build the Hibernate Booking example artifacts, suitable for deployment to WebLogic 9.2">
  +     	<ant antfile="build-weblogic92.xml"/>
  +   </target>
  +
  +   <target name="websphere61" description="Build the Hibernate Booking example artifacts, suitable for deployment to WebSphere 6.1.0.9">
  +     	<ant antfile="build-websphere61.xml"/>
  +   </target>
  +
  +   <target name="tomcat55" description="Build the Hibernate Booking example artifacts, suitable for deployment to Tomcat 5.5">
  +     	<ant antfile="build-tomcat55.xml"/>
  +   </target>
  +
  +   <target name="tomcat6" description="Build the Hibernate Booking example artifacts, suitable for deployment to Tomcat 6">
  +     	<ant antfile="build-tomcat6.xml"/>
  +   </target>
  +
  +   <target name="clean" description="Clean up the example">
  +     	<ant antfile="build-jboss.xml" target="clean" />
  +    	<ant antfile="build-jboss405.xml" target="clean" />
  +    	<ant antfile="build-glassfish.xml" target="clean" />
  +    	<ant antfile="build-weblogic92.xml" target="clean" />
  +    	<ant antfile="build-websphere61.xml" target="clean" />
  +    	<ant antfile="build-tomcat55.xml" target="clean" />
  +    	<ant antfile="build-tomcat6.xml" target="clean" />
  +   </target>
  +
  +   <target name="all" depends="jboss, jboss405, glassfish, weblogic92, websphere61, tomcat55, tomcat6" description="Build Hibernate Booking example, for deployment to all supported application servers"/>
  +   
  +   <target name="test">
  +      <ant antfile="build-jboss.xml" target="test" />
  +   </target>
  +
  +</project>
  +
  
  
  
  1.1      date: 2007/12/23 19:53:03;  author: pmuir;  state: Exp;jboss-seam/examples/hibernate/build-websphere61.xml
  
  Index: build-websphere61.xml
  ===================================================================
  <?xml version="1.0"?>
  
  <project name="Hibernate Booking" default="noejb.archive" basedir=".">
  
  	<!-- Naming -->
  	<property name="Name" value="The Hibernate Example for WebSphere 6.1.0.9" />
  	<property name="example.name" value="jboss-seam-hibernate" />
  
  	<!-- resources -->
  	<property name="resources.dir" value="resources-websphere61" />
  	<property name="dist.dir" value="dist-websphere61" />
  	<property name="exploded-archives.dir" value="exploded-archives-websphere61" />
  
  	<!-- Libraries to include -->
  	<property name="seam.ui.lib" value="true" />
  	<property name="seam.debug.lib" value="true" />
  	<property name="facelets.lib" value="true" />
  	<property name="richfaces.lib" value="true" />
  
  	<import file="../build.xml" />
  
  	    <fileset id="noejb.war.lib.extras" dir="${seam.dir}">
          <!-- Seam deps -->
          <include name="lib/dom4j.jar" />
          <include name="lib/javassist.jar"/>
          
          <!-- Misc -->
          <include name="lib/commons-beanutils.jar"/>
      	<include name="lib/commons-digester.jar"/>
      	<include name="lib/commons-collections.jar"/>        
          <!-- JSF (and related) implementation -->
          <include name="lib/jsf-api.jar"/>
          <include name="lib/jsf-impl.jar"/>
          <include name="lib/jstl.jar"/>
          <include name="examples/jpa/lib/el-ri.jar"/>
          <include name="lib/el-api.jar" />  
          
          <!-- Hibernate and deps -->
          <include name="lib/hibernate.jar"/>
          <include name="lib/hibernate-commons-annotations.jar"/>
          <include name="lib/hibernate-annotations.jar"/>
          <include name="lib/hibernate-entitymanager.jar"/>
          <include name="lib/hibernate-validator.jar"/>
          <include name="examples/jpa/lib/jboss-archive-browsing.jar" />
          <include name="lib/persistence-api.jar" />
          <include name="lib/cglib.jar"/>
          <include name="lib/antlr.jar" /> 
      </fileset>
  
  	<fileset id="noejb.war.extras" dir="${resources.dir}">
  		<include name="WEB-INF/classes/**/*" />
  		<include name="META-INF/*.taglib.xml" />
  	</fileset>
  
  </project>
  
  
  
  
  1.1      date: 2007/12/23 19:53:03;  author: pmuir;  state: Exp;jboss-seam/examples/hibernate/build-jboss405.xml
  
  Index: build-jboss405.xml
  ===================================================================
  <?xml version="1.0"?>
  
  <project name="Hibernate Booking" default="noejb.archive" basedir=".">
  
      <!-- Naming -->
      <property name="Name"                   value="The Hibernate Example for JBoss 4.0.5"/>
      <property name="example.name"           value="jboss-seam-hibernate"/>
  
      <!-- resources -->
      <property name="resources.dir" value="resources-jboss" />
  	<property name="dist.dir" value="dist-jboss405" />
  	<property name="exploded-archives.dir" value="exploded-archives-jboss405" />
         
      <!-- Libraries to include -->
      <property name="seam.ui.lib"    value="true"/>
      <property name="seam.debug.lib" value="true"/>
      <property name="facelets.lib"   value="true"/>
      <property name="richfaces.lib"   value="true"/>
  
      <import file="../build.xml"/>
  
      <fileset id="noejb.war.lib.extras" dir="${seam.dir}">
          <include name="lib/commons-beanutils.jar"/>
          <include name="lib/commons-collections.jar"/>
          <include name="lib/commons-digester.jar"/>
          <include name="lib/commons-lang.jar"/>
          <include name="lib/commons-logging.jar"/>
          <include name="lib/jsf-api.jar"/>
          <include name="lib/jsf-impl.jar"/>
          <include name="lib/jstl.jar"/>
          <include name="lib/el-api.jar"/>
          <include name="examples/jpa/lib/el-ri.jar" />
      </fileset>
         
  </project>
  
  
  
  
  1.1      date: 2007/12/23 19:53:03;  author: pmuir;  state: Exp;jboss-seam/examples/hibernate/build-jboss.xml
  
  Index: build-jboss.xml
  ===================================================================
  <?xml version="1.0"?>
  
  <project name="Hibernate Booking" default="jbosswar.deploy" basedir=".">
  
      <!-- Naming -->
      <property name="Name"                   value="The Hibernate Example for JBoss 4.2.0.GA"/>
      <property name="example.name"           value="jboss-seam-hibernate"/>
  
      <!-- resources -->
      <property name="resources.dir" value="resources-jboss" />
  	<property name="dist.dir" value="dist-jboss" />
  	<property name="exploded-archives.dir" value="exploded-archives-jboss" />
         
      <!-- Libraries to include -->
      <property name="seam.ui.lib"    value="true"/>
      <property name="seam.debug.lib" value="true"/>
      <property name="facelets.lib"   value="true"/>
      <property name="richfaces.lib"   value="true"/>
  
      <import file="../build.xml"/>
  
  </project>
  
  
  
  



More information about the jboss-cvs-commits mailing list