[seam-commits] Seam SVN: r14151 - in branches/community/Seam_2_3/examples/jpa/jpa-web: src/main/resources/META-INF and 1 other directories.

seam-commits at lists.jboss.org seam-commits at lists.jboss.org
Wed Aug 17 11:01:46 EDT 2011


Author: manaRH
Date: 2011-08-17 11:01:45 -0400 (Wed, 17 Aug 2011)
New Revision: 14151

Added:
   branches/community/Seam_2_3/examples/jpa/jpa-web/src/main/webapp/WEB-INF/jboss-deployment-structure.xml
Modified:
   branches/community/Seam_2_3/examples/jpa/jpa-web/pom.xml
   branches/community/Seam_2_3/examples/jpa/jpa-web/src/main/resources/META-INF/persistence.xml
Log:
adding profile jbossas7 to JPA example to get deployment and running on JBoss AS 7 Final

Modified: branches/community/Seam_2_3/examples/jpa/jpa-web/pom.xml
===================================================================
--- branches/community/Seam_2_3/examples/jpa/jpa-web/pom.xml	2011-08-17 13:13:27 UTC (rev 14150)
+++ branches/community/Seam_2_3/examples/jpa/jpa-web/pom.xml	2011-08-17 15:01:45 UTC (rev 14151)
@@ -138,6 +138,102 @@
   
     <profiles>
         <profile>
+            <id>jbossas7</id>
+            <build>
+                <plugins>
+                    <plugin>
+                        <groupId>org.apache.maven.plugins</groupId>
+                        <artifactId>maven-war-plugin</artifactId>
+                        <configuration>
+                            <webResources>
+                                <resource>
+                                    <directory>src/main/webapp</directory>
+                                    <filtering>true</filtering>
+                                </resource>
+                            </webResources>
+                        </configuration>
+                    </plugin>
+                    <plugin>
+                        <groupId>org.jboss.as.plugins</groupId>
+                        <artifactId>jboss-as-maven-plugin</artifactId>
+                        <version>7.0.0.Final</version>
+                        <configuration>
+                            <filename>${project.build.finalName}.war</filename>
+                        </configuration>
+                    </plugin>
+                </plugins>
+            </build>
+            <dependencies>
+                <dependency>
+                    <groupId>org.slf4j</groupId>
+                    <artifactId>slf4j-log4j12</artifactId>
+                    <scope>compile</scope>
+                </dependency>
+                <dependency>
+                    <groupId>org.slf4j</groupId>
+                    <artifactId>slf4j-api</artifactId>
+                    <scope>runtime</scope>
+                </dependency>
+                <dependency>
+                    <groupId>org.hibernate</groupId>
+                    <artifactId>hibernate-entitymanager</artifactId>
+                    <scope>runtime</scope>
+                    <exclusions>
+                        <exclusion>
+                            <groupId>javax.transaction</groupId>
+                            <artifactId>jta</artifactId>
+                        </exclusion>
+                        <exclusion>
+                            <groupId>org.jpa</groupId>
+                            <artifactId>ejb3-persistence</artifactId>
+                        </exclusion>
+                        <exclusion>
+                            <groupId>javassist</groupId>
+                            <artifactId>javassist</artifactId>
+                        </exclusion>
+                        <exclusion>
+                            <groupId>dom4j</groupId>
+                            <artifactId>dom4j</artifactId>
+                        </exclusion>
+                    </exclusions>
+                </dependency>
+                <dependency>
+                    <groupId>org.hibernate</groupId>
+                    <artifactId>hibernate-validator</artifactId>
+                    <scope>compile</scope>
+                    <exclusions>
+                        <exclusion>
+                            <groupId>javax.transaction</groupId>
+                            <artifactId>jta</artifactId>
+                        </exclusion>
+                        <exclusion>
+                            <groupId>antlr</groupId>
+                            <artifactId>antlr</artifactId>
+                        </exclusion>
+                        <exclusion>
+                            <groupId>dom4j</groupId>
+                            <artifactId>dom4j</artifactId>
+                        </exclusion>
+                    </exclusions>
+                </dependency>
+                <dependency>
+                    <groupId>org.hibernate</groupId>
+                    <artifactId>hibernate-annotations</artifactId>
+                    <scope>compile</scope>
+                    <exclusions>
+                        <exclusion>
+                            <groupId>org.hibernate</groupId>
+                            <artifactId>ejb3-persistence</artifactId>
+                        </exclusion>
+                        <exclusion>
+                            <groupId>dom4j</groupId>
+                            <artifactId>dom4j</artifactId>
+                        </exclusion>
+                    </exclusions>
+                </dependency>         	        	
+            </dependencies>
+        </profile>
+        <profile>
             <id>jbossas51</id>
             <activation>
                 <activeByDefault>true</activeByDefault>

Modified: branches/community/Seam_2_3/examples/jpa/jpa-web/src/main/resources/META-INF/persistence.xml
===================================================================
--- branches/community/Seam_2_3/examples/jpa/jpa-web/src/main/resources/META-INF/persistence.xml	2011-08-17 13:13:27 UTC (rev 14150)
+++ branches/community/Seam_2_3/examples/jpa/jpa-web/src/main/resources/META-INF/persistence.xml	2011-08-17 15:01:45 UTC (rev 14151)
@@ -9,7 +9,7 @@
       <properties>
          <property name="hibernate.hbm2ddl.auto" value="create-drop"/>
          <property name="hibernate.show_sql" value="true"/>
-         <property name="hibernate.cache.provider_class" value="org.hibernate.cache.HashtableCacheProvider"/>
+<!--          <property name="hibernate.cache.provider_class" value="org.hibernate.cache.HashtableCacheProvider"/> -->
          <property name="hibernate.transaction.manager_lookup_class" value="org.hibernate.transaction.JBossTransactionManagerLookup"/>
 		 <!-- Binds the EntityManagerFactory to JNDI where Seam can look it up.
               This is only relevant when the container automatically loads the persistence unit, as is the case in JBoss AS 5. -->

Added: branches/community/Seam_2_3/examples/jpa/jpa-web/src/main/webapp/WEB-INF/jboss-deployment-structure.xml
===================================================================
--- branches/community/Seam_2_3/examples/jpa/jpa-web/src/main/webapp/WEB-INF/jboss-deployment-structure.xml	                        (rev 0)
+++ branches/community/Seam_2_3/examples/jpa/jpa-web/src/main/webapp/WEB-INF/jboss-deployment-structure.xml	2011-08-17 15:01:45 UTC (rev 14151)
@@ -0,0 +1,16 @@
+<jboss-deployment-structure> 
+   <deployment>
+	    <exclusions>
+	      <module name="javax.faces.api" slot="main"/>
+	      <module name="com.sun.jsf-impl" slot="main"/>
+	    </exclusions>
+	    <dependencies>
+	      <module name="org.apache.log4j" />
+	      <module name="org.dom4j" />
+	      <module name="org.apache.commons.logging" />
+	      <module name="org.apache.commons.collections" />
+	      <module name="javax.faces.api" slot="1.2"/>
+          <module name="com.sun.jsf-impl" slot="1.2"/>
+	    </dependencies>
+    </deployment>   
+</jboss-deployment-structure> 



More information about the seam-commits mailing list