Bug 640926 - No Java Compiler error during jsp compilation
Summary: No Java Compiler error during jsp compilation
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Spacewalk
Classification: Community
Component: Server
Version: 1.2
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Lukas Zapletal
QA Contact: Red Hat Satellite QA List
URL:
Whiteboard:
Depends On:
Blocks: space12
TreeView+ depends on / blocked
 
Reported: 2010-10-07 08:38 UTC by Lukas Zapletal
Modified: 2010-11-19 16:16 UTC (History)
0 users

Fixed In Version: spacewalk-java-1.2.53-1
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-11-19 16:16:12 UTC
Embargoed:


Attachments (Terms of Use)

Description Lukas Zapletal 2010-10-07 08:38:21 UTC
Description of problem:

On some configurations (RHEL 5.5) I get No Java Compiler error during jsp compilation.

jspcompile:
    [mkdir] Created dir: /usr/src/redhat/BUILD/spacewalk-java-git-6.06b9ff0/build/jsp-temp
  [jasper2] java.lang.IllegalStateException: No Java compiler available
  [jasper2] 	at org.apache.jasper.JspCompilationContext.createCompiler(JspCompilationContext.java:225)
  [jasper2] 	at org.apache.jasper.JspC.processFile(JspC.java:985)
  [jasper2] 	at org.apache.jasper.JspC.execute(JspC.java:1141)
  [jasper2] 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  [jasper2] 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
  [jasper2] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  [jasper2] 	at java.lang.reflect.Method.invoke(Method.java:616)
  [jasper2] 	at org.apache.tools.ant.TaskAdapter.execute(TaskAdapter.java:123)
  [jasper2] 	at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
  [jasper2] 	at org.apache.tools.ant.Task.perform(Task.java:364)
  [jasper2] 	at org.apache.tools.ant.Target.execute(Target.java:341)
  [jasper2] 	at org.apache.tools.ant.Target.performTasks(Target.java:369)
  [jasper2] 	at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
  [jasper2] 	at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:37)
  [jasper2] 	at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
  [jasper2] 	at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:382)
  [jasper2] 	at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:107)
  [jasper2] 	at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
  [jasper2] 	at org.apache.tools.ant.Task.perform(Task.java:364)
  [jasper2] 	at org.apache.tools.ant.Target.execute(Target.java:341)
  [jasper2] 	at org.apache.tools.ant.Target.performTasks(Target.java:369)
  [jasper2] 	at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
  [jasper2] 	at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
  [jasper2] 	at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
  [jasper2] 	at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
  [jasper2] 	at org.apache.tools.ant.Main.runBuild(Main.java:668)
  [jasper2] 	at org.apache.tools.ant.Main.startAnt(Main.java:187)
  [jasper2] 	at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
  [jasper2] 	at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)



Version-Release number of selected component (if applicable):

Spacewalk trunk


How reproducible:

ant all

Comment 2 Lukas Zapletal 2010-10-07 09:03:14 UTC
This exception has nothing to do with compiler being not available. Its a logging related issue:

http://www.mail-archive.com/ivy-user@ant.apache.org/msg02890.html

I changed commons logging configuration for jspcompile (jasper2) taskdef so this should not happen anymore.

Commited in d9846bfde65c9761f837d327ac975f875755dc1e.

Comment 5 Jan Pazdziora 2010-11-19 16:16:12 UTC
With Spacewalk 1.2 released, marking as CLOSED CURRENTRELEASE.

https://www.redhat.com/archives/spacewalk-list/2010-November/msg00111.html


Note You need to log in before you can comment on or make changes to this bug.