Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3323396
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T23:17:52+00:00 2026-05-17T23:17:52+00:00

I can’t understand why an embedded OpenEJB container fails at the beginning with very

  • 0

I can’t understand why an embedded OpenEJB container fails at the beginning with very un-informative message (sorry for a long log):

Running com.XXX.MyTest 
Apache OpenEJB 3.1.3    build: 20101015-05:42 
http://openejb.apache.org/
INFO - openejb.home = [skipped...] 
INFO - openejb.base = [skipped...] 
INFO - Configuring Service(id=Default Security Service, type=SecurityService, provider-id=Default Security Service)
INFO - Configuring Service(id=Default Transaction Manager, type=TransactionManager, provider-id=Default Transaction Manager) 
INFO - Found PersistenceModule in classpath: [skipped...]/target/classes 
INFO - Found EjbModule in classpath: [skipped...]/target/test-classes 
INFO - Beginning load: [skipped...]/target/classes 
INFO - AltDD persistence.xml -> file:[skipped...]/target/classes/META-INF/test.persistence.xml 
INFO - AltDD persistence.xml -> file:[skipped...]/target/classes/META-INF/test.persistence.xml 
INFO - Beginning load: [skipped...]/target/test-classes 
INFO - Configuring enterprise application: classpath.ear 
INFO - Configuring Service(id=Default Stateless Container, type=Container, provider-id=Default Stateless Container) 
INFO - Auto-creating a container for bean Finder: Container(type=STATELESS, id=Default Stateless Container) 
INFO - Configuring PersistenceUnit(name=wid, provider=org.hibernate.ejb.HibernatePersistence) 
INFO - Configuring Service(id=Default JDBC Database, type=Resource, provider-id=Default JDBC Database) 
INFO - Auto-creating a Resource with id 'Default JDBC Database' of type 'DataSource for 'abc'. 
INFO - Configuring Service(id=Default Unmanaged JDBC Database, type=Resource, provider-id=Default Unmanaged JDBC Database) 
INFO - Auto-creating a Resource with id 'Default Unmanaged JDBC Database' of type 'DataSource for 'abc'. 
INFO - Adjusting PersistenceUnit abc <jta-data-source> to Resource ID 'Default JDBC Database' from 'null' 
INFO - Adjusting PersistenceUnit abc <non-jta-data-source> to Resource ID 'Default Unmanaged JDBC Database' from 'null' 
INFO - Enterprise application "classpath.ear" loaded. 
INFO - Assembling app: classpath.ear 
Oct 28, 2010 2:00:20 PM org.hibernate.cfg.annotations.Version <clinit> 
INFO: Hibernate Annotations 3.5.6-Final 
Oct 28, 2010 2:00:20 PM org.hibernate.cfg.Environment <clinit> 
INFO: Hibernate 3.5.6-Final 
Oct 28, 2010 2:00:20 PM org.hibernate.cfg.Environment <clinit> 
INFO: hibernate.properties not found 
Oct 28, 2010 2:00:20 PM org.hibernate.cfg.Environment buildBytecodeProvider 
INFO: Bytecode provider name : javassist 
Oct 28, 2010 2:00:20 PM org.hibernate.cfg.Environment <clinit> 
INFO: using JDK 1.4 java.sql.Timestamp handling 
Oct 28, 2010 2:00:20 PM org.hibernate.annotations.common.Version <clinit> 
INFO: Hibernate Commons Annotations 3.2.0.Final 
Oct 28, 2010 2:00:20 PM org.hibernate.ejb.Version <clinit> 
INFO: Hibernate EntityManager 3.5.6-Final 
Oct 28, 2010 2:00:20 PM org.hibernate.ejb.Ejb3Configuration configure 
INFO: Processing PersistenceUnitInfo [ 
        name: abc 
        ...] 
INFO - PersistenceUnit(name=abc, provider=org.hibernate.ejb.HibernatePersistence) - provider time 328ms 
INFO - Undeploying app: classpath.ear 
ERROR - Application could not be deployed:  classpath.ear 
org.apache.openejb.OpenEJBException: Creating application failed: classpath.ear: org.apache.openejb.persistence.PersistenceUnitInfoImpl.getValidationMode()Ljavax/persistence/ValidationMode; 
        at org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:679) 
        at org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:450) 
        at org.apache.openejb.assembler.classic.Assembler.buildContainerSystem(Assembler.java:368) 
        at org.apache.openejb.assembler.classic.Assembler.build(Assembler.java:280) 
        at org.apache.openejb.OpenEJB$Instance.<init>(OpenEJB.java:125) 
        at org.apache.openejb.OpenEJB$Instance.<init>(OpenEJB.java:60) 
        at org.apache.openejb.OpenEJB.init(OpenEJB.java:271) 
        at org.apache.openejb.OpenEJB.init(OpenEJB.java:250) 
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
        [skipped...] 

Could you please help? Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T23:17:53+00:00Added an answer on May 17, 2026 at 11:17 pm

    That’s because you’re using JPA 2.0 which is AFAIK not yet supported by OpenEJB, see this thread and OPENEJB-1236. If you look closely at the Jira issue, it looks like this is fixed in the trunk. I just don’t if the subtask is blocking or if it would work with a SNAPSHOT version of the trunk.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Can you guys help me understand a concept real quick, I'm having trouble understanding
Can anyone tell me how I can display a status message like 12 seconds
can anyone help me in trying to check whether JavaScript is enabled in client
Can 2 or more equations defining a function in Haskell share the same where
can I make my own headers in HTTP request ? e.g. This is normal
Can this be done? It seems like this should be possible. In general, I
Can anyone tell me whether Helvetica is a browser base font? If so, it
Can anyone recommend a good cheat sheet for gbd? I'm experienced with windbg commands,
Can someone explain it succinctly? Can it be used with non-Silverlight clients?
Can someone recommend an up to date library for data Sanitization in PHP ?

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.