Hi,
We are trying to upgrade xalan and commons fileupload to the latest version, so
we are trying to make a custom
Axis2 (from 1.7.9) until it will be released a new axis2, but we encounter some
problems generated by the commons fileupload 1.4.
First of all we cant compile axis2 1.7.9 with Maven 2 (how is written in
README, so is it outdated?), but it worked with Maven 3,
how it was reported in the error. We are using openjdk 1.8.0_252. So we can
compile axis2 1.7.9 without changing anything.
When we try to compile with the sources of the new commons fileupload 1.4 we
get a failed test: Apache Axis2 - OSGi Tests.
We tried to upgrade commons io to 2.2, as it is a dependcy for fileuload 1.4,
but we got the same failed test.
If we try the latest io 2.8, or even 2.7 it failes the compilation way faster.
Also we tried with io 2.6 and we get the same test failed as default (io 2.1)
or as 2.2.
Are we doing something wrong or are needed other changes/upgrades?
I attached a file with the errors.
Thanks,
Stefan Jipa
"FINASTRA" is the trade name of the FINASTRA group of companies. This email and
any attachments have been scanned for known viruses using multiple scanners.
This email message is intended for the named recipient only. It may be
privileged and/or confidential. If you are not the named recipient of this
email please notify us immediately and do not copy it or use it for any
purpose, nor disclose its contents to any other person. This email does not
constitute the commencement of legal relations between you and FINASTRA. Please
refer to the executed contract between you and the relevant member of the
FINASTRA group for the identity of the contracting party with which you are
dealing.
Axis2 1.7.9
Compilation with mvn 2
#/dev/shm/test/axis2-1.7.9) mvn -version
Apache Maven 2.0.11 (r909250; 2010-02-12 06:55:50+0100)
Java version: 1.8.0_252
Java home: /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.252.b09-2.el7_8.x86_64/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux" version: "3.10.0-957.10.1.el7.x86_64" arch: "amd64" Family:
"unix"
#/dev/shm/test/axis2-1.7.9) mvn clean install
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error resolving version for
'org.apache.maven.plugins:maven-clean-plugin': Plugin requires Maven version 3.0
Compilation with mvn 3
#/dev/shm/test) mvn -version
Apache Maven 3.2.2 (45f7c06d68e745d05611f7fd14efb6594181933e;
2014-06-17T15:51:42+02:00)
Maven home: /dev/shm/test/apache-maven-3.2.2
Java version: 1.8.0_252, vendor: Oracle Corporation
Java home: /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.252.b09-2.el7_8.x86_64/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "3.10.0-957.10.1.el7.x86_64", arch: "amd64", family:
"unix"
Without upgrading xalan to 2.7.2 and Commons fileupload to 1.4
SUCCESS
Upgrade xalan 2.7.2 and Commons fileupload to 1.4 in main pom.xml
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running OSGiTest
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.574 sec <<<
FAILURE!
test(OSGiTest) Time elapsed: 0.509 sec <<< ERROR!
org.ops4j.pax.exam.TestContainerException: Problem starting test container.
at
org.apache.felix.framework.URLHandlersStreamHandlerProxy.openConnection(URLHandlersStreamHandlerProxy.java:311)
at java.net.URL.openConnection(URL.java:1002)
at
org.apache.felix.framework.cache.JarRevision.initialize(JarRevision.java:150)
at
org.apache.felix.framework.cache.JarRevision.<init>(JarRevision.java:77)
at
org.apache.felix.framework.cache.BundleArchive.createRevisionFromLocation(BundleArchive.java:878)
at
org.apache.felix.framework.cache.BundleArchive.reviseInternal(BundleArchive.java:550)
at
org.apache.felix.framework.cache.BundleArchive.<init>(BundleArchive.java:153)
at
org.apache.felix.framework.cache.BundleCache.create(BundleCache.java:277)
at org.apache.felix.framework.Felix.installBundle(Felix.java:2940)
at
org.apache.felix.framework.BundleContextImpl.installBundle(BundleContextImpl.java:167)
at
org.apache.felix.framework.BundleContextImpl.installBundle(BundleContextImpl.java:140)
at
org.ops4j.pax.exam.nat.internal.NativeTestContainer.installAndStartBundles(NativeTestContainer.java:307)
at
org.ops4j.pax.exam.nat.internal.NativeTestContainer.start(NativeTestContainer.java:175)
at OSGiTest.test(OSGiTest.java:104)
Results :
Tests in error:
OSGiTest.test:104 » TestContainer Problem starting test container.
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Apache Axis2 - Root ................................ SUCCESS [ 17.432 s]
[INFO] Apache Axis2 - Resource bundle ..................... SUCCESS [ 3.553 s]
[INFO] Apache Axis2 - Kernel .............................. SUCCESS [ 25.423 s]
[INFO] Apache Axis2 - Data Binding ........................ SUCCESS [ 6.105 s]
[INFO] Apache Axis2 - Transport - Local ................... SUCCESS [ 7.647 s]
[INFO] Apache Axis2 - Addressing .......................... SUCCESS [ 8.640 s]
[INFO] Apache Axis2 - Transport - Base .................... SUCCESS [ 8.918 s]
[INFO] Apache Axis2 - Transport - testkit ................. SUCCESS [ 6.479 s]
[INFO] Apache Axis2 - Transport - HTTP .................... SUCCESS [ 24.225 s]
[INFO] Apache Axis2 - Code Generation ..................... SUCCESS [ 12.560 s]
[INFO] Apache Axis2 - ADB Codegen ......................... SUCCESS [ 28.048 s]
[INFO] Apache Axis2 - Clustering .......................... SUCCESS [01:55 min]
[INFO] Apache Axis2 - SAAJ ................................ SUCCESS [ 27.489 s]
[INFO] Apache Axis2 - Ping ................................ SUCCESS [ 4.383 s]
[INFO] Apache Axis2 - MEX ................................. SUCCESS [ 5.235 s]
[INFO] axis2-repo-maven-plugin ............................ SUCCESS [ 48.993 s]
[INFO] Apache Axis2 - Metadata ............................ SUCCESS [ 11.731 s]
[INFO] Apache Axis2 - CORBA ............................... SUCCESS [ 4.076 s]
[INFO] Apache Axis2 - Java2WSDL ........................... SUCCESS [ 11.859 s]
[INFO] Apache Axis2 - Fast Infoset ........................ SUCCESS [ 13.497 s]
[INFO] Apache Axis2 - Test Utilities ...................... SUCCESS [ 3.248 s]
[INFO] Apache Axis2 - JAXB-RI Data Binding ................ SUCCESS [ 38.370 s]
[INFO] Apache Axis2 - JAXWS ............................... SUCCESS [ 32.669 s]
[INFO] Apache Axis2 - JAXWS (mar) ......................... SUCCESS [ 3.786 s]
[INFO] Apache Axis2 - JiBX Data Binding ................... SUCCESS [ 25.849 s]
[INFO] Apache Axis2 - JSON ................................ SUCCESS [ 17.181 s]
[INFO] Apache Axis2 - MTOM Policy ......................... SUCCESS [ 3.709 s]
[INFO] Apache Axis2 - MTOM Policy module .................. SUCCESS [ 1.682 s]
[INFO] Apache Axis2 - OSGi Integration .................... SUCCESS [ 4.353 s]
[INFO] Apache Axis2 - Scripting ........................... SUCCESS [ 4.854 s]
[INFO] Apache Axis2 - SOAP Monitor Servlet ................ SUCCESS [ 2.298 s]
[INFO] Apache Axis2 - SOAP Monitor Module ................. SUCCESS [ 1.665 s]
[INFO] Apache Axis2 - spring .............................. SUCCESS [ 2.606 s]
[INFO] Apache Axis2 - XMLBeans Data Binding ............... SUCCESS [01:05 min]
[INFO] Apache Axis2 - Version Service ..................... SUCCESS [ 10.421 s]
[INFO] Apache Axis2 - Transport - JMS ..................... SUCCESS [01:36 min]
[INFO] Apache Axis2 - Transport - Mail .................... SUCCESS [01:03 min]
[INFO] Apache Axis2 - Transport - TCP ..................... SUCCESS [ 12.541 s]
[INFO] Apache Axis2 - Transport - UDP ..................... SUCCESS [ 6.464 s]
[INFO] Apache Axis2 - Transport - XMPP .................... SUCCESS [ 3.385 s]
[INFO] Apache Axis2 - Web Application module .............. SUCCESS [ 21.838 s]
[INFO] Apache Axis2 - tool - AAR Maven Plugin ............. SUCCESS [ 8.155 s]
[INFO] Apache Axis2 - tool - Ant Plugin ................... SUCCESS [ 7.357 s]
[INFO] Apache Axis2 - tool - Eclipse Codegen Plugin ....... SUCCESS [ 18.610 s]
[INFO] Apache Axis2 - tool - Eclipse service Plugin ....... SUCCESS [ 9.391 s]
[INFO] Apache Axis2 - tool - Intellij IDEA Plugin ......... SUCCESS [ 11.653 s]
[INFO] Apache Axis2 - tool - Java2WSDL Maven Plugin ....... SUCCESS [ 9.467 s]
[INFO] Apache Axis2 - tool - MAR Maven Plugin ............. SUCCESS [ 4.526 s]
[INFO] Apache Axis2 - tool - WSDL2Code Maven Plugin ....... SUCCESS [ 13.837 s]
[INFO] Apache Axis2 Simple HTTP server Maven Plugin ....... SUCCESS [ 3.912 s]
[INFO] Javadoc ............................................ SUCCESS [ 10.891 s]
[INFO] Apache Axis2 - ADB Tests ........................... SUCCESS [ 55.720 s]
[INFO] Apache Axis2 - Integration ......................... SUCCESS [07:46 min]
[INFO] Axis2 quickstart archetype ......................... SUCCESS [ 10.620 s]
[INFO] Axis2 quickstart-web archetype ..................... SUCCESS [ 0.506 s]
[INFO] Apache Axis2 - JAXWS Integration Tests ............. SUCCESS [07:09 min]
[INFO] Apache Axis2 - OSGi Tests .......................... FAILURE [ 7.497 s]
[INFO] Apache Axis2 - Distribution ........................ SKIPPED
[INFO] Samples parent POM ................................. SKIPPED
[INFO] JAXWS - Starting from Java Example ................. SKIPPED
[INFO] JAXWS Addressbook Service .......................... SKIPPED
[INFO] JAXWS Calculator Service ........................... SKIPPED
[INFO] JAXWS Interop Sample ............................... SKIPPED
[INFO] JAXWS Samples - Echo, Ping, MTOM ................... SKIPPED
[INFO] Apache Axis2 -JAXWS Version Service ................ SKIPPED
[INFO] Apache Axis2 Transport-HTTPS sample ................ SKIPPED
[INFO] httpsService ....................................... SKIPPED
[INFO] httpsClient ........................................ SKIPPED
[INFO] Apache Axis2 Transport-JMS sample .................. SKIPPED
[INFO] jmsService ......................................... SKIPPED
[INFO] systests ........................................... SKIPPED
[INFO] echo ............................................... SKIPPED
[INFO] webapp-tests ....................................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 31:27 min
[INFO] Finished at: 2020-09-30T14:11:41+02:00
[INFO] Final Memory: 251M/4648M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-surefire-plugin:2.13:test (default-test) on
project osgi-tests: There are test failures.
[ERROR]
[ERROR] Please refer to
/dev/shm/test/axis2-1.7.9/modules/osgi-tests/target/surefire-reports for the
individual test results.
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e
switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please
read the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <goals> -rf :osgi-tests
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]