0

I have a very trivial EJB3 project that I'm trying to deploy on JBoss AS 7.1.1, but am getting the following error at deploy time:

04:04:07,806 INFO  [org.jboss.as.repository] (HttpManagementService-threads - 3) JBAS014900: Content added at location /usr/servers/jboss-as-7.1.1.Final/standalone  /data/content/bf/96c04e5d7d6d2147cd1c85eb6f7cc18805dfcb/content
04:04:13,367 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-3) JBAS015876: Starting deployment of "simplecalculatorejb.ear"
04:04:13,453 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-1) JBAS015876: Starting deployment of "simplecalculatorejb.jar"
04:04:13,454 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-3) JBAS015876: Starting deployment of "lib/simplecalculatorejbcommon.jar"
04:04:13,707 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-1) JBAS015877: Stopped deployment lib/simplecalculatorejbcommon.jar in 3ms
04:04:13,708 INFO  [org.jboss.as.server] (HttpManagementService-threads - 3) JBAS015870: Deploy of deployment "simplecalculatorejb.ear" was rolled back with failure message {"JBAS014771: Services with missing/unavailable dependencies" => ["jboss.deployment.unit.\"simplecalculatorejb.ear\".PARSEjboss.deployment.subunit.\"simplecalculatorejb.ear\".\"lib/simplecalculatorejbcommon.jar\".STRUCTUREMissing[jboss.deployment.unit.\"simplecalculatorejb.ear\".PARSEjboss.deployment.subunit.\"simplecalculatorejb.ear\".\"lib/simplecalculatorejbcommon.jar\".STRUCTURE]"]}
04:04:13,715 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-2)  JBAS015877: Stopped deployment simplecalculatorejb.jar in 11ms
04:04:13,723 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-2) JBAS015877: Stopped deployment simplecalculatorejb.ear in 19ms
04:04:13,729 INFO  [org.jboss.as.controller] (HttpManagementService-threads - 3) JBAS014774: Service status report
JBAS014775:    New missing/unsatisfied dependencies:
  service jboss.deployment.subunit."simplecalculatorejb.ear"."lib/simplecalculatorejbcommon.jar".STRUCTURE (missing) dependents: [service jboss.deployment.unit."simplecalculatorejb.ear".PARSE] 

My ear looks like this:

simplecalculatorejb.ear 

 --- simplecalculatorejb.jar

 --- lib/simplecalculatorejbcommon.jar

 --- META-INF/application.xml

and application.xml looks like:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE application PUBLIC "-//Sun Microsystems, Inc.//DTD J2EE Application 1.3//EN"
    "http://java.sun.com/dtd/application_1_3.dtd">
<application>
    <display-name>simplecalculatorear</display-name>
    <module>
        <ejb>simplecalculatorejb.jar</ejb>
    </module>
    <module>
        <java>lib/simplecalculatorejbcommon.jar</java>
    </module>
</application>

Any thoughts on why this would fail like this?

Arjan Tijms
  • 37,782
  • 12
  • 108
  • 140
mindcrime
  • 657
  • 8
  • 23

1 Answers1

0

You should not include the 'supporting jar' into your application.xml. The <module><java> tags that you used are for a so-called Application Client Container.

Just remove that module declaration. /lib is already the default directory that Java EE will scan for utility jars (just like WEB-INF/lib in a war archive).

Arjan Tijms
  • 37,782
  • 12
  • 108
  • 140