• dinamic <datasource> in jbosscmp-jdbc.xml

    hi everybody, I have a jbosscmp-jdbc.xml file with this piece of code <jbosscmp-jdbc> java:/skyline <datasource-mapping>MS SQLSERVER2000</datasource-mapping> . . </jbosscmp-jdbc> This xml...
    Profile Photo
    last modified by nacho2004
  • Problems with using multiple EntityManagers in a service method

    Hi everyone,   I have a service which has an EntityManager reference to talk to an Oracle database. Recently we wanted to re-direct reads to a separate Oracle instance and writes to our original Oracle database....
    Profile Photo
    last modified by kdoctor
  • Caused by: javax.ejb.CreateException: Error checking if entity exists:java.sql.SQLSyntaxErrorException: ORA-01722: número inválido

    Hello I have a problem inserting data using EJB. There follows the error, and my classes until then by insertion. Does anyone know what the problem is?   ERRO:   16:35:48,011 ERROR [OrganizationUnit] Error...
    Profile Photo
    last modified by lars727
  • hibernate.hbm2ddl.auto create no longer handling serialization gt 255

    Background: This involves an EJB project that was running happily under  JBoss 6.0.0.  I'm trying to port it to WildFly 12.0.0. The crux of the problem seems to be a difference in how hibernate auto create...
    Profile Photo
    last modified by ftg314159
  • ModifyTimezone to consider daylight savings

    Hello,   How to make MODIFYTIMEZONE to consider day light savings enabled in system time?   I have the UTC-6 set and the system time is say 3:40 AM, when I use MODIFYTIMEZONE it get 'UTC' time, the time g...
    Profile Photo
    created by cm.kumar
  • Exception while processing container metadata for EJB

    I am deploying one EJB service in Jboss 5.1.0 GA but when ever i include the .ear file it gives the below mentioned error   2018-02-01 15:18:00,529 INFO  [org.jboss.ejb3.deployers.JBossASKernel] Added bean(...
    Profile Photo
    last modified by ankush.namdeo
  • JPQL: "LIKE" comparison between a numeric column and a Strin

    Good morning: I'm still a rookie with the Java Persistence API and the Java Persistence Query Language, and have a doubt about the implementation of the LIKE operator. On SQL, I use this operator to compare not only ...
    Profile Photo
    last modified by negora
  • org.jboss.util.NestedSQLException: No ManagedConnections available within configured blocking

    Hi   We are getting No Managed Connection very frequently in our application, which making the entire system down. Please help on this issue. At our end we checked in the code, all the open connection are being...
    Profile Photo
    last modified by vivekshrivastava30
  • How to use multiple JPA sources for one entity.

    Example:   I have one Customer class   There are 2 separate databases. One is progress(openedge) and one is mysql. The entity can be represented with mostly the same fields in both... But the field names ...
    Profile Photo
    last modified by ssjcory
  • JBAS016069: Error injecting persistence unit into CDI managed bean. Can't find a persistence unit named  in deployment

    Hi there,   i am trying to run an application with JBoss 7.1 under Linux. Deploying and running it under Windows works fine. Under Linux I get following Exception when trying to access my datasource:   JBA...
    Profile Photo
    last modified by nachtfalke
  • How to get result set size of DetachedCriteria

    When a DetachedCrieria has projections, how to get the row count of the DetachedCriteria result set?  For HQL:   select count(*) from (select name, sum(grade) from score group by name).   For hibern...
    Profile Photo
    last modified by javatwo
  • JBAS011445: Failed to get adapter for persistence provider using WildFly and custom PersistenceProvider

    We are in the process to migrate Java 7 and JBoss 7 to Wildfly and Java 8. In the process there is an error. 16:38:51,323 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-3) MSC000001: Failed to start service...
    Profile Photo
    last modified by martin2012
  • hbm file configuration only tablename, not databasename.tablename

    Hi, Good Afternoon,   We have two databases databasename1     |     |---------> TableName1 databasename2     |     |--------->TableName2 &...
    Profile Photo
    created by rameshchokkapu
  • Error: No ManagedConnections available within configured blocking timeout

    - JBoss 4.2.3.GA - JDK 5 Update 22 - Microsoft SQL Server 2000 - Microsoft SQL Server 2005 JDBC Driver 1.2 (compatible with MSSQL Server 2000) - Windows Server 2003   Hello, everybody! I have always had this er...
    Profile Photo
    last modified by marcos_aps
  • errors injecting EntityManager having two persistence units in persistence.xml JBoss 7.1.1

    well I have read some posts and examples around there but not a clue   the persistence.xml is <?xml version="1.0" encoding="UTF-8"?> <persistence version="2.0"    xmlns="http://java.sun.com...
    Profile Photo
    created by icarusdb
  • Hibernate and Oracle: Sequence Issue

    Guys,   I'm trying to persist a record in my Oracle database but I receive this message: “ORA-06576: not a valid function or procedure name”.   In my server.log I found the statement that Hibe...
    Profile Photo
    last modified by fabianorodrigo
  • Initialize database with data

    Since I haven't received an answer to my question. I've decided to try and find a different solution. So, I've got a Java EE application that is deployed on a JBoss server and I'm asking if there's a way to initialize...
    Profile Photo
    last modified by danielyt
  • Failed to get JPA working in JBoss 5.1.0 GA

    Hello to everybody!   I've spent two days but can't find any solution...   I'm forced to use JBoss 5.1.0 GA and try to deploy application with JPA 2.1 entities, but when I deploy it from Eclipse (Kepler), ...
    Profile Photo
    last modified by vpodlovchenko
  • War accessing a jar with JPA entities,Spring and persistence.xml in jboss-5.1.0.GA

    Hi,   I am creating a jar as DataLayerService.jar of one of my module - DataLayerService and putting it inside WEB-INF/lib directory of my application TestServiceLayer. Then I am deploying the war of TestService...
    Profile Photo
    last modified by chandan.ray
  • jboss-5.1.0.GA entity ejb 2.1 cmp query to DB every get call of function

    Jboss version:jboss-5.1.0.GA JDK version:jdk1.6.0_05 database: oracle10g linux: fedora   I am using ejb 2.1 entity bean in my application. It is container managed bean. It is accessing one of the table inform...
    Profile Photo
    last modified by webpurush