Return-Path: Delivered-To: apmail-geronimo-dev-archive@www.apache.org Received: (qmail 56642 invoked from network); 25 Aug 2006 07:33:19 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 25 Aug 2006 07:33:19 -0000 Received: (qmail 57358 invoked by uid 500); 25 Aug 2006 07:33:16 -0000 Delivered-To: apmail-geronimo-dev-archive@geronimo.apache.org Received: (qmail 57315 invoked by uid 500); 25 Aug 2006 07:33:16 -0000 Mailing-List: contact dev-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@geronimo.apache.org List-Id: Delivered-To: mailing list dev@geronimo.apache.org Received: (qmail 57304 invoked by uid 99); 25 Aug 2006 07:33:15 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 25 Aug 2006 00:33:15 -0700 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=DNS_FROM_RFC_ABUSE,HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of elinsn@gmail.com designates 72.14.204.238 as permitted sender) Received: from [72.14.204.238] (HELO qb-out-0506.google.com) (72.14.204.238) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 25 Aug 2006 00:33:14 -0700 Received: by qb-out-0506.google.com with SMTP id d7so201688qbd for ; Fri, 25 Aug 2006 00:32:53 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=i+xCdu+UycBwrfNMrXBi5LoH0xb91faauIorAS0mgyaKhB4uQkxbi+3b9R6AbkNZxHtucfDQFFlBNz2u3B1wL5NitXPVs9gJuBrVCkniDawlyH/aLB4zYTLMdClWF6YQ38P/UU7kX04f4/+SXgapyrWaxsOlCEFjiz4LC6HT108= Received: by 10.65.114.11 with SMTP id r11mr3293489qbm; Fri, 25 Aug 2006 00:32:53 -0700 (PDT) Received: by 10.65.243.17 with HTTP; Fri, 25 Aug 2006 00:32:52 -0700 (PDT) Message-ID: <2faaa0980608250032k40d12071qa9deed4af30c580d@mail.gmail.com> Date: Fri, 25 Aug 2006 11:32:52 +0400 From: "Sergey Elin" To: dev@geronimo.apache.org Subject: Re: Strange build error on trunk In-Reply-To: <2642897D-8BF3-4D1D-BBBE-F9155B0A3D07@planet57.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_91752_11300058.1156491172919" References: <44ED91CF.3090204@gmail.com> <44EDAA54.5000602@apache.org> <44EDB18E.3060102@gmail.com> <44EDBE2C.5050308@apache.org> <44EE79E0.6070107@earthlink.net> <2faaa0980608250013o4acef32awd28f1daacb234f9c@mail.gmail.com> <2642897D-8BF3-4D1D-BBBE-F9155B0A3D07@planet57.com> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N ------=_Part_91752_11300058.1156491172919 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Yes 2006/8/25, Jason Dillon : > > Does this file actually have that class > (org/eclipse/jdt/internal/compiler/env/INameEnvironment): > > /home/cruz/.m2/repository/tomcat/jasper-compiler-jdt/5.5.15/jasper- > compiler-jdt-5.5.15.jar > > --jason > > > On Aug 25, 2006, at 12:13 AM, Sergey Elin wrote: > > Here is a bit more info: > > [INFO] [jspc:compile {execution: jspc}] > [DEBUG] execute() starting for 0 pages. > [DEBUG] Parent class loader is: java.net.URLClassLoader@1db484d > [DEBUG] Compilation classpath initialized: > /usr/home/cruz/java/geronimo/applications/geronimo-examples/geronimo-jsp-examples/ > > > target/jsp-source:/usr/home/cruz/java/geronimo/applications/geronimo-examples/geronimo-jsp-examples/target/classes:/home/cruz > /.m2/repository/javax/servlet/jstl/1.1.1/jstl- > 1.1.1.jar:/home/cruz/.m2/repository/taglibs/standard/1.1.1/standard-1.1.1.jar:/ > home/cruz/.m2/repository/tomcat/jasper-compiler/5.5.15/jasper- > compiler-5.5.15.jar:/home/cruz/.m2/repository/tomcat/jasper-com > piler-jdt/5.5.15/jasper- > compiler-jdt-5.5.15.jar:/home/cruz/.m2/repository/org/apache/geronimo/specs/geronimo-jsp_2.0_spec/1.0 > .1/geronimo-jsp_2.0_spec- > 1.0.1.jar:/home/cruz/.m2/repository/org/apache/geronimo/specs/geronimo-servlet_2.4_spec/1.0.1/geroni > mo-servlet_2.4_spec-1.0.1.jar: > [DEBUG] No Java compiler available > java.lang.NoClassDefFoundError : > org/eclipse/jdt/internal/compiler/env/INameEnvironment > at java.lang.Class.forName0(Native Method) > at java.lang.Class.forName(Class.java:141) > at org.apache.jasper.JspCompilationContext.createCompiler ( > JspCompilationContext.java:233) > at org.apache.jasper.JspCompilationContext.createCompiler( > JspCompilationContext.java:213) > at org.apache.jasper.JspC.processFile(JspC.java:979) > at org.apache.jasper.JspC.execute (JspC.java:1135) > at org.codehaus.mojo.jspc.AbstractJspcMojo.execute( > AbstractJspcMojo.java:180) > at org.apache.maven.plugin.DefaultPluginManager.executeMojo( > DefaultPluginManager.java:412) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals( > DefaultLifecycleExecutor.java:534) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle > (DefaultLifecycleExecutor.java:475) > at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal > (DefaultLifecycleExecutor.java:454) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures > (DefaultLifecycleExecutor.java :306 > ) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments( > DefaultLifecycleExecutor.java:273) > at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute( > DefaultLifecycleExecutor.java :140) > at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322) > at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115) > at org.apache.maven.cli.MavenCli.main(MavenCli.java:256) > 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:324) > at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java > :315) > at org.codehaus.classworlds.Launcher.launch (Launcher.java:255) > at org.codehaus.classworlds.Launcher.mainWithExitCode( > Launcher.java:430) > at org.codehaus.classworlds.Launcher.main(Launcher.java:375) > [DEBUG] Generated > /usr/home/cruz/java/geronimo/applications/geronimo-examples/geronimo-jsp-examples/target/jsp-source/jsp/sou > > rce_jsp.java total=1401 generate=125 validate=1238 > [INFO] Built File: /source.jsp > [DEBUG] No Java compiler available > java.lang.NoClassDefFoundError: > org/eclipse/jdt/internal/compiler/env/INameEnvironment > at java.lang.Class.forName0(Native Method) > at java.lang.Class.forName(Class.java:141) > at org.apache.jasper.JspCompilationContext.createCompiler( > JspCompilationContext.java:233) > at org.apache.jasper.JspCompilationContext.createCompiler ( > JspCompilationContext.java:213) > at org.apache.jasper.JspC.processFile(JspC.java:979) > at org.apache.jasper.JspC.execute(JspC.java:1135) > > > 2006/8/25, Joe Bohn < joe.bohn@earthlink.net>: > > > > > > Is there any new news on this (or a work around)? It seems that Sergey > > had success with the 1.4.3 version of the jspc plugin. However, when I > > tried that I just get a different error (see below [1] ). The demo > > target includes just a web-fragment.xml file rather that a jsp-source > > directory. > > > > BDudney then recommended I try with the jsp compilation removed from > > demo. I gave that a shot this evening and got the next error ([2] > > below). I only removed the reference to the jspc-maven-plugin in the > > demo pom ... perhaps I needed to change something else? > > > > Seems like using 1.4.3 is causing more problems than it's fixing for me. > > Any other ideas? > > > > Joe > > > > > > [1] > > [INFO] > > ---------------------------------------------------------------------------- > > > > [INFO] Building Geronimo Applications :: Demo > > [INFO] task-segment: [clean, install] > > [INFO] > > > > ---------------------------------------------------------------------------- > > [INFO] [clean:clean] > > [INFO] Deleting directory C:\g\applications\demo\target > > [INFO] Deleting directory C:\g\applications\demo\target\classes > > [INFO] Deleting directory C:\g\applications\demo\target\test-classes > > [INFO] [tools:require-java-version {execution: default}] > > [INFO] [resources:resources] > > [INFO] Using default encoding to copy filtered resources. > > [INFO] [compiler:compile] > > [INFO] No sources to compile > > [INFO] [jspc:compile {execution: jspc}] > > [INFO] Compiling new java files... > > [INFO] > > ------------------------------------------------------------------------ > > > > [ERROR] BUILD ERROR > > [INFO] > > ------------------------------------------------------------------------ > > [INFO] Error > > > > Embedded error: basedir C:\g\applications\demo\target\jsp-source is not > > a directory > > [INFO] > > ------------------------------------------------------------------------ > > [INFO] For more information, run Maven with the -e switch > > [INFO] > > ------------------------------------------------------------------------ > > > > [INFO] Total time: 6 minutes 25 seconds > > [INFO] Finished at: Thu Aug 24 16:29:58 EDT 2006 > > [INFO] Final Memory: 43M/63M > > [INFO] > > ------------------------------------------------------------------------ > > > > > > > > > > [2] > > [INFO] > > > > ---------------------------------------------------------------------------- > > [INFO] Building Geronimo Applications :: Demo > > [INFO] task-segment: [install] > > [INFO] > > ---------------------------------------------------------------------------- > > > > [INFO] [tools:require-java-version {execution: default}] > > [INFO] [resources:resources] > > [INFO] Using default encoding to copy filtered resources. > > [INFO] [compiler:compile] > > [INFO] No sources to compile > > [INFO] [resources:testResources] > > [INFO] Using default encoding to copy filtered resources. > > [INFO] [compiler:testCompile] > > [INFO] No sources to compile > > [INFO] [surefire:test] > > [INFO] No tests to run. > > [INFO] [war:war] > > [INFO] Exploding webapp... > > [INFO] Copy webapp webResources to > > C:\g\applications\demo\target\demo-1.2-SNAPSHOT > > [INFO] > > ------------------------------------------------------------------------ > > [ERROR] BUILD FAILURE > > [INFO] > > ------------------------------------------------------------------------ > > > > [INFO] The specified web.xml file > > 'C:\g\applications\demo\target\jspweb.xml' does not exist > > [INFO] > > ------------------------------------------------------------------------ > > [INFO] For more information, run Maven with the -e switch > > [INFO] > > ------------------------------------------------------------------------ > > [INFO] Total time: 53 seconds > > [INFO] Finished at: Thu Aug 24 23:53:18 EDT 2006 > > [INFO] Final Memory: 23M/46M > > [INFO] > > ------------------------------------------------------------------------ > > > > > > > > > > Jeff Genender wrote: > > > Ok...let me have a crack at it and try to fix the plugin. > > > > > > Jeff > > > > > > Rick McGuire wrote: > > > > > >>It still fails with 1.4.5-SNAPSHOT (at least on Linux). > > >> > > >>Rick > > >> > > >>Jeff Genender wrote: > > >> > > >>>Try upgrading the jspc maven plugin to 1.4.5-SNAPSHOT and let me know > > if > > >>>that fixes the problem. > > >>> > > >>>Rick McGuire wrote: > > >>> > > >>> > > >>>>I'm getting a strange build error on the latest trunk this > > morning. For > > >>>>some reason, building the JSPs in the applications can no longer > > locate > > >>>>the javac compiler. At first, I thought I had some set up problem > > on my > > >>>>Windows system, but when I moved over to my Linux box, I got the > > same > > >>>>error. This occurs both on my working build and fresh builds on > > both > > >>>>platforms. > > >>>> > > >>>>[INFO] > > > > >>>>------------------------------------------------------------------------ > > >>>>[ERROR] BUILD ERROR > > >>>>[INFO] > > > > >>>>------------------------------------------------------------------------ > > >>>>[INFO] Error > > >>>> > > >>>>Embedded error: Unable to compile class for JSP > > >>>> > > >>>>Generated servlet error: > > >>>>Aug 24, 2006 7:38:42 AM org.apache.jasper.compiler.AntCompiler > > >>>>generateClass > > >>>>SEVERE: 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.getCom > > >>>>piler(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.AntCompiler.generateClass( > > AntCompiler.java > > >>>>:219) > > >>>> at org.apache.jasper.compiler.Compiler.compile (Compiler.java > > :297) > > >>>> at org.apache.jasper.compiler.Compiler.compile(Compiler.java > > :276) > > >>>> at org.apache.jasper.compiler.Compiler.compile(Compiler.java > > :264) > > >>>> at > > >>>>org.apache.jasper.JspCompilationContext.compile > > (JspCompilationContext > > >>>>.java:563) > > >>>> at > > >>>>org.apache.jasper.servlet.JspServletWrapper.loadTagFile(JspServletWra > > >>>>pper.java:210) > > >>>> at > > >>>>org.apache.jasper.compiler.TagFileProcessor.loadTagFile > > (TagFileProces > > >>>>sor.java:515) > > >>>> at > > >>>>org.apache.jasper.compiler.TagFileProcessor.access$000 > > (TagFileProcess > > >>>>or.java:48) > > >>>> at > > >>>> > > org.apache.jasper.compiler.TagFileProcessor$TagFileLoaderVisitor.visi > > >>>>t(TagFileProcessor.java:566) > > >>>> 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: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 > > (TagFileProce > > >>>>ssor.java:584) > > >>>> at > > >>>>org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:178) > > >>>> at org.apache.jasper.compiler.Compiler.compile(Compiler.java > > :295) > > >>>> at org.apache.jasper.JspC.processFile(JspC.java:986) > > >>>> at org.apache.jasper.JspC.execute (JspC.java:1135) > > >>>> at > > >>>>org.codehaus.mojo.jspc.AbstractJspcMojo.execute( > > AbstractJspcMojo.java > > >>>>:180) > > >>>> at > > >>>>org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi > > >>>>nManager.java:412) > > >>>> at > > >>>>org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals > > (Defa > > >>>>ultLifecycleExecutor.java:534) > > >>>> at > > >>>> > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi > > >>>>fecycle(DefaultLifecycleExecutor.java:475) > > >>>> at > > >>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal > > (Defau > > >>>>ltLifecycleExecutor.java:454) > > >>>> at > > >>>> > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan > > >>>>dleFailures(DefaultLifecycleExecutor.java:306) > > >>>> at > > >>>> > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen > > >>>>ts(DefaultLifecycleExecutor.java :273) > > >>>> at > > >>>>org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute > > (DefaultLi > > >>>>fecycleExecutor.java:140) > > >>>> at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java > > :322) > > >>>> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java > > :115) > > >>>> at org.apache.maven.cli.MavenCli.main(MavenCli.java:256) > > >>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native > > Method) > > >>>> at > > >>>>sun.reflect.NativeMethodAccessorImpl.invoke > > (NativeMethodAccessorImpl. > > >>>>java:39) > > >>>> at > > >>>>sun.reflect.DelegatingMethodAccessorImpl.invoke > > (DelegatingMethodAcces > > >>>>sorImpl.java:25) > > >>>> at java.lang.reflect.Method.invoke(Method.java:324) > > >>>> at > > >>>>org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) > > >>>> at org.codehaus.classworlds.Launcher.launch(Launcher.java > > :255) > > >>>> at > > >>>> org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java > > :430) > > >>>> > > >>>> at org.codehaus.classworlds.Launcher.main(Launcher.java:375) > > >>>> > > >>>> > > >>>>Generated servlet error: > > >>>>Aug 24, 2006 7:38:42 AM org.apache.jasper.compiler.AntCompiler > > >>>>generateClass > > >>>> > > >>>> > > >>>>Generated servlet error: > > >>>>SEVERE: Env: Compile: > > >>>>javaFileName=/C:/Geronimo/builds/1.2b/applications/geronim > > > > >>>>o-examples/geronimo-jsp-examples/target/jsp-source//org/apache/jsp/tag/web\hello > > >>>> > > >>>> > > >>>>World_tag.java > > >>>> > > >>>> > > >>>>Generated servlet error: > > >>>> > > >>> > > >>> > > > > > > > > > > > > > > ------=_Part_91752_11300058.1156491172919 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline Yes


2006/8/25, Jason Dillon <jason@planet57.com>:
Does this file actually have that class (org/eclipse/jdt/internal/compiler/env/INameEnvironment):

    /home/cruz/.m2/repository/tomcat/jasper-compiler-jdt/5.5.15/jasper- compiler-jdt-5.5.15.jar

--jason


On Aug 25, 2006, at 12:13 AM, Sergey Elin wrote:

Here is a bit more info:

[INFO] [jspc:compile {execution: jspc}]
[DEBUG] execute() starting for 0 pages.
[DEBUG] Parent class loader is: java.net.URLClassLoader@1db484d
[DEBUG] Compilation classpath initialized: /usr/home/cruz/java/geronimo/applications/geronimo-examples/geronimo-jsp-examples/
target/jsp-source:/usr/home/cruz/java/geronimo/applications/geronimo-examples/geronimo-jsp-examples/target/classes:/home/cruz
/.m2/repository/javax/servlet/jstl/1.1.1/jstl-1.1.1.jar:/home/cruz/.m2/repository/taglibs/standard/1.1.1/standard-1.1.1.jar:/
home/cruz/.m2/repository/tomcat/jasper-compiler/5.5.15/jasper-compiler-5.5.15.jar:/home/cruz/.m2/repository/tomcat/jasper-com
piler-jdt/5.5.15/jasper-compiler-jdt-5.5.15.jar:/home/cruz/.m2/repository/org/apache/geronimo/specs/geronimo-jsp_2.0_spec/1.0
.1/geronimo-jsp_2.0_spec-1.0.1.jar:/home/cruz/.m2/repository/org/apache/geronimo/specs/geronimo-servlet_2.4_spec/1.0.1/geroni
mo-servlet_2.4_spec-1.0.1.jar:
[DEBUG] No Java compiler available
java.lang.NoClassDefFoundError : org/eclipse/jdt/internal/compiler/env/INameEnvironment
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:141)
        at org.apache.jasper.JspCompilationContext.createCompiler (JspCompilationContext.java:233)
        at org.apache.jasper.JspCompilationContext.createCompiler (JspCompilationContext.java:213)
        at org.apache.jasper.JspC.processFile(JspC.java:979)
        at org.apache.jasper.JspC.execute (JspC.java:1135)
        at org.codehaus.mojo.jspc.AbstractJspcMojo.execute( AbstractJspcMojo.java:180)
        at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:412)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java :534)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:475)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java :454)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java :306
)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments (DefaultLifecycleExecutor.java:273)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java :140)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
        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:324)
        at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
        at org.codehaus.classworlds.Launcher.launch (Launcher.java:255)
        at org.codehaus.classworlds.Launcher.mainWithExitCode (Launcher.java:430)
        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
[DEBUG] Generated /usr/home/cruz/java/geronimo/applications/geronimo-examples/geronimo-jsp-examples/target/jsp-source/jsp/sou
rce_jsp.java total=1401 generate=125 validate=1238
[INFO] Built File: /source.jsp
[DEBUG] No Java compiler available
java.lang.NoClassDefFoundError: org/eclipse/jdt/internal/compiler/env/INameEnvironment
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:141)
        at org.apache.jasper.JspCompilationContext.createCompiler(JspCompilationContext.java:233)
        at org.apache.jasper.JspCompilationContext.createCompiler (JspCompilationContext.java:213)
        at org.apache.jasper.JspC.processFile(JspC.java:979)
        at org.apache.jasper.JspC.execute(JspC.java:1135)


2006/8/25, Joe Bohn < joe.bohn@earthlink.net>:

Is there any new news on this (or a work around)?  It seems that Sergey
had success with the 1.4.3 version of the jspc plugin.  However, when I
tried that I just get a different error (see below [1] ). The demo
target includes just a web-fragment.xml file rather that a jsp-source
directory.

BDudney then recommended I try with the jsp compilation removed from
demo.  I gave that a shot this evening and got the next error ([2]
below).  I only removed the reference to the jspc-maven-plugin in the
demo pom ... perhaps I needed to change something else?

Seems like using 1.4.3 is causing more problems than it's fixing for me.
  Any other ideas?

Joe


[1]
[INFO]
----------------------------------------------------------------------------
[INFO] Building Geronimo Applications :: Demo
[INFO]    task-segment: [clean, install]
[INFO]
----------------------------------------------------------------------------
[INFO] [clean:clean]
[INFO] Deleting directory C:\g\applications\demo\target
[INFO] Deleting directory C:\g\applications\demo\target\classes
[INFO] Deleting directory C:\g\applications\demo\target\test-classes
[INFO] [tools:require-java-version {execution: default}]
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile]
[INFO] No sources to compile
[INFO] [jspc:compile {execution: jspc}]
[INFO] Compiling new java files...
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Error

Embedded error: basedir C:\g\applications\demo\target\jsp-source is not
a directory
[INFO]
------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 6 minutes 25 seconds
[INFO] Finished at: Thu Aug 24 16:29:58 EDT 2006
[INFO] Final Memory: 43M/63M
[INFO]
------------------------------------------------------------------------




[2]
[INFO]
----------------------------------------------------------------------------
[INFO] Building Geronimo Applications :: Demo
[INFO]    task-segment: [install]
[INFO]
----------------------------------------------------------------------------
[INFO] [tools:require-java-version {execution: default}]
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile]
[INFO] No sources to compile
[INFO] [resources:testResources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:testCompile]
[INFO] No sources to compile
[INFO] [surefire:test]
[INFO] No tests to run.
[INFO] [war:war]
[INFO] Exploding webapp...
[INFO] Copy webapp webResources to
C:\g\applications\demo\target\demo-1.2-SNAPSHOT
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] The specified web.xml file
'C:\g\applications\demo\target\jspweb.xml' does not exist
[INFO]
------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 53 seconds
[INFO] Finished at: Thu Aug 24 23:53:18 EDT 2006
[INFO] Final Memory: 23M/46M
[INFO]
------------------------------------------------------------------------



Jeff Genender wrote:
> Ok...let me have a crack at it and try to fix the plugin.
>
> Jeff
>
> Rick McGuire wrote:
>
>>It still fails with 1.4.5-SNAPSHOT (at least on Linux).
>>
>>Rick
>>
>>Jeff Genender wrote:
>>
>>>Try upgrading the jspc maven plugin to 1.4.5-SNAPSHOT and let me know if
>>>that fixes the problem.
>>>
>>>Rick McGuire wrote:
>>>
>>>
>>>>I'm getting a strange build error on the latest trunk this morning.  For
>>>>some reason, building the JSPs in the applications can no longer locate
>>>>the javac compiler.  At first, I thought I had some set up problem on my
>>>>Windows system, but when I moved over to my Linux box, I got the same
>>>>error.  This occurs both on my working build and fresh builds on both
>>>>platforms.
>>>>
>>>>[INFO]
>>>>------------------------------------------------------------------------
>>>>[ERROR] BUILD ERROR
>>>>[INFO]
>>>>------------------------------------------------------------------------
>>>>[INFO] Error
>>>>
>>>>Embedded error: Unable to compile class for JSP
>>>>
>>>>Generated servlet error:
>>>>Aug 24, 2006 7:38:42 AM org.apache.jasper.compiler.AntCompiler
>>>>generateClass
>>>>SEVERE: 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.getCom
>>>>piler(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.AntCompiler.generateClass(AntCompiler.java
>>>>:219)
>>>>       at org.apache.jasper.compiler.Compiler.compile (Compiler.java:297)
>>>>       at org.apache.jasper.compiler.Compiler.compile(Compiler.java:276)
>>>>       at org.apache.jasper.compiler.Compiler.compile (Compiler.java:264)
>>>>       at
>>>>org.apache.jasper.JspCompilationContext.compile(JspCompilationContext
>>>>.java:563)
>>>>       at
>>>>org.apache.jasper.servlet.JspServletWrapper.loadTagFile (JspServletWra
>>>>pper.java:210)
>>>>       at
>>>>org.apache.jasper.compiler.TagFileProcessor.loadTagFile(TagFileProces
>>>>sor.java:515)
>>>>       at
>>>>org.apache.jasper.compiler.TagFileProcessor.access$000(TagFileProcess
>>>>or.java:48)
>>>>       at
>>>>org.apache.jasper.compiler.TagFileProcessor$TagFileLoaderVisitor.visi
>>>>t(TagFileProcessor.java:566)
>>>>       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: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(TagFileProce
>>>>ssor.java:584)
>>>>       at
>>>>org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:178)
>>>>       at org.apache.jasper.compiler.Compiler.compile(Compiler.java:295)
>>>>       at org.apache.jasper.JspC.processFile(JspC.java:986)
>>>>       at org.apache.jasper.JspC.execute (JspC.java:1135)
>>>>       at
>>>>org.codehaus.mojo.jspc.AbstractJspcMojo.execute(AbstractJspcMojo.java
>>>>:180)
>>>>       at
>>>>org.apache.maven.plugin.DefaultPluginManager.executeMojo (DefaultPlugi
>>>>nManager.java:412)
>>>>       at
>>>>org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
>>>>ultLifecycleExecutor.java:534)
>>>>       at
>>>>org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi
>>>>fecycle(DefaultLifecycleExecutor.java:475)
>>>>       at
>>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
>>>>ltLifecycleExecutor.java:454)
>>>>       at
>>>>org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan
>>>>dleFailures(DefaultLifecycleExecutor.java:306)
>>>>       at
>>>>org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen
>>>>ts(DefaultLifecycleExecutor.java :273)
>>>>       at
>>>>org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
>>>>fecycleExecutor.java:140)
>>>>       at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:322)
>>>>       at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
>>>>       at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
>>>>       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>       at
>>>>sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
>>>>java:39)
>>>>       at
>>>>sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
>>>>sorImpl.java:25)
>>>>       at java.lang.reflect.Method.invoke(Method.java:324)
>>>>       at
>>>>org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
>>>>       at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
>>>>       at
>>>> org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
>>>>
>>>>       at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
>>>>
>>>>
>>>>Generated servlet error:
>>>>Aug 24, 2006 7:38:42 AM org.apache.jasper.compiler.AntCompiler
>>>>generateClass
>>>>
>>>>
>>>>Generated servlet error:
>>>>SEVERE: Env: Compile:
>>>>javaFileName=/C:/Geronimo/builds/1.2b/applications/geronim
>>>>o-examples/geronimo-jsp-examples/target/jsp-source//org/apache/jsp/tag/web\hello
>>>>
>>>>
>>>>World_tag.java
>>>>
>>>>
>>>>Generated servlet error:
>>>>
>>>
>>>
>
>
>



------=_Part_91752_11300058.1156491172919--