AppletTalk.com Forum Index AppletTalk.com
Java discussions newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

orb.resolve_initial_references("NameService") crashes out...

 
Post new topic   Reply to topic    AppletTalk.com Forum Index -> Java and CORBA
View previous topic :: View next topic  
Author Message
bnc119
Guest





PostPosted: Thu Oct 06, 2005 2:38 pm    Post subject: orb.resolve_initial_references("NameService") crashes out... Reply with quote



Hi Everyone,

This is my first attempt at a Java/CORBA application and I am trying to
implement Sun's Corba Tutorial found here:

http://java.sun.com/j2se/1.3/docs/guide/idl/GShome.html

I'm running the following Java Runtime Env. on my XP machine:

java version "1.5.0_04"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_04-b05)
Java HotSpot(TM) Client VM (build 1.5.0_04-b05, mixed mode, sharing)

I have copied the Server and Client code from the Sun website above,
and I've fired off the Transient NameService tnamserv.exe.

When I fire off the Server, I get the following exceptions raised on
the


<<
org.omg.CORBA.Object objRef =
orb.resolve_initial_references("NameService"); >> call:


Exception in thread "main" java.lang.NoClassDefFoundError: HelloServer
(wrong na
me: HelloApp/HelloServer)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)




I have no clue whats wrong here, I believe I've followed the Sun
Tutorial correctly. I even lifted the code straight out of the
tutorial...Can anyone help?

Thanks!

Back to top
Display posts from previous:   
Post new topic   Reply to topic    AppletTalk.com Forum Index -> Java and CORBA All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.