New and Improved 3.13 Beta. Highlights: Shareable filters and dashboards and lots of other goodies. Any feedback can be raised as JIRA issues in the JIRA project.
Issue Details (XML | Word | Printable)

Key: JRA-5405
Type: Bug Bug
Status: Reopened Reopened
Priority: Major Major
Assignee: Unassigned
Reporter: Jeff Turner [Atlassian]
Votes: 0
Watchers: 3
Operations

If you were logged in you would be able to see more operations.
JIRA

500page.jsp doesn't compile on Weblogic

Created: 01/Dec/04 12:34 AM   Updated: 26/May/08 06:14 AM
Component/s: Backend / Domain Model
Affects Version/s: 3.0.3, 3.6.1
Fix Version/s: 3.13.x

Time Tracking:
Original Estimate: 2 hours
Original Estimate - 2 hours
Remaining Estimate: 1 hour
Time Spent - 1 hour Remaining Estimate - 1 hour
Time Spent: 1 hour
Time Spent - 1 hour Remaining Estimate - 1 hour

Environment: Weblogic 7.0sp4 and 8.1sp3 and earlier
Issue Links:
Reference
 

Participants: Anton Mazkovoi [Atlassian], Chris Mountford [Atlassian], Jed Wesley-Smith [Atlassian], Jeff Turner [Atlassian], Jörg Marks, Mark Chaimungkalanont [Atlassian], Rob Schafer and Steve Dalton
Since last comment: 38 weeks, 1 day ago
Support reference count: 3
Labels:


 Description  « Hide
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



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Jeff Turner [Atlassian] added a comment - 01/Dec/04 02:04 AM
Same problem on Weblogic 8.1

Mark Chaimungkalanont [Atlassian] added a comment - 09/Feb/05 12:24 AM
The getLevel & getLoggerName methods were added with log4j 1.2.6 so weblogic 8.1 should be fine. (it uses log4j 1.2.8)

Mark Chaimungkalanont [Atlassian] added a comment - 09/Feb/05 12:38 AM
8.1 SP4 should be okay

Jörg Marks added a comment - 10/Feb/05 04:10 AM
Hi,

as a workaround I put some log4j-1.2.8.jar as first Jar in CLASSPATH for pre-compiling and it works in WLS81 SP3:

<target name="weblogic.precompile" depends="compile, check.weblogic.present" unless="skip.precompile">
<path id="jsps.path">
<fileset dir="${build.war}">
<exclude name="*/includes//.jsp"/>
<include name="*/.jsp"/>
</fileset>
</path>
<property name="jsps.prop" refid="jsps.path"/>
<property name="tmpfile" location="${build}/jsps.txt"/>
<echo file="${tmpfile}">${jsps.prop}</echo>
<replace file="${tmpfile}" token=":" value=" "/>
<loadfile property="jsps" srcFile="${tmpfile}"/>
<echo>Precompiling JSPs (use -Dskip.precompile=true to skip)...</echo>
<java classname="weblogic.jspc" fork="yes">
<arg line="-d ${build.weblogic}/WEB-INF/classes -k -g -webapp ${build.war} ${jsps}"/>
<classpath>
<pathelement path="./log4j-1.2.8.jar"/>
<pathelement path="${wl.java}/lib/tools.jar"/>
<pathelement path="${wl.home}/server/lib/weblogic.jar"/>
<pathelement path="${wl.home}/common/lib/3rdparty.jar"/>
</classpath>
</java>
</target>

See here:

[host1]/opt/data/jira/atlassian-jira-enterprise-3.0.3 $ ./build.sh weblogic.war
Buildfile: build.xml

init:

compile:
Copying 2468 files to /opt/data/jira/atlassian-jira-enterprise-3.0.3/tmp/build/war
Copying 6 files to /opt/data/jira/atlassian-jira-enterprise-3.0.3/tmp/build/war

check.weblogic.present:

weblogic.precompile:
Precompiling JSPs (use -Dskip.precompile=true to skip)...

weblogic.war:
Building jar: /opt/data/jira/atlassian-jira-enterprise-3.0.3/dist-weblogic/atlassian-jira-3.0.3.war

--------------------------------------------------
Deployable WAR for Weblogic generated:

/opt/data/jira/atlassian-jira-enterprise-3.0.3/dist-weblogic/atlassian-jira-3.0.3.war

--------------------------------------------------

BUILD SUCCESSFUL
Total time: 1 minute 32 seconds

Joerg.


Anton Mazkovoi [Atlassian] added a comment - 16/Feb/05 01:34 AM
Thanks for the pointer! We will fix this up for the next release.

Mark Chaimungkalanont [Atlassian] added a comment - 14/Apr/05 08:15 PM
Fixed problems with WLS7 & 8.1sp3 prior. Note that both of the logging fields used for fix have been deprecated. Using this for compatability with pre 1.2.6 logj. This will cause failures with the upcoming log4j 3.0, but we'll cross that bridge when we come to it.

The elements doesn't provide that much vital information and really probably can be omitted if neccessary.


Rob Schafer added a comment - 20/Apr/05 02:58 PM
I'm getting this same issue with Jira 3.1.1 Enterprise (eval) running under WL 8.1 SP4, Red Hat Enterprise Linux AS.

I don't believe WebLogic uses log4J - the current <a href="http://edocs.beasys.com/wls/docs81/javadocs/weblogic/logging/package-summary.html">logging docs</a> refer to JDK 1.4's underlying java.util.logging package.

No biggie.


Chris Mountford [Atlassian] added a comment - 14/Aug/06 09:36 PM
This bug is reported to have reappeared in 3.6.1 with a different version of weblogic (unknown at this stage but the precompiler stack trace has different line numbers)
emailed support query

While compiling Jira application, I am getting following error. Can you see what could be the problem.

Note: Recompile with -deprecation for details.

check.weblogic.present:

weblogic.precompile:

weblogic.war:

BUILD FAILED
file:/opt/bea_jira/user_projects/domains/jira-domain/atlassian-jira-enterprise-3.6.1/build.xml:174: /opt/bea_jira/user_projects/domains/jira-domain/atlassian-jira-enterprise-3.6.1/tmp/build/weblogic not found.

If I use precompile, Build completes with few errors but is not deployment fails.
-bash-2.05b$ ./build.sh weblogic.war
Buildfile: build.xml

init:

clean:
Deleting directory /opt/bea_jira/user_projects/domains/jira-domain/atlassian-jira-enterprise-3.6.1/tmp/build
Deleting directory /opt/bea_jira/user_projects/domains/jira-domain/atlassian-jira-enterprise-3.6.1/dist-generic
Deleting directory /opt/bea_jira/user_projects/domains/jira-domain/atlassian-jira-enterprise-3.6.1/dist-tomcat
Deleting directory /opt/bea_jira/user_projects/domains/jira-domain/atlassian-jira-enterprise-3.6.1/tmp

compile:
Created dir: /opt/bea_jira/user_projects/domains/jira-domain/atlassian-jira-enterprise-3.6.1/tmp/build/war
Created dir: /opt/bea_jira/user_projects/domains/jira-domain/atlassian-jira-enterprise-3.6.1/dist-generic
Created dir: /opt/bea_jira/user_projects/domains/jira-domain/atlassian-jira-enterprise-3.6.1/dist-tomcat
Copying 3778 files to /opt/bea_jira/user_projects/domains/jira-domain/atlassian-jira-enterprise-3.6.1/tmp/build/war
Copied 2 empty directories to /opt/bea_jira/user_projects/domains/jira-domain/atlassian-jira-enterprise-3.6.1/tmp/build/war

Copying 4 files to /opt/bea_jira/user_projects/domains/jira-domain/atlassian-jira-enterprise-3.6.1/tmp/build/war
Compiling 1 source file to /opt/bea_jira/user_projects/domains/jira-domain/atlassian-jira-enterprise-3.6.1/tmp/build/war/WEB-INF/classes

Note: /opt/bea_jira/user_projects/domains/jira-domain/atlassian-jira-enterprise-3.6.1/src/BugzillaImportBean.java uses or overrides a deprecated API.

Note: Recompile with -deprecation for details.

check.weblogic.present:

weblogic.precompile:
Precompiling JSPs (use -Dskip.precompile=true to skip)...
Error: [jspc]: 1 file(s) failed:
/500page.jsp
Exception in thread "main"
[Compilation errors : ]

/opt/bea_jira/user_projects/domains/jira-domain/atlassian-jira-enterprise-3.6.1/tmp/build/
weblogic/WEB-INF/classes/jsp_servlet/__500page.java:483: cannot resolve symbol

symbol : variable level
location: class org.apache.log4j.spi.LoggingEvent
out.print(String.valueOf( loggingEvent.level )); //[ /500page.jsp; Line: 245]
^
1 error

at weblogic.jspc.doCompile(jspc.java:861)
at weblogic.jspc.runJspc(jspc.java:654)
at weblogic.jspc.runBodyInternal(jspc.java:412)
at weblogic.jspc.runBody(jspc.java:319)
at weblogic.utils.compiler.Tool.run(Tool.java:192)
at weblogic.utils.compiler.Tool.run(Tool.java:147)
at weblogic.jspc.main(jspc.java:730)

java.lang.Exception: [Compilation errors : ]

/opt/bea_jira/user_projects/domains/jira-domain/atlassian-jira-enterprise-3.6.1/tmp/build/
weblogic/WEB-INF/classes/jsp_servlet/__500page.java:483: cannot resolve symbol

symbol : variable level
location: class org.apache.log4j.spi.LoggingEvent
out.print(String.valueOf( loggingEvent.level )); //[ /500page.jsp; Line: 245]
^
1 error

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

Java Result: 1

weblogic.war:
Building jar: /opt/bea_jira/user_projects/domains/jira-domain/atlassian-jira-enterprise-3.6.1/dist-weblogic/atlassian-jira-3.6.1.war

--------------------------------------------------
Deployable WAR for Weblogic generated:

/opt/bea_jira/user_projects/domains/jira-domain/atlassian-jira-enterprise-3.6.1/dist-weblogic/atlassian-jira-3.6.1.war

--------------------------------------------------

BUILD SUCCESSFUL
Total time: 11 minutes 36 seconds


Steve Dalton added a comment - 02/Sep/07 05:30 PM
I am seeing this same issue with 3.10.2 and Weblogic 8.1 SP4. Will try the workaround for now.

Jed Wesley-Smith [Atlassian] added a comment - 06/Dec/07 08:00 PM
The fix for this issue has not been able to make it into JIRA v3.12. We are hoping to incorporate it into v3.12.1. As of writing however, there are 163 items scheduled as Fix For v3.12.1. We will not be able to include all of them.