Mantis Bugtracker
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0004829 [Resin] minor always 10-27-11 13:20 11-08-11 09:10
Reporter rickHigh View Status public  
Assigned To ferg
Priority normal Resolution fixed  
Status closed   Product Version
Summary 0004829: Resin does not work with IBM Java SDK 1.6 when not using OpenSSL
Description thread start failed for thread 000000000216EE00
sun.security.x509.CertAndKeyGen
[11-10-27 20:12:44.795] {main} java.lang.NoClassDefFoundError: sun.security.x509.CertAndKeyGen
                                   at com.caucho.vfs.SelfSignedCert.create(SelfSignedCert.java:109)
                                   at com.caucho.vfs.JsseSSLFactory.createSelfSignedCert(JsseSSLFactory.java:420)
                                   at com.caucho.vfs.JsseSSLFactory.createAnonymousFactory(JsseSSLFactory.java:376)
                                   at com.caucho.vfs.JsseSSLFactory.create(JsseSSLFactory.java:287)

See http://bugs.caucho.com/view.php?id=4828 [^] for ideas for how to reproduce this.
                                   at com.caucho.network.listen.TcpSocketLinkListener.bind(TcpSocketLinkListener.java:1025)
                                   at com.caucho.cloud.network.NetworkListenSystem.start(NetworkListenSystem.java:218)
                                   at com.caucho.env.service.ResinSystem.startServices(ResinSystem.java:515)
                                   at com.caucho.env.service.ResinSystem.start(ResinSystem.java:483)
                                   at com.caucho.server.resin.Resin.start(Resin.java:1033)
                                   at com.caucho.server.resin.Resin.initMain(Resin.java:1169)
                                   at com.caucho.server.resin.Resin.main(Resin.java:1471)
                               Caused by: java.lang.ClassNotFoundException: sun.security.x509.CertAndKeyGen
                                   at java.lang.ClassNotFoundException.<init>(ClassNotFoundException.java:76)
                                   at java.net.URLClassLoader.findClass(URLClassLoader.java:396)
                                   at java.lang.ClassLoader.loadClass(ClassLoader.java:660)
                                   at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:358)
                                   at java.lang.ClassLoader.loadClass(ClassLoader.java:626)
                                   ... 11 more
Additional Information
Attached Files

- Relationships

- Notes
(0005591)
rickHigh
10-27-11 13:34

To get around this issue, you can use OpenSSL as follows on SUSE:

# zypper install libopenssl-devel

Then rebuild Resin to use openssl
# ./configure --enable-64bit --enable-ssl
# make
# make install

This seems to work...


# cat /var/log/resin/jvm-default.log
Resin Professional 4.0.23 (built Fri, 30 Sep 2011 09:32:50 PDT)
Copyright(c) 1998-2010 Caucho Technology. All rights reserved.

  Resin Professional has not found any valid licenses.
  Licenses belong in /root/resin-pro-4.0.23/licenses.
  See http://www.caucho.com/resin/sales [^] for licensing information.

Starting Resin on Thu, 27 Oct 2011 20:28:39 +0000 (UTC)

[11-10-27 20:29:06.773] {main}
[11-10-27 20:29:06.773] {main} Linux 2.6.32.19-0.3-ec2 amd64
[11-10-27 20:29:06.773] {main} Java(TM) SE Runtime Environment pxa6460sr9fp2-20110625_01 (SR9 FP2), ANSI_X3.4-1968, en
[11-10-27 20:29:06.774] {main} IBM J9 VM 2.4, 64, JRE 1.6.0 IBM J9 2.4 Linux amd64-64 jvmxa6460sr9-20110624_85526 (JIT enabled, AOT enabled)
                               J9VM - 20110624_085526
                               JIT - r9_20101028_17488ifx17
                               GC - 20101027_AA, IBM Corporation
[11-10-27 20:29:06.774] {main}
[11-10-27 20:29:06.774] {main} user.name = root
[11-10-27 20:29:09.776] {main}
[11-10-27 20:29:09.783] {main} server listening to localhost:6800
[11-10-27 20:29:12.838] {main}
[11-10-27 20:29:25.428] {main}
[11-10-27 20:29:25.428] {main} resin.home = /usr/local/resin/
[11-10-27 20:29:25.428] {main} resin.root = /var/www
[11-10-27 20:29:25.429] {main} resin.conf = /etc/resin/resin.xml
[11-10-27 20:29:25.429] {main}
[11-10-27 20:29:25.429] {main} server = 127.0.0.1:6800 (app-tier:default)
[11-10-27 20:29:25.429] {main} stage = production
 
(0005592)
rickHigh
10-27-11 13:40

Ok... just using OpenSSL did not seem to completely solve the issue.
The server is not responding to requests.

Also I can't get the status of the server.

# /etc/init.d/resin status

The above just hangs.

I am going to switch to opensdk now that I know how to install zypher repos instead of using IBM JDK.
 
(0005598)
rickHigh
10-27-11 15:05

The later IBM JDK issue could be due to using a micro instance instead of a larger instance.

We should try it with IBM JDK using a larger image.

It worked with Resin 4.0.23 on SUSE 11 64 bit with OpenSSL (on Amazon EC2) using Large instance.
 

- Issue History
Date Modified Username Field Change
10-27-11 13:20 rickHigh New Issue
10-27-11 13:34 rickHigh Note Added: 0005591
10-27-11 13:40 rickHigh Note Added: 0005592
10-27-11 15:05 rickHigh Note Added: 0005598
11-08-11 09:10 ferg Assigned To  => ferg
11-08-11 09:10 ferg Status new => closed
11-08-11 09:10 ferg Resolution open => fixed
11-08-11 09:10 ferg Fixed in Version  => 4.0.24
11-08-11 09:10 ferg Description Updated


Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
34 total queries executed.
28 unique queries executed.
Powered by Mantis Bugtracker