5 Replies Latest reply on Aug 27, 2005 8:30 AM by Bhaskara

    MyLayout.war error:  WEB-INF/web.xml not found.

    Dave Chen Master

      When I deployed myLayout.war to change layout and theme of portal, I got the error message on server side: /WEB/INF/web.xml not found. The war file does not have web.xml, but jboss-web.xml. Is this a packaging issue?

      Thanks.

        • 1. Re: MyLayout.war error:  WEB-INF/web.xml not found.
          Woodler Expert

          You still need a valid war, and without a /web-inf/web.xml it's not a valid war.
          So add it and it should work (assuming everything else is there)

          • 2. Re: MyLayout.war error:  WEB-INF/web.xml not found.
            Dave Chen Master

            I downloaded the myLayout.war from
            http://wiki.jboss.org/wiki/Wiki.jsp?page=JBossPortalSamples


            /WEB-INF/web.xml is missing from the war file. Where can I get it?

            Thanks.

            • 3. Re: MyLayout.war error:  WEB-INF/web.xml not found.
              Lawrence Henderson Newbie

              Trying to load myLayout. I am using myLayout.war from examples download. I have added a web.xml file. I have also updated the portal-core WEB-INF files. I have set JBOSS_HOME to F:/jboss-portal-2.0-jboss-4.0.2.
              I have stopped and started JBoss numerous times. Getting warning below. When I execute /myLayout. I get a directory instead of page. Whatelse should I be doing?

              12:30:21,547 INFO [TomcatDeployer] deploy, ctxPath=/myLayout, warUrl=file:/F:/jboss-portal-2.0-jboss-4.0.2/server/default/tmp/deploy/tmp44628myLayout-exp.war/
              12:30:21,708 INFO [ContextConfig] Missing application web.xml, using defaults only StandardEngine[jboss.web].StandardHost[localhost].StandardContext[/myLayout]


              WEB.XML

              <web-app>
              <display-name>Portal POC</display-name>
              Portal Proof Of Concept

              <servlet-name>twoColumns</servlet-name>
              <jsp-file>/layout/twoColumns.jsp</jsp-file>

              <servlet-mapping>
              <servlet-name>twoColumns</servlet-name>
              <url-pattern>/layout/twoColumns.jsp</url-pattern>
              </servlet-mapping>

              <taglib-uri>WEB-INF/theme/portal-layout.tld</taglib-uri>
              <taglib-location>WEB-INF/theme/portal-layout.tld</taglib-location>

              </web-app>


              PORTAL-LAYOUT.XML
              <below XML will NOT DISPLAYING PROPERLY, take my word. Its all default data>


              2ColumnLayout
              /layouts/twoColumns.jsp



              PORTAL-THEMES.XML



              simple-sample





              JBOSS-WEB.XML

              <jboss-web>
              <context-root>/myLayout</context-root>
              </jboss-web>


              DEFAULT-PORTAL.XML


              org.jboss.portal.property.layout
              2ColumnLayout


              org.jboss.portal.property.renderSet
              divRenderer

              • 4. Re: MyLayout.war error:  WEB-INF/web.xml not found.
                Lawrence Henderson Newbie

                Found a solution, which may not be correct. Placed WEB-INF at same level as myLayout.war in war file. Now I can display twoColumns.jsp, with exceptions "No pages to render!"

                myLayout.war
                |- simple-sample.css
                |-/images
                |-/layouts
                |- twoColumns.jsp
                WEB-INF
                |- jboss-web.xml
                |- portal-layouts.xml
                |- portal-themes.xml
                |- web.xml



                • 5. Re: MyLayout.war error:  WEB-INF/web.xml not found.
                  Bhaskara Newbie

                  I'm also facing the same problem, web.xml is not found in the sample myLayout.war file downloaded from Jboss site. Placed the web.xml as mentioned in this thread, but still getting the directory listed when I browser /myLayout.

                  -Bhaskar