Skip to Main Content

Java APIs

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

java.lang.NoClassDefFoundError: com.ibm.CORBA.iiop.GlobalORBFactory

843810Mar 23 2006 — edited Mar 24 2006
Hi,

I'm really having a hard time on the problem I encountered on WSAD. Can anybody help me or give me an idea on how to solve this problem since I've been working this problem for 4 days now.

Here is my simple code and the error I encountered: WebSphere Studio Application Developer Integration Edition (Windows) Version: 5.1.1

Code:

try {
ResourceBundle dbBundle = ResourceBundle.getBundle("com.bms.properties.application.backcharge");
String dsjndi= dbBundle.getString("ICBC_DATASOURCE");
ctx = new InitialContext();
ds = (DataSource) ctx.lookup(dsjndi);
}catch (NamingException ne) {
System.err.println(ne.getMessage());
System.out.println("ejbCreate: could not lookup datasource gmsDS");
} finally{
System.out.println("DBConnect()");
}

I had a property file with a statement "ICBC_DATASOURCE=jdbc/ICBC" which the url, etc. are configured on WSAD. All the configuration for dbase connection are configured in WSAD.


Error:

java.lang.NoClassDefFoundError: com.ibm.CORBA.iiop.GlobalORBFactory
at com.ibm.ejs.oa.EJSORBImpl.class$(EJSORBImpl.java:44)
at com.ibm.ejs.oa.EJSORBImpl.initializeORB(EJSORBImpl.java:195)
at com.ibm.ejs.oa.EJSClientORBImpl.<init>(EJSClientORBImpl.java:93)
at com.ibm.ejs.oa.EJSClientORBImpl.<init>(EJSClientORBImpl.java:65)
at com.ibm.ejs.oa.EJSORB.init(EJSORB.java:385)
at com.ibm.ws.naming.util.Helpers.getOrb(Helpers.java:260)
at com.ibm.ws.naming.util.WsnInitCtxFactory.getInitialContextInternal(WsnInitCtxFactory.java:166)
at com.ibm.ws.naming.util.WsnInitCtx.getContext(WsnInitCtx.java:98)
at com.ibm.ws.naming.util.WsnInitCtx.<init>(WsnInitCtx.java:79)
at com.ibm.ws.naming.util.WsnInitCtxFactory.getInitialContext(WsnInitCtxFactory.java:137)
at com.ibm.websphere.naming.WsnInitialContextFactory.getInitialContext(WsnInitialContextFactory.java:80)
at com.ibm.ejs.ns.jndi.CNInitialContextFactory.getInitialContext(CNInitialContextFactory.java:68)
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:662)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:243)
at javax.naming.InitialContext.init(InitialContext.java:219)
at javax.naming.InitialContext.<init>(InitialContext.java:195)
at com.bms.chargeback.application.util.DBaseQuery.getConnection(DBaseQuery.java:148)
at com.bms.chargeback.application.util.DBaseQuery.getData10(DBaseQuery.java:31)
at com.bms.chargeback.application.util.SendMail.main(SendMail.java:18)
Exception in thread "main"

I think the error is a missing class but I really dont have any idea on what class is missing. Some forums on the net said that there are missing jar file such as naming.jar, namingclient.jar, etc. etc. I try to check the jar files on my end and all of the said jar are in place, I'm really not sure if my setup of WSAD in terms of jar files are correct.

In case you have an idea regarding this matter, kindly please send it to me and please explain the details on how to do the idea.

thanks in advance.... =)
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 21 2006
Added on Mar 23 2006
1 comment
1,040 views