Jörg Schaible wrote:
Hi Dennis,

Dennis Lundberg wrote:

Hi

It's about time to get commons-logging 1.1.1 released.

Release Notes:

http://issues.apache.org/jira/secure/ReleaseNote.jspa?projectId=12310484&styleName=Html&version=12312160
Tag:

https://svn.apache.org/repos/asf/commons/proper/logging/tags/commons-logging-1.1.1/
Staged repository:
http://people.apache.org/~dennisl/staging-repository-commons-logging/

Distribution files:
http://people.apache.org/~dennisl/commons-logging-1.1.1.tar.gz

I've used this one and tried to build and run the tests of the package
(Linux x86, M205). Works for Sun JDKs 1.4.2, 1.5.0, 1.6.0, Blackdown 1.4.2

Thanks for testing Jörg!

The tests cannot currently be run using Maven 2, because we do all sorts of funky classloader manipulations.

Did you run the tests using Ant as described in the docs?
  http://commons.apache.org/logging/building.html

Just follow the instructions in build-testing.xml

Fails for JRockit 1.4.2, 1.5.0 with:

============ %< ================
Results :

Tests in error:
testAllAllowed(org.apache.commons.logging.security.SecurityAllowedTestCase) testAllForbidden(org.apache.commons.logging.security.SecurityForbiddenTestCase)

Tests run: 88, Failures: 0, Errors: 2, Skipped: 0

[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
============ %< ================

Both fail with:

============ %< ================
-------------------------------------------------------------------------------
Test set: org.apache.commons.logging.security.SecurityAllowedTestCase
-------------------------------------------------------------------------------
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.205 sec
<<< FAILURE!
testAllAllowed(org.apache.commons.logging.security.SecurityAllowedTestCase) Time elapsed: 0.191 sec <<< ERROR!
java.lang.NoClassDefFoundError: sun/net/InetAddressCachePolicy
        at java.lang.System.setSecurityManager0(System.java:276)
        at java.lang.System.setSecurityManager(System.java:245)
        at
org.apache.commons.logging.security.SecurityAllowedTestCase.tearDown(SecurityAllowedTestCase.java:77)
============ %< ================


That's an understandable error. I can't imagine that JRockit carries sun/net/* classes in it. That being said, I can't find a reference to such a class in commons-logging code though.


Even worse is IBM JDK, although here fails the Maven build itself.

IBM JDK 1.4.2:

============ %< ================
[INFO] Scanning for projects...
[INFO] 
----------------------------------------------------------------------------
[INFO] Building Commons Logging
[INFO]    task-segment: [clean, verify]
[INFO] 
----------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error building POM (may not be this project's POM).


Project ID: org.codehaus.plexus:plexus-utils

Reason: Failed to build model from
file 
'/home/joehni/.m2/repository/org/codehaus/plexus/plexus-utils/1.0.4/plexus-utils-1.0.4.pom'.
Error: 'null'
============ %< ================

IBM JDK 1.5.0:

============ %< ================
[INFO] Scanning for projects...
[INFO] 
----------------------------------------------------------------------------
[INFO] Building Commons Logging
[INFO]    task-segment: [clean, verify]
[INFO] 
----------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
---------------------------------------------------
constituent[0]:
file:/usr/share/maven-bin-2.0/lib/plexus-interactivity-api-1.0-alpha-4.jar
constituent[1]: file:/usr/share/maven-bin-2.0/lib/commons-cli-1.0.jar
constituent[2]:
file:/usr/share/maven-bin-2.0/lib/doxia-sink-api-1.0-alpha-7.jar
constituent[3]: file:/usr/share/maven-bin-2.0/lib/maven-core-2.0.5.jar
constituent[4]:
file:/usr/share/maven-bin-2.0/lib/maven-plugin-parameter-documenter-2.0.5.jar
constituent[5]: file:/usr/share/maven-bin-2.0/lib/maven-model-2.0.5.jar
constituent[6]: file:/usr/share/maven-bin-2.0/lib/maven-monitor-2.0.5.jar
constituent[7]:
file:/usr/share/maven-bin-2.0/lib/wagon-ssh-common-1.0-beta-2.jar
constituent[8]:
file:/usr/share/maven-bin-2.0/lib/maven-reporting-api-2.0.5.jar
constituent[9]:
file:/usr/share/maven-bin-2.0/lib/maven-repository-metadata-2.0.5.jar
constituent[10]: file:/usr/share/maven-bin-2.0/lib/maven-settings-2.0.5.jar
constituent[11]:
file:/usr/share/maven-bin-2.0/lib/maven-plugin-descriptor-2.0.5.jar
constituent[12]:
file:/usr/share/maven-bin-2.0/lib/wagon-http-shared-1.0-beta-2.jar
constituent[13]: file:/usr/share/maven-bin-2.0/lib/jsch-0.1.27.jar
constituent[14]: file:/usr/share/maven-bin-2.0/lib/wagon-ssh-1.0-beta-2.jar
constituent[15]:
file:/usr/share/maven-bin-2.0/lib/maven-error-diagnostics-2.0.5.jar
constituent[16]:
file:/usr/share/maven-bin-2.0/lib/wagon-provider-api-1.0-beta-2.jar
constituent[17]:
file:/usr/share/maven-bin-2.0/lib/maven-plugin-api-2.0.5.jar
constituent[18]:
file:/usr/share/maven-bin-2.0/lib/wagon-http-lightweight-1.0-beta-2.jar
constituent[19]: file:/usr/share/maven-bin-2.0/lib/maven-project-2.0.5.jar
constituent[20]: file:/usr/share/maven-bin-2.0/lib/wagon-file-1.0-beta-2.jar
constituent[21]:
file:/usr/share/maven-bin-2.0/lib/wagon-ssh-external-1.0-beta-2.jar
constituent[22]: file:/usr/share/maven-bin-2.0/lib/maven-artifact-2.0.5.jar
constituent[23]:
file:/usr/share/maven-bin-2.0/lib/maven-artifact-manager-2.0.5.jar
constituent[24]: file:/usr/share/maven-bin-2.0/lib/jtidy-4aug2000r7-dev.jar
constituent[25]: file:/usr/share/maven-bin-2.0/lib/maven-profile-2.0.5.jar
constituent[26]: file:/usr/share/maven-bin-2.0/lib/xml-apis-1.0.b2.jar
constituent[27]:
file:/usr/share/maven-bin-2.0/lib/maven-plugin-registry-2.0.5.jar
constituent[28]:
file:/usr/share/maven-bin-2.0/lib/maven-core-2.0.5-javadoc.jar
---------------------------------------------------
java.lang.NullPointerException
        at java.lang.String.indexOf(String.java:792)
        at java.lang.String.indexOf(String.java:770)
        at
org.apache.maven.usability.ArtifactResolverDiagnoser.diagnose(ArtifactResolverDiagnoser.java:53)
        at
org.apache.maven.usability.diagnostics.ErrorDiagnostics.diagnose(ErrorDiagnostics.java:84)
        at
org.apache.maven.DefaultMaven.logDiagnostics(DefaultMaven.java:685)
        at org.apache.maven.DefaultMaven.logError(DefaultMaven.java:632)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:272)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:615)
        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)
============ %< ================

:-/


I'd say that there is something wrong with your Maven installation here. If you are running Maven 2.0.5 here you it shouldn't pull in plexus-utils-1.0.4, because it already has plexus-utils-1.1 in the core. Not sure why that happens though :(


While I don't think we can do a lot about the Maven problem with IBM JDK, we
should at least have a look at the failing security tests on JRockit.

- Jörg

--
Dennis Lundberg


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to