[jboss-cvs] JBossAS SVN: r92671 - in projects/docs/enterprise/5.0/Examples/gettingstarted/seamejb3: resources/META-INF and 1 other directories.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Fri Aug 21 10:14:31 EDT 2009


Author: smarlow at redhat.com
Date: 2009-08-21 10:14:31 -0400 (Fri, 21 Aug 2009)
New Revision: 92671

Modified:
   projects/docs/enterprise/5.0/Examples/gettingstarted/seamejb3/build.xml
   projects/docs/enterprise/5.0/Examples/gettingstarted/seamejb3/resources/META-INF/ejb-jar.xml
   projects/docs/enterprise/5.0/Examples/gettingstarted/seamejb3/resources/META-INF/persistence.xml
   projects/docs/enterprise/5.0/Examples/gettingstarted/seamejb3/resources/WEB-INF/components.xml
   projects/docs/enterprise/5.0/Examples/gettingstarted/seamejb3/resources/WEB-INF/faces-config.xml
Log:
JBAS-5789 - work in progress

Modified: projects/docs/enterprise/5.0/Examples/gettingstarted/seamejb3/build.xml
===================================================================
--- projects/docs/enterprise/5.0/Examples/gettingstarted/seamejb3/build.xml	2009-08-21 13:57:34 UTC (rev 92670)
+++ projects/docs/enterprise/5.0/Examples/gettingstarted/seamejb3/build.xml	2009-08-21 14:14:31 UTC (rev 92671)
@@ -14,6 +14,7 @@
   <property name="serverlib" location="${jboss.home}/server/default/lib" />
   <property name="clientlib" location="${jboss.home}/client" />
   <property name="seamlib" location="${jboss.home}/../seam" />
+  <property name="seam.dir" value="${seamlib}" />
   <path id="lib.classpath">
     <fileset dir="${lib}" includes="*.jar"/>
     <fileset dir="${serverlib}" includes="*.jar"/>
@@ -21,7 +22,7 @@
     <fileset dir="${seamlib}" includes="*.jar"/>
     <fileset dir="${seamlib}/lib" includes="*.jar"/>
   </path>
-  
+  <import file="${seam.dir}/build/common.build.xml" /> 
   <property name="resources" location="resources" />
   
   <property name="src" location="src" />
@@ -90,8 +91,14 @@
       </metainf>
     </jar>
   </target>
+<target name="getelri">
+   <copyInlineDependencies id="elri" scope="runtime" todir="${lib.dir}">
+     <dependency groupId="javax.el" artifactId="el-ri" version="1.2" />
+   </copyInlineDependencies>
+</target>
 
-  <target name="ear">
+
+  <target name="ear" depends="getelri">
     <mkdir dir="${build.jars}"/>
 
     <ear destfile="${build.jars}/${projname}.ear"
@@ -107,6 +114,12 @@
       <fileset dir="${seamlib}/lib">
 	      <include name="el-ri.jar" />
       </fileset>
+      <fileset dir="${seamlib}/lib">
+	      <include name="jboss-el.jar" />
+      </fileset>
+      <fileset dir="${seamlib}/lib">
+	      <include name="jboss-seam.jar" />
+      </fileset>
     </ear>
   </target>
 

Modified: projects/docs/enterprise/5.0/Examples/gettingstarted/seamejb3/resources/META-INF/ejb-jar.xml
===================================================================
--- projects/docs/enterprise/5.0/Examples/gettingstarted/seamejb3/resources/META-INF/ejb-jar.xml	2009-08-21 13:57:34 UTC (rev 92670)
+++ projects/docs/enterprise/5.0/Examples/gettingstarted/seamejb3/resources/META-INF/ejb-jar.xml	2009-08-21 14:14:31 UTC (rev 92671)
@@ -1,4 +1,8 @@
-<ejb-jar>
+<?xml version="1.0" encoding="UTF-8"?>
+<ejb-jar xmlns="http://java.sun.com/xml/ns/javaee"
+         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/ejb-jar_3_0.xsd"
+         version="3.0">
   
   <assembly-descriptor>
     <interceptor-binding>

Modified: projects/docs/enterprise/5.0/Examples/gettingstarted/seamejb3/resources/META-INF/persistence.xml
===================================================================
--- projects/docs/enterprise/5.0/Examples/gettingstarted/seamejb3/resources/META-INF/persistence.xml	2009-08-21 13:57:34 UTC (rev 92670)
+++ projects/docs/enterprise/5.0/Examples/gettingstarted/seamejb3/resources/META-INF/persistence.xml	2009-08-21 14:14:31 UTC (rev 92671)
@@ -13,4 +13,3 @@
    </persistence-unit>
 </persistence>
 
-

Modified: projects/docs/enterprise/5.0/Examples/gettingstarted/seamejb3/resources/WEB-INF/components.xml
===================================================================
--- projects/docs/enterprise/5.0/Examples/gettingstarted/seamejb3/resources/WEB-INF/components.xml	2009-08-21 13:57:34 UTC (rev 92670)
+++ projects/docs/enterprise/5.0/Examples/gettingstarted/seamejb3/resources/WEB-INF/components.xml	2009-08-21 14:14:31 UTC (rev 92671)
@@ -1,12 +1,17 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<components xmlns="http://jboss.com/products/seam/components"
-            xmlns:core="http://jboss.com/products/seam/core"
-            xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-            xsi:schemaLocation=
-              "http://jboss.com/products/seam/core 
-               http://jboss.com/products/seam/core-1.1.xsd
-               http://jboss.com/products/seam/components 
-               http://jboss.com/products/seam/components-1.1.xsd">
+<components xmlns="http://jboss.com/products/seam/components" xmlns:core="http://jboss.com/products/seam/core"
+    xmlns:persistence="http://jboss.com/products/seam/persistence"
+    xmlns:security="http://jboss.com/products/seam/security" xmlns:framework="http://jboss.com/products/seam/framework"
+    xmlns:transaction="http://jboss.com/products/seam/transaction"
+    xmlns:web="http://jboss.com/products/seam/web"
+    xmlns:international="http://jboss.com/products/seam/international"
+    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+    xsi:schemaLocation="http://jboss.com/products/seam/core /Users/orb/proj/jboss/seam/trunk/src/main/org/jboss/seam/core-2.1.xsd
+                 http://jboss.com/products/seam/transaction http://jboss.com/products/seam/transaction-2.1.xsd
+                 http://jboss.com/products/seam/framework http://jboss.com/products/seam/framework-2.1.xsd
+                 http://jboss.com/products/seam/persistence http://jboss.com/products/seam/persistence-2.1.xsd
+                 http://jboss.com/products/seam/security http://jboss.com/products/seam/security-2.1.xsd
+                 http://jboss.com/products/seam/components http://jboss.com/products/seam/components-2.1.xsd">
 
   <core:init 
     jndi-pattern="seamejb3/#{ejbName}/local" 

Modified: projects/docs/enterprise/5.0/Examples/gettingstarted/seamejb3/resources/WEB-INF/faces-config.xml
===================================================================
--- projects/docs/enterprise/5.0/Examples/gettingstarted/seamejb3/resources/WEB-INF/faces-config.xml	2009-08-21 13:57:34 UTC (rev 92670)
+++ projects/docs/enterprise/5.0/Examples/gettingstarted/seamejb3/resources/WEB-INF/faces-config.xml	2009-08-21 14:14:31 UTC (rev 92671)
@@ -1,20 +1,20 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE faces-config 
-    PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.0//EN"
-    "http://java.sun.com/dtd/web-facesconfig_1_0.dtd">
-    
-<faces-config>
+<faces-config version="1.2" 
+   xmlns="http://java.sun.com/xml/ns/javaee"
+   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+   xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_1_2.xsd">
 
+  <!-- Facelets support -->
+
+  <application>
+    <view-handler>com.sun.facelets.FaceletViewHandler</view-handler>
+  </application>
+
   <!-- Select one of the three standard persistence lifecycle models for the Seam application -->
 
-  <lifecycle>
+  <!-- lifecycle>
     <phase-listener>org.jboss.seam.jsf.SeamPhaseListener</phase-listener> 
-  </lifecycle>
+  </lifecycle -->
   
-  <!-- Facelets support -->
 
-  <application>
-    <view-handler>org.jboss.seam.ui.facelet.SeamFaceletViewHandler</view-handler>
-  </application>
-
 </faces-config>




More information about the jboss-cvs-commits mailing list