1 Reply Latest reply on Mar 19, 2008 3:20 AM by Rosalyne N

    How to deploy a struts 1.3.8 application in jboss 4.2.1 GA?

    Rosalyne N Newbie

      Hi!
      I'm facing problem in deploying an application which is developed in Struts 1.3.8 + hibernate3 in Tomcat5.5.0 enviroment in jboss4.2.1GA. The application in working fine in tomcat.

      Can any body help me out to solve my problem? I'm new to jboss, so kindly tell me the basic cofigurations that need to be done.

      I'm getting following errors:
      org.apache.jasper.JasperException: Unable to compile class for JSP:

      An error occurred at line: 25 in the generated java file
      The method getJspApplicationContext(ServletContext) is undefined for the type JspFactory

      Stacktrace:
      org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:92)
      org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330)
      org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:415)
      org.apache.jasper.compiler.Compiler.compile(Compiler.java:308)
      org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
      org.apache.jasper.compiler.Compiler.compile(Compiler.java:273)
      org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:566)
      org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:311)
      org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
      org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
      org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)


      note The full stack trace of the root cause is available in the JBossWeb/2.0.0.GA logs.


      Thanks in Advance
      Rosa

        • 1. Re: How to deploy a struts 1.3.8 application in jboss 4.2.1
          Rosalyne N Newbie

          Hi
          I could deploy a struts 1.3.5 application in the same jboss version.
          But the problem is I couldn't for the application devaloped in struts 1.3.8.


          I'm getting following errors:


          type Exception report

          message

          description The server encountered an internal error () that prevented it from fulfilling this request.

          exception

          org.apache.jasper.JasperException: Unable to initialize TldLocationsCache: java.util.zip.ZipException: invalid entry CRC (expected 0x9f690ad0 but got 0xcab8a4a6)
          org.jboss.web.tomcat.service.jasper.TagLibCache.init(TagLibCache.java:106)
          org.jboss.web.tomcat.service.jasper.TagLibCache.getLocation(TagLibCache.java:83)
          org.apache.jasper.JspCompilationContext.getTldLocation(JspCompilationContext.java:530)
          org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:419)
          org.apache.jasper.compiler.Parser.parseDirective(Parser.java:476)
          org.apache.jasper.compiler.Parser.parseElements(Parser.java:1426)
          org.apache.jasper.compiler.Parser.parse(Parser.java:133)
          org.apache.jasper.compiler.ParserController.doParse(ParserController.java:216)
          org.apache.jasper.compiler.ParserController.parse(ParserController.java:103)
          org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:167)
          org.apache.jasper.compiler.Compiler.compile(Compiler.java:306)
          org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
          org.apache.jasper.compiler.Compiler.compile(Compiler.java:273)
          org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:566)
          org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:311)
          org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
          org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
          javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
          org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)


          root cause

          org.apache.jasper.JasperException: java.util.zip.ZipException: invalid entry CRC (expected 0x9f690ad0 but got 0xcab8a4a6)
          org.jboss.web.tomcat.service.jasper.TagLibCache.scanJar(TagLibCache.java:343)
          org.jboss.web.tomcat.service.jasper.TagLibCache.processTldsInFileSystem(TagLibCache.java:268)
          org.jboss.web.tomcat.service.jasper.TagLibCache.processTldsInFileSystem(TagLibCache.java:261)
          org.jboss.web.tomcat.service.jasper.TagLibCache.init(TagLibCache.java:101)
          org.jboss.web.tomcat.service.jasper.TagLibCache.getLocation(TagLibCache.java:83)
          org.apache.jasper.JspCompilationContext.getTldLocation(JspCompilationContext.java:530)
          org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:419)
          org.apache.jasper.compiler.Parser.parseDirective(Parser.java:476)
          org.apache.jasper.compiler.Parser.parseElements(Parser.java:1426)
          org.apache.jasper.compiler.Parser.parse(Parser.java:133)
          org.apache.jasper.compiler.ParserController.doParse(ParserController.java:216)
          org.apache.jasper.compiler.ParserController.parse(ParserController.java:103)
          org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:167)
          org.apache.jasper.compiler.Compiler.compile(Compiler.java:306)
          org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
          org.apache.jasper.compiler.Compiler.compile(Compiler.java:273)
          org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:566)
          org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:311)
          org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
          org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
          javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
          org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)


          root cause

          java.util.zip.ZipException: invalid entry CRC (expected 0x9f690ad0 but got 0xcab8a4a6)
          java.util.zip.ZipInputStream.readEnd(ZipInputStream.java:378)
          java.util.zip.ZipInputStream.read(ZipInputStream.java:141)
          java.util.jar.JarInputStream.read(JarInputStream.java:171)
          java.util.zip.ZipInputStream.closeEntry(ZipInputStream.java:91)
          java.util.zip.ZipInputStream.getNextEntry(ZipInputStream.java:69)
          java.util.jar.JarInputStream.getNextEntry(JarInputStream.java:118)
          java.util.jar.JarInputStream.getNextJarEntry(JarInputStream.java:149)
          org.jboss.web.tomcat.service.jasper.TagLibCache.scanJar(TagLibCache.java:324)
          org.jboss.web.tomcat.service.jasper.TagLibCache.processTldsInFileSystem(TagLibCache.java:268)
          org.jboss.web.tomcat.service.jasper.TagLibCache.processTldsInFileSystem(TagLibCache.java:261)
          org.jboss.web.tomcat.service.jasper.TagLibCache.init(TagLibCache.java:101)
          org.jboss.web.tomcat.service.jasper.TagLibCache.getLocation(TagLibCache.java:83)
          org.apache.jasper.JspCompilationContext.getTldLocation(JspCompilationContext.java:530)
          org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:419)
          org.apache.jasper.compiler.Parser.parseDirective(Parser.java:476)
          org.apache.jasper.compiler.Parser.parseElements(Parser.java:1426)
          org.apache.jasper.compiler.Parser.parse(Parser.java:133)
          org.apache.jasper.compiler.ParserController.doParse(ParserController.java:216)
          org.apache.jasper.compiler.ParserController.parse(ParserController.java:103)
          org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:167)
          org.apache.jasper.compiler.Compiler.compile(Compiler.java:306)
          org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
          org.apache.jasper.compiler.Compiler.compile(Compiler.java:273)
          org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:566)
          org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:311)
          org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
          org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
          javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
          org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)


          note The full stack trace of the root cause is available in the JBossWeb/2.0.0.GA logs.


          Con any body point me out what could be the reaso?


          Rosa