2 Replies Latest reply on Aug 30, 2012 11:10 AM by tscheky

    Access to index.html of war application

    tscheky

      Hi all,

       

      I made a small ear application with a war inside. After starting the AS7 the ear was deployed without any problem.

      The server default index.html is accessible via localhost:8080/index.html, but the index.html of my application - localhost:8080/RFTwo/index.html - is not accessible by the browser.

       

      I have set the ContextRoot in the application.xml (META-INF folder of ear):

      <?xml version="1.0" encoding="UTF-8"?>

      <application xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

          xmlns="http://java.sun.com/xml/ns/javaee" xmlns:application="http://java.sun.com/xml/ns/javaee/application_5.xsd"

          xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/application_5.xsd"

          id="Application_ID" version="5">

       

          <display-name>RFTwo-ear</display-name>

       

       

          <module>

              <web>

                  <web-uri>RFTwo-web.war</web-uri>

                  <context-root>RFTwo</context-root>

              </web>

          </module>

       

      </application>

       

       

      and in the jboss-web.xml (WEB-INF folder of war) :

       

      <!DOCTYPE jboss-web PUBLIC

          "-//JBoss//DTD Web Application 4.2//EN"

          "http://www.jboss.org/j2ee/dtd/jboss-web_4_2.dtd">

       

      <jboss-web> 

          <context-root>RFTwo</context-root>

      </jboss-web>

       

       

      Any ideas?

       

      Another question: is there any working folder where the AS7 stores the deployed structure?

       

      Thank you!

      Regards Gerhard

        • 1. Re: Access to index.html of war application
          cfang

          your ear file is not packaged correctly.  It should contain the war file, not the exploded war file content.  This is what you have now:

           

          jar tvf RFTwo.ear

               0 Thu Aug 30 14:32:18 EDT 2012 META-INF/

             106 Thu Aug 30 14:32:16 EDT 2012 META-INF/MANIFEST.MF

               0 Thu Aug 30 14:32:18 EDT 2012 RFTwo-web.war/

               0 Thu Aug 30 14:32:18 EDT 2012 RFTwo-web.war/META-INF/

               0 Thu Aug 30 14:32:18 EDT 2012 RFTwo-web.war/WEB-INF/

               0 Thu Aug 30 14:32:18 EDT 2012 RFTwo-web.war/WEB-INF/classes/

               0 Thu Aug 30 14:32:18 EDT 2012 RFTwo-web.war/WEB-INF/classes/com/

               0 Thu Aug 30 14:32:18 EDT 2012 RFTwo-web.war/WEB-INF/classes/com/atos/

               0 Thu Aug 30 14:32:18 EDT 2012 RFTwo-web.war/WEB-INF/classes/com/atos/testapp/

               0 Thu Aug 30 14:32:18 EDT 2012 RFTwo-web.war/WEB-INF/classes/com/atos/testapp/constants/

               0 Thu Aug 30 14:32:18 EDT 2012 RFTwo-web.war/WEB-INF/lib/

             633 Thu Aug 30 14:32:18 EDT 2012 META-INF/application.xml

             313 Thu Aug 30 14:32:18 EDT 2012 META-INF/jboss-app.xml

              39 Thu Aug 30 14:32:18 EDT 2012 RFTwo-web.war/META-INF/MANIFEST.MF

             738 Thu Aug 30 14:32:18 EDT 2012 RFTwo-web.war/WEB-INF/classes/com/atos/testapp/constants/DateConst.class

             478 Thu Aug 30 14:32:18 EDT 2012 RFTwo-web.war/WEB-INF/jboss-web.xml

          48742 Thu Aug 30 14:32:18 EDT 2012 RFTwo-web.war/WEB-INF/lib/common-annotations.jar

          188671 Thu Aug 30 14:32:18 EDT 2012 RFTwo-web.war/WEB-INF/lib/commons-beanutils.jar

          559366 Thu Aug 30 14:32:18 EDT 2012 RFTwo-web.war/WEB-INF/lib/commons-collections.jar

          139966 Thu Aug 30 14:32:18 EDT 2012 RFTwo-web.war/WEB-INF/lib/commons-digester.jar

          38015 Thu Aug 30 14:32:18 EDT 2012 RFTwo-web.war/WEB-INF/lib/commons-logging.jar

          253950 Thu Aug 30 14:32:18 EDT 2012 RFTwo-web.war/WEB-INF/lib/cssparser-0.9.5.jar

          1501575 Thu Aug 30 14:32:18 EDT 2012 RFTwo-web.war/WEB-INF/lib/guava-10.0.1.jar

          21029 Thu Aug 30 14:32:18 EDT 2012 RFTwo-web.war/WEB-INF/lib/jstl.jar

          15808 Thu Aug 30 14:32:18 EDT 2012 RFTwo-web.war/WEB-INF/lib/sac-1.3.jar

          393259 Thu Aug 30 14:32:18 EDT 2012 RFTwo-web.war/WEB-INF/lib/standard.jar

             949 Thu Aug 30 14:32:18 EDT 2012 RFTwo-web.war/WEB-INF/web.xml

             422 Thu Aug 30 14:32:18 EDT 2012 RFTwo-web.war/index.html

             422 Thu Aug 30 14:32:18 EDT 2012 RFTwo-web.war/test.html

          • 2. Re: Access to index.html of war application
            tscheky

            Ah yes, that's the reason, thank you