tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Josh Joy" <joshjd...@gmail.com>
Subject JspC processFile java.lang.NullPointerException
Date Wed, 05 Nov 2008 02:47:27 GMT
Am receiving the following when trying to precompile my jsp. Server starts
up and pages run fine without precompiling.

Using apache-tomcat-6.0.18


    <property name="webapp.path" value="./WebContent" />

    <import file="${tomcat.home}/bin/catalina-tasks.xml"/>


    <target name="jspc">
        <delete quiet="true">
            <fileset dir="${webapp.path}/WEB-INF/classes/org/apache/jsp"/>
        </delete>


        <jasper validateXml="false"
                 uriroot="${webapp.path}"
                 webXmlFragment="${webapp.path}/WEB-INF/generated_web.xml"
                 addWebXmlMappings="true"
                 outputDir="${webapp.path}/WEB-INF/classes"
                 compilerSourceVM="1.6" compilerTargetVM="1.6"
                 />

    </target>





   [jasper] Nov 4, 2008 8:46:43 PM org.apache.jasper.JspC processFile
   [jasper] SEVERE: ERROR-the file '/WEB-INF/views/upload/page.jsp'
generated the following general exception:
   [jasper] java.lang.NullPointerException
   [jasper]     at sun.misc.URLClassPath$3.run(URLClassPath.java:323)
   [jasper]     at java.security.AccessController.doPrivileged(Native
Method)
   [jasper]     at sun.misc.URLClassPath.getLoader(URLClassPath.java:320)
   [jasper]     at sun.misc.URLClassPath.getLoader(URLClassPath.java:297)
   [jasper]     at sun.misc.URLClassPath.getResource(URLClassPath.java:167)
   [jasper]     at java.net.URLClassLoader$1.run(URLClassLoader.java:192)
   [jasper]     at java.security.AccessController.doPrivileged(Native
Method)
   [jasper]     at
java.net.URLClassLoader.findClass(URLClassLoader.java:188)
   [jasper]     at
org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:134)
   [jasper]     at
org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:66)
   [jasper]     at
org.apache.jasper.JspCompilationContext.load(JspCompilationContext.java:618)
   [jasper]     at
org.apache.jasper.servlet.JspServletWrapper.loadTagFile(JspServletWrapper.java:224)
   [jasper]     at
org.apache.jasper.compiler.TagFileProcessor.loadTagFile(TagFileProcessor.java:576)
   [jasper]     at
org.apache.jasper.compiler.TagFileProcessor.access$000(TagFileProcessor.java:50)
   [jasper]     at
org.apache.jasper.compiler.TagFileProcessor$TagFileLoaderVisitor.visit(TagFileProcessor.java:636)
   [jasper]     at
org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1512)
   [jasper]     at
org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2343)
   [jasper]     at
org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2393)
   [jasper]     at
org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2399)
   [jasper]     at
org.apache.jasper.compiler.Node$Root.accept(Node.java:489)
   [jasper]     at
org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2343)
   [jasper]     at
org.apache.jasper.compiler.TagFileProcessor.loadTagFiles(TagFileProcessor.java:654)
   [jasper]     at
org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:178)
   [jasper]     at
org.apache.jasper.compiler.Compiler.compile(Compiler.java:315)
   [jasper]     at org.apache.jasper.JspC.processFile(JspC.java:1010)
   [jasper]     at org.apache.jasper.JspC.execute(JspC.java:1159)
   [jasper]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
   [jasper]     at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
   [jasper]     at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   [jasper]     at java.lang.reflect.Method.invoke(Method.java:597)
   [jasper]     at
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
   [jasper]     at
org.apache.tools.ant.TaskAdapter.execute(TaskAdapter.java:134)
   [jasper]     at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
   [jasper]     at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown
Source)
   [jasper]     at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   [jasper]     at java.lang.reflect.Method.invoke(Method.java:597)
   [jasper]     at
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
   [jasper]     at org.apache.tools.ant.Task.perform(Task.java:348)
   [jasper]     at org.apache.tools.ant.Target.execute(Target.java:357)
   [jasper]     at org.apache.tools.ant.Target.performTasks(Target.java:385)
   [jasper]     at
org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
   [jasper]     at
org.apache.tools.ant.Project.executeTarget(Project.java:1298)
   [jasper]     at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
   [jasper]     at
org.eclipse.ant.internal.ui.antsupport.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)
   [jasper]     at
org.apache.tools.ant.Project.executeTargets(Project.java:1181)
   [jasper]     at
org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAntRunner.java:423)
   [jasper]     at
org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAntRunner.java:137)
   [jasper] java.lang.NullPointerException
   [jasper]     at sun.misc.URLClassPath$3.run(URLClassPath.java:323)
   [jasper]     at java.security.AccessController.doPrivileged(Native
Method)
   [jasper]     at sun.misc.URLClassPath.getLoader(URLClassPath.java:320)
   [jasper]     at sun.misc.URLClassPath.getLoader(URLClassPath.java:297)
   [jasper]     at sun.misc.URLClassPath.getResource(URLClassPath.java:167)
   [jasper]     at java.net.URLClassLoader$1.run(URLClassLoader.java:192)
   [jasper]     at java.security.AccessController.doPrivileged(Native
Method)
   [jasper]     at
java.net.URLClassLoader.findClass(URLClassLoader.java:188)
   [jasper]     at
org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:134)
   [jasper]     at
org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:66)
   [jasper]     at
org.apache.jasper.JspCompilationContext.load(JspCompilationContext.java:618)
   [jasper]     at
org.apache.jasper.servlet.JspServletWrapper.loadTagFile(JspServletWrapper.java:224)
   [jasper]     at
org.apache.jasper.compiler.TagFileProcessor.loadTagFile(TagFileProcessor.java:576)
   [jasper]     at
org.apache.jasper.compiler.TagFileProcessor.access$000(TagFileProcessor.java:50)
   [jasper]     at
org.apache.jasper.compiler.TagFileProcessor$TagFileLoaderVisitor.visit(TagFileProcessor.java:636)
   [jasper]     at
org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1512)
   [jasper]     at
org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2343)
   [jasper]     at
org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2393)
   [jasper]     at
org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2399)
   [jasper]     at
org.apache.jasper.compiler.Node$Root.accept(Node.java:489)
   [jasper]     at
org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2343)
   [jasper]     at
org.apache.jasper.compiler.TagFileProcessor.loadTagFiles(TagFileProcessor.java:654)
   [jasper]     at
org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:178)
   [jasper]     at
org.apache.jasper.compiler.Compiler.compile(Compiler.java:315)
   [jasper]     at org.apache.jasper.JspC.processFile(JspC.java:1010)
   [jasper]     at org.apache.jasper.JspC.execute(JspC.java:1159)
   [jasper]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
   [jasper]     at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
   [jasper]     at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   [jasper]     at java.lang.reflect.Method.invoke(Method.java:597)
   [jasper]     at
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
   [jasper]     at
org.apache.tools.ant.TaskAdapter.execute(TaskAdapter.java:134)
   [jasper]     at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
   [jasper]     at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown
Source)
   [jasper]     at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   [jasper]     at java.lang.reflect.Method.invoke(Method.java:597)
   [jasper]     at
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
   [jasper]     at org.apache.tools.ant.Task.perform(Task.java:348)
   [jasper]     at org.apache.tools.ant.Target.execute(Target.java:357)
   [jasper]     at org.apache.tools.ant.Target.performTasks(Target.java:385)
   [jasper]     at
org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
   [jasper]     at
org.apache.tools.ant.Project.executeTarget(Project.java:1298)
   [jasper]     at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
   [jasper]     at
org.eclipse.ant.internal.ui.antsupport.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)
   [jasper]     at
org.apache.tools.ant.Project.executeTargets(Project.java:1181)
   [jasper]     at
org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAntRunner.java:423)
   [jasper]     at
org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAntRunner.java:137)

BUILD FAILED
/home/josh/dev/workspace/32bitganymede/refactor/BOCWeb/bocwebBuildProd.xml:49:
org.apache.jasper.JasperException: Unable to compile class for JSP
    at
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:115)
    at org.apache.tools.ant.TaskAdapter.execute(TaskAdapter.java:134)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
    at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
    at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
    at org.apache.tools.ant.Task.perform(Task.java:348)
    at org.apache.tools.ant.Target.execute(Target.java:357)
    at org.apache.tools.ant.Target.performTasks(Target.java:385)
    at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
    at org.apache.tools.ant.Project.executeTarget(Project.java:1298)
    at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
    at
org.eclipse.ant.internal.ui.antsupport.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)
    at org.apache.tools.ant.Project.executeTargets(Project.java:1181)
    at
org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAntRunner.java:423)
    at
org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAntRunner.java:137)
Caused by: org.apache.jasper.JasperException: Unable to compile class for
JSP
    at
org.apache.jasper.JspCompilationContext.load(JspCompilationContext.java:623)
    at
org.apache.jasper.servlet.JspServletWrapper.loadTagFile(JspServletWrapper.java:224)
    at
org.apache.jasper.compiler.TagFileProcessor.loadTagFile(TagFileProcessor.java:576)
    at
org.apache.jasper.compiler.TagFileProcessor.access$000(TagFileProcessor.java:50)
    at
org.apache.jasper.compiler.TagFileProcessor$TagFileLoaderVisitor.visit(TagFileProcessor.java:636)
    at org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1512)
    at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2343)
    at org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2393)
    at org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2399)
    at org.apache.jasper.compiler.Node$Root.accept(Node.java:489)
    at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2343)
    at
org.apache.jasper.compiler.TagFileProcessor.loadTagFiles(TagFileProcessor.java:654)
    at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:178)
    at org.apache.jasper.compiler.Compiler.compile(Compiler.java:315)
    at org.apache.jasper.JspC.processFile(JspC.java:1010)
    at org.apache.jasper.JspC.execute(JspC.java:1159)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
    ... 16 more
Caused by: java.lang.NullPointerException
    at sun.misc.URLClassPath$3.run(URLClassPath.java:323)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.misc.URLClassPath.getLoader(URLClassPath.java:320)
    at sun.misc.URLClassPath.getLoader(URLClassPath.java:297)
    at sun.misc.URLClassPath.getResource(URLClassPath.java:167)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:192)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    at
org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:134)
    at
org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:66)
    at
org.apache.jasper.JspCompilationContext.load(JspCompilationContext.java:618)
    ... 36 more
--- Nested Exception ---
org.apache.jasper.JasperException: Unable to compile class for JSP
    at
org.apache.jasper.JspCompilationContext.load(JspCompilationContext.java:623)
    at
org.apache.jasper.servlet.JspServletWrapper.loadTagFile(JspServletWrapper.java:224)
    at
org.apache.jasper.compiler.TagFileProcessor.loadTagFile(TagFileProcessor.java:576)
    at
org.apache.jasper.compiler.TagFileProcessor.access$000(TagFileProcessor.java:50)
    at
org.apache.jasper.compiler.TagFileProcessor$TagFileLoaderVisitor.visit(TagFileProcessor.java:636)
    at org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1512)
    at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2343)
    at org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2393)
    at org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2399)
    at org.apache.jasper.compiler.Node$Root.accept(Node.java:489)
    at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2343)
    at
org.apache.jasper.compiler.TagFileProcessor.loadTagFiles(TagFileProcessor.java:654)
    at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:178)
    at org.apache.jasper.compiler.Compiler.compile(Compiler.java:315)
    at org.apache.jasper.JspC.processFile(JspC.java:1010)
    at org.apache.jasper.JspC.execute(JspC.java:1159)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
    at org.apache.tools.ant.TaskAdapter.execute(TaskAdapter.java:134)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
    at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
    at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
    at org.apache.tools.ant.Task.perform(Task.java:348)
    at org.apache.tools.ant.Target.execute(Target.java:357)
    at org.apache.tools.ant.Target.performTasks(Target.java:385)
    at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
    at org.apache.tools.ant.Project.executeTarget(Project.java:1298)
    at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
    at
org.eclipse.ant.internal.ui.antsupport.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)
    at org.apache.tools.ant.Project.executeTargets(Project.java:1181)
    at
org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAntRunner.java:423)
    at
org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAntRunner.java:137)
Caused by: java.lang.NullPointerException
    at sun.misc.URLClassPath$3.run(URLClassPath.java:323)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.misc.URLClassPath.getLoader(URLClassPath.java:320)
    at sun.misc.URLClassPath.getLoader(URLClassPath.java:297)
    at sun.misc.URLClassPath.getResource(URLClassPath.java:167)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:192)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    at
org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:134)
    at
org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:66)
    at
org.apache.jasper.JspCompilationContext.load(JspCompilationContext.java:618)
    ... 36 more

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message