Hi:
If you're using Eclipse, please check your installed JDK. Follow this blog
for details:
http://albertattard.blogspot.com/2009/08/jsp-compile-error-in-eclipse.html

<http://albertattard.blogspot.com/2009/08/jsp-compile-error-in-eclipse.html>Hope
this helps,
Albert Attard

Ogden Nash <http://www.brainyquote.com/quotes/authors/o/ogden_nash.html>  -
"The trouble with a kitten is that when it grows up, it's always a cat."

2009/8/30 Klaro <klaus.rog...@web.de>

>
> I'm trying to use Tag Libs that are expressed as JSP file (as
> explained in JSP Spec V2.1, §8 and §8.5). Those JSP Tag Lib files need
> to be placed in a subdir of WEB-INF/tags - usually with the file name
> extension ".tag" or "tagx" insetad of ".jsp" or "jspx".
>
> Creating & using them on the dev system works fine and as expected,
> but when I deploy them, I get the exception below - no matter how
> simple the content is.
>
> There is a message saying "Unable to find a javac compiler" and
> "Perhaps JAVA_HOME does not point to the JDK". Since compiling of
> regular JPS files works fine during deployment this cannot be the real
> reason (BTW, JAVA_HOME *is* set properly).
>
> Any ideas? Fixes needed?
>
> Regards,
>
> Klaus
>
> ---------- snip -------- snap ------------
> Creating staging directory
> Scanning for jsp files.
> Compiling jsp files.
> com.google.appengine.tools.admin.JspCompilationException: Failed to
> compile jsp files.
> 30.08.2009 22:39:37 org.apache.jasper.JspC processFile
> INFO: Built File: \test.jsp
> 30.08.2009 22:39:37 org.apache.jasper.compiler.Compiler generateClass
> SCHWERWIEGEND: Error compiling file: /E:/Temp/Windows/appcfg35419.tmp/
> WEB-INF/classes//org/apache/jsp/tag/web/utils\clearcache_tagx.java
> [javac] Compiling 1 source file
>
> 30.08.2009 22:39:37 org.apache.jasper.compiler.Compiler generateClass
> SCHWERWIEGEND: Javac exception
> Unable to find a javac compiler;
> com.sun.tools.javac.Main is not on the classpath.
> Perhaps JAVA_HOME does not point to the JDK
>        at
> org.apache.tools.ant.taskdefs.compilers.CompilerAdapterFactory.getCompiler
> (CompilerAdapterFactory.java:105)
>        at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:924)
>        at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:757)
>        at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:
> 382)
>        at org.apache.jasper.compiler.Compiler.compile(Compiler.java:472)
>        at org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
>        at org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
>        at org.apache.jasper.JspCompilationContext.compile
> (JspCompilationContext.java:511)
>        at org.apache.jasper.servlet.JspServletWrapper.loadTagFile
> (JspServletWrapper.java:201)
>        at org.apache.jasper.compiler.TagFileProcessor.loadTagFile
> (TagFileProcessor.java:514)
>        at org.apache.jasper.compiler.TagFileProcessor.access$000
> (TagFileProcessor.java:47)
>        at org.apache.jasper.compiler.TagFileProcessor
> $TagFileLoaderVisitor.visit(TagFileProcessor.java:565)
>        at org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1441)
>        at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163)
>        at org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2213)
>        at org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2224)
>        at org.apache.jasper.compiler.Node$JspRoot.accept(Node.java:525)
>        at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163)
>        at org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2213)
>        at org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2219)
>        at org.apache.jasper.compiler.Node$Root.accept(Node.java:456)
>        at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163)
>        at org.apache.jasper.compiler.TagFileProcessor.loadTagFiles
> (TagFileProcessor.java:583)
>        at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:
> 226)
>        at org.apache.jasper.compiler.Compiler.compile(Compiler.java:470)
>        at org.apache.jasper.JspC.processFile(JspC.java:779)
>        at org.apache.jasper.JspC.execute(JspC.java:908)
>        at com.google.appengine.tools.development.LocalJspC.main
> (LocalJspC.java:17)
>
>   [...rest of messages omitted...]
>
> --------- end of stacktrace -------
>
>
> --------- A few lines further below ----------
>
> Generated servlet error:
>    extension dir=C:\Programme\Java\JDK 6\jre\lib\ext;C:\Windows\Sun
> \Java\lib\ext
>    srcDir=E:\Temp\Windows\appcfg35419.tmp\WEB-INF\classes
>    include=org/apache/jsp/tag/web/utils/clearcache_tagx.java
>
> Debugging information may be found in E:\Temp\Windows\appengine-
> deploy35418.log
>
> ------ appengine-deploy35418.log --------
> Unable to upload:
> com.google.appengine.tools.admin.JspCompilationException: Failed to
> compile jsp files.
>        at com.google.appengine.tools.admin.Application.compileJsps
> (Application.java:357)
>        at
> com.google.appengine.tools.admin.Application.createStagingDirectory
> (Application.java:237)
>        at com.google.appengine.tools.admin.AppAdminImpl.update
> (AppAdminImpl.java:51)
>        at
> com.google.appengine.eclipse.core.proxy.AppEngineBridgeImpl.deploy
> (AppEngineBridgeImpl.java:271)
>        at
> com.google.appengine.eclipse.core.deploy.DeployProjectJob.runInWorkspace
> (DeployProjectJob.java:148)
>        at org.eclipse.core.internal.resources.InternalWorkspaceJob.run
> (InternalWorkspaceJob.java:38)
>        at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
>
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-java@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to