I searched the archive for this problem and found some messages, but no
final solution.

I'm deploying an ear file in JBoss 2.2.1 (runs with Tomcat and Apache on
a Linux box).  When the J2EE default deployer runs, I get the following:

[J2EE Deployer Default] Deploy J2EE application:
file:/usr/local/jboss-2.2.1/deploy/myapp.ear
[J2EE Deployer Default] Create application myapp.ear
[J2EE Deployer Default] install module 
      myapp.jar
    
[J2EE Deployer Default] module 
      myapp.jar
     not found in myapp.ear
[Auto deploy] Deployment failed:file:/usr/local/jboss-2.2.1/deploy/myapp.ear
[Auto deploy] org.jboss.deployment.J2eeDeploymentException: module 
[Auto deploy]       myapp.jar
[Auto deploy]      not found in myapp.ear
[Auto deploy]   at
org.jboss.deployment.Installer.execute(Installer.java:245)
[Auto deploy]   at
org.jboss.deployment.InstallerFactory.install(InstallerFactory.java:101)
[Auto deploy]   at
org.jboss.deployment.J2eeDeployer.installApplication(J2eeDeployer.java:356)
[Auto deploy]   at
org.jboss.deployment.J2eeDeployer.deploy(J2eeDeployer.java:174)
[Auto deploy]   at java.lang.reflect.Method.invoke(Native Method)
[Auto deploy]   at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
[Auto deploy]   at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
[Auto deploy]   at org.jboss.ejb.AutoDeployer.deploy(AutoDeployer.java:358)
[Auto deploy]   at org.jboss.ejb.AutoDeployer.run(AutoDeployer.java:221)
[Auto deploy]   at java.lang.Thread.run(Thread.java:484)

Both the war and jar in my ear deployed successfully outside the ear file.
The
contents of my ear file look right:

META-INF/
META-INF/MANIFEST.MF
META-INF/application.xml
myapp.jar
myapp.war

Here is my application.xml file:

<?xml version="1.0" encoding="Cp1252"?>

<!DOCTYPE application PUBLIC "-//Sun Microsystems, Inc.//DTDJ2EE Application
1.2
// EN" "http://java.sun.com/j2ee/dtds/application_1_2.dtd";>

<application>
  <display-name>myapp</display-name>
  <module>
    <ejb>
      myapp.jar
    </ejb>
  </module>
  <module>
    <web>
      <web-uri>
        myapp.war
      </web-uri>
      <context-root>
        /myapp
      </context-root>
    </web>
  </module>
</application>


I'm sure it's something simple.

TIA

Norton



_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to