This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
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


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Distributed Java
Bookmark "CORBA : Problem Starting  the Name Service " Watch "CORBA : Problem Starting  the Name Service " New topic
Author

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
com.visigenic.vbroker.services.CosNaming.ExtFactory
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
VM
C:\ravindra\corba\BANK>com.visigenic.vbroker.services.CosNaming.ExtFactory
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 ?

SCJP, SCJD, SCWCD, SCBCD, SCEA
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(AdapterManager.java:91)
at com.inprise.vbroker.poa.AdapterManager$2.resolve(AdapterManager.java:257)
at com.inprise.vbroker.interceptor.InterceptorManagerImpl$ServiceManager.resolve(Interceptor
nagerImpl.java:87)
at com.inprise.vbroker.orb.ORB.resolve_initial_references(ORB.java, Compiled Code)
at com.inprise.vbroker.ServerManager.Init.initManager(Init.java:37)
at com.inprise.vbroker.ServerManager.Init.init_complete(Init.java:101)
at com.inprise.vbroker.orb.ORB.initializeServices(ORB.java, Compiled Code)
at com.inprise.vbroker.orb.ORB.initialize(ORB.java, Compiled Code)
at com.inprise.vbroker.orb.ORB.set_parameters(ORB.java:944)
at org.omg.CORBA.ORB.init(ORB.java:353)
at com.inprise.vbroker.naming.ExtFactory.main(ExtFactory.java, Compiled Code)
Can someone give me the command to start the NameService, I am using the latest ORB from Inprise ?
prasanna srinivasan
Greenhorn

Joined: Feb 08, 2001
Posts: 3
Hi,
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
Greenhorn

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
ns.properties.
vbroker.agent.enableLocator=true
vbroker.se.default=iiop_tp
vbroker.se.iiop_tp.scm.iiop_tp.listener.port=9999

now start the name service through Command line as follows
nameserv -VBJprop ORBpropStorage=ns.properties
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: http://aspose.com/file-tools
 
subject: CORBA : Problem Starting the Name Service