Uploaded image for project: 'Struts 1'
  1. Struts 1
  2. STR-2061

Precompling Struts Web Apps with Weblogic

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • 1.1.0
    • None
    • Unknown
    • None
    • Operating System: All
      Platform: All
    • 28759

    Description

      When trying to precompile a Struts web application with WebLogic 8.1 SP2 I get
      the folloing exception. This is maybe a classloader issue. Maybe it is also not
      so nice to load message resources in a static initializer.

      java.lang.NullPointerException
      at
      org.apache.struts.util.MessageResources.getMessageResources(MessageResources.java:577)
      at org.apache.struts.taglib.html.BaseTag.<clinit>(BaseTag.java:94)
      at java.lang.Class.forName0(Native Method)
      at java.lang.Class.forName(Class.java:140)
      at
      org.apache.strutsel.taglib.html.ELBaseTagBeanInfo.class$(ELBaseTagBeanInfo.java:81)
      at
      org.apache.strutsel.taglib.html.ELBaseTagBeanInfo.getPropertyDescriptors(ELBaseTagBeanInfo.java:81)
      at java.beans.Introspector.getTargetPropertyInfo(Introspector.java:436)
      at java.beans.Introspector.getBeanInfo(Introspector.java:372)
      at java.beans.Introspector.getBeanInfo(Introspector.java:207)
      at java.beans.Introspector.getBeanInfo(Introspector.java:193)
      at weblogic.servlet.jsp.StandardTagLib.parseTagDD(StandardTagLib.java:1323)
      at weblogic.servlet.jsp.StandardTagLib.parseDD(StandardTagLib.java:1261)
      at weblogic.servlet.jsp.StandardTagLib.<init>(StandardTagLib.java:292)
      at weblogic.servlet.jsp.TagLibHelper.loadTagLib(TagLibHelper.java:314)
      at weblogic.servlet.jsp.JspLexer.loadTagLib(JspLexer.java:145)
      at weblogic.servlet.jsp.JspLexer.mXML_ROOT(JspLexer.java:3238)
      at weblogic.servlet.jsp.JspLexer.mXML_THING(JspLexer.java:1917)
      at weblogic.servlet.jsp.JspLexer.mTOKEN(JspLexer.java:1825)
      at weblogic.servlet.jsp.JspLexer.nextToken(JspLexer.java:1753)
      at weblogic.servlet.jsp.JspLexer.parse(JspLexer.java:963)
      at weblogic.servlet.jsp.JspParser.doit(JspParser.java:106)
      at weblogic.servlet.jsp.JspParser.parse(JspParser.java:230)
      at weblogic.servlet.jsp.Jsp2Java.outputs(Jsp2Java.java:125)
      at weblogic.utils.compiler.CodeGenerator.generate(CodeGenerator.java:258)
      at weblogic.servlet.jsp.Precompiler.compileOne(Precompiler.java:191)
      at weblogic.servlet.jsp.Precompiler.compile(Precompiler.java:71)
      at weblogic.servlet.jsp.Precompiler.compile(Precompiler.java:82)
      at
      weblogic.servlet.internal.WebAppServletContext.precompileJSPs(WebAppServletContext.java:4908)
      at
      weblogic.servlet.internal.WebAppServletContext.precompileJSPs(WebAppServletContext.java:4886)
      at
      weblogic.servlet.internal.WebAppServletContext.prepareFromDescriptors(WebAppServletContext.java:2342)
      at
      weblogic.servlet.internal.WebAppServletContext.init(WebAppServletContext.java:565)
      at
      weblogic.servlet.internal.WebAppServletContext.<init>(WebAppServletContext.java:493)
      at weblogic.servlet.internal.HttpServer.loadWebApp(HttpServer.java:628)
      at weblogic.servlet.internal.WebAppModule.prepare(WebAppModule.java:626)
      at
      weblogic.j2ee.J2EEApplicationContainer.prepareWebModule(J2EEApplicationContainer.java:3011)
      at
      weblogic.j2ee.J2EEApplicationContainer.prepareModules(J2EEApplicationContainer.java:1532)
      at
      weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:1188)
      at
      weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:1031)
      at
      weblogic.management.deploy.slave.SlaveDeployer$ComponentActivateTask.prepareContainer(SlaveDeployer.java:2602)
      at
      weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.createContainer(SlaveDeployer.java:2552)
      at
      weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare(SlaveDeployer.java:2474)
      at
      weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeployer.java:798)
      at
      weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDeployer.java:507)
      at
      weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.java:465)
      at
      weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.java:25)
      at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
      at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)

      Attachments

        Activity

          People

            Unassigned Unassigned
            daniel.spilker@hamburg.de Daniel Spilker
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: