Dashboard > MC4J > Browse Space > Mail Archive > [Mc4j-development] Websphere 6 connection using RMI
MC4J Management Console Log In   View a printable version of the current page.
[Mc4j-development] Websphere 6 connection using RMI
Subject:   [Mc4j-development] Websphere 6 connection using RMI (find more)
From:  
Date:   Jul 06, 2005


Received: by 10.48.240.8 with HTTP; Wed, 6 Jul 2005 06:32:23 -0700 (PDT)
Message-ID: <hidden>
Date: Wed, 6 Jul 2005 15:32:23 +0200
From: Nicolas Ternisien <hidden>
Reply-To: hidden
Sender: hidden
To: hidden
Subject: [Mc4j-development] Websphere 6 connection using RMI
Errors-To: hidden
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
From hidden Wed Jul 06 06: 32:32 2005
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws;
        s=beta; d=gmail.com;
        h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition;
        b=GpIeUnwMKpJ9PPAKAVw1oWgIItH3hQ6OBOv8kMspmrksoklITgPAMlJtVez4af12+Vx0WqllpM4xhVthQyfnMglKGTZ6Ql7A0Sd1fvxTEVjcaWFjQFgygU7MJ4S2XeihOrByRx/CJ1G9KwH41kiAUIYEFnoLQ9RF0Su2itZB4BE=
Content-Disposition: inline
X-Spam-Score: 0.0 (/)
X-Spam-Report: Spam Filtering performed by sourceforge.net.
 See http://spamassassin.org/tag/ for more details.
 Report problems to http://sf.net/tracker/?func=add&group_id=1&atid=200001
 0.0 RCVD_BY_IP             Received by mail server with no name
X-BeenThere: hidden
X-Mailman-Version: 2.0.9-sf.net
Precedence: bulk
X-Reply-To: Nicolas Ternisien <hidden>
List-Unsubscribe: <https://lists.sourceforge.net/lists/listinfo/mc4j-development&gt;,
 <mailto:hidden?subject=unsubscribe>
List-Id: <mc4j-development.lists.sourceforge.net>
List-Post: <mailto:hidden>
List-Help: <mailto:hidden?subject=help>
List-Subscribe: <https://lists.sourceforge.net/lists/listinfo/mc4j-development&gt;,
 <mailto:hidden?subject=subscribe>
List-Archive: <http://sourceforge.net/mailarchive/forum.php?forum=mc4j-development>

Hi everybody !

I am an happy Java developer, and I would like to know what do you do
to be able to create an RMI connection to WebSphere6, using a Sun JVM.

I had a look in the
org.mc4j.console.connection.WebsphereConnectionNode and see some parts
of interested code (like the use of initial context factory of Sun
rather than the IBM one), but after trying to adapt your source code
to my project, I am still unable to make this properly work.

My exception is the one that everybody on Internet has :
Caused by: com.ibm.websphere.management.exception.ConnectorNotAvailableException:
javax.naming.NamingException: Failed to initialize the ORB [Root
exception is java.lang.ClassCastException:
com.sun.corba.se.impl.orb.ORBImpl]
 at com.ibm.ws.management.connector.rmi.RMIConnectorClient.reconnect(RMIConnectorClient.java:240)
 at com.ibm.ws.management.connector.rmi.RMIConnectorClient.<init>(RMIConnectorClient.java:116)
 ... 11 more

--> The JVM seems to try to cast the IBM ORB implementation to the Sun
one, and of course, it's not legal...

When I change the default ORB implementation with a config file like this one :

org.omg.CORBA.ORBClass=com.ibm.CORBA.iiop.ORB
org.omg.CORBA.ORBSingletonClass=com.ibm.rmi.corba.ORBSingleton

The problem is different, but still here, as you can see :

Caused by: org.omg.CORBA.INITIALIZE: can't instantiate default ORB
implementation com.ibm.CORBA.iiop.ORB  vmcid: 0x0  minor code: 0
completed: No
 at org.omg.CORBA.ORB.create_impl(Unknown Source)
 at org.omg.CORBA.ORB.init(Unknown Source)
 at com.ibm.ws.orb.GlobalORBFactory.init(GlobalORBFactory.java:82)
 at com.ibm.ejs.oa.EJSORBImpl.initializeORB(EJSORBImpl.java:174)
 at com.ibm.ejs.oa.EJSClientORBImpl.<init>(EJSClientORBImpl.java:97)
 at com.ibm.ejs.oa.EJSClientORBImpl.<init>(EJSClientORBImpl.java:73)
 at com.ibm.ejs.oa.EJSORB.init(EJSORB.java:386)
 at com.ibm.ws.naming.util.Helpers.getOrb(Helpers.java:285)
 ... 18 more
Caused by: java.lang.UnsatisfiedLinkError: registerNatives
 at com.ibm.jvm.ExtendedSystem.registerNatives(Native Method)


In fact, I was also unable to make MC4J work with an RMI connection to
WebSphere 6.

I've tried to set a valid Initial Context Factory in the properties
dialog of my connection, but I've always got the same exception error,
that indicates me that the initial context factory is not found :

Caused by: javax.naming.NoInitialContextException: Need to specify
class name in environment or system property, or as an applet
parameter, or in an application resource file:
java.naming.factory.initial

I've included the right JAR files of WebSphere, so I think it's not
the problem.

Do not hesitate to recontact me to have other questions on this probable issue.

Nicolas Ternisien

Thank you for your project.
Site powered by a free Open Source Project / Non-profit License (more) of Confluence - the Enterprise wiki.
Learn more or evaluate Confluence for your organisation.
Powered by Atlassian Confluence, the Enterprise Wiki. (Version: 2.2.7 Build:#524 Jul 28, 2006) - Bug/feature request - Contact Administrators