I would think so.

All the other functions of retrieving data from the database and displaying it 
in datatables are working fine in my web app. It is just the bean that is 
called by the servlet, where the em is null and I cant seem to instantiate it.

The persistance.xml


  | <persistence>
  |    <persistence-unit name="NerveCentre-DS">
  |       <provider>org.hibernate.ejb.HibernatePersistence</provider>
  |       <jta-data-source>java:/NerveCentreDS</jta-data-source>
  |       <properties>
  |          <property name="hibernate.dialect" 
value="org.hibernate.dialect.HSQLDialect"/>
  |          <property name="hibernate.transaction.manager_lookup_class" 
value="org.hibernate.transaction.JBossTransactionManagerLookup"/>
  |          <property name="hibernate.transaction.flush_before_completion" 
value="true"/>
  |          <property name="hibernate.hbm2ddl.auto" value="create-drop"/>
  |          <property name="hibernate.show_sql" value="true"/>
  |       </properties>
  |    </persistence-unit>
  | </persistence>
  | 

The DS


  | <?xml version="1.0" encoding="UTF-8"?>
  | 
  | <datasources>
  |     <local-tx-datasource>
  |         <jndi-name>NerveCentreDS</jndi-name>
  |         
<connection-url>jdbc:mysql://127.0.0.1:3306/nerve-centre</connection-url>
  |         <driver-class>com.mysql.jdbc.Driver</driver-class>
  |         <user-name>root</user-name>
  |         <password></password>
  |         <exception-sorter-class-name>
  |             org.jboss.resource.adapter.jdbc.vendor.MySQLExceptionSorter
  |         </exception-sorter-class-name>
  |         <metadata>
  |             <type-mapping>mySQL</type-mapping>
  |         </metadata>
  |     </local-tx-datasource>
  | </datasources>
  | 



View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3928185#3928185

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3928185


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to