9 Replies Latest reply on Jun 28, 2005 3:00 AM by peterj

    Problem when deploying a WAR

    fquimbay

      I have made a file WAR with index.jsp simple; it correctly deploying on JBOSS 4.0.1 and JBOSS 4.0.2, and when attempt to visualize it through the navigator on JBOSS 4.0.1 works well, but on JBOSS 4.0.2 no, it does not show anything. In log's it does not show any error. What it happens? Thanks for your help.

        • 1. Re: Problem when deploying a WAR
          peterj

          Are you saying that you war file contains only a very simply index.jsp? What are the contents of index.jsp?

          • 2. Re: Problem when deploying a WAR
            fquimbay

            Page JSP has this content:

            <%@page contentType="text/html" %>
            <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
            <html>
            
            <head>
             <title>JSP Page</title>
            </head>
            
            <body bgcolor="#FFFFFF">
             HOLA
            </body>
            
            </html>
            


            on JBOSS 4.0.1 one is correctly, but on JBOSS 4.0.2 it does not show anything. I work with jdk1.5.0_04, although with a version different from JAVA it happens the same. Thanks for your help.

            • 3. Re: Problem when deploying a WAR
              peterj

              It works fine for me on 4.0.2. What exactly are you seeing in the browser? A pure white page? A pure black page? Also, in the server/default/work/jboss.web/localhost/XXX/org/apache/jsp directory (where XXX is the name of your WAR file), there should be a .java and .class file. Are they there?

              • 4. Re: Problem when deploying a WAR
                fquimbay

                In the navigator I see a white page and in the route that you indicated to me I see both archives index_jsp.java and index_jsp.class. This problem is very strange, everything seems to be well.

                • 5. Re: Problem when deploying a WAR
                  peterj

                  Can you select anything on the white page? I'm just wondering if you are getting white text on a white background.

                  • 6. Re: Problem when deploying a WAR
                    fquimbay

                    I am making an example with some components of MyFaces. I made a WAR simple (index.jsp and WEB-INF/web.xml) and worked correctly. Simple file JSP which I commented in the previous mail, I did it using the structure that I am working with the components of MyFaces, and it did not work to me. I am thinking that it can be some type of conflict between MyFaces and the JBOSS version.

                    • 7. Re: Problem when deploying a WAR
                      fquimbay

                      I knew because the WAR did not deployed correctly, was including in /WEB-INF/lib the file "jsp-2.0.jar", it does not place it and already it works correctly. In the page Web of the MyFaces project: http://myfaces.apache.org/docs/gettingstarted.html, says there that it is due to include "to jsp-2.0.jar" if it works with a version of Tomcat 4, otherwise no. PeterJ, thank you very much by the interest and collaboration.

                      • 8. Re: Problem when deploying a WAR
                        peterj

                        That would expalin your problem. JBoss 4.0.2 uses Tomcat 5.5, while earlier versions used Tomcat 5.0. There is probably a library incompatability somewhere.

                        Try the following wiki entries and see if they help:

                        http://wiki.jboss.org/wiki/Wiki.jsp?page=ClassLoadingConfiguration
                        http://wiki.jboss.org/wiki/Wiki.jsp?page=JBossClassLoadingUseCases

                        • 9. Re: Problem when deploying a WAR
                          peterj

                          I just scanned through the links in my previous entry and while the answer is in there, it might not be obvious. Looking at some other entries in the forum, it would appear that you need to do the following:

                          To revert to pre-4.0.2 config in jboss-service.xml file in the server/xxx/deploy/jbossweb-tomcat55.sar/META-INF directory use:

                          <attribute name="Java2ClassLoadingCompliance">true</attribute>
                          <attribute name="UseJBossWebLoader">true</attribute>[/code>
                          
                          Both are false by default in the existing file.
                          
                          (Thanks to Adrian Brock for the above code.)