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

  • Home
  • SEARCH
  • 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 7050213
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T03:06:57+00:00 2026-05-28T03:06:57+00:00

I am trying to prototype a simple EAR with EJB 3 / Hibernate 4

  • 0

I am trying to prototype a simple EAR with EJB 3 / Hibernate 4 deployed on JBoss AS 7.

I have very simple / dumb classes:

EJB Interface:

@Local
public interface PrototypeObjectEJB {
    @TransactionAttribute(value = TransactionAttributeType.REQUIRED)
    void persist(PrototypeObject o);
}

EJB Bean:

@Stateless
public class PrototypeObjectEJBBean implements PrototypeObjectEJB
{
    private Logger logger = Logger.getLogger(PrototypeObjectEJBBean.class);

    @PersistenceContext
    EntityManager em;

    public void persist(PrototypeObject o) {
        logger.debug("[persist] start");
        em.persist(o);

        logger.debug("[persist] ends");
    }

}

My EAR structure:

EAR
+ lib
+ META-INF
  |- application.xml
  |- jboss-app.xml
  |- MANIFEST.MF
+ EJB.jar
  |- com (java classess / packages)
  |- META-INF
  |  |- MANIFEST.MF
  |- log4j.properties
  |- persistence.xml
+ Web.war

I am deploying on JBoss-as-7.1.0-CR1b, and I am getting:

10:40:42,010 INFO  [org.jboss.as.ejb3.deployment.processors.EjbJndiBindingsDeplo
ymentUnitProcessor] (MSC service thread 1-1) JNDI bindings for session bean name
d PrototypeObjectEJBBean in deployment unit subdeployment "JBossPrototype-EJB-1.
0.jar" of deployment "JBossPrototype-EAR-1.0.ear" are as follows:

        java:global/JBossPrototype-EAR-1.0/JBossPrototype-EJB-1.0/PrototypeObjec
tEJBBean!com.mythum.billing.ejb.PrototypeObjectEJB
        java:app/JBossPrototype-EJB-1.0/PrototypeObjectEJBBean!com.mythum.billin
g.ejb.PrototypeObjectEJB
        java:module/PrototypeObjectEJBBean!com.mythum.billing.ejb.PrototypeObjec
tEJB
        java:global/JBossPrototype-EAR-1.0/JBossPrototype-EJB-1.0/PrototypeObjec
tEJBBean
        java:app/JBossPrototype-EJB-1.0/PrototypeObjectEJBBean
        java:module/PrototypeObjectEJBBean

10:40:42,149 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-8) MSC0000
1: Failed to start service jboss.deployment.subunit."JBossPrototype-EAR-1.0.ear"
."JBossPrototype-EJB-1.0.jar".INSTALL: org.jboss.msc.service.StartException in s
ervice jboss.deployment.subunit."JBossPrototype-EAR-1.0.ear"."JBossPrototype-EJB
-1.0.jar".INSTALL: Failed to process phase INSTALL of subdeployment "JBossProtot
ype-EJB-1.0.jar" of deployment "JBossPrototype-EAR-1.0.ear"
        at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(Deplo
ymentUnitPhaseService.java:121) [jboss-as-server-7.1.0.CR1b.jar:7.1.0.CR1b]
        at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(Se
rviceControllerImpl.java:1824) [jboss-msc-1.0.1.GA.jar:1.0.1.GA]
        at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceCont
rollerImpl.java:1759) [jboss-msc-1.0.1.GA.jar:1.0.1.GA]
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExec
utor.java:886) [:1.6.0_24]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor
.java:908) [:1.6.0_24]
        at java.lang.Thread.run(Thread.java:662) [:1.6.0_24]
Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: JBA
S011047: Component class com.mythum.billing.ejb.PrototypeObjectEJBBean for compo
nent PrototypeObjectEJBBean has errors:
JBAS011440: Can't find a deployment unit named null in subdeployment "JBossProto
type-EJB-1.0.jar" of deployment "JBossPrototype-EAR-1.0.ear"
        at org.jboss.as.ee.component.deployers.ModuleJndiBindingProcessor$1.hand
le(ModuleJndiBindingProcessor.java:155)
        at org.jboss.as.ee.component.ClassDescriptionTraversal.run(ClassDescript
ionTraversal.java:54)
        at org.jboss.as.ee.component.deployers.ModuleJndiBindingProcessor.proces
sClassConfigurations(ModuleJndiBindingProcessor.java:148)
        at org.jboss.as.ee.component.deployers.ModuleJndiBindingProcessor.deploy
(ModuleJndiBindingProcessor.java:141)
        at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(Deplo
ymentUnitPhaseService.java:115) [jboss-as-server-7.1.0.CR1b.jar:7.1.0.CR1b]
        ... 5 more

What am I missing to set up EJB properly?
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-28T03:06:58+00:00Added an answer on May 28, 2026 at 3:06 am

    I figured out the problem with the above is that I put persistence.xml in my EJB jar, rather than the EAR’s META-INF

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

Sidebar

Related Questions

I've been trying to build a simple prototype application in Django, and am reaching
I'm trying to learn Prototype, so I threw together a simple Log-in page, with
I'm trying to create a simple prototype in JavaScript that removes a character from
I am trying to find a simple way to have a div with just
I'm trying to do a very simple button that changes color based on mouseover,
I am trying to accomplish something that seemed quite simple... I have 3 div
I'm trying to write a really simple prototype of a CMS system using ASP.Net
I am trying to get a simple prototype using ASP.NET S#arp-architecture (Sharp architecture) to
Currently I'm trying to develop some simple plot prototype and I'm struggling with some
I'm trying to get the collection prototype to have a set of default values

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.