Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CORBA "INITIALIZE:ClassNotFound:" ClassPath Problem?

Status
Not open for further replies.

JDOne

Programmer
Apr 9, 2003
40
US
I had originally placed this issue in the CORBA forum and was told that since it seems to be a classpath problem, it should be in the Java forum. This is the issue:

I have just finished converting an in-house admin client tool from Visibroker, 3.4 to Visibroker 4.5. The compile was clean and successful but when I try to start the client and bind it to the server, I get the following error message:

org.omg.CORBA.INITIALIZE: java.lang.ClassNotFoundException: com.inprise.vbroker.ObjLocation or com.inprise.vbroker.ObjLocation.Init minor code: 0 completed No

at com.imprise.vbroker.ORB.installServices(ORB.java, Compiled Code)
at com.imprise.vbroker.ORB.initialize(ORB.java, Compiled Code)
at com.imprise.vbroker.ORB.set_parameters(ORB.java:950)
at org.omg.CORBA.ORB.init(ORB.java:346)
at ServerAdmin.init(ServerAdmin.java:42)
at ServerAdmin.main(ServerAdmin.java:221)

Any help would be greatly appreciated. Thanks.
 
Yes, the class loader of the JVM the code is running in can't find the com.inprise.vbroker.ObjLocation implementation.

Do you know where it is located?

-pete

 
Yes, the com.inprise.vbroker.ObjLocation implementation is located in vbjorb.jar in the path D:\java\vbroker\lib

Thanks for your response, Pete.
 
>> D:\java\vbroker\lib

Great, now you need to make sure that the JVM your code is executing under can find that file.

Or are you saying you already solved the problem?

-pete

 
No, I didn't yet solve the problem. In fact, it still is baffling me since I included the vbjorb.jar file in my classpath - 'least I thought I did!

Thanks.
 
>> I included the vbjorb.jar file in my classpath

how? using the -cp command line switch when you executing your application? If your executing your application from a .jar that won't work.

If you provide more information regarding your environment it might help speed this process up.

-pete

 
Before trying to launch the application I run a java environment batch file containing the classpath of the JDK (JDK1.2.2 in my case), and then including the vbjorb.jar file like this:

set CLASSPATH=d:\java\vboker\lib\vbjorb.jar
set CLASSPATH=d:\java\jdk1.2.2\lib\classes.zip
set CLASSPATH=d:\home\admin.jar

** - admin.jar contains the compiled classes of the application I'm trying to launch.

-JD
 
Your overwriting the CLASSPATH variable each time you call SET! Try to run the same batch file without launching your java application and then put this at the end of the batch file:

Code:
echo %CLASSPATH%
pause

-pete



 
I tried your suggestion - still getting the same error. Funny thing is that when we used the Visibroker 3.4 implementation, we did not run into a classpath problem (using the same environment batch file). But since making the switch to Visibroker 4.5 (and of course modifying the Java code accordingly), we now get a classpath problem. Very baffling indeed. I appreciate your resonses, Pete.

JD
 
I agree with Pete, the SET lines should be..
Code:
set CLASSPATH=%CLASSPATH%;d:\java\vboker\lib\vbjorb.jar
etc...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top