File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Distributed Java and the fly likes CORBA : Problem Starting  the Name Service Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Distributed Java
Bookmark "CORBA : Problem Starting  the Name Service " Watch "CORBA : Problem Starting  the Name Service " New topic

CORBA : Problem Starting the Name Service

ravi janap
Ranch Hand

Joined: Nov 04, 2000
Posts: 389
I have run the following command on prompt
vbj -DJDKrenameBug -DORBservices=CosNaming
Banking bank.log
I get the following error
C:\ravindra\corba\BANK>vbj -DJDKrenameBug -DORBservices=CosNaming
Usage: vbj [<general option>] [<java option>] class [args...]
<general option>
-h, -help, -usage, -? Print this message
-J<java_option> Pass java_option to java VM
-VBJversion Print version
-VBJdebug Print debugging information
-VBJprop <name>[=<value>] Pass name/value pair to java VM
-VBJjavavm <vmname> Specify path, flags to java VM - default:'java'
-VBJaddJar <jarfile> Append <vbj location>/../lib/jarfile to the CLASSPATH before execing
The name specified is not recognized as an
internal or external command, operable program or batch file.
C:\ravindra\corba\BANK>Banking bank.log
The name specified is not recognized as an
internal or external command, operable program or batch file.
where I am going wrong ?

ravi janap
Ranch Hand

Joined: Nov 04, 2000
Posts: 389
Probably The problem was lying with my usage of visigenic ORB specific command whereas I am using Inprise ORB
I have used the following command to start Name Service in Inprise ORB , It is giving some other problem. So, The problem remains , I am not able to start the Name service
c:\ravindra\corba\NamingService>vbj com.inprise.vbroker.naming.ExtFactory NameService
ception in thread "main" java.lang.VerifyError: Class org/omg/PortableServer/AdapterActivatorPOA o
rrides final method _set_delegate.(Lorg/omg/PortableServer/portable/Delegate V
at com.inprise.vbroker.poa.AdapterManager.vbRootPOA(
at com.inprise.vbroker.poa.AdapterManager$2.resolve(
at com.inprise.vbroker.interceptor.InterceptorManagerImpl$ServiceManager.resolve(Interceptor
at com.inprise.vbroker.orb.ORB.resolve_initial_references(, Compiled Code)
at com.inprise.vbroker.ServerManager.Init.initManager(
at com.inprise.vbroker.ServerManager.Init.init_complete(
at com.inprise.vbroker.orb.ORB.initializeServices(, Compiled Code)
at com.inprise.vbroker.orb.ORB.initialize(, Compiled Code)
at com.inprise.vbroker.orb.ORB.set_parameters(
at org.omg.CORBA.ORB.init(
at com.inprise.vbroker.naming.ExtFactory.main(, Compiled Code)
Can someone give me the command to start the NameService, I am using the latest ORB from Inprise ?
prasanna srinivasan

Joined: Feb 08, 2001
Posts: 3
for starting the naming service use the following command:
>start nameserv
This command starts the Visibroker's naming service.
You can check the options by typing: nameserv /?
Vivek KumarRai

Joined: Nov 06, 2000
Posts: 9
hi ,
u can start the name service using nameserv utlity provided by VisiBroker ..
usage u can get at command line ..
for instance if u want to start the name service with name NameService that does not uses SmartAgent then do the following
make a properties file in the directory frm where u want to run nameserv the contents of the properties fule is as follows.
file name

now start the name service through Command line as follows
nameserv -VBJprop
now for the client and server be able to connect and register themselves respectively do the following..
To start Client
vbj -ORBInitRef=NameService=corbaloc::localhost:9999/NameService Client(this is Client program name)
To start Server
vbj -Dvbroker.agent.enableLocator=false -DORBInitRef=NameService=corbaloc::localhost:9999/NameService Server(this is server program name)
I agree. Here's the link:
subject: CORBA : Problem Starting the Name Service
It's not a secret anymore!