Can an ear in JBoss EAP contain both ejb2 and ejb3 jars?

Solution Unverified - Updated -

Issue

  • Is it supported in jboss-eap 4.3.0_CP07 to have an ejb2 jar and an ejb3 jar in the same ear?
  • There is no xml in the new ejb3 jar and it runs find when added to the deploy directory outside of the ear. 
  • Getting this error when starting:

    --- Incompletely deployed packages ---
    org.jboss.deployment.DeploymentInfo@3a862061 { url=file:/opt/app/jboss/server/all/deploy/application-1.0-SNAPSHOT.ear }
      deployer: org.jboss.deployment.EARDeployer@a1c582
      status: Deployment FAILED reason: Could not create deployment: file:/opt/app/jboss/server/gam/tmp/deploy/tmp6620205186533087626application-1.0-SNA
    PSHOT.ear-contents/ejb3-1.0-SNAPSHOT.jar; - nested throwable: (org.jboss.xb.binding.JBossXBRuntimeException: Failed to create a new SAX parser)
      state: FAILED
      watch: file:/var/lib/jboss/server/all/deploy/application-1.0-SNAPSHOT.ear
      altDD: null
      lastDeployed: 1267821281780
      lastModified: 1267821266000
      mbeans:
        jboss.j2ee:ear=application-1.0-SNAPSHOT.ear,jar=ejb3-1.0-SNAPSHOT.jar,name=JndiBootstrapBean,service=EJB3 state: Started
    
  • Unable to deploy the application which consists of EJB3 and EJB2 jar files.

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 4.x
    • 5.x
    • 6.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.