title: How to deployee jboss seam 2.1.2 IN Jboss 7
body: <blockquote>
    <p>Now I am using Jboss-seam 2.1.2 ,jsf 2.0 ,richfaces and jpa till now i
    am used jboss-as 4.2.2 now I want to migrate  jboss-as-7.1.1.Final.</p>
    
    <p>so now i am make sampleDemo project using seam-gen using jboss- seam
    2.1.2  and deplyed in jboss 7</p>
    
    <p>finally I got one issue in jboss 7 its not allow </p>
  
  <pre><code>  &lt;jta-data-source&gt;sampleDemoDatasource&lt;/jta-data-source&gt; its not allow in jboss7 changed to
  </code></pre>
  </blockquote>
  
  <p>persistence.xml</p>
  
  <pre><code> &lt;persistence xmlns="http://java.sun.com/xml/ns/persistence" 
            xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
            xsi:schemaLocation="http://java.sun.com/xml/ns/persistence&gt;
                &lt;persistence-unit name="sampleDemo" transaction-type="JTA"&gt;
     &lt;provider&gt;org.hibernate.ejb.HibernatePersistence&lt;/provider&gt;
     &lt;jta-data-source&gt;java:/sampleDemoDatasource&lt;/jta-data-source&gt;
     &lt;properties&gt;
        &lt;property name="hibernate.dialect" value="org.hibernate.dialect.OracleDialect"/&gt;
        &lt;property name="hibernate.hbm2ddl.auto" value="update"/&gt;
        &lt;property name="hibernate.show_sql" value="true"/&gt;
        &lt;property name="hibernate.format_sql" value="true"/&gt;
        &lt;property name="hibernate.default_schema" value="-"/&gt;
        &lt;!-- Only relevant if Seam is loading the persistence unit (Java SE bootstrap) --&gt;
        &lt;property name="hibernate.transaction.manager_lookup_class"     value="@transactionManagerLookupClass@"/&gt;
    &lt;/properties&gt;    
    &lt;/persistence-unit&gt;
    &lt;/persistence&gt;
  </code></pre>
  
  <p>standalone.xml </p>
  
  <blockquote>
  <pre><code>   &lt;subsystem xmlns="urn:jboss:domain:datasources:1.0"&gt;
          &lt;datasources&gt;
              &lt;datasource jta="true" jndi-name="java:/sampleDemoDatasource"
                       pool-name="sampleDemoDatasource" enabled="true"
                  use-java-context="true" use-ccm="true"&gt;
                  &lt;connection-url&gt;jdbc:oracle:thin:@localhost:1521:mobee&lt;/connection-url&gt;
                  &lt;driver&gt;oracle&lt;/driver&gt;
                  &lt;security&gt;
                      &lt;user-name&gt;manam&lt;/user-name&gt;
                      &lt;password&gt;manam&lt;/password&gt;
                  &lt;/security&gt;
              &lt;/datasource&gt;
              &lt;drivers&gt;
                  &lt;driver name="oracle" module="com.oracle.db"&gt;
                      &lt;xa-datasource-class&gt;oracle.jdbc.driver.OracleDriver&lt;/xa-datasource-class&gt;
                  &lt;/driver&gt;
              &lt;/drivers&gt;
          &lt;/datasources&gt;
      &lt;/subsystem&gt;
  </code></pre>
  </blockquote>
  
  <p>gettting ERROR is</p>
  
  <blockquote>
    <p>Listening on /127.0.0.1:9999 12:08:10,257 INFO 
    [org.jboss.as.remoting] (MSC service thread 1-2) JBAS017100: Listening
    on /127.0.0.1:4447 12:08:10,381 INFO 
    [org.apache.coyote.http11.Http11Protocol] (MSC service thread  1-2)
    Starting Coyote HTTP/1.1 12:08:10,690 INFO 
    [org.jboss.as.controller] (Controller Boot Thread) JBAS014774 :
    Service status report JBAS014775:    New missing/unsatisfied
    dependencies:
          service jboss.jdbc-driver.oracle (missing) dependents: [service jboss.data
    -source.java:/sampleDemoDatasource]</p>
    
    <p>12:08:10,919 INFO  [org.jboss.as.server.deployment] (MSC service
    thread 1-4) JBA S015876: Starting deployment of "login.page.xml"
    12:08:11,075 INFO  [org.jboss.as] (MSC service thread 1-4) JBAS015951:
    Admin con sole listening  12:08:11,080 ERROR
    [org.jboss.as] (MSC service thread 1-4) JBAS015875: JBoss AS
    7.1.1.Final "Brontes" started (with errors) in 4401ms - Started 150 of 229 servi ces (2 services failed or missing dependencies, 76 services
    are passive or on-de mand) 12:08:11,210 INFO  [org.jboss.as.server]
    (DeploymentScanner-threads - 2) JBAS018 559: Deployed "login.page.xml"</p>
    
    <p>IN seam project login.page.xml is located in /view/login.page.xml</p>
  </blockquote>