[appengine-java] Re: Exception while deploying JSP Tag Lib Files
Klaus - I had the same problem, but there is a way to fix it. Take a look at the link suggested by Rajeev: http://groups.google.com/group/google-appengine-java/browse_thread/thread/175e70cc0c93ded9 About 75% of the way deep into the thread you'll start to find some solutions. For me, there were two things that I had to do (these are detailed in that thread): 1. Copy tools.jar into the AppEngine lib/shared directory. 2. Modify appcfg.cmd so it fully-qualifies the reference to java.exe in the JDK/bin directory. I switched from Eclipse to IntelliJ IDEA a month or two ago, and upgraded to the newest App Engine SDK. However #1 was still required on my machine. Don't give up hope, you're almost there! - Jim --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[appengine-java] Re: Exception while deploying JSP Tag Lib Files
I forgot to point out that the deployment works fine for *regular* JSP file. Everything works fine if you *don't* have JSP Tag files, so if you don't make use of the tag world (resp. if you delet the file world.tagx) in the above example. It' not a general failure of the deployment process, and I successfully had deployed JSP files before. On 30 Aug., 23:28, Albert Attard albertatt...@gmail.com wrote: 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... http://albertattard.blogspot.com/2009/08/jsp-compile-error-in-eclipse...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
[appengine-java] Re: Exception while deploying JSP Tag Lib Files
Hey Klaus, I think you may be running into the issue mentioned here: http://groups.google.com/group/google-appengine-java/browse_thread/thread/175e70cc0c93ded9 This is a pretty bad hack, but can you try copying the tools.jar file from your JDK's directory (the one which your project in Eclipse is using) over to your App Engine SDK's lib/shared directory and see if that helps? Rajeev On Tue, Sep 1, 2009 at 2:20 PM, Klaus klaus.rog...@web.de wrote: I forgot to point out that the deployment works fine for *regular* JSP file. Everything works fine if you *don't* have JSP Tag files, so if you don't make use of the tag world (resp. if you delet the file world.tagx) in the above example. It' not a general failure of the deployment process, and I successfully had deployed JSP files before. On 30 Aug., 23:28, Albert Attard albertatt...@gmail.com wrote: 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... http://albertattard.blogspot.com/2009/08/jsp-compile-error-in-eclipse.. .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
[appengine-java] Re: Exception while deploying JSP Tag Lib Files
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.htmlHope 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