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 8481351
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T19:32:23+00:00 2026-06-10T19:32:23+00:00

My main aim is to migrate an EJB 2.x application written for WebSphere to

  • 0

My main aim is to migrate an EJB 2.x application written for WebSphere to a web application deployable for Tomcat server. But I want to this as nearly one-to-one migration.

So I set up a TomEE (apache-tomee-plus-1.0.0) and keep the configuration of the sub-directory ‘/apps’ as deployment directory.

When I put a ‘*.war’ file to the ‘/apps’ directory OpenEJB successfull unpack the archive and load it. But I see no EJB loading in the logs. I think OpenEJB ignores the ‘ejb-jar.xml’ in ‘/apps/BdbWeb/META-INF’.

Log-Snip:

INFO main OpenEJB.startup.config - Extracting jar: C:\Entwicklung\apache-tomee-plus-1.0.0\apps\BdbWeb.war
INFO main OpenEJB.startup.config - Extracted path: C:\Entwicklung\apache-tomee-plus-1.0.0\apps\BdbWeb
DEBUG main OpenEJB.options - Using default 'openejb.tempclassloader.skip=none'  Possible values are: none, annotations, enums, all or NONE or ALL
DEBUG main OpenEJB.options - Using default 'openejb.webservices.enabled=true'
DEBUG main OpenEJB.options - Using default 'tomee.jaxrs.deploy.undeclared=false'
DEBUG main OpenEJB.options - Using default 'openejb.webservices.enabled=true'
DEBUG main OpenEJB.options - Using default 'openejb.check.classloader=false'
INFO main OpenEJB.options - Using 'openejb.descriptors.output=false'
INFO main OpenEJB.options - Using 'openejb.descriptors.output=false'
INFO main OpenEJB.options - Using 'openejb.validation.output.level=VERBOSE'
INFO main OpenEJB.startup.config - Enterprise application "C:\Entwicklung\apache-tomee-plus-1.0.0\apps\BdbWeb.war" loaded.

When I add at least one Annotation (e.g. @Remote or @Stateful) to a Java class I see corresponding log entries. So OpenEJB found Annotations.

But there are many classes and a big ejb-jar.xml file! I want to avoid to manually put the correct Annotation to each class … ! So I hope you can help me to find the error.

Maybe it is a structure issue?
I have the following structure in the war file:

  • BdbWeb.war
    • pages
      • *.jsp
    • images
      • *.jpg
    • META-INF
      • ejb-jar.xml
      • MANIFEST.MF
      • openejb-jar.xml (created by hand; hoped this would help – but that’s not the case)
    • stylesheet
      • *.css
    • WEB-INF
      • classes
        • de
          • directories with the classes
        • log4j.xml
        • hibernate.cfg.xml
      • lib
        • *.jar
      • web.xml
    • index.jsp

I already set the openejb.servicemanager.enabled property in ‘system.properties’ file to true but this generated just an xml file with no entity or bean entries.

What have I to do to get the given ejb-jar.xml used by OpenEJB?

BTW: Is the self-created ‘openejb-jar.xml’ really necessary …?

  • 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-06-10T19:32:25+00:00Added an answer on June 10, 2026 at 7:32 pm

    Only a small tweak required: Java EE 7 required location for the “EJBs in .WARs” feature is WEB-INF/ejb-jar.xml

    Would be a good idea for us to check for this and issue a warning. I created a ticket for it here

    Side notes:

    • No, the openejb-jar.xml is not necessary
    • Setting openejb.servicemanager.enabled is also not necessary

    Did you see something in the documentation that indicated openejb.servicemanager.enabled was required in TomEE? If so, a pointer to the doc would be great — I’ll make sure it’s removed.

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

Sidebar

Related Questions

I am developing asp.net with c#web application. I want to have a control in
i develop a calling program in the below way. my main aim is enter
Main thread of application is doing some work. There also exists a timer, which
which column i need to use to join V$session and V$sqlarea? My main aim
my aim is to reverse an array 3,12,2,1 to 1,2,12,3. when i run this
I'm writing a jQuery plugin, the main aim is to take a select element
My aim is to make a paint type application. Thank you for your suggestions..
This question follows an existing thread on MPI_type_create_subarray and MPI_Gather . My aim is
Good day everybody, I'm beginner on C++. The aim I want to achieve is
Hi my main aim is to disable entering special characters by user after he

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.