6 Replies Latest reply on Dec 14, 2004 10:31 AM by darranl

    strange post deploy errors! HELP!

    kburn

      hi fellas,
      I'm developing an application based on java beans+jsp over an oracle DB on jboss-3.2.5 ..
      I'm writing all tha stuff via JBuilder2005[update1] and it happens very often that, when I deploy a WAR, jboss comes out with strange and ununderstandable errors..
      I discovered that this kind of trouble is jboss's caching fault..
      but every time it's a bit different from the other one..
      e.g. one day I made a deploy and I found that by erasing all tha $JBOSS_HOME/server/default/tmp/deploy, the $JBOSS_HOME/server/default/deploy/mywar.war, rebuild my webmodule and deploy it again it worked, but not all the times this tecnique works..

      so my question is:

      W H Y does jboss behaves like this???
      and
      W H A T can I do to patch this problem?? cuz,managing those troubles takles me more time than writing&debugging my code..

      I hope I made my self clear :P

      tya 4 any suggest, greetz

        • 1. Re: strange post deploy errors! HELP!
          darranl

           

          I hope I made my self clear


          You forgot to tell us what the problem is.

          jboss comes out with strange and ununderstandable errors


          Post the errors here, others may not find them so strange and ununderstandable.

          • 2. Re: strange post deploy errors! HELP!
            kburn

            that's tha last err I'm dealing whith..

            I deployed my app it was all ok,
            then I saw an error in the Javascript (so nothing that has to do whith
            java or jboss) and after the redeploy that's what jboss told me:

            [ error code ]

            org.apache.jasper.JasperException: Unable to compile class for JSP

            Generated servlet error:
            /opt/jboss-3.2.5/server/default/work/jboss.web/localhost/TroubleTicket/org/apache/jsp/new_005ftrouble_jsp.java:3: package javax.servlet does not exist
            import javax.servlet.*;
            ^


            Generated servlet error:
            /opt/jboss-3.2.5/server/default/work/jboss.web/localhost/TroubleTicket/org/apache/jsp/new_005ftrouble_jsp.java:4: package javax.servlet.http does not exist
            import javax.servlet.http.*;
            ^


            Generated servlet error:
            /opt/jboss-3.2.5/server/default/work/jboss.web/localhost/TroubleTicket/org/apache/jsp/new_005ftrouble_jsp.java:5: package javax.servlet.jsp does not exist
            import javax.servlet.jsp.*;
            ^


            Generated servlet error:
            /opt/jboss-3.2.5/server/default/work/jboss.web/localhost/TroubleTicket/org/apache/jsp/new_005ftrouble_jsp.java:11: package org.apache.jasper.runtime does not exist
            public final class new_005ftrouble_jsp extends org.apache.jasper.runtime.HttpJspBase
            ^


            Generated servlet error:
            /opt/jboss-3.2.5/server/default/work/jboss.web/localhost/TroubleTicket/org/apache/jsp/new_005ftrouble_jsp.java:12: package org.apache.jasper.runtime does not exist
            implements org.apache.jasper.runtime.JspSourceDependent {
            ^


            Generated servlet error:
            /opt/jboss-3.2.5/server/default/work/jboss.web/localhost/TroubleTicket/org/apache/jsp/new_005ftrouble_jsp.java:20: cannot resolve symbol
            symbol : class HttpServletRequest
            location: class org.apache.jsp.new_005ftrouble_jsp
            public void _jspService(HttpServletRequest request, HttpServletResponse response)
            ^


            Generated servlet error:
            /opt/jboss-3.2.5/server/default/work/jboss.web/localhost/TroubleTicket/org/apache/jsp/new_005ftrouble_jsp.java:20: cannot resolve symbol
            symbol : class HttpServletResponse
            location: class org.apache.jsp.new_005ftrouble_jsp
            public void _jspService(HttpServletRequest request, HttpServletResponse response)
            ^


            Generated servlet error:
            /opt/jboss-3.2.5/server/default/work/jboss.web/localhost/TroubleTicket/org/apache/jsp/new_005ftrouble_jsp.java:21: cannot resolve symbol
            symbol : class ServletException
            location: class org.apache.jsp.new_005ftrouble_jsp
            throws java.io.IOException, ServletException {
            ^


            Generated servlet error:
            /opt/jboss-3.2.5/server/default/work/jboss.web/localhost/TroubleTicket/org/apache/jsp/new_005ftrouble_jsp.java:23: cannot resolve symbol
            symbol : class JspFactory
            location: class org.apache.jsp.new_005ftrouble_jsp
            JspFactory _jspxFactory = null;
            ^


            Generated servlet error:
            /opt/jboss-3.2.5/server/default/work/jboss.web/localhost/TroubleTicket/org/apache/jsp/new_005ftrouble_jsp.java:24: cannot resolve symbol
            symbol : class PageContext
            location: class org.apache.jsp.new_005ftrouble_jsp
            PageContext pageContext = null;

            ....
            ....
            and so on..



            [ /error code]

            • 3. Re: strange post deploy errors! HELP!
              darranl

              Have you included any of the servlet API in the war file that you are deploying?

              • 4. Re: strange post deploy errors! HELP!
                kburn

                dunno,
                but I tell u this:

                if I made a deploy that's working fine, and then I simply change a row of javascript code, this should'n affect the redeploying in any sense.. :S isn't' it?
                :(

                • 5. Re: strange post deploy errors! HELP!
                  kburn

                  by the way, I solved this problem by erasing all tha wars in the deploy directory, all the stuff in the tmp/deploy and by restarting jboss ..

                  but that's insane!

                  this problem is taking me 2 much time, all the times

                  • 6. Re: strange post deploy errors! HELP!
                    darranl

                     

                    dunno,


                    Well find out.