hadoop-common-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Steve Loughran <steve_lough...@hpl.hp.com>
Subject Re: [ANNOUNCE] Hadoop release 0.19.1 available
Date Tue, 03 Mar 2009 15:50:36 GMT
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.<clinit>(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.<init>(Unknown Source)
> 
> at java.lang.ClassNotFoundException.<init>(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.<clinit>(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.<init>(Unknown Source)
> 
> at java.lang.ClassNotFoundException.<init>(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 <stevel@apache.org> 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
>>>
>>> <jsp-compile
>>>
>>> uriroot="${src.webapps}/task"
>>>
>>> outputdir="${build.src}"
>>>
>>> package="org.apache.hadoop.mapred"
>>>
>>> webxml="${build.webapps}/task/WEB-INF/web.xml">
>>>
>>> </jsp-compile>
>>> *
>>>
>>>
>>> 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


Mime
View raw message