DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=37084>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=37084

           Summary: JspC from ant fails on JSPs that use custom taglib
           Product: Tomcat 5
           Version: 5.5.12
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: regression
          Priority: P2
         Component: Jasper
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: [EMAIL PROTECTED]


The following error doesn't occur when using tomcat 5.5.9

Seems to be related to the use of a custom taglib in a JSP
that is included by another JSP


The JSP and custom taglib work fine when served by tomcat.
But the ant build script fails.


jspc:
  [jasper2] Oct 13, 2005 2:54:18 PM org.apache.jasper.JspC processFile
  [jasper2] SEVERE: ERROR-the file '\WEB-INF\jsp\headerComponent.jsp' generated
the following general exception:
  [jasper2] java.lang.NullPointerException
  [jasper2]     at sun.misc.URLClassPath$3.run(URLClassPath.java:316)
  [jasper2]     at java.security.AccessController.doPrivileged(Native Method)
  [jasper2]     at sun.misc.URLClassPath.getLoader(URLClassPath.java:313)
  [jasper2]     at sun.misc.URLClassPath.getLoader(URLClassPath.java:290)
  [jasper2]     at sun.misc.URLClassPath.getResource(URLClassPath.java:160)
  [jasper2]     at java.net.URLClassLoader$1.run(URLClassLoader.java:192)
  [jasper2]     at java.security.AccessController.doPrivileged(Native Method)
  [jasper2]     at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
  [jasper2]     at
org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:133)
  [jasper2]     at
org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:65)
  [jasper2]     at
org.apache.jasper.JspCompilationContext.load(JspCompilationContext.java:596)
  [jasper2]     at
org.apache.jasper.servlet.JspServletWrapper.loadTagFile(JspServletWrapper.java:209)
  [jasper2]     at
org.apache.jasper.compiler.TagFileProcessor.loadTagFile(TagFileProcessor.java:515)
  [jasper2]     at
org.apache.jasper.compiler.TagFileProcessor.access$000(TagFileProcessor.java:48)
  [jasper2]     at
org.apache.jasper.compiler.TagFileProcessor$TagFileLoaderVisitor.visit(TagFileProcessor.java:566)
  [jasper2]     at 
org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1441)
  [jasper2]     at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163)
  [jasper2]     at 
org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2213)
  [jasper2]     at org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2219)
  [jasper2]     at org.apache.jasper.compiler.Node$Root.accept(Node.java:456)
  [jasper2]     at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163)
  [jasper2]     at
org.apache.jasper.compiler.TagFileProcessor.loadTagFiles(TagFileProcessor.java:584)
  [jasper2]     at
org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:169)
  [jasper2]     at 
org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
  [jasper2]     at org.apache.jasper.JspC.processFile(JspC.java:953)
  [jasper2]     at org.apache.jasper.JspC.execute(JspC.java:1094)
  [jasper2]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  [jasper2]     at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  [jasper2]     at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  [jasper2]     at java.lang.reflect.Method.invoke(Method.java:585)
  [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.SubAnt.execute(SubAnt.java:277)
  [jasper2]     at org.apache.tools.ant.taskdefs.SubAnt.execute(SubAnt.java:201)
  [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)
  [jasper2] java.lang.NullPointerException
  [jasper2]     at sun.misc.URLClassPath$3.run(URLClassPath.java:316)
  [jasper2]     at java.security.AccessController.doPrivileged(Native Method)
  [jasper2]     at sun.misc.URLClassPath.getLoader(URLClassPath.java:313)
  [jasper2]     at sun.misc.URLClassPath.getLoader(URLClassPath.java:290)
  [jasper2]     at sun.misc.URLClassPath.getResource(URLClassPath.java:160)
  [jasper2]     at java.net.URLClassLoader$1.run(URLClassLoader.java:192)
  [jasper2]     at java.security.AccessController.doPrivileged(Native Method)
  [jasper2]     at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
  [jasper2]     at
org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:133)
  [jasper2]     at
org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:65)
  [jasper2]     at
org.apache.jasper.JspCompilationContext.load(JspCompilationContext.java:596)
  [jasper2]     at
org.apache.jasper.servlet.JspServletWrapper.loadTagFile(JspServletWrapper.java:209)
  [jasper2]     at
org.apache.jasper.compiler.TagFileProcessor.loadTagFile(TagFileProcessor.java:515)
  [jasper2]     at
org.apache.jasper.compiler.TagFileProcessor.access$000(TagFileProcessor.java:48)
  [jasper2]     at
org.apache.jasper.compiler.TagFileProcessor$TagFileLoaderVisitor.visit(TagFileProcessor.java:566)
  [jasper2]     at 
org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1441)
  [jasper2]     at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163)
  [jasper2]     at 
org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2213)
  [jasper2]     at org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2219)
  [jasper2]     at org.apache.jasper.compiler.Node$Root.accept(Node.java:456)
  [jasper2]     at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163)
  [jasper2]     at
org.apache.jasper.compiler.TagFileProcessor.loadTagFiles(TagFileProcessor.java:584)
  [jasper2]     at
org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:169)
  [jasper2]     at 
org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
  [jasper2]     at org.apache.jasper.JspC.processFile(JspC.java:953)
  [jasper2]     at org.apache.jasper.JspC.execute(JspC.java:1094)
  [jasper2]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  [jasper2]     at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  [jasper2]     at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  [jasper2]     at java.lang.reflect.Method.invoke(Method.java:585)
  [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.SubAnt.execute(SubAnt.java:277)
  [jasper2]     at org.apache.tools.ant.taskdefs.SubAnt.execute(SubAnt.java:201)
  [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)

BUILD FAILED
C:\cvs\kls\build.xml:79: The following error occurred while executing this line:
C:\cvs\kls\war.xml:114: org.apache.jasper.JasperException: Unable to compile
class for JSP

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to