java.lang.Exception: [Compilation errors : ] /export/vol01/enterprise-docs/jira/weblogic/src/jira/build/jira/tmp/build/weblogic/WEB-INF/classes/jsp_servlet/__500page.java:1602: cannot resolve symbol symbol : variable level location: class org.apache.log4j.spi.LoggingEvent out.print(String.valueOf( loggingEvent.level )); //[ /500page.jsp; Line: 280] ^ 1 error

Atlassian JIRA | Saurabh Gupta | 10 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    We using the weblogic.war target in the ANT script to generate a WAR file. But we are facing JSP precompilation issues and it seems like the precompilation of JSPs is failing because of the following error: weblogic.precompile: [echo] Precompiling JSPs (use -Dskip.precompile=true to skip)... [java] Error: [jspc]: 1 file(s) failed: [java] /500page.jsp [java] Exception in thread "main" [java] [Compilation errors : ] [java] /export/vol01/enterprise-docs/jira/weblogic/src/jira/build/jira/tmp/build/weblogic/WEB-INF/classes/jsp_servlet/__500page.java:1602: cannot resolve symbol [java] symbol : variable level [java] location: class org.apache.log4j.spi.LoggingEvent [java] out.print(String.valueOf( loggingEvent.level )); //[ /500page.jsp; Line: 280] [java] ^ [java] 1 error [java] at weblogic.jspc.doCompile(jspc.java:861) [java] at weblogic.jspc.runJspc(jspc.java:654) [java] at weblogic.jspc.runBodyInternal(jspc.java:412) [java] at weblogic.jspc.runBody(jspc.java:319) [java] at weblogic.utils.compiler.Tool.run(Tool.java:192) [java] at weblogic.utils.compiler.Tool.run(Tool.java:147) [java] at weblogic.jspc.main(jspc.java:730) [java] java.lang.Exception: [Compilation errors : ] [java] /export/vol01/enterprise-docs/jira/weblogic/src/jira/build/jira/tmp/build/weblogic/WEB-INF/classes/jsp_servlet/__500page.java:1602: cannot resolve symbol [java] symbol : variable level [java] location: class org.apache.log4j.spi.LoggingEvent [java] out.print(String.valueOf( loggingEvent.level )); //[ /500page.jsp; Line: 280] [java] ^ [java] 1 error [java] at weblogic.jspc.doCompile(jspc.java:864) [java] at weblogic.jspc.runJspc(jspc.java:654) [java] at weblogic.jspc.runBodyInternal(jspc.java:412) [java] at weblogic.jspc.runBody(jspc.java:319) [java] at weblogic.utils.compiler.Tool.run(Tool.java:192) [java] at weblogic.utils.compiler.Tool.run(Tool.java:147) [java] at weblogic.jspc.main(jspc.java:730) [java] Java Result: 1

    Atlassian JIRA | 10 years ago | Saurabh Gupta
    java.lang.Exception: [Compilation errors : ] /export/vol01/enterprise-docs/jira/weblogic/src/jira/build/jira/tmp/build/weblogic/WEB-INF/classes/jsp_servlet/__500page.java:1602: cannot resolve symbol symbol : variable level location: class org.apache.log4j.spi.LoggingEvent out.print(String.valueOf( loggingEvent.level )); //[ /500page.jsp; Line: 280] ^ 1 error
  2. 0

    We using the weblogic.war target in the ANT script to generate a WAR file. But we are facing JSP precompilation issues and it seems like the precompilation of JSPs is failing because of the following error: weblogic.precompile: [echo] Precompiling JSPs (use -Dskip.precompile=true to skip)... [java] Error: [jspc]: 1 file(s) failed: [java] /500page.jsp [java] Exception in thread "main" [java] [Compilation errors : ] [java] /export/vol01/enterprise-docs/jira/weblogic/src/jira/build/jira/tmp/build/weblogic/WEB-INF/classes/jsp_servlet/__500page.java:1602: cannot resolve symbol [java] symbol : variable level [java] location: class org.apache.log4j.spi.LoggingEvent [java] out.print(String.valueOf( loggingEvent.level )); //[ /500page.jsp; Line: 280] [java] ^ [java] 1 error [java] at weblogic.jspc.doCompile(jspc.java:861) [java] at weblogic.jspc.runJspc(jspc.java:654) [java] at weblogic.jspc.runBodyInternal(jspc.java:412) [java] at weblogic.jspc.runBody(jspc.java:319) [java] at weblogic.utils.compiler.Tool.run(Tool.java:192) [java] at weblogic.utils.compiler.Tool.run(Tool.java:147) [java] at weblogic.jspc.main(jspc.java:730) [java] java.lang.Exception: [Compilation errors : ] [java] /export/vol01/enterprise-docs/jira/weblogic/src/jira/build/jira/tmp/build/weblogic/WEB-INF/classes/jsp_servlet/__500page.java:1602: cannot resolve symbol [java] symbol : variable level [java] location: class org.apache.log4j.spi.LoggingEvent [java] out.print(String.valueOf( loggingEvent.level )); //[ /500page.jsp; Line: 280] [java] ^ [java] 1 error [java] at weblogic.jspc.doCompile(jspc.java:864) [java] at weblogic.jspc.runJspc(jspc.java:654) [java] at weblogic.jspc.runBodyInternal(jspc.java:412) [java] at weblogic.jspc.runBody(jspc.java:319) [java] at weblogic.utils.compiler.Tool.run(Tool.java:192) [java] at weblogic.utils.compiler.Tool.run(Tool.java:147) [java] at weblogic.jspc.main(jspc.java:730) [java] Java Result: 1

    Atlassian JIRA | 10 years ago | Saurabh Gupta
    java.lang.Exception: [Compilation errors : ] /export/vol01/enterprise-docs/jira/weblogic/src/jira/build/jira/tmp/build/weblogic/WEB-INF/classes/jsp_servlet/__500page.java:1602: cannot resolve symbol symbol : variable level location: class org.apache.log4j.spi.LoggingEvent out.print(String.valueOf( loggingEvent.level )); //[ /500page.jsp; Line: 280] ^ 1 error
  3. 0

    There are some problems static-compiling 3.0.3 JSPs with Weblogic 7.0sp4: weblogic.precompile: Precompiling JSPs (use -Dskip.precompile=true to skip)... Error: [jspc]: 1 file(s) failed: /500page.jsp Exception in thread "main" [Compilation errors : ] /home/devuser/atlassian-jira-enterprise-3.0.3/tmp/build/weblogic/WEB-INF/classes/jsp_servlet/__500page.java:388: cannot resolve symbol symbol : method getLevel () location: class org.apache.log4j.spi.LoggingEvent out.print(String.valueOf( loggingEvent.getLevel() )); //[ /500page.jsp; Line: 185] ^ /home/devuser/atlassian-jira-enterprise-3.0.3/tmp/build/weblogic/WEB-INF/classes/jsp_servlet/__500page.java:392: cannot resolve symbol symbol : method getLoggerName () location: class org.apache.log4j.spi.LoggingEvent out.print(String.valueOf( loggingEvent.getLoggerName() )); //[ /500page.jsp; Line: 187] ^ 2 errors at weblogic.jspc.doCompile(jspc.java:833) at weblogic.jspc.runJspc(jspc.java:626) at weblogic.jspc.runBodyInternal(jspc.java:409) at weblogic.jspc.runBody(jspc.java:318) at weblogic.utils.compiler.Tool.run(Tool.java:146) at weblogic.utils.compiler.Tool.run(Tool.java:103) at weblogic.jspc.main(jspc.java:702) java.lang.Exception: [Compilation errors : ] /home/devuser/atlassian-jira-enterprise-3.0.3/tmp/build/weblogic/WEB-INF/classes/jsp_servlet/__500page.java:388: cannot resolve symbol symbol : method getLevel () location: class org.apache.log4j.spi.LoggingEvent out.print(String.valueOf( loggingEvent.getLevel() )); //[ /500page.jsp; Line: 185] ^ /home/devuser/atlassian-jira-enterprise-3.0.3/tmp/build/weblogic/WEB-INF/classes/jsp_servlet/__500page.java:392: cannot resolve symbol symbol : method getLoggerName () location: class org.apache.log4j.spi.LoggingEvent out.print(String.valueOf( loggingEvent.getLoggerName() )); //[ /500page.jsp; Line: 187] ^ 2 errors at weblogic.jspc.doCompile(jspc.java:836) at weblogic.jspc.runJspc(jspc.java:626) at weblogic.jspc.runBodyInternal(jspc.java:409) at weblogic.jspc.runBody(jspc.java:318) at weblogic.utils.compiler.Tool.run(Tool.java:146) at weblogic.utils.compiler.Tool.run(Tool.java:103) at weblogic.jspc.main(jspc.java:702) Java Result: 1 weblogic.war: Created dir: /home/devuser/atlassian-jira-enterprise-3.0.3/dist-weblogic Building jar: /home/devuser/atlassian-jira-enterprise-3.0.3/dist-weblogic/atlassian-jira-3.0.3.war -------------------------------------------------- Deployable WAR for Weblogic generated: /home/devuser/atlassian-jira-enterprise-3.0.3/dist-weblogic/atlassian-jira-3.0.3.war -------------------------------------------------- BUILD SUCCESSFUL Total time: 7 minutes 46 seconds

    Atlassian JIRA | 1 decade ago | Jeff Turner
    java.lang.Exception: [Compilation errors : ] /home/devuser/atlassian-jira-enterprise-3.0.3/tmp/build/weblogic/WEB-INF/classes/jsp_servlet/__500page.java:388: cannot resolve symbol symbol : method getLevel () location: class org.apache.log4j.spi.LoggingEvent out.print(String.valueOf( loggingEvent.getLevel() )); //[ /500page.jsp; Line: 185] ^ /home/devuser/atlassian-jira-enterprise-3.0.3/tmp/build/weblogic/WEB-INF/classes/jsp_servlet/__500page.java:392: cannot resolve symbol symbol : method getLoggerName () location: class org.apache.log4j.spi.LoggingEvent out.print(String.valueOf( loggingEvent.getLoggerName() )); //[ /500page.jsp; Line: 187] ^ 2 errors
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Weblogic jspc

    Oracle Community | 1 decade ago | 666705
    java.lang.Exception: [Compilation errors : ]
  6. 0

    There are some problems static-compiling 3.0.3 JSPs with Weblogic 7.0sp4: weblogic.precompile: Precompiling JSPs (use -Dskip.precompile=true to skip)... Error: [jspc]: 1 file(s) failed: /500page.jsp Exception in thread "main" [Compilation errors : ] /home/devuser/atlassian-jira-enterprise-3.0.3/tmp/build/weblogic/WEB-INF/classes/jsp_servlet/__500page.java:388: cannot resolve symbol symbol : method getLevel () location: class org.apache.log4j.spi.LoggingEvent out.print(String.valueOf( loggingEvent.getLevel() )); //[ /500page.jsp; Line: 185] ^ /home/devuser/atlassian-jira-enterprise-3.0.3/tmp/build/weblogic/WEB-INF/classes/jsp_servlet/__500page.java:392: cannot resolve symbol symbol : method getLoggerName () location: class org.apache.log4j.spi.LoggingEvent out.print(String.valueOf( loggingEvent.getLoggerName() )); //[ /500page.jsp; Line: 187] ^ 2 errors at weblogic.jspc.doCompile(jspc.java:833) at weblogic.jspc.runJspc(jspc.java:626) at weblogic.jspc.runBodyInternal(jspc.java:409) at weblogic.jspc.runBody(jspc.java:318) at weblogic.utils.compiler.Tool.run(Tool.java:146) at weblogic.utils.compiler.Tool.run(Tool.java:103) at weblogic.jspc.main(jspc.java:702) java.lang.Exception: [Compilation errors : ] /home/devuser/atlassian-jira-enterprise-3.0.3/tmp/build/weblogic/WEB-INF/classes/jsp_servlet/__500page.java:388: cannot resolve symbol symbol : method getLevel () location: class org.apache.log4j.spi.LoggingEvent out.print(String.valueOf( loggingEvent.getLevel() )); //[ /500page.jsp; Line: 185] ^ /home/devuser/atlassian-jira-enterprise-3.0.3/tmp/build/weblogic/WEB-INF/classes/jsp_servlet/__500page.java:392: cannot resolve symbol symbol : method getLoggerName () location: class org.apache.log4j.spi.LoggingEvent out.print(String.valueOf( loggingEvent.getLoggerName() )); //[ /500page.jsp; Line: 187] ^ 2 errors at weblogic.jspc.doCompile(jspc.java:836) at weblogic.jspc.runJspc(jspc.java:626) at weblogic.jspc.runBodyInternal(jspc.java:409) at weblogic.jspc.runBody(jspc.java:318) at weblogic.utils.compiler.Tool.run(Tool.java:146) at weblogic.utils.compiler.Tool.run(Tool.java:103) at weblogic.jspc.main(jspc.java:702) Java Result: 1 weblogic.war: Created dir: /home/devuser/atlassian-jira-enterprise-3.0.3/dist-weblogic Building jar: /home/devuser/atlassian-jira-enterprise-3.0.3/dist-weblogic/atlassian-jira-3.0.3.war -------------------------------------------------- Deployable WAR for Weblogic generated: /home/devuser/atlassian-jira-enterprise-3.0.3/dist-weblogic/atlassian-jira-3.0.3.war -------------------------------------------------- BUILD SUCCESSFUL Total time: 7 minutes 46 seconds

    Atlassian JIRA | 1 decade ago | Jeff Turner
    java.lang.Exception: [Compilation errors : ] /home/devuser/atlassian-jira-enterprise-3.0.3/tmp/build/weblogic/WEB-INF/classes/jsp_servlet/__500page.java:388: cannot resolve symbol symbol : method getLevel () location: class org.apache.log4j.spi.LoggingEvent out.print(String.valueOf( loggingEvent.getLevel() )); //[ /500page.jsp; Line: 185] ^ /home/devuser/atlassian-jira-enterprise-3.0.3/tmp/build/weblogic/WEB-INF/classes/jsp_servlet/__500page.java:392: cannot resolve symbol symbol : method getLoggerName () location: class org.apache.log4j.spi.LoggingEvent out.print(String.valueOf( loggingEvent.getLoggerName() )); //[ /500page.jsp; Line: 187] ^ 2 errors

    Root Cause Analysis

    1. java.lang.Exception

      [Compilation errors : ] /export/vol01/enterprise-docs/jira/weblogic/src/jira/build/jira/tmp/build/weblogic/WEB-INF/classes/jsp_servlet/__500page.java:1602: cannot resolve symbol symbol : variable level location: class org.apache.log4j.spi.LoggingEvent out.print(String.valueOf( loggingEvent.level )); //[ /500page.jsp; Line: 280] ^ 1 error

      at weblogic.jspc.doCompile()
    2. weblogic
      jspc.runBody
      1. weblogic.jspc.doCompile(jspc.java:864)
      2. weblogic.jspc.runJspc(jspc.java:654)
      3. weblogic.jspc.runBodyInternal(jspc.java:412)
      4. weblogic.jspc.runBody(jspc.java:319)
      4 frames
    3. weblogic.utils.compiler
      Tool.run
      1. weblogic.utils.compiler.Tool.run(Tool.java:192)
      2. weblogic.utils.compiler.Tool.run(Tool.java:147)
      2 frames
    4. weblogic
      jspc.main
      1. weblogic.jspc.main(jspc.java:730)
      1 frame