Hi.
I am trying to build axis2 from the source files. I checked out the
latest source code today and tried building it. But I get errors on
doing so. I am pasting the last part of result of "mvn -e install"
which shows the error. I am new to axis. So please tell me what to do.
Thanks,
Rajat
Error is as follows :
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running org.apache.axis2.scripting.convertors.JSOMElementConvertorTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.422 sec
Running org.apache.axis2.scripting.ScriptReceiverTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.14 sec
Results :
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0
[INFO] [axis2-mar:mar]
[INFO] Generating mar C:\ALM\Axis2-1.4_src\Axis2-1.4
checkout\axis2\modules\scripting\target\axis2-scripting-SNAPSHOT.mar
[INFO] Building jar: C:\ALM\Axis2-1.4_src\Axis2-1.4
checkout\axis2\modules\scripting\target\axis2-scripting-SNAPSHOT.mar
[INFO] [install:install]
[INFO] Installing C:\ALM\Axis2-1.4_src\Axis2-1.4
checkout\axis2\modules\scripting\target\axis2-scripting-SNAPSHOT.mar to
C:\Documents and
Settings\rabhusha\.m2\repository\org\apache\axis2\axis2-scripting\SNAPSHOT\axis2-scripting-SNAPSHOT.mar
[INFO]
------------------------------------------------------------------------
[INFO] Building Apache Axis2 - JAXB-RI Data Binding
[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] [antrun:run {execution: gen-ts}]
[INFO] Executing tasks
[echo] Generating JAX-B classes for DocLitBareService test
[echo] Generating Service / Service Client for Test01 test
[java] Retrieving document at 'test-resources/wsdl/Test01.wsdl'.
[java] Jul 1, 2008 7:29:37 PM
org.apache.axis2.wsdl.codegen.writer.FileWriter createOutFile
[java] INFO: The
target\wsdl\Test01\src\com\foo\wsns\axis2\test01\Test01Skeleton.java
file cannot be overwritten.
[java] Jul 1, 2008 7:29:37 PM
org.apache.axis2.wsdl.codegen.writer.FileWriter createOutFile
[java] INFO: The
target\wsdl\Test01\src\com\foo\wsns\axis2\test01\Test01MessageReceiverInOut.java
file cannot be overwritten.
init:
pre.compile.test:
[echo] JAX-B RI Availability = true
[echo] Stax Availability= true
[echo] Axis2 Availability= true
compile.src:
[javac] Compiling 5 source files to C:\ALM\Axis2-1.4_src\Axis2-1.4
checkout\axis2\modules\jaxbri\target\wsdl\Test01\build\classes
[javac] C:/ALM/Axis2-1.4_src/Axis2-1.4
checkout/axis2/modules/jaxbri/target/wsdl/Test01/src/com/foo/xmlns/axis2/test01/package-info.java:1:
package annotations should be in file package-info.java
[javac] @javax.xml.bind.annotation.XmlSchema(namespace =
"http://xmlns.foo.com/axis2/test01", elementFormDefault =
javax.xml.bind.annotation.XmlNsForm.QUALIFIED)
[javac]
^
[javac] Note: C:/ALM/Axis2-1.4_src/Axis2-1.4
checkout/axis2/modules/jaxbri/target/wsdl/Test01/src/com/foo/wsns/axis2/test01/Test01MessageReceiverInOut.java
uses unchecked or unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked for details.
[javac] 1 error
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Error executing ant tasks
Embedded error: The following error occurred while executing this line:
C:\ALM\Axis2-1.4_src\Axis2-1.4
checkout\axis2\modules\jaxbri\target\wsdl\Test01\build.xml:48: Compile
failed; see the compiler error output for details.
[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: The following error occurred while executing this line:
C:\ALM\Axis2-1.4_src\Axis2-1.4
checkout\axis2\modules\jaxbri\target\wsdl\Test01\build.xml:48: Compile
failed; see the compiler error output for details.
at
org.apache.tools.ant.ProjectHelper.addLocationToBuildException(ProjectHelper.java:539)
at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:384)
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
Caused by: C:\ALM\Axis2-1.4_src\Axis2-1.4
checkout\axis2\modules\jaxbri\target\wsdl\Test01\build.xml:48: Compile
failed; see the compiler error output for details.
at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:933)
at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:757)
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.tools.ant.Target.performTasks(Target.java:369)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
at
org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:37)
at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:382)
... 23 more
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 5 minutes 33 seconds
[INFO] Finished at: Tue Jul 01 19:29:40 IST 2008
[INFO] Final Memory: 27M/63M
[INFO]
------------------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]