Return-Path: Delivered-To: apmail-hadoop-core-user-archive@www.apache.org Received: (qmail 11092 invoked from network); 3 Mar 2009 16:58:28 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 3 Mar 2009 16:58:28 -0000 Received: (qmail 36399 invoked by uid 500); 3 Mar 2009 16:58:21 -0000 Delivered-To: apmail-hadoop-core-user-archive@hadoop.apache.org Received: (qmail 36363 invoked by uid 500); 3 Mar 2009 16:58:21 -0000 Mailing-List: contact core-user-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: core-user@hadoop.apache.org Delivered-To: mailing list core-user@hadoop.apache.org Delivered-To: moderator for core-user@hadoop.apache.org Received: (qmail 61455 invoked by uid 99); 3 Mar 2009 15:51:20 -0000 X-ASF-Spam-Status: No, hits=-4.0 required=10.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of steve_loughran@hpl.hp.com designates 192.6.10.2 as permitted sender) X-Virus-Scanned: Debian amavisd-new at hpl.hp.com MailScanner-NULL-Check: 1236700237.70416@LQd3bmZ+xlmKwtHfMX1YgA Message-ID: <49AD51CC.2000601@hpl.hp.com> Date: Tue, 03 Mar 2009 15:50:36 +0000 From: Steve Loughran User-Agent: Thunderbird 2.0.0.19 (X11/20081209) MIME-Version: 1.0 To: core-user@hadoop.apache.org Subject: Re: [ANNOUNCE] Hadoop release 0.19.1 available References: <6a3f6a4b0902250227m10d46683m62f5ed7737ca5f5d@mail.gmail.com> <6a3f6a4b0903021257r6ec74f54n34b3f287059f8ff3@mail.gmail.com> <49AD11A0.70906@apache.org> <6a3f6a4b0903030456w7d2412c5tbaade9a87e44b1cd@mail.gmail.com> In-Reply-To: <6a3f6a4b0903030456w7d2412c5tbaade9a87e44b1cd@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-HPL-MailScanner-Information: Please contact the ISP for more information X-MailScanner-ID: n23FoadZ025555 X-HPL-MailScanner: Found to be clean X-HPL-MailScanner-From: steve_loughran@hpl.hp.com X-Virus-Checked: Checked by ClamAV on apache.org Aviad sela wrote: > Steve Hi, > > I have run ant -verbose and found that the org.apache.log4j.Category is > missing > The release 0.19.1 comes wiht jar file log4j-1.2.15.jar. > Indeed this jar does not include this class. > > I have looked into another jar version log4j-1.2.13.jar, which INCLUDE this > class. > So I guess that one solution could be to replace the jar with the release that's not good, looks like a log4j change broke jspc. > > Yet notice that And documentation imply that Tomcat jspC is deprecated and > should not be used within Ant builds. ! The ant doc's imply that their jspc task is deprecated, but there's nothing to stop you using anyone else's. The reason we in the ant team say that is that it turned out to be way too brittle to maintain -even the dependency logic from .jsp file to generated source file kept changing. Hadoop compiles everything to java for speed at the far end and to avoid requiring a JDK on every node. This compilation process is the price. The way to avoid it on a small deployment is to deploy the webapp then hit every page with HtmlUnit, but is overhead for a big cluster. the only other solution would be to move away from .jsp altogether. > > > the ant -verbose results: > * > > D:\Work\AviadWork\workspace\cur\WSAD\Hadoop_Core_19_1\Hadoop\build.xml:302: > java.lang.ExceptionInInitializerError > * > > at org.apache.tools.ant.dispatch.DispatchUtils.execute(Unknown Source) > > at org.apache.tools.ant.TaskAdapter.execute(Unknown Source) > > at org.apache.tools.ant.UnknownElement.execute(Unknown Source) > > at sun.reflect.GeneratedMethodAccessor24.invoke(Unknown Source) > > at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) > > at java.lang.reflect.Method.invoke(Unknown Source) > > at org.apache.tools.ant.dispatch.DispatchUtils.execute(Unknown Source) > > at org.apache.tools.ant.Task.perform(Unknown Source) > > at org.apache.tools.ant.Target.execute(Unknown Source) > > at org.apache.tools.ant.Target.performTasks(Unknown Source) > > at org.apache.tools.ant.Project.executeSortedTargets(Unknown Source) > > at org.apache.tools.ant.Project.executeTarget(Unknown Source) > > at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(Unknown > Source) > > at > org.eclipse.ant.internal.core.ant.EclipseDefaultExecutor.executeTargets(Unknown > Source) > > at org.apache.tools.ant.Project.executeTargets(Unknown Source) > > at org.eclipse.ant.internal.core.ant.InternalAntRunner.run(Unknown Source) > > at org.eclipse.ant.internal.core.ant.InternalAntRunner.run(Unknown Source) > > at sun.reflect.NativeMethodAccessorImpl.invoke0(*Native Method*) > > at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) > > at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) > > at java.lang.reflect.Method.invoke(Unknown Source) > > at org.eclipse.ant.core.AntRunner.run(Unknown Source) > > at > org.eclipse.ant.internal.ui.launchConfigurations.AntLaunchDelegate.runInSameVM(Unknown > Source) > > at > org.eclipse.ant.internal.ui.launchConfigurations.AntLaunchDelegate.launch(Unknown > Source) > > at org.eclipse.debug.internal.core.LaunchConfiguration.launch(Unknown > Source) > > at org.eclipse.debug.internal.core.LaunchConfiguration.launch(Unknown > Source) > > at org.eclipse.debug.internal.core.LaunchConfiguration.launch(Unknown > Source) > > at > org.eclipse.ui.externaltools.internal.model.ExternalToolBuilder.launchBuild(Unknown > Source) > > at > org.eclipse.ui.externaltools.internal.model.ExternalToolBuilder.doBuildBasedOnScope(Unknown > Source) > > at > org.eclipse.ui.externaltools.internal.model.ExternalToolBuilder.build(Unknown > Source) > > at org.eclipse.core.internal.events.BuildManager$2.run(Unknown Source) > > at org.eclipse.core.runtime.SafeRunner.run(Unknown Source) > > at org.eclipse.core.internal.events.BuildManager.basicBuild(Unknown Source) > > at org.eclipse.core.internal.events.BuildManager.basicBuild(Unknown Source) > > at org.eclipse.core.internal.events.BuildManager$1.run(Unknown Source) > > at org.eclipse.core.runtime.SafeRunner.run(Unknown Source) > > at org.eclipse.core.internal.events.BuildManager.basicBuild(Unknown Source) > > at org.eclipse.core.internal.events.BuildManager.basicBuild(Unknown Source) > > at org.eclipse.core.internal.events.BuildManager.build(Unknown Source) > > at org.eclipse.core.internal.resources.Project.internalBuild(Unknown Source) > > at org.eclipse.core.internal.resources.Project.build(Unknown Source) > > at org.eclipse.ui.actions.BuildAction.invokeOperation(Unknown Source) > > at org.eclipse.ui.actions.WorkspaceAction.execute(Unknown Source) > > at org.eclipse.ui.actions.WorkspaceAction$2.runInWorkspace(Unknown Source) > > at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(Unknown > Source) > > at org.eclipse.core.internal.jobs.Worker.run(Unknown Source) > > Caused by: java.lang.ExceptionInInitializerError > > at java.lang.J9VMInternals.initialize(Unknown Source) > > at org.apache.jasper.JspCompilationContext.createCompiler(Unknown Source) > > at org.apache.jasper.JspC.processFile(Unknown Source) > > at org.apache.jasper.JspC.execute(Unknown Source) > > at sun.reflect.NativeMethodAccessorImpl.invoke0(*Native Method*) > > at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) > > at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) > > at java.lang.reflect.Method.invoke(Unknown Source) > > ... 46 more > > Caused by: *org.apache.commons.logging.LogConfigurationException*: > java.lang.NoClassDefFoundError: org.apache.log4j.Category (Caused by > java.lang.NoClassDefFoundError: org.apache.log4j.Category) > > at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(Unknown > Source) > > at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(Unknown > Source) > > at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(Unknown > Source) > > at org.apache.commons.logging.LogFactory.getLog(Unknown Source) > > at org.apache.jasper.compiler.Compiler.(Unknown Source) > > at java.lang.J9VMInternals.initializeImpl(*Native Method*) > > ... 54 more > > Caused by: java.lang.NoClassDefFoundError: org.apache.log4j.Category > > at java.lang.J9VMInternals.verifyImpl(*Native Method*) > > at java.lang.J9VMInternals.verify(Unknown Source) > > at java.lang.J9VMInternals.initialize(Unknown Source) > > at sun.reflect.NativeConstructorAccessorImpl.newInstance0(*Native Method*) > > at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) > > at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) > > at java.lang.reflect.Constructor.newInstance(Unknown Source) > > ... 60 more > > Caused by: *java.lang.ClassNotFoundException*: org.apache.log4j.Category > > at java.lang.Throwable.(Unknown Source) > > at java.lang.ClassNotFoundException.(Unknown Source) > > at > org.eclipse.osgi.framework.internal.core.BundleLoader.findClassInternal(Unknown > Source) > > at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(Unknown > Source) > > at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(Unknown > Source) > > at > org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(Unknown > Source) > > at java.lang.ClassLoader.loadClass(Unknown Source) > > ... 67 more > > --- Nested Exception --- > > java.lang.ExceptionInInitializerError > > at java.lang.J9VMInternals.initialize(Unknown Source) > > at org.apache.jasper.JspCompilationContext.createCompiler(Unknown Source) > > at org.apache.jasper.JspC.processFile(Unknown Source) > > at org.apache.jasper.JspC.execute(Unknown Source) > > at sun.reflect.NativeMethodAccessorImpl.invoke0(*Native Method*) > > at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) > > at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) > > at java.lang.reflect.Method.invoke(Unknown Source) > > at org.apache.tools.ant.dispatch.DispatchUtils.execute(Unknown Source) > > at org.apache.tools.ant.TaskAdapter.execute(Unknown Source) > > at org.apache.tools.ant.UnknownElement.execute(Unknown Source) > > at sun.reflect.GeneratedMethodAccessor24.invoke(Unknown Source) > > at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) > > at java.lang.reflect.Method.invoke(Unknown Source) > > at org.apache.tools.ant.dispatch.DispatchUtils.execute(Unknown Source) > > at org.apache.tools.ant.Task.perform(Unknown Source) > > at org.apache.tools.ant.Target.execute(Unknown Source) > > at org.apache.tools.ant.Target.performTasks(Unknown Source) > > at org.apache.tools.ant.Project.executeSortedTargets(Unknown Source) > > at org.apache.tools.ant.Project.executeTarget(Unknown Source) > > at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(Unknown > Source) > > at > org.eclipse.ant.internal.core.ant.EclipseDefaultExecutor.executeTargets(Unknown > Source) > > at org.apache.tools.ant.Project.executeTargets(Unknown Source) > > at org.eclipse.ant.internal.core.ant.InternalAntRunner.run(Unknown Source) > > at org.eclipse.ant.internal.core.ant.InternalAntRunner.run(Unknown Source) > > at sun.reflect.NativeMethodAccessorImpl.invoke0(*Native Method*) > > at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) > > at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) > > at java.lang.reflect.Method.invoke(Unknown Source) > > at org.eclipse.ant.core.AntRunner.run(Unknown Source) > > at > org.eclipse.ant.internal.ui.launchConfigurations.AntLaunchDelegate.runInSameVM(Unknown > Source) > > at > org.eclipse.ant.internal.ui.launchConfigurations.AntLaunchDelegate.launch(Unknown > Source) > > at org.eclipse.debug.internal.core.LaunchConfiguration.launch(Unknown > Source) > > at org.eclipse.debug.internal.core.LaunchConfiguration.launch(Unknown > Source) > > at org.eclipse.debug.internal.core.LaunchConfiguration.launch(Unknown > Source) > > at > org.eclipse.ui.externaltools.internal.model.ExternalToolBuilder.launchBuild(Unknown > Source) > > at > org.eclipse.ui.externaltools.internal.model.ExternalToolBuilder.doBuildBasedOnScope(Unknown > Source) > > at > org.eclipse.ui.externaltools.internal.model.ExternalToolBuilder.build(Unknown > Source) > > at org.eclipse.core.internal.events.BuildManager$2.run(Unknown Source) > > at org.eclipse.core.runtime.SafeRunner.run(Unknown Source) > > at org.eclipse.core.internal.events.BuildManager.basicBuild(Unknown Source) > > at org.eclipse.core.internal.events.BuildManager.basicBuild(Unknown Source) > > at org.eclipse.core.internal.events.BuildManager$1.run(Unknown Source) > > at org.eclipse.core.runtime.SafeRunner.run(Unknown Source) > > at org.eclipse.core.internal.events.BuildManager.basicBuild(Unknown Source) > > at org.eclipse.core.internal.events.BuildManager.basicBuild(Unknown Source) > > at org.eclipse.core.internal.events.BuildManager.build(Unknown Source) > > at org.eclipse.core.internal.resources.Project.internalBuild(Unknown Source) > > at org.eclipse.core.internal.resources.Project.build(Unknown Source) > > at org.eclipse.ui.actions.BuildAction.invokeOperation(Unknown Source) > > at org.eclipse.ui.actions.WorkspaceAction.execute(Unknown Source) > > at org.eclipse.ui.actions.WorkspaceAction$2.runInWorkspace(Unknown Source) > > at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(Unknown > Source) > > at org.eclipse.core.internal.jobs.Worker.run(Unknown Source) > > Caused by: *org.apache.commons.logging.LogConfigurationException*: > java.lang.NoClassDefFoundError: org.apache.log4j.Category (Caused by > java.lang.NoClassDefFoundError: org.apache.log4j.Category) > > at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(Unknown > Source) > > at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(Unknown > Source) > > at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(Unknown > Source) > > at org.apache.commons.logging.LogFactory.getLog(Unknown Source) > > at org.apache.jasper.compiler.Compiler.(Unknown Source) > > at java.lang.J9VMInternals.initializeImpl(*Native Method*) > > ... 54 more > > Caused by: java.lang.NoClassDefFoundError: org.apache.log4j.Category > > at java.lang.J9VMInternals.verifyImpl(*Native Method*) > > at java.lang.J9VMInternals.verify(Unknown Source) > > at java.lang.J9VMInternals.initialize(Unknown Source) > > at sun.reflect.NativeConstructorAccessorImpl.newInstance0(*Native Method*) > > at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) > > at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) > > at java.lang.reflect.Constructor.newInstance(Unknown Source) > > ... 60 more > > Caused by: *java.lang.ClassNotFoundException*: org.apache.log4j.Category > > at java.lang.Throwable.(Unknown Source) > > at java.lang.ClassNotFoundException.(Unknown Source) > > at > org.eclipse.osgi.framework.internal.core.BundleLoader.findClassInternal(Unknown > Source) > > at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(Unknown > Source) > > at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(Unknown > Source) > > at > org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(Unknown > Source) > > at java.lang.ClassLoader.loadClass(Unknown Source) > > ... 67 more > > > On Tue, Mar 3, 2009 at 1:16 PM, Steve Loughran wrote: > >> Aviad sela wrote: >> >>> Nigel Thanks, >>> I have extracted the new project. >>> >>> However, I am having problems building the project >>> I am using Eclipse 3.4 >>> and ant 1.7 >>> >>> I recieve error compiling core classes >>> * >>> >>> compile-core-classes*: >>> >>> BUILD FAILED >>> >>> >> >>> uriroot="${src.webapps}/task" >>> >>> outputdir="${build.src}" >>> >>> package="org.apache.hadoop.mapred" >>> >>> webxml="${build.webapps}/task/WEB-INF/web.xml"> >>> >>> >>> * >>> >>> >>> D:\Work\AviadWork\workspace\cur\WSAD\Hadoop_Core_19_1\Hadoop\build.xml:302: >>> java.lang.ExceptionInInitializerError >>> >>> * >>> it points to the the webxml tag >>> >> >> Try an ant -verbose and post the full log, we may be able to look at the >> problem more. Also, run an