• EJB 2.x Entity Bean Deployment on AS 7

    Hallo,   Does anybody know if it is possible to deploy EJB 2.x entity beans in a JBoss 7.0.2+ application server?   Thanks Klaus
    Profile Photo
    last modified by olszowi
  • java.sql.BatchUpdateException: Lock wait timeout exceeded; try restarting transaction

    I have been fighting this problem for sometime, and have read countless forum postings and the like, but with no answer.   Using Hibernate 3, I have a VO that I create then later update.  I am using Spring ...
    Profile Photo
    created by mbabauer
  • ClassCastException with DB2 and JBoss 5.1.0 (Hibernate 3.4)

    I am getting a ClassCastException when pointing my application server (JBoss 5.1.0.GA) against DB2. When using it with other databases this problem does not occur. The problem is caused by me expecting a number object...
    Profile Photo
    last modified by ejb3workshop
  • invalid OCI operation

    I am currently using JBoss5.1.0, Hibernate, and Oracle 11i database.  The thin driver I am using is ojdbc6.jar.   Occasionally I am seeing "java.sql.SQLException: ORA-01010: invalid OCI operation”. &#...
    Profile Photo
    created by bkshih
  • @PersistenceUnit not working

    I want to use the @PersistenceUnit annotation in my app to create an application managed EntityManager             @PersistenceUnit(unitName="primary")     private...
    Profile Photo
    last modified by redmond007
  • Mutiple sessions and transactions.

    Hello All!   Can anybody point me into the right direction. I need to have 2 independant sessions while I am processing the data.   So far I had no luck, I have tried to brake a routine into 2 calls and an...
    Profile Photo
    last modified by ivanlatysh
  • Entity with @OptimisticLocking(type=OptimisticLockType.ALL) and find with actually LockModeType=OPTIMISTIC

    Does anybody know if @OptimisticLocking(type=OptimisticLockType.ALL) works at all?   Tried in AS7.0.1 and in AS6.1.0 with bundled Hibernate versions ( 4.0.0.Beta4 resp 3.6.6), but as soon as entities are looked ...
    Profile Photo
    last modified by trollfar
  • JTA vs. Non-JTA

    I'm referring to this bug on JBoss AS7: https://hibernate.onjira.com/browse/HHH-6522   The problem is I can't use JTA as I always get a NullPointerException trying to create an EntityManager object. But without ...
    Profile Photo
    last modified by patsch82
  • javax.naming.NameNotFoundException: Name 'Manager1Factory' not found in context ''

    I get the error        javax.naming.NameNotFoundException: Name 'Manager1Factory' not found in context ''     when I try to deploy my hibernate app in JBoss 7.  The line of code ...
    Profile Photo
    last modified by redmond007
  • How to detect lost database connection using injected EntityManager?

    Hi all,   I'm trying to build some reliability and robustness into an application we're running on JBoss AS 6.0.0 and part of this involves being able to handle the loss of a connection to a database on a remote...
    Profile Photo
    last modified by profinator
  • How to configure HIbernate in AS7

    Hi,   I got the following error when I deployed a WAR file based on hibernate.     23:49:15,546 INFO  [org.jboss.jpa] (MSC service thread 1-1) read persistence.xml for HousewareCategoryPU 23:49:...
    Profile Photo
    last modified by samwun9988
  • Missing file during deployment.

    Hello,   I added Hibernate Persistent in my WAR file and deployed to JBOSS AS7, but JBOSS having a problem finding my persistent unit. Here is the full log for the deployment:     15:14:23,298 INFO&#...
    Profile Photo
    last modified by samwun9988
  • stripersist example on JBoss

    Would someone who is familiar with the intricacies of JBoss and JPA be interested in trying to get this .war to work in something later than JBoss 4.2.3.GA?   Stripersist is a slick DAO layer that works with the...
    Profile Photo
    last modified by zurchman
  • JBoss 5.1 GA + JPA 1.0 + ServletContextListener - EntityManagerFactory injection

    Hi,   I've created a very simple web application consisting of ServletContextListener and 1 simple JPA Entity.  The web app gets deployed as the only WAR in an EAR.  When I start JBoss 5.1 GA with the ...
    Profile Photo
    last modified by hmburgett
  • JBoss - Persistence JPA hibernate

    Hi, i'm developed a application web with hibernate JPA, Jboss 6, Mysql, but I get the following error:   Error installing to Start: name=persistence.unit:unitName=XXXXXXXXXXXXXX#XXXXXXXX state=Create: java.la...
    Profile Photo
    last modified by faber81
  • share persistence context in different EARs

    We try to deploytwo EJB applications with a shared JPA persistence. The persistence is deployed in a separate JAR file, including a persistence.xml.   Each EAR include neither @Entity classes nor a persistence.x...
    Profile Photo
    last modified by wdfink
  • jboss6 does not find my persistence-units

    Hi,   I am trying to upgrade my application from JBoss 4.2.2 to JBoss  (Final release).   When I start the server I get errors that a stateless EJB I am using can't load due to unknown persistence con...
    Profile Photo
    created by elico.a
  • native query and mapping

    Hello,   AS: Jboss.6.0.0.Final DB: MySQL 5.1   I cannot force my simple native query with result mapping to work. I have simple test table. It looks like that: create table test_city (   ...
    Profile Photo
    created by lysy78
  • Getting started with JDO on Jboss AS7 in Seven Steps

    Getting started with JDO on Jboss AS7 in Seven Steps  Jboss as7 is the latest JavaEE6 server while Datanucleus is the greatest peristance(JDO) implementation. Integrating these two softwares is straight forward....
    Profile Photo
    last modified by gmkumar2005
  • persistence.xml : jar-file tag doesn't work with relative ur

    Hello, I'm using Jboss 4.2.1 GA and here is the structure of my .ear : xxx.ear dir (not a "packaged .ear" but a directory to be able to modify the persistence.xml very easily) which contains : one session.jar packag...
    Profile Photo
    last modified by olvin