Hi Anthony, you're probably right. I've switched to JDK 5 and it
worked. However, now the build process breaks on the generation of the
eclipse codegen plugin:
[INFO] ------------------------------------------------------------------------
[INFO] Building Apache Axis2 - tool - Eclipse Codegen Plugin
[INFO] task-segment: [install]
[INFO] ------------------------------------------------------------------------
(...)
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error executing ant tasks
Embedded error: Warning: Could not find file
/home/myuser/Sources/axis2-1.5-beta-2/modules/tool/conf/codegen/.classpath
to copy.
[INFO] ------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Error
executing ant tasks
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:583)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:499)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:478)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:330)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:291)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
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:585)
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)
Caused by: org.apache.maven.plugin.MojoExecutionException: Error
executing ant tasks
at
org.apache.maven.plugin.antrun.AbstractAntMojo.executeTasks(AbstractAntMojo.java:114)
at org.apache.maven.plugin.antrun.AntRunMojo.execute(AntRunMojo.java:83)
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:451)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:558)
... 16 more
Caused by: Warning: Could not find file
/home/researcher/Sources/axis2-1.5-beta-2/modules/tool/conf/codegen/.classpath
to copy.
at org.apache.tools.ant.taskdefs.Copy.execute(Copy.java:394)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
at org.apache.tools.ant.Task.perform(Task.java:364)
at org.apache.tools.ant.Target.execute(Target.java:341)
at
org.apache.maven.plugin.antrun.AbstractAntMojo.executeTasks(AbstractAntMojo.java:108)
... 19 more
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 35 minutes 20 seconds
[INFO] Finished at: Tue Mar 31 09:57:42 GMT-04:00 2009
[INFO] Final Memory: 44M/159M
[INFO] ------------------------------------------------------------------------
On Tue, Mar 31, 2009 at 8:10 AM, Anthony Elder <[email protected]> wrote:
>
> Would you be using JDK6? And if so could you try JDK5?
>
> That error looks like E4X is not available in the JavaScript environment,
> which is what happens if its using the JavaScript bundled with JDK6. I guess
> the module really needs a way to override the level of JavaScript being
> used.
>
> ...ant
>
>
>
> José Ricardo da Silva <[email protected]>
>
> 31/03/2009 12:52
>
> Please respond to
> [email protected]
> To
> [email protected]
> cc
> Subject
> Re: Axis2 1.5 beta 2 fails during the building of the Scripting
> module
>
>
>
>
> Hi, the exceptions:
>
> -------------------------------------------------------------------------------
> Test set: org.apache.axis2.scripting.ScriptReceiverTest
> -------------------------------------------------------------------------------
> Tests run: 2, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 0.044
> sec <<< FAILURE!
> testInvokeBusinessLogic(org.apache.axis2.scripting.ScriptReceiverTest)
> Time elapsed: 0.013 sec <<< ERROR!
> org.apache.axis2.AxisFault: JavaScript Error: Internal Error:
> org.mozilla.javascript.EcmaError: ReferenceError: "XML" is not
> defined.
> at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
> at
> org.apache.axis2.scripting.ScriptReceiver.invokeBusinessLogic(ScriptReceiver.java:118)
> at
> org.apache.axis2.scripting.ScriptReceiverTest.testInvokeBusinessLogic(ScriptReceiverTest.java:42)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:616)
> at junit.framework.TestCase.runTest(TestCase.java:168)
> at junit.framework.TestCase.runBare(TestCase.java:134)
> at junit.framework.TestResult$1.protect(TestResult.java:110)
> at junit.framework.TestResult.runProtected(TestResult.java:128)
> at junit.framework.TestResult.run(TestResult.java:113)
> at junit.framework.TestCase.run(TestCase.java:124)
> at junit.framework.TestSuite.runTest(TestSuite.java:232)
> at junit.framework.TestSuite.run(TestSuite.java:227)
> at
> org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:81)
> at
> org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62)
> at
> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140)
> at
> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127)
> at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:616)
> at
> org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:338)
> at
> org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:997)
> Caused by: org.apache.bsf.BSFException: JavaScript Error: Internal
> Error: org.mozilla.javascript.EcmaError: ReferenceError: "XML" is not
> defined.
> at
> org.apache.bsf.engines.javascript.JavaScriptEngine.handleError(JavaScriptEngine.java:195)
> at
> org.apache.bsf.engines.javascript.JavaScriptEngine.call(JavaScriptEngine.java:97)
> at
> org.apache.axis2.scripting.ScriptReceiver.invokeBusinessLogic(ScriptReceiver.java:115)
> ... 24 more
>
> testAxisService(org.apache.axis2.scripting.ScriptReceiverTest) Time
> elapsed: 0.023 sec <<< ERROR!
> org.apache.axis2.AxisFault: JavaScript Error: Internal Error:
> org.mozilla.javascript.EcmaError: ReferenceError: "XML" is not
> defined.
> at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
> at
> org.apache.axis2.scripting.ScriptReceiver.invokeBusinessLogic(ScriptReceiver.java:118)
> at
> org.apache.axis2.scripting.ScriptReceiverTest.testAxisService(ScriptReceiverTest.java:56)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:616)
> at junit.framework.TestCase.runTest(TestCase.java:168)
> at junit.framework.TestCase.runBare(TestCase.java:134)
> at junit.framework.TestResult$1.protect(TestResult.java:110)
> at junit.framework.TestResult.runProtected(TestResult.java:128)
> at junit.framework.TestResult.run(TestResult.java:113)
> at junit.framework.TestCase.run(TestCase.java:124)
>
> at junit.framework.TestSuite.runTest(TestSuite.java:232)
> at junit.framework.TestSuite.run(TestSuite.java:227)
> at
> org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:81)
> at
> org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62)
> at
> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140)
> at
> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127)
> at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:616)
> at
> org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:338)
> at
> org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:997)
> Caused by: org.apache.bsf.BSFException: JavaScript Error: Internal
> Error: org.mozilla.javascript.EcmaError: ReferenceError: "XML" is not
> defined.
> at
> org.apache.bsf.engines.javascript.JavaScriptEngine.handleError(JavaScriptEngine.java:195)
> at
> org.apache.bsf.engines.javascript.JavaScriptEngine.call(JavaScriptEngine.java:97)
> at
> org.apache.axis2.scripting.ScriptReceiver.invokeBusinessLogic(ScriptReceiver.java:115)
> ... 24 more
>
> -------------------------------------------------------------------------------
> Test set: org.apache.axis2.scripting.convertors.JSOMElementConvertorTest
> -------------------------------------------------------------------------------
> Tests run: 2, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 0.651
> sec <<< FAILURE!
> testToAndFromScript(org.apache.axis2.scripting.convertors.JSOMElementConvertorTest)
> Time elapsed: 0.47 sec <<< ERROR!
> org.mozilla.javascript.EvaluatorException: Constructor for "XML" not found.
> at
> org.mozilla.javascript.DefaultErrorReporter.runtimeError(DefaultErrorReporter.java:109)
> at
> org.mozilla.javascript.Context.reportRuntimeError(Context.java:922)
> at
> org.mozilla.javascript.Context.reportRuntimeError(Context.java:978)
> at
> org.mozilla.javascript.Context.reportRuntimeError1(Context.java:941)
> at
> org.mozilla.javascript.ScriptRuntime.getExistingCtor(ScriptRuntime.java:1179)
> at org.mozilla.javascript.Context.newObject(Context.java:1403)
> at
> org.apache.axis2.scripting.convertors.JSOMElementConvertor.toScript(JSOMElementConvertor.java:61)
> at
> org.apache.axis2.scripting.convertors.JSOMElementConvertorTest.testToAndFromScript(JSOMElementConvertorTest.java:40)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:616)
> at junit.framework.TestCase.runTest(TestCase.java:168)
> at junit.framework.TestCase.runBare(TestCase.java:134)
> at junit.framework.TestResult$1.protect(TestResult.java:110)
> at junit.framework.TestResult.runProtected(TestResult.java:128)
> at junit.framework.TestResult.run(TestResult.java:113)
> at junit.framework.TestCase.run(TestCase.java:124)
> at junit.framework.TestSuite.runTest(TestSuite.java:232)
> at junit.framework.TestSuite.run(TestSuite.java:227)
> at
> org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:81)
> at
> org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62)
> at
> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140)
> at
> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127)
> at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:616)
> at
> org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:338)
> at
> org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:997)
>
> testFromScript(org.apache.axis2.scripting.convertors.JSOMElementConvertorTest)
> Time elapsed: 0.142 sec <<< ERROR!
> org.apache.axis2.AxisFault: JavaScript Error: Internal Error:
> org.mozilla.javascript.EcmaError: ReferenceError: "XML" is not
> defined.
> at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
> at
> org.apache.axis2.scripting.ScriptReceiver.invokeBusinessLogic(ScriptReceiver.java:118)
> at
> org.apache.axis2.scripting.convertors.JSOMElementConvertorTest.testFromScript(JSOMElementConvertorTest.java:53)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:616)
> at junit.framework.TestCase.runTest(TestCase.java:168)
> at junit.framework.TestCase.runBare(TestCase.java:134)
> at junit.framework.TestResult$1.protect(TestResult.java:110)
> at junit.framework.TestResult.runProtected(TestResult.java:128)
> at junit.framework.TestResult.run(TestResult.java:113)
> at junit.framework.TestCase.run(TestCase.java:124)
> at junit.framework.TestSuite.runTest(TestSuite.java:232)
> at junit.framework.TestSuite.run(TestSuite.java:227)
> at
> org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:81)
> at
> org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62)
> at
> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140)
> at
> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127)
> at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:616)
> at
> org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:338)
> at
> org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:997)
> Caused by: org.apache.bsf.BSFException: JavaScript Error: Internal
> Error: org.mozilla.javascript.EcmaError: ReferenceError: "XML" is not
> defined.
> at
> org.apache.bsf.engines.javascript.JavaScriptEngine.handleError(JavaScriptEngine.java:195)
> at
> org.apache.bsf.engines.javascript.JavaScriptEngine.call(JavaScriptEngine.java:97)
> at
> org.apache.axis2.scripting.ScriptReceiver.invokeBusinessLogic(ScriptReceiver.java:115)
> ... 24 more
>
> On Tue, Mar 31, 2009 at 5:00 AM, Andreas Veithen
> <[email protected]> wrote:
>> Can you look into the surefire reports and post the exception?
>>
>> Andreas
>>
>> 2009/3/30 José Ricardo da Silva <[email protected]>:
>>> Hi, I tried to build the Axis2 1.5 beta 2 again, but now it fails
>>> during the building of the scripting module:
>>>
>>>
>>> -----------------------------------------------------------------------------------------------------------------------------------
>>>
>>> [INFO] Building Apache Axis2 - Scripting
>>> [INFO] task-segment: [install]
>>> [INFO]
>>> ------------------------------------------------------------------------
>>> [INFO] [resources:resources]
>>> [INFO] Using default encoding to copy filtered resources.
>>> [INFO] [compiler:compile]
>>> [INFO] Nothing to compile - all classes are up to date
>>> [INFO] [resources:testResources]
>>> [INFO] Using default encoding to copy filtered resources.
>>> [INFO] [compiler:testCompile]
>>> [INFO] Nothing to compile - all classes are up to date
>>> [INFO] [surefire:test]
>>> [INFO] Surefire report directory:
>>>
>>> /home/researcher/Sources/axis2-1.5-beta-2/modules/scripting/target/surefire-reports
>>>
>>> -------------------------------------------------------
>>> T E S T S
>>> -------------------------------------------------------
>>> Running org.apache.axis2.scripting.convertors.JSOMElementConvertorTest
>>> Tests run: 2, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 0.65
>>> sec <<< FAILURE!
>>> Running org.apache.axis2.scripting.ScriptReceiverTest
>>> Tests run: 2, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 0.044
>>> sec <<< FAILURE!
>>>
>>> Results :
>>>
>>> Tests in error:
>>>
>>> testToAndFromScript(org.apache.axis2.scripting.convertors.JSOMElementConvertorTest)
>>>
>>> testFromScript(org.apache.axis2.scripting.convertors.JSOMElementConvertorTest)
>>> testInvokeBusinessLogic(org.apache.axis2.scripting.ScriptReceiverTest)
>>> testAxisService(org.apache.axis2.scripting.ScriptReceiverTest)
>>>
>>> Tests run: 4, Failures: 0, Errors: 4, Skipped: 0
>>>
>>> [INFO]
>>> ------------------------------------------------------------------------
>>> [ERROR] BUILD FAILURE
>>> [INFO]
>>> ------------------------------------------------------------------------
>>> [INFO] There are test failures.
>>>
>>> Please refer to
>>>
>>> /home/researcher/Sources/axis2-1.5-beta-2/modules/scripting/target/surefire-reports
>>> for the individual test results.
>>> [INFO]
>>> ------------------------------------------------------------------------
>>> [INFO] Trace
>>> org.apache.maven.BuildFailureException: There are test failures.
>>>
>>> Please refer to
>>>
>>> /home/researcher/Sources/axis2-1.5-beta-2/modules/scripting/target/surefire-reports
>>> for the individual test results.
>>> at
>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:579)
>>> at
>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:499)
>>> at
>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:478)
>>> at
>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:330)
>>> at
>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:291)
>>> at
>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142)
>>> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
>>> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
>>> at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>> at
>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>>> at
>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>> at java.lang.reflect.Method.invoke(Method.java:616)
>>> 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)
>>> Caused by: org.apache.maven.plugin.MojoFailureException: There are
>>> test failures.
>>>
>>> Please refer to
>>>
>>> /home/researcher/Sources/axis2-1.5-beta-2/modules/scripting/target/surefire-reports
>>> for the individual test results.
>>> at
>>> org.apache.maven.plugin.surefire.SurefirePlugin.execute(SurefirePlugin.java:530)
>>> at
>>> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:451)
>>> at
>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:558)
>>> ... 16 more
>>> [INFO]
>>> ------------------------------------------------------------------------
>>> [INFO] Total time: 3 minutes 38 seconds
>>> [INFO] Finished at: Mon Mar 30 09:40:35 AMT 2009
>>> [INFO] Final Memory: 35M/93M
>>> [INFO]
>>> ------------------------------------------------------------------------
>>>
>>>
>>>
>>> -----------------------------------------------------------------------------------------------------------------------------------
>>>
>>> I first built the mar and aar modules and then typed "mvn install" in
>>> the main directory. Am I doing something wrong?
>>>
>>> Best Regards,
>>>
>>> José Ricardo.
>>>
>>
>
>