Hi all,
Here is the summary of results i obtained by testing the samples with axis2
1.6.0.
- Built Successful : pojoguidespring, quickstartaxiom,
servicelifecycle , version , yahoorestsearch , faulthandling , pojo,
quickstart ,
quickstartjibx, soapwithattachments,
jaxws-version , pojoguide, quickstartadb, quickstartxmlbeans, userguide
yahoojsonsearch , java_first_jaxws
- The following samples displays a build error of missing artifact. The
users need to manually edit POM file prior to run these samples.
jaxws-addressbook , jaxws-calculator, jaxws-interop,
jaxws-samples
jaxws-addressbook
[INFO] Scanning for projects...
[INFO]
------------------------------------------------------------------------
[INFO] Building JAXWS Addressbook Service
[INFO] task-segment: [install]
[INFO]
------------------------------------------------------------------------
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Failed to resolve artifact.
Missing:
----------
1) org.apache.axis2:axis2-jaxws:jar:SNAPSHOT
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=org.apache.axis2
-DartifactId=axis2-jaxws -Dversion=SNAPSHOT -Dpackaging=jar
-Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file
there:
mvn deploy:deploy-file -DgroupId=org.apache.axis2
-DartifactId=axis2-jaxws -Dversion=SNAPSHOT -Dpackaging=jar
-Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) org.apache.axis2.samples:jaxws-addressbook:jar:SNAPSHOT
2) org.apache.axis2:axis2-jaxws:jar:SNAPSHOT
----------
1 required artifact is missing.
for artifact:
org.apache.axis2.samples:jaxws-addressbook:jar:SNAPSHOT
from the specified remote repositories:
central (http://repo1.maven.org/maven2),
apache-m2 (http://people.apache.org/repo/m2-ibiblio-rsync-repository),
apache-snapshots (http://people.apache.org/repo/m2-snapshot-repository/),
maven2 (http://repo1.maven.org/maven2/)
NOTE: Maven is executing in offline mode. Any artifacts not already in your
local
repository will be inaccessible.
[INFO]
------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Missing:
----------
1) org.apache.axis2:axis2-jaxws:jar:SNAPSHOT
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=org.apache.axis2
-DartifactId=axis2-jaxws -Dversion=SNAPSHOT -Dpackaging=jar
-Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file
there:
mvn deploy:deploy-file -DgroupId=org.apache.axis2
-DartifactId=axis2-jaxws -Dversion=SNAPSHOT -Dpackaging=jar
-Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) org.apache.axis2.samples:jaxws-addressbook:jar:SNAPSHOT
2) org.apache.axis2:axis2-jaxws:jar:SNAPSHOT
----------
1 required artifact is missing.
for artifact:
org.apache.axis2.samples:jaxws-addressbook:jar:SNAPSHOT
from the specified remote repositories:
central (http://repo1.maven.org/maven2),
apache-m2 (http://people.apache.org/repo/m2-ibiblio-rsync-repository),
apache-snapshots (http://people.apache.org/repo/m2-snapshot-repository/),
maven2 (http://repo1.maven.org/maven2/)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:711)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
at
org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
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:597)
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.artifact.resolver.MultipleArtifactsNotFoundException:
Missing:
----------
1) org.apache.axis2:axis2-jaxws:jar:SNAPSHOT
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=org.apache.axis2
-DartifactId=axis2-jaxws -Dversion=SNAPSHOT -Dpackaging=jar
-Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file
there:
mvn deploy:deploy-file -DgroupId=org.apache.axis2
-DartifactId=axis2-jaxws -Dversion=SNAPSHOT -Dpackaging=jar
-Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) org.apache.axis2.samples:jaxws-addressbook:jar:SNAPSHOT
2) org.apache.axis2:axis2-jaxws:jar:SNAPSHOT
----------
1 required artifact is missing.
for artifact:
org.apache.axis2.samples:jaxws-addressbook:jar:SNAPSHOT
from the specified remote repositories:
central (http://repo1.maven.org/maven2),
apache-m2 (http://people.apache.org/repo/m2-ibiblio-rsync-repository),
apache-snapshots (http://people.apache.org/repo/m2-snapshot-repository/),
maven2 (http://repo1.maven.org/maven2/)
at
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolveTransitively(DefaultArtifactResolver.java:360)
at
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolveTransitively(DefaultArtifactResolver.java:304)
at
org.apache.maven.plugin.DefaultPluginManager.resolveTransitiveDependencies(DefaultPluginManager.java:1499)
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:442)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
... 17 more
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 1 second
[INFO] Finished at: Wed Mar 23 16:30:41 IST 2011
[INFO] Final Memory: 6M/67M
[INFO]
------------------------------------------------------------------------
To get rid of this error users have to edit the POM file manually. Is there
a better solution for this except that?
- Build fails : mtom
mtom
isha@isha-laptop:~/Axis2/modules/distribution/target/axis2-1.7.0-SNAPSHOT/samples/mtom$
ant
Buildfile:
/home/isha/Axis2/modules/distribution/target/axis2-1.7.0-SNAPSHOT/samples/mtom/build.xml
generate.service:
[java] Retrieving document at
'/home/isha/Axis2/modules/distribution/target/axis2-1.7.0-SNAPSHOT/samples/mtom/resources/MTOMSample.wsdl'.
[java] javax.xml.parsers.FactoryConfigurationError: Provider
org.apache.xerces.jaxp.DocumentBuilderFactoryImpl not found
[java] at
org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:194)
[java] at org.apache.tools.ant.taskdefs.Java.run(Java.java:771)
[java] at
org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:221)
[java] at
org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:135)
[java] at org.apache.tools.ant.taskdefs.Java.execute(Java.java:108)
[java] at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
[java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
[java] at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[java] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[java] at java.lang.reflect.Method.invoke(Method.java:597)
[java] at
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
[java] at org.apache.tools.ant.Task.perform(Task.java:348)
[java] at org.apache.tools.ant.Target.execute(Target.java:390)
[java] at org.apache.tools.ant.Target.performTasks(Target.java:411)
[java] at
org.apache.tools.ant.Project.executeSortedTargets(Project.java:1360)
[java] at
org.apache.tools.ant.Project.executeTarget(Project.java:1329)
[java] at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
[java] at
org.apache.tools.ant.Project.executeTargets(Project.java:1212)
[java] at org.apache.tools.ant.Main.runBuild(Main.java:801)
[java] at org.apache.tools.ant.Main.startAnt(Main.java:218)
[java] at
org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
[java] at
org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)
[java] Caused by: javax.xml.parsers.FactoryConfigurationError: Provider
org.apache.xerces.jaxp.DocumentBuilderFactoryImpl not found
[java] at
javax.xml.parsers.DocumentBuilderFactory.newInstance(DocumentBuilderFactory.java:129)
[java] at com.ibm.wsdl.xml.WSDLReaderImpl.getDocument(Unknown
Source)
[java] at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
[java] at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
[java] at
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.readInTheWSDLFile(CodeGenerationEngine.java:320)
[java] at
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerationEngine.java:133)
[java] at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35)
[java] at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24)
[java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
[java] at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[java] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[java] at java.lang.reflect.Method.invoke(Method.java:597)
[java] at
org.apache.tools.ant.taskdefs.ExecuteJava.run(ExecuteJava.java:217)
[java] at
org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:152)
[java] ... 21 more
[java] Java Result: -1
[copy] Copying 1 file to
/home/isha/Axis2/modules/distribution/target/axis2-1.7.0-SNAPSHOT/samples/mtom/build/service/src/sample/mtom/service
jar.server:
[javac]
/home/isha/Axis2/modules/distribution/target/axis2-1.7.0-SNAPSHOT/samples/mtom/build.xml:112:
warning: 'includeantruntime' was not set, defaulting to
build.sysclasspath=last; set to false for repeatable builds
[javac] Compiling 1 source file to
/home/isha/Axis2/modules/distribution/target/axis2-1.7.0-SNAPSHOT/samples/mtom/build/service/classes
[javac]
/home/isha/Axis2/modules/distribution/target/axis2-1.7.0-SNAPSHOT/samples/mtom/build/service/src/sample/mtom/service/MTOMSampleSkeleton.java:26:
package org.apache.ws.axis2.mtomsample does not exist
[javac] import org.apache.ws.axis2.mtomsample.AttachmentResponse;
[javac] ^
[javac]
/home/isha/Axis2/modules/distribution/target/axis2-1.7.0-SNAPSHOT/samples/mtom/build/service/src/sample/mtom/service/MTOMSampleSkeleton.java:27:
package org.apache.ws.axis2.mtomsample does not exist
[javac] import org.apache.ws.axis2.mtomsample.AttachmentType;
[javac] ^
[javac]
/home/isha/Axis2/modules/distribution/target/axis2-1.7.0-SNAPSHOT/samples/mtom/build/service/src/sample/mtom/service/MTOMSampleSkeleton.java:28:
package org.w3.www._2005._05.xmlmime does not exist
[javac] import org.w3.www._2005._05.xmlmime.Base64Binary;
[javac] ^
[javac]
/home/isha/Axis2/modules/distribution/target/axis2-1.7.0-SNAPSHOT/samples/mtom/build/service/src/sample/mtom/service/MTOMSampleSkeleton.java:43:
package org.apache.ws.axis2.mtomsample does not exist
[javac] org.apache.ws.axis2.mtomsample.AttachmentRequest
param0)
[javac] ^
[javac]
/home/isha/Axis2/modules/distribution/target/axis2-1.7.0-SNAPSHOT/samples/mtom/build/service/src/sample/mtom/service/MTOMSampleSkeleton.java:42:
package org.apache.ws.axis2.mtomsample does not exist
[javac] public org.apache.ws.axis2.mtomsample.AttachmentResponse
attachment(
[javac] ^
[javac]
/home/isha/Axis2/modules/distribution/target/axis2-1.7.0-SNAPSHOT/samples/mtom/build/service/src/sample/mtom/service/MTOMSampleSkeleton.java:47:
cannot find symbol
[javac] symbol : class AttachmentType
[javac] location: class sample.mtom.service.MTOMSampleSkeleton
[javac] AttachmentType attachmentRequest =
param0.getAttachmentRequest();
[javac] ^
[javac]
/home/isha/Axis2/modules/distribution/target/axis2-1.7.0-SNAPSHOT/samples/mtom/build/service/src/sample/mtom/service/MTOMSampleSkeleton.java:48:
cannot find symbol
[javac] symbol : class Base64Binary
[javac] location: class sample.mtom.service.MTOMSampleSkeleton
[javac] Base64Binary binaryData =
attachmentRequest.getBinaryData();
[javac] ^
[javac]
/home/isha/Axis2/modules/distribution/target/axis2-1.7.0-SNAPSHOT/samples/mtom/build/service/src/sample/mtom/service/MTOMSampleSkeleton.java:57:
cannot find symbol
[javac] symbol : class AttachmentResponse
[javac] location: class sample.mtom.service.MTOMSampleSkeleton
[javac] AttachmentResponse response = new AttachmentResponse();
[javac] ^
[javac]
/home/isha/Axis2/modules/distribution/target/axis2-1.7.0-SNAPSHOT/samples/mtom/build/service/src/sample/mtom/service/MTOMSampleSkeleton.java:57:
cannot find symbol
[javac] symbol : class AttachmentResponse
[javac] location: class sample.mtom.service.MTOMSampleSkeleton
[javac] AttachmentResponse response = new AttachmentResponse();
[javac] ^
[javac] 9 errors
BUILD FAILED
/home/isha/Axis2/modules/distribution/target/axis2-1.7.0-SNAPSHOT/samples/mtom/build.xml:54:
The following error occurred while executing this line:
/home/isha/Axis2/modules/distribution/target/axis2-1.7.0-SNAPSHOT/samples/mtom/build.xml:112:
Compile failed; see the compiler error output for details.
- There are reports about build failures with java_first_jaxws,
jaxws-version and databinding but i had no issues with them.
Thanks
Isha