سؤال

i've an EAR file structured as reported:

myEar.ear
|
+- META-INF
|  |
|  +- MANIFEST.MF
|  +- application.xml
|
+- lib
|  |
|  +- aJar.jar
|
+- aWar.war

The MANIFEST.MF is autogenerated and blank, in the application.xml there is only the warfile entry.

When i deploy it in the jBoss Management Console the web-service contained by the war is not displayed. If i put the war directly it's displayed instead.

Have you any advice in this issue?

Thanks, Dario

هل كانت مفيدة؟

المحلول

In response to comment. Here is common application.xml structure:

<?xml version="1.0" encoding="UTF-8"?>
<application xmlns="http://java.sun.com/xml/ns/javaee"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/application_6.xsd"
             version="6">

  <module>
    <!-- EJB Module -->
    <ejb>ejb.jar</ejb>
  </module>
  <module>
    <!-- WEB Module -->
    <web>
      <web-uri>warfile.war</web-uri>
      <context-root>/context_root</context-root>
    </web>
  </module>
  <!-- Libraries, available both to web and ejb modules -->
  <library-directory>libs</library-directory>
</application>

If you have no EJB - just remove the first module node.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top