You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by "Nikla Ratinen (JIRA)" <ji...@apache.org> on 2007/05/06 16:35:15 UTC
[jira] Created: (GERONIMO-3142) Geronimo / Jetty fails to startup
under Sun Java 1.6 update 1
Geronimo / Jetty fails to startup under Sun Java 1.6 update 1
-------------------------------------------------------------
Key: GERONIMO-3142
URL: https://issues.apache.org/jira/browse/GERONIMO-3142
Project: Geronimo
Issue Type: Bug
Security Level: public (Regular issues)
Components: JVM-compatibility
Affects Versions: 1.1.1, 1.2
Environment: CentOS 5 (~RHEL 5), Java 1.6 update 1
Reporter: Nikla Ratinen
Vanilla Geronimo / Jetty 1.1.1 and 1.2-beta fail to start under JDK 1.6 update 1. JDK 1.5 seems to work though.
Logs show ClassNotFoundException resolving key manager:
...
Caused by: java.lang.ClassNotFoundException: [Ljavax.net.ssl.KeyManager; in classloader org.apache.geronimo.configs/jetty/1.2-beta/car
at org.apache.geronimo.kernel.config.MultiParentClassLoader.loadClass(MultiParentClassLoader.java:298)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at org.apache.geronimo.security.keystore.FileKeystoreManager.createSSLServerFactory(FileKeystoreManager.java:310)
... 53 more
An easy way to disable SSL entirely would fix this for me ;)
I'll attach relevant logs.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Assigned: (GERONIMO-3142) Geronimo / Jetty fails to startup
under Sun Java 1.6 update 1
Posted by "Donald Woods (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/GERONIMO-3142?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Donald Woods reassigned GERONIMO-3142:
--------------------------------------
Assignee: Donald Woods
> Geronimo / Jetty fails to startup under Sun Java 1.6 update 1
> -------------------------------------------------------------
>
> Key: GERONIMO-3142
> URL: https://issues.apache.org/jira/browse/GERONIMO-3142
> Project: Geronimo
> Issue Type: Bug
> Security Level: public(Regular issues)
> Components: JVM-compatibility
> Affects Versions: 1.1.1, 1.2
> Environment: CentOS 5 (~RHEL 5), Java 1.6 update 1
> Reporter: Nikla Ratinen
> Assigned To: Donald Woods
> Attachments: geronimo.log, geronimo.out, j6-patch-classloader.txt
>
>
> Vanilla Geronimo / Jetty 1.1.1 and 1.2-beta fail to start under JDK 1.6 update 1. JDK 1.5 seems to work though.
> Logs show ClassNotFoundException resolving key manager:
> ...
> Caused by: java.lang.ClassNotFoundException: [Ljavax.net.ssl.KeyManager; in classloader org.apache.geronimo.configs/jetty/1.2-beta/car
> at org.apache.geronimo.kernel.config.MultiParentClassLoader.loadClass(MultiParentClassLoader.java:298)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
> at org.apache.geronimo.security.keystore.FileKeystoreManager.createSSLServerFactory(FileKeystoreManager.java:310)
> ... 53 more
> An easy way to disable SSL entirely would fix this for me ;)
> I'll attach relevant logs.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (GERONIMO-3142) Geronimo / Jetty fails to startup
under Sun Java 1.6 update 1
Posted by "Donald Woods (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/GERONIMO-3142?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Donald Woods resolved GERONIMO-3142.
------------------------------------
Resolution: Fixed
Fix Version/s: 2.0-M6
Committed revision 539676 in trunk.
Applied the patch from Toby and verified that the Tomcat JEE5 assembly built with Sun 1.5.0_11 starts with both the Sun 1.5.0_11 and Sun 1.6.0_01 JDKs.
Toby, thanks for the patch.
> Geronimo / Jetty fails to startup under Sun Java 1.6 update 1
> -------------------------------------------------------------
>
> Key: GERONIMO-3142
> URL: https://issues.apache.org/jira/browse/GERONIMO-3142
> Project: Geronimo
> Issue Type: Bug
> Security Level: public(Regular issues)
> Components: JVM-compatibility
> Affects Versions: 1.1.1, 1.2
> Environment: CentOS 5 (~RHEL 5), Java 1.6 update 1
> Reporter: Nikla Ratinen
> Assigned To: Donald Woods
> Fix For: 2.0-M6
>
> Attachments: geronimo.log, geronimo.out, j6-patch-classloader.txt
>
>
> Vanilla Geronimo / Jetty 1.1.1 and 1.2-beta fail to start under JDK 1.6 update 1. JDK 1.5 seems to work though.
> Logs show ClassNotFoundException resolving key manager:
> ...
> Caused by: java.lang.ClassNotFoundException: [Ljavax.net.ssl.KeyManager; in classloader org.apache.geronimo.configs/jetty/1.2-beta/car
> at org.apache.geronimo.kernel.config.MultiParentClassLoader.loadClass(MultiParentClassLoader.java:298)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
> at org.apache.geronimo.security.keystore.FileKeystoreManager.createSSLServerFactory(FileKeystoreManager.java:310)
> ... 53 more
> An easy way to disable SSL entirely would fix this for me ;)
> I'll attach relevant logs.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (GERONIMO-3142) Geronimo / Jetty fails to startup
under Sun Java 1.6 update 1
Posted by "Nikla Ratinen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/GERONIMO-3142?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Nikla Ratinen updated GERONIMO-3142:
------------------------------------
Attachment: geronimo.log
geronimo.log from 1.2 beta
> Geronimo / Jetty fails to startup under Sun Java 1.6 update 1
> -------------------------------------------------------------
>
> Key: GERONIMO-3142
> URL: https://issues.apache.org/jira/browse/GERONIMO-3142
> Project: Geronimo
> Issue Type: Bug
> Security Level: public(Regular issues)
> Components: JVM-compatibility
> Affects Versions: 1.1.1, 1.2
> Environment: CentOS 5 (~RHEL 5), Java 1.6 update 1
> Reporter: Nikla Ratinen
> Attachments: geronimo.log
>
>
> Vanilla Geronimo / Jetty 1.1.1 and 1.2-beta fail to start under JDK 1.6 update 1. JDK 1.5 seems to work though.
> Logs show ClassNotFoundException resolving key manager:
> ...
> Caused by: java.lang.ClassNotFoundException: [Ljavax.net.ssl.KeyManager; in classloader org.apache.geronimo.configs/jetty/1.2-beta/car
> at org.apache.geronimo.kernel.config.MultiParentClassLoader.loadClass(MultiParentClassLoader.java:298)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
> at org.apache.geronimo.security.keystore.FileKeystoreManager.createSSLServerFactory(FileKeystoreManager.java:310)
> ... 53 more
> An easy way to disable SSL entirely would fix this for me ;)
> I'll attach relevant logs.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (GERONIMO-3142) Geronimo / Jetty fails to startup
under Sun Java 1.6 update 1
Posted by "toby cabot (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/GERONIMO-3142?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
toby cabot updated GERONIMO-3142:
---------------------------------
Description:
Vanilla Geronimo / Jetty 1.1.1 and 1.2-beta fail to start under JDK 1.6 update 1. JDK 1.5 seems to work though.
Logs show ClassNotFoundException resolving key manager:
...
Caused by: java.lang.ClassNotFoundException: [Ljavax.net.ssl.KeyManager; in classloader org.apache.geronimo.configs/jetty/1.2-beta/car
at org.apache.geronimo.kernel.config.MultiParentClassLoader.loadClass(MultiParentClassLoader.java:298)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at org.apache.geronimo.security.keystore.FileKeystoreManager.createSSLServerFactory(FileKeystoreManager.java:310)
... 53 more
An easy way to disable SSL entirely would fix this for me ;)
I'll attach relevant logs.
was:
Vanilla Geronimo / Jetty 1.1.1 and 1.2-beta fail to start under JDK 1.6 update 1. JDK 1.5 seems to work though.
Logs show ClassNotFoundException resolving key manager:
...
Caused by: java.lang.ClassNotFoundException: [Ljavax.net.ssl.KeyManager; in classloader org.apache.geronimo.configs/jetty/1.2-beta/car
at org.apache.geronimo.kernel.config.MultiParentClassLoader.loadClass(MultiParentClassLoader.java:298)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at org.apache.geronimo.security.keystore.FileKeystoreManager.createSSLServerFactory(FileKeystoreManager.java:310)
... 53 more
An easy way to disable SSL entirely would fix this for me ;)
I'll attach relevant logs.
Patch Info: [Patch Available]
> Geronimo / Jetty fails to startup under Sun Java 1.6 update 1
> -------------------------------------------------------------
>
> Key: GERONIMO-3142
> URL: https://issues.apache.org/jira/browse/GERONIMO-3142
> Project: Geronimo
> Issue Type: Bug
> Security Level: public(Regular issues)
> Components: JVM-compatibility
> Affects Versions: 1.1.1, 1.2
> Environment: CentOS 5 (~RHEL 5), Java 1.6 update 1
> Reporter: Nikla Ratinen
> Attachments: geronimo.log, geronimo.out, j6-patch-classloader.txt
>
>
> Vanilla Geronimo / Jetty 1.1.1 and 1.2-beta fail to start under JDK 1.6 update 1. JDK 1.5 seems to work though.
> Logs show ClassNotFoundException resolving key manager:
> ...
> Caused by: java.lang.ClassNotFoundException: [Ljavax.net.ssl.KeyManager; in classloader org.apache.geronimo.configs/jetty/1.2-beta/car
> at org.apache.geronimo.kernel.config.MultiParentClassLoader.loadClass(MultiParentClassLoader.java:298)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
> at org.apache.geronimo.security.keystore.FileKeystoreManager.createSSLServerFactory(FileKeystoreManager.java:310)
> ... 53 more
> An easy way to disable SSL entirely would fix this for me ;)
> I'll attach relevant logs.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (GERONIMO-3142) Geronimo / Jetty fails to startup
under Sun Java 1.6 update 1
Posted by "toby cabot (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/GERONIMO-3142?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
toby cabot updated GERONIMO-3142:
---------------------------------
Attachment: j6-patch-classloader.txt
This bug appears to be caused by a change in the behavior of ClassLoader.loadClass(). It used to accept array syntax but the version in 1.6 doesn't. I trolled Sun's bug tracker and saw some comments to the effect that it was never considered to be a documented feature and didn't always work, but it always worked for me until Java 1.6. Oh well.
In any case, a couple of the comments suggested using Class.forName() instead, so I tried that and it seems to work for 1.5 and 1.6. Will probably work for 1.4 also but I haven't tried it since I'm working on the trunk for now. If anyone cares I can try the same fix on a branch.
For background, see:
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6446627 - Reading Serialized arrays of objects throws ClassNotFoundException - one of the comments suggests using the 3-argument Class.forName() instead.
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6516909 - Clarify that ClassLoader.loadClass() is not meant to be used for array classes
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6249970 - clarification needed: binary name of array type in ClassLoader.loadClass
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4976356 - S1AS 7 calling ClassLoader.loadClass with array syntax
> Geronimo / Jetty fails to startup under Sun Java 1.6 update 1
> -------------------------------------------------------------
>
> Key: GERONIMO-3142
> URL: https://issues.apache.org/jira/browse/GERONIMO-3142
> Project: Geronimo
> Issue Type: Bug
> Security Level: public(Regular issues)
> Components: JVM-compatibility
> Affects Versions: 1.1.1, 1.2
> Environment: CentOS 5 (~RHEL 5), Java 1.6 update 1
> Reporter: Nikla Ratinen
> Attachments: geronimo.log, geronimo.out, j6-patch-classloader.txt
>
>
> Vanilla Geronimo / Jetty 1.1.1 and 1.2-beta fail to start under JDK 1.6 update 1. JDK 1.5 seems to work though.
> Logs show ClassNotFoundException resolving key manager:
> ...
> Caused by: java.lang.ClassNotFoundException: [Ljavax.net.ssl.KeyManager; in classloader org.apache.geronimo.configs/jetty/1.2-beta/car
> at org.apache.geronimo.kernel.config.MultiParentClassLoader.loadClass(MultiParentClassLoader.java:298)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
> at org.apache.geronimo.security.keystore.FileKeystoreManager.createSSLServerFactory(FileKeystoreManager.java:310)
> ... 53 more
> An easy way to disable SSL entirely would fix this for me ;)
> I'll attach relevant logs.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (GERONIMO-3142) Geronimo / Jetty fails to startup
under Sun Java 1.6 update 1
Posted by "Valery Gorbunov (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/GERONIMO-3142?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12493983 ]
Valery Gorbunov commented on GERONIMO-3142:
-------------------------------------------
I also have this problem on 2.0m3
> Geronimo / Jetty fails to startup under Sun Java 1.6 update 1
> -------------------------------------------------------------
>
> Key: GERONIMO-3142
> URL: https://issues.apache.org/jira/browse/GERONIMO-3142
> Project: Geronimo
> Issue Type: Bug
> Security Level: public(Regular issues)
> Components: JVM-compatibility
> Affects Versions: 1.1.1, 1.2
> Environment: CentOS 5 (~RHEL 5), Java 1.6 update 1
> Reporter: Nikla Ratinen
> Attachments: geronimo.log, geronimo.out
>
>
> Vanilla Geronimo / Jetty 1.1.1 and 1.2-beta fail to start under JDK 1.6 update 1. JDK 1.5 seems to work though.
> Logs show ClassNotFoundException resolving key manager:
> ...
> Caused by: java.lang.ClassNotFoundException: [Ljavax.net.ssl.KeyManager; in classloader org.apache.geronimo.configs/jetty/1.2-beta/car
> at org.apache.geronimo.kernel.config.MultiParentClassLoader.loadClass(MultiParentClassLoader.java:298)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
> at org.apache.geronimo.security.keystore.FileKeystoreManager.createSSLServerFactory(FileKeystoreManager.java:310)
> ... 53 more
> An easy way to disable SSL entirely would fix this for me ;)
> I'll attach relevant logs.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (GERONIMO-3142) Geronimo / Jetty fails to startup
under Sun Java 1.6 update 1
Posted by "Nikla Ratinen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/GERONIMO-3142?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Nikla Ratinen updated GERONIMO-3142:
------------------------------------
Attachment: geronimo.out
geronimo.out from 1.1.1
> Geronimo / Jetty fails to startup under Sun Java 1.6 update 1
> -------------------------------------------------------------
>
> Key: GERONIMO-3142
> URL: https://issues.apache.org/jira/browse/GERONIMO-3142
> Project: Geronimo
> Issue Type: Bug
> Security Level: public(Regular issues)
> Components: JVM-compatibility
> Affects Versions: 1.1.1, 1.2
> Environment: CentOS 5 (~RHEL 5), Java 1.6 update 1
> Reporter: Nikla Ratinen
> Attachments: geronimo.log, geronimo.out
>
>
> Vanilla Geronimo / Jetty 1.1.1 and 1.2-beta fail to start under JDK 1.6 update 1. JDK 1.5 seems to work though.
> Logs show ClassNotFoundException resolving key manager:
> ...
> Caused by: java.lang.ClassNotFoundException: [Ljavax.net.ssl.KeyManager; in classloader org.apache.geronimo.configs/jetty/1.2-beta/car
> at org.apache.geronimo.kernel.config.MultiParentClassLoader.loadClass(MultiParentClassLoader.java:298)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
> at org.apache.geronimo.security.keystore.FileKeystoreManager.createSSLServerFactory(FileKeystoreManager.java:310)
> ... 53 more
> An easy way to disable SSL entirely would fix this for me ;)
> I'll attach relevant logs.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.