What is your conclusion? Should we leave things the way they are and maybe add JRockit as a "known issue" on the wiki?

Jörg Schaible wrote:
Dennis Lundberg wrote:

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

No, I missed it. I simply looked at all thouse XXXXXX.txt files in the tar
ball and since they only mension, that the build was done with M2 ... ;-)
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.

It does. BEA licensed from Sun and it contains that class.

 That being said, I can't find a reference to
such a class in commons-logging code though.

Forget about that error message. I had a look at the SecurityAllowedTestCase
and with JRockit the invocation of getLog via reflection fails. See console
output (snipped after the call of invoke):

======= sun.txt ========
testing permission:class java.util.PropertyPermission
(java.util.PropertyPermission org.apache.commons.logging.diagnostics.dest
read)
1:java.lang.SecurityManager.checkPropertyAccess
2:java.lang.System.getProperty
3:org.apache.commons.logging.LogFactory$6.run
Permission in allowed set for JCL class
4:java.security.AccessController.doPrivileged
Access controller found: returning


testing permission:class java.util.PropertyPermission
(java.util.PropertyPermission
org.apache.commons.logging.LogFactory.HashtableImpl read)
1:java.lang.SecurityManager.checkPropertyAccess
2:java.lang.System.getProperty
3:org.apache.commons.logging.LogFactory$6.run
Permission in allowed set for JCL class
4:java.security.AccessController.doPrivileged
Access controller found: returning


testing permission:class java.lang.reflect.ReflectPermission
(java.lang.reflect.ReflectPermission suppressAccessChecks)
1:java.lang.reflect.AccessibleObject.setAccessible
2:java.lang.Class$1.run
3:java.security.AccessController.doPrivileged
Access controller found: returning


testing permission:class java.util.PropertyPermission
(java.util.PropertyPermission sun.boot.class.path read)
1:java.lang.SecurityManager.checkPropertyAccess
2:java.lang.System.getProperty
3:sun.security.action.GetPropertyAction.run
4:java.security.AccessController.doPrivileged
Access controller found: returning


testing permission:class java.net.NetPermission:(java.net.NetPermission
specifyStreamHandler)
1:java.net.URL.checkSpecifyHandler
2:java.net.URL.<init>
3:sun.misc.URLClassPath$JarLoader.<init>
4:sun.misc.URLClassPath$3.run
5:java.security.AccessController.doPrivileged
Access controller found: returning


testing permission:class java.net.NetPermission:(java.net.NetPermission
specifyStreamHandler)
1:java.net.URL.checkSpecifyHandler
2:java.net.URL.<init>
3:sun.misc.URLClassPath$JarLoader.<init>
4:sun.misc.URLClassPath$3.run
5:java.security.AccessController.doPrivileged
Access controller found: returning


testing permission:class java.net.NetPermission:(java.net.NetPermission
specifyStreamHandler)
1:java.net.URL.checkSpecifyHandler
2:java.net.URL.<init>
3:sun.misc.URLClassPath$JarLoader.<init>
4:sun.misc.URLClassPath$3.run
5:java.security.AccessController.doPrivileged
Access controller found: returning


testing permission:class java.net.NetPermission:(java.net.NetPermission
specifyStreamHandler)
1:java.net.URL.checkSpecifyHandler
2:java.net.URL.<init>
3:sun.misc.URLClassPath$JarLoader.<init>
4:sun.misc.URLClassPath$3.run
5:java.security.AccessController.doPrivileged
Access controller found: returning


testing permission:class java.net.NetPermission:(java.net.NetPermission
specifyStreamHandler)
1:java.net.URL.checkSpecifyHandler
2:java.net.URL.<init>
3:sun.misc.URLClassPath$JarLoader.<init>
4:sun.misc.URLClassPath$3.run
5:java.security.AccessController.doPrivileged
Access controller found: returning


testing permission:class java.net.NetPermission:(java.net.NetPermission
specifyStreamHandler)
1:java.net.URL.checkSpecifyHandler
2:java.net.URL.<init>
3:sun.misc.URLClassPath$JarLoader.<init>
4:sun.misc.URLClassPath$3.run
5:java.security.AccessController.doPrivileged
Access controller found: returning


testing permission:class java.net.NetPermission:(java.net.NetPermission
specifyStreamHandler)
1:java.net.URL.checkSpecifyHandler
2:java.net.URL.<init>
3:sun.misc.URLClassPath$JarLoader.<init>
4:sun.misc.URLClassPath$3.run
5:java.security.AccessController.doPrivileged
Access controller found: returning


testing permission:class java.util.PropertyPermission
(java.util.PropertyPermission org.apache.commons.logging.LogFactory read)
1:java.lang.SecurityManager.checkPropertyAccess
2:java.lang.System.getProperty
3:org.apache.commons.logging.LogFactory$6.run
Permission in allowed set for JCL class
4:java.security.AccessController.doPrivileged
Access controller found: returning


testing permission:class java.lang.reflect.ReflectPermission
(java.lang.reflect.ReflectPermission suppressAccessChecks)
1:java.lang.reflect.AccessibleObject.setAccessible
2:java.lang.Class$1.run
3:java.security.AccessController.doPrivileged
Access controller found: returning


testing permission:class java.util.PropertyPermission
(java.util.PropertyPermission
org.apache.commons.logging.Log.allowFlawedContext read)
1:java.lang.SecurityManager.checkPropertyAccess
2:java.lang.System.getProperty
3:org.apache.commons.logging.impl.LogFactoryImpl$2.run
Permission in allowed set for JCL class
4:java.security.AccessController.doPrivileged
Access controller found: returning


testing permission:class java.util.PropertyPermission
(java.util.PropertyPermission
org.apache.commons.logging.Log.allowFlawedDiscovery read)
1:java.lang.SecurityManager.checkPropertyAccess
2:java.lang.System.getProperty
3:org.apache.commons.logging.impl.LogFactoryImpl$2.run
Permission in allowed set for JCL class
4:java.security.AccessController.doPrivileged
Access controller found: returning


testing permission:class java.util.PropertyPermission
(java.util.PropertyPermission
org.apache.commons.logging.Log.allowFlawedHierarchy read)
1:java.lang.SecurityManager.checkPropertyAccess
2:java.lang.System.getProperty
3:org.apache.commons.logging.impl.LogFactoryImpl$2.run
Permission in allowed set for JCL class
4:java.security.AccessController.doPrivileged
Access controller found: returning


testing permission:class java.util.PropertyPermission
(java.util.PropertyPermission org.apache.commons.logging.Log read)
1:java.lang.SecurityManager.checkPropertyAccess
2:java.lang.System.getProperty
3:org.apache.commons.logging.impl.LogFactoryImpl$2.run
Permission in allowed set for JCL class
4:java.security.AccessController.doPrivileged
Access controller found: returning


testing permission:class java.util.PropertyPermission
(java.util.PropertyPermission org.apache.commons.logging.log read)
1:java.lang.SecurityManager.checkPropertyAccess
2:java.lang.System.getProperty
3:org.apache.commons.logging.impl.LogFactoryImpl$2.run
Permission in allowed set for JCL class
4:java.security.AccessController.doPrivileged
Access controller found: returning


testing permission:class java.util.PropertyPermission
(java.util.PropertyPermission log4j.defaultInitOverride read)
1:java.lang.SecurityManager.checkPropertyAccess
2:java.lang.System.getProperty
3:org.apache.log4j.helpers.OptionConverter.getSystemProperty
Unexpected code: permission refused:class java.util.PropertyPermission
(java.util.PropertyPermission log4j.defaultInitOverride read)


testing permission:class java.util.PropertyPermission
(java.util.PropertyPermission log4j.debug read)
1:java.lang.SecurityManager.checkPropertyAccess
2:java.lang.System.getProperty
3:org.apache.log4j.helpers.OptionConverter.getSystemProperty
Unexpected code: permission refused:class java.util.PropertyPermission
(java.util.PropertyPermission log4j.debug read)


testing permission:class java.util.PropertyPermission
(java.util.PropertyPermission log4j.configDebug read)
1:java.lang.SecurityManager.checkPropertyAccess
2:java.lang.System.getProperty
3:org.apache.log4j.helpers.OptionConverter.getSystemProperty
Unexpected code: permission refused:class java.util.PropertyPermission
(java.util.PropertyPermission log4j.configDebug read)


testing permission:class java.util.PropertyPermission
(java.util.PropertyPermission log4j.configuration read)
1:java.lang.SecurityManager.checkPropertyAccess
2:java.lang.System.getProperty
3:org.apache.log4j.helpers.OptionConverter.getSystemProperty
Unexpected code: permission refused:class java.util.PropertyPermission
(java.util.PropertyPermission log4j.configuration read)


testing permission:class java.util.PropertyPermission
(java.util.PropertyPermission log4j.configuratorClass read)
1:java.lang.SecurityManager.checkPropertyAccess
2:java.lang.System.getProperty
3:org.apache.log4j.helpers.OptionConverter.getSystemProperty
Unexpected code: permission refused:class java.util.PropertyPermission
(java.util.PropertyPermission log4j.configuratorClass read)


testing permission:class java.util.PropertyPermission
(java.util.PropertyPermission java.version read)
1:java.lang.SecurityManager.checkPropertyAccess
2:java.lang.System.getProperty
3:org.apache.log4j.helpers.OptionConverter.getSystemProperty
Unexpected code: permission refused:class java.util.PropertyPermission
(java.util.PropertyPermission java.version read)


testing permission:class java.util.PropertyPermission
(java.util.PropertyPermission log4j.ignoreTCL read)
1:java.lang.SecurityManager.checkPropertyAccess
2:java.lang.System.getProperty
3:org.apache.log4j.helpers.OptionConverter.getSystemProperty
Unexpected code: permission refused:class java.util.PropertyPermission
(java.util.PropertyPermission log4j.ignoreTCL read)
===========================


compared to


======= bea.txt ========
testing permission:class java.util.PropertyPermission
(java.util.PropertyPermission org.apache.commons.logging.diagnostics.dest
read)
1:java.lang.SecurityManager.checkPropertyAccess
2:java.lang.System.getProperty
3:org.apache.commons.logging.LogFactory$6.run
Permission in allowed set for JCL class
4:org.apache.commons.logging.LogFactory.getSystemProperty
Permission in allowed set for JCL class
5:org.apache.commons.logging.LogFactory.initDiagnostics
Permission in allowed set for JCL class
6:org.apache.commons.logging.LogFactory.<clinit>
Permission in allowed set for JCL class
7:sun.reflect.NativeMethodAccessorImpl.invoke0
8:sun.reflect.NativeMethodAccessorImpl.invoke
9:sun.reflect.DelegatingMethodAccessorImpl.invoke
10:java.lang.reflect.Method.invoke
11:org.apache.commons.logging.security.SecurityAllowedTestCase.testAllAllowed
Untrusted code [testcase] found


testing permission:class java.util.PropertyPermission
(java.util.PropertyPermission
org.apache.commons.logging.LogFactory.HashtableImpl read)
1:java.lang.SecurityManager.checkPropertyAccess
2:java.lang.System.getProperty
3:org.apache.commons.logging.LogFactory$6.run
Permission in allowed set for JCL class
4:org.apache.commons.logging.LogFactory.getSystemProperty
Permission in allowed set for JCL class
5:org.apache.commons.logging.LogFactory.createFactoryStore
Permission in allowed set for JCL class
6:org.apache.commons.logging.LogFactory.<clinit>
Permission in allowed set for JCL class
7:sun.reflect.NativeMethodAccessorImpl.invoke0
8:sun.reflect.NativeMethodAccessorImpl.invoke
9:sun.reflect.DelegatingMethodAccessorImpl.invoke
10:java.lang.reflect.Method.invoke
11:org.apache.commons.logging.security.SecurityAllowedTestCase.testAllAllowed
Untrusted code [testcase] found


testing permission:class java.lang.reflect.ReflectPermission
(java.lang.reflect.ReflectPermission suppressAccessChecks)
1:java.lang.reflect.AccessibleObject.setAccessible
2:java.lang.Class$1.run
3:java.lang.Class.newInstance0
4:java.lang.Class.newInstance
5:org.apache.commons.logging.LogFactory.createFactoryStore
Permission in allowed set for JCL class
6:org.apache.commons.logging.LogFactory.<clinit>
Permission in allowed set for JCL class
7:sun.reflect.NativeMethodAccessorImpl.invoke0
8:sun.reflect.NativeMethodAccessorImpl.invoke
9:sun.reflect.DelegatingMethodAccessorImpl.invoke
10:java.lang.reflect.Method.invoke
11:org.apache.commons.logging.security.SecurityAllowedTestCase.testAllAllowed
Untrusted code [testcase] found


testing permission:class java.util.PropertyPermission
(java.util.PropertyPermission sun.boot.class.path read)
1:java.lang.SecurityManager.checkPropertyAccess
2:java.lang.System.getProperty
3:sun.security.action.GetPropertyAction.run
4:sun.misc.Launcher.getBootstrapClassPath
5:java.lang.ClassLoader.getBootstrapClassPath
6:java.lang.ClassLoader.getBootstrapResources
7:java.lang.ClassLoader.getResources
8:java.lang.ClassLoader.getResources
9:org.apache.commons.logging.LogFactory$4.run
Permission in allowed set for JCL class
10:org.apache.commons.logging.LogFactory.getResources
Permission in allowed set for JCL class
11:org.apache.commons.logging.LogFactory.getConfigurationFile
Permission in allowed set for JCL class
12:org.apache.commons.logging.LogFactory.getFactory
Permission in allowed set for JCL class
13:org.apache.commons.logging.LogFactory.getLog
Permission in allowed set for JCL class
14:sun.reflect.NativeMethodAccessorImpl.invoke0
15:sun.reflect.NativeMethodAccessorImpl.invoke
16:sun.reflect.DelegatingMethodAccessorImpl.invoke
17:java.lang.reflect.Method.invoke
18:org.apache.commons.logging.security.SecurityAllowedTestCase.testAllAllowed
Untrusted code [testcase] found


testing permission:class java.util.PropertyPermission
(java.util.PropertyPermission org.apache.commons.logging.LogFactory read)
1:java.lang.SecurityManager.checkPropertyAccess
2:java.lang.System.getProperty
3:org.apache.commons.logging.LogFactory$6.run
Permission in allowed set for JCL class
4:org.apache.commons.logging.LogFactory.getSystemProperty
Permission in allowed set for JCL class
5:org.apache.commons.logging.LogFactory.getFactory
Permission in allowed set for JCL class
6:org.apache.commons.logging.LogFactory.getLog
Permission in allowed set for JCL class
7:sun.reflect.NativeMethodAccessorImpl.invoke0
8:sun.reflect.NativeMethodAccessorImpl.invoke
9:sun.reflect.DelegatingMethodAccessorImpl.invoke
10:java.lang.reflect.Method.invoke
11:org.apache.commons.logging.security.SecurityAllowedTestCase.testAllAllowed
Untrusted code [testcase] found


testing permission:class java.util.PropertyPermission
(java.util.PropertyPermission sun.boot.class.path read)
1:java.lang.SecurityManager.checkPropertyAccess
2:java.lang.System.getProperty
3:sun.security.action.GetPropertyAction.run
4:sun.misc.Launcher.getBootstrapClassPath
5:java.lang.ClassLoader.getBootstrapClassPath
6:java.lang.ClassLoader.getBootstrapResource
7:java.lang.ClassLoader.getResource
8:java.lang.ClassLoader.getResource
9:java.lang.ClassLoader.getResourceAsStream
10:org.apache.commons.logging.LogFactory$3.run
Permission in allowed set for JCL class
11:org.apache.commons.logging.LogFactory.getResourceAsStream
Permission in allowed set for JCL class
12:org.apache.commons.logging.LogFactory.getFactory
Permission in allowed set for JCL class
13:org.apache.commons.logging.LogFactory.getLog
Permission in allowed set for JCL class
14:sun.reflect.NativeMethodAccessorImpl.invoke0
15:sun.reflect.NativeMethodAccessorImpl.invoke
16:sun.reflect.DelegatingMethodAccessorImpl.invoke
17:java.lang.reflect.Method.invoke
18:org.apache.commons.logging.security.SecurityAllowedTestCase.testAllAllowed
Untrusted code [testcase] found


testing permission:class java.lang.reflect.ReflectPermission
(java.lang.reflect.ReflectPermission suppressAccessChecks)
1:java.lang.reflect.AccessibleObject.setAccessible
2:java.lang.Class$1.run
3:java.lang.Class.newInstance0
4:java.lang.Class.newInstance
5:org.apache.commons.logging.LogFactory.createFactory
Permission in allowed set for JCL class
6:org.apache.commons.logging.LogFactory$2.run
Permission in allowed set for JCL class
7:org.apache.commons.logging.LogFactory.newFactory
Permission in allowed set for JCL class
8:org.apache.commons.logging.LogFactory.getFactory
Permission in allowed set for JCL class
9:org.apache.commons.logging.LogFactory.getLog
Permission in allowed set for JCL class
10:sun.reflect.NativeMethodAccessorImpl.invoke0
11:sun.reflect.NativeMethodAccessorImpl.invoke
12:sun.reflect.DelegatingMethodAccessorImpl.invoke
13:java.lang.reflect.Method.invoke
14:org.apache.commons.logging.security.SecurityAllowedTestCase.testAllAllowed
Untrusted code [testcase] found
===========================

It seems BEA is quite different for the security stuff internally. At least
it is good to know that it makes quite a difference just in case somebody
reports errors.

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

IBM JDK 1.4.2:

[snip]
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 :(

No. The installation is fine, since all the other JDKs run with the same
installation and repo. It has something to do soemthing with IBM JDK. But
I've never encountered such a behavior before with other projects. But
that's not JCL's problem in first case.

- Jörg


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




--
Dennis Lundberg


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

Reply via email to