• how to avoid duplicate constraints in mysql table

    Hi, we are using Mysql 5.x and JBoss 5.1.0.  We stop/start JBoss often, and found duplicate constraints, for example,  mysql> show create table Book  CONSTRAINT `FK61687183494D1F9` FOREIGN KEY (`user...
    Profile Photo
    last modified by javatwo
  • ClassCastException  JDBCStoreManager2 ->JDBCStoreManager?

    Hi,   I have set an EJB to use container configuration "cmp2.x jdbc2 pm" from standardjboss.xml which uses JDBCStoreManager2. Upon startup of the application I receive the following error:   12:04:02,089 W...
    Profile Photo
    last modified by hugbert
  • PersistenceContextType.EXTENDED and Transactions

    JBoss 5.1 JPA 1   The EXTENDED pattern of coding appears to be the model that fits my needs, but I'm having problems finding reference material for it that makes sense and works. As I understand it, every comma...
    Profile Photo
    last modified by brandx
  • EntityBean in sync with underlying table data

    Looking for some help to figure-out this issue:   Description: We have an entitybean which has a custom method that uses datasource to execute a select query to retrieve a set of values from the table. There is...
    Profile Photo
    last modified by sat.ena
  • JPA 2 support in JBoss

    I am extremely frustrated with the support (or lack of) for JPA 2 in JBoss.   I just can't get my JPA 2 + Spring 3  + hibernate application to deploy in JBoss  - JBoss 5.1 is just too rigid to support ...
    Profile Photo
    last modified by rajan11
  • Unable to build EntityManagerFactory with netbeans

    hello,   my problem concerns the link between an EJB session 3.0 and a persistence layer : JPA entities.   I use fedora 14, the computer's name is "vetiver" (name that I use for mysql e.g. in the "host" pr...
    Profile Photo
    last modified by lolveley
  • Persistence unit doesn't start but no exception

    Hi,   I have a persistence unit that worked before but after some restructuring it won't start anymore.   The log says it is starting the persistence unit, then loads the entities but the starting does not...
    Profile Photo
    last modified by thomasgo
  • Problem auto creating table

    I'm getting these errors while deploying a bean that has a persistence unit (edited names of classes, fields): 15:00:33,636 INFO  [SchemaExport] Running hbm2ddl schema export 15:00:33,636 INFO  [SchemaExpor...
    Profile Photo
    last modified by gvalenc
  • JPA annotation best practice

    Hello,   What are the best practice on using JPA annotations?   Which way is the most common used?   1. on fields 2. on getter methods   Any ideas?   Thanks.
    Profile Photo
    last modified by runner1
  • duplicate persistence unit in same EAR

    I have an EAR with multiple JARs.  There are two persistence.xml files that have the same persistence unit name.  These PUs are showing up twice in the persistence units section of jmx-console (jboss 4.2.x)....
    Profile Photo
    last modified by asookazian
  • hibernate-mapping ClassNotFoundException

    Hello,   the deployment of a web project with a hibernate-mapping runs into a ClassNotFoundException   2010-09-11 10:15:41,575 ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] (HDScanner...
    Profile Photo
    last modified by danwin
  • cannot override persistence unit property in JBoss 6M5

    I want to override the datasource specfied in persistence.xml.   Persistence.createEntityManagerFactory(<PU name>, <map>) is returning null.   <map> contains javax.persistence.nonJtaDataS...
    Profile Photo
    created by llraj
  • can I use same persistence unit name in multiple wars?

    I have 2 wars that use the same PU name in their respective persistence.xml. This works in Glassfish v2.1.1 and v3 however I get a component already exists error in JBoss 5.1.0GA   The first war is deployed succ...
    Profile Photo
    last modified by llraj
  • Not binding factory to JNDI, no JNDI name configured

    hello, i cant seem to get my jndi name bound, i've read in various searches that i need to adjust a hibernate xml file, but my jboss (4.0.5) does not have a hibernate folder, i'm using ejb3 with annotations and oracl...
    Profile Photo
    last modified by jihnd
  • Getting a "MySQLSyntaxErrorException" on deploy

    The specific error, when I deploy my WAR is:   Caused by: com.mysql.jdbc.exceptions.MySQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version...
    Profile Photo
    last modified by brandx
  • TwoPhaseCoordinator.beforeCompletion - failed for null

    Hi We really need your help!   The situation: Bean A is stateless Bean B is an MDB with @TransactionAttribute(TransactionAttributeType.NOT_SUPPORTED) on class level.   Bean A sends bean B a message. Bea...
    Profile Photo
    last modified by mda_dk
  • Error with IoC of EntityManager and JBoss Embedded

    I´m am developping an application with EJB 3.0. I am trying to use JBoss Embedded to test the code, but when running the test, the "em" (EntityManager) is not injected. Any idea about what is occurring? Thank ...
    Profile Photo
    last modified by gugawag
  • JBoss 5.1 Shared persistence unit issue

    Hello.  I am in the process of upgrading my server from Jboss 4.3 to Jboss 5.1.  However, when I try to migrate all my current apps over (1 Seam War, 2 separate EJBs), I am getting an error with how my persi...
    Profile Photo
    last modified by srtielke
  • New Features IN JPA 2.0

    Hello,   Why we use MetaModel Api while we have the magnificent new Criteria API? Could you please give more details or use case of the new locking modes? When we use the new Cache  (Level 2) , does the prov...
    Profile Photo
    created by java_mojito
  • Hibernate set table name dynamically at runtime

    Hello, this is my first project using Hibernate so I have very little  experience but also haven't found the solution to this on Google, I see a  lot of posts asking this same question, but never any clear a...
    Profile Photo
    created by kaotic101