Re: [esb-java-user] esb and ibm jdk

1 view
Skip to first unread message

Senaka Fernando

unread,
Dec 12, 2008, 9:27:25 AM12/12/08
to sci-fl...@googlegroups.com
Hi all,

Here's something important for us to note as well. Seems that ESB 2.0 got rid of the proprietary sun-jdk requirement, for good. Now let's also keep some time to try out the Apache Harmony (ex-IBM), and other 1.5 JDKs as well.

Regards,
Senaka

2008/12/11 Schmilinsky, Remsy <Remsy.Sc...@cbsa-asfc.gc.ca>

I have a problem deploying esb on ibm jdk, specifically with tomcat ssl configuration. I need to use the ibmX509 instead of sunX509 provider, how do I fix this ?

 

C:\wso2esb-1.7.1\bin>wso2-esb.bat

"Starting WSO2 Enterprise Service Bus ..."

Using ESB_HOME:        C:\WSO2ES~1.1\bin\..

Using JAVA_HOME:       C:\Program Files\IBM\SDP70\jdk

Using SYNAPSE_XML:

--> Wrapper Started as Console

Launching a JVM...

Wrapper (Version 3.2.3) http://wrapper.tanukisoftware.org

  Copyright 1999-2006 Tanuki Software, Inc.  All Rights Reserved.

 

2008-12-10 13:42:54,041 [-] [WrapperSimpleAppMain]  INFO ServiceBus [ESB] Starting the WSO2 ESB ...

2008-12-10 13:42:54,103 [-] [WrapperSimpleAppMain]  INFO TomcatServer Starting the embedded Tomcat server..

2008-12-10 13:42:55,446 [-] [WrapperSimpleAppMain]  INFO ServiceBusManager Starting the JMX Connector

2008-12-10 13:42:55,446 [-] [WrapperSimpleAppMain]  INFO ServiceBusConfiguration Configuration loading from : C:/wso2esb

1\webapp\WEB-INF\classes\conf\server.xml

2008-12-10 13:42:55,743 [-] [WrapperSimpleAppMain]  INFO ServiceBusManager JMX consoles can connect to : service:jmx:rmi

ndi/rmi://7.28.130.231:1099/esb

2008-12-10 13:42:55,743 [-] [WrapperSimpleAppMain]  INFO ServiceBusManager Starting the WSO2 Enterprise Service Bus..

2008-12-10 13:42:58,101 [-] [WrapperSimpleAppMain]  INFO ServiceBusManager Database server started on 127.0.0.1 over por

8

2008-12-10 13:42:58,117 [-] [WrapperSimpleAppMain]  INFO ServerManager Using Synapse home as : C:/wso2esb-1.7.1

2008-12-10 13:42:58,117 [-] [WrapperSimpleAppMain]  INFO ServerManager Using the Axis2 Repository : C:\wso2esb-1.7.1\rep

ry

2008-12-10 13:42:58,117 [-] [WrapperSimpleAppMain]  INFO ServerManager Using the axis2.xml : C:\wso2esb-1.7.1\webapp\WEB

classes\conf\axis2.xml

2008-12-10 13:42:58,117 [-] [WrapperSimpleAppMain]  INFO ServerManager The server name was not specified, defaulting to

4cu6052

2008-12-10 13:42:58,117 [-] [WrapperSimpleAppMain]  INFO ServerManager The timeout handler will run every : 15s

2008-12-10 13:42:58,616 [-] [WrapperSimpleAppMain]  INFO SynapseInitializationModule Initializing Synapse at : Wed Dec 1

42:58 EST 2008

2008-12-10 13:42:58,632 [7.28.130.231-wh24cu6052] [WrapperSimpleAppMain]  INFO SynapseInitializationModule Loading media

xtensions...

2008-12-10 13:42:59,007 [7.28.130.231-wh24cu6052] [WrapperSimpleAppMain]  INFO SynapseInitializationModule Initializing

ynapse configuration ...

2008-12-10 13:42:59,022 [7.28.130.231-wh24cu6052] [WrapperSimpleAppMain]  INFO XMLConfigurationBuilder Generating the Sy

 configuration model by parsing the XML configuration

2008-12-10 13:43:01,740 [7.28.130.231-wh24cu6052] [WrapperSimpleAppMain]  INFO SynapseConfigurationBuilder Loaded Synaps

figuration from : C:/wso2esb-1.7.1\webapp/WEB-INF/classes/conf/synapse.xml

2008-12-10 13:43:01,755 [7.28.130.231-wh24cu6052] [WrapperSimpleAppMain]  INFO SynapseInitializationModule Deploying the

pse service..

2008-12-10 13:43:01,755 [7.28.130.231-wh24cu6052] [WrapperSimpleAppMain]  INFO SynapseInitializationModule Synapse serve

e : wh24cu6052

2008-12-10 13:43:01,755 [7.28.130.231-wh24cu6052] [WrapperSimpleAppMain]  INFO SynapseInitializationModule Deploying Pro

rvices...

2008-12-10 13:43:01,755 [7.28.130.231-wh24cu6052] [WrapperSimpleAppMain]  INFO SynapseInitializationModule Synapse initi

d successfully...!

2008-12-10 13:43:01,787 [7.28.130.231-wh24cu6052] [WrapperSimpleAppMain]  INFO VFSTransportSender VFS Sender started

2008-12-10 13:43:01,865 [7.28.130.231-wh24cu6052] [WrapperSimpleAppMain]  INFO JMSSender JMS Sender started

2008-12-10 13:43:01,865 [7.28.130.231-wh24cu6052] [WrapperSimpleAppMain]  INFO HttpCoreNIOSender HTTP Sender starting

2008-12-10 13:43:01,880 [7.28.130.231-wh24cu6052] [WrapperSimpleAppMain]  INFO HttpCoreNIOSSLSender Loading Identity Key

 from : C:/wso2esb-1.7.1/webapp/WEB-INF/classes/conf/identity.jks

2008-12-10 13:43:01,912 [7.28.130.231-wh24cu6052] [WrapperSimpleAppMain]  INFO HttpCoreNIOSSLSender Loading Trust Keysto

om : C:/wso2esb-1.7.1/webapp/WEB-INF/classes/conf/trust.jks

2008-12-10 13:43:01,943 [7.28.130.231-wh24cu6052] [WrapperSimpleAppMain]  INFO HttpCoreNIOSender HTTPS Sender starting

2008-12-10 13:43:02,458 [7.28.130.231-wh24cu6052] [WrapperSimpleAppMain]  INFO ServerManager Starting transport vfs

2008-12-10 13:43:02,474 [7.28.130.231-wh24cu6052] [WrapperSimpleAppMain]  INFO VFSTransportListener VFS Listener started

2008-12-10 13:43:02,474 [7.28.130.231-wh24cu6052] [WrapperSimpleAppMain]  INFO ServerManager Starting transport admin/ht

2008-12-10 13:43:02,474 [7.28.130.231-wh24cu6052] [WrapperSimpleAppMain]  INFO ServerManager Starting transport http on

8280

2008-12-10 13:43:02,489 [7.28.130.231-wh24cu6052] [WrapperSimpleAppMain]  INFO HttpCoreNIOListener HTTP Listener startin

port : 8280

2008-12-10 13:43:02,489 [7.28.130.231-wh24cu6052] [WrapperSimpleAppMain]  INFO ServerManager Starting transport mailto

2008-12-10 13:43:02,489 [7.28.130.231-wh24cu6052] [WrapperSimpleAppMain]  INFO MailTransportListener MAILTO Listener sta

2008-12-10 13:43:02,489 [7.28.130.231-wh24cu6052] [WrapperSimpleAppMain]  INFO ServerManager Starting transport https on

 8243

2008-12-10 13:43:02,489 [7.28.130.231-wh24cu6052] [WrapperSimpleAppMain]  INFO HttpCoreNIOSSLListener Loading Identity K

re from : C:/wso2esb-1.7.1/webapp/WEB-INF/classes/conf/identity.jks

2008-12-10 13:43:02,489 [7.28.130.231-wh24cu6052] [WrapperSimpleAppMain]  INFO HttpCoreNIOSSLListener Loading Trust Keys

from : C:/wso2esb-1.7.1/webapp/WEB-INF/classes/conf/trust.jks

2008-12-10 13:43:02,489 [7.28.130.231-wh24cu6052] [WrapperSimpleAppMain]  INFO HttpCoreNIOListener HTTPS Listener starti

 port : 8243

2008-12-10 13:43:02,489 [7.28.130.231-wh24cu6052] [WrapperSimpleAppMain]  INFO ServerManager Ready for processing

2008-12-10 13:43:03,942 [7.28.130.231-wh24cu6052] [WrapperSimpleAppMain]  INFO ServiceBusManager [ESB] Start request com

d

2008-12-10 13:43:04,098 [7.28.130.231-wh24cu6052] [WrapperSimpleAppMain] ERROR Http11BaseProtocol Error initializing end

 

java.io.IOException: SunX509 KeyManagerFactory not available

        at org.apache.tomcat.util.net.jsse.JSSE14SocketFactory.init(JSSE14SocketFactory.java:125)

        at org.apache.tomcat.util.net.jsse.JSSESocketFactory.createSocket(JSSESocketFactory.java:88)

        at org.apache.tomcat.util.net.PoolTcpEndpoint.initEndpoint(PoolTcpEndpoint.java:292)

        at org.apache.coyote.http11.Http11BaseProtocol.init(Http11BaseProtocol.java:141)

        at org.apache.catalina.connector.Connector.initialize(Connector.java:1016)

        at org.apache.catalina.startup.Embedded.start(Embedded.java:826)

        at org.wso2.esb.TomcatServer.start(TomcatServer.java:107)

        at org.wso2.esb.ServiceBus.main(ServiceBus.java:62)

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)

        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

        at java.lang.reflect.Method.invoke(Method.java:618)

        at org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java:240)

        at java.lang.Thread.run(Thread.java:810)

2008-12-10 13:43:04,098 [7.28.130.231-wh24cu6052] [WrapperSimpleAppMain] FATAL TomcatServer Error starting embedded Tomc

rver :

LifecycleException:  Protocol handler initialization failed: java.io.IOException: SunX509 KeyManagerFactory not availabl

        at org.apache.catalina.connector.Connector.initialize(Connector.java:1018)

        at org.apache.catalina.startup.Embedded.start(Embedded.java:826)

        at org.wso2.esb.TomcatServer.start(TomcatServer.java:107)

        at org.wso2.esb.ServiceBus.main(ServiceBus.java:62)

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)

        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

        at java.lang.reflect.Method.invoke(Method.java:618)

        at org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java:240)

        at java.lang.Thread.run(Thread.java:810)

2008-12-10 13:43:04,098 [7.28.130.231-wh24cu6052] [WrapperSimpleAppMain] FATAL ServiceBus Error starting the WSO2 ESB. S

g for details

org.wso2.esb.ServiceBusException: LifecycleException:  Protocol handler initialization failed: java.io.IOException: SunX

eyManagerFactory not available

        at org.wso2.esb.TomcatServer.start(TomcatServer.java:112)

        at org.wso2.esb.ServiceBus.main(ServiceBus.java:62)

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)

        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

        at java.lang.reflect.Method.invoke(Method.java:618)

        at org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java:240)

        at java.lang.Thread.run(Thread.java:810)

Caused by:

LifecycleException:  Protocol handler initialization failed: java.io.IOException: SunX509 KeyManagerFactory not availabl

        at org.apache.catalina.connector.Connector.initialize(Connector.java:1018)

        at org.apache.catalina.startup.Embedded.start(Embedded.java:826)

        at org.wso2.esb.TomcatServer.start(TomcatServer.java:107)

        ... 7 more


_______________________________________________
Esb-java-user mailing list
Esb-ja...@wso2.org
https://wso2.org/cgi-bin/mailman/listinfo/esb-java-user


Senaka Fernando

unread,
Dec 12, 2008, 9:29:11 AM12/12/08
to sci-fl...@googlegroups.com
Here is the solution Remsy gave:

"I migrated to version 2 and the problem is gone by adding a parameter "algorithm" and changing the sslProtocol to "SSL" within file C:\wso2esb-2.0-SNAPSHOT\conf\transports.xml"

Regards,
Senaka
Reply all
Reply to author
Forward
0 new messages