Hi all,
I am new to corba and IDL and i was just looking at the tutorial on the java website about it, the helloworld example.
I have a problem with the server since i cant compile it. I am getting 3 errors,
HelloServer.java:53: cannot find symbol
symbol: class _HelloImplBase
class HelloServant extends _HelloImplBase
^
HelloServer.java:27: connect(org.omg.CORBA.Object) in org.omg.CORBA.ORB cannot be applied to (HelloServant)
orb.connect(helloRef);
^
HelloServer.java:36: rebind(org.omg.CosNaming.NameComponent[],org.omg.CORBA.Object) in org.omg.CosNaming.NamingContextOperations cannot be applied to (org.omg.CosNaming.NameComponent[],HelloServant)
ncRef.rebind(path, helloRef);
^
Note: HelloApp/HelloPOA.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
3 errors
I found out that since i have J1.6 and not 1.3 the file _HelloImplBase is not created, and instead i have the HelloPOA.java, so i replaced them on the code but i am still getting the other 2 errors!
could someone help me with this one?
thanks alot
ilias
I am new to corba and IDL and i was just looking at the tutorial on the java website about it, the helloworld example.
I have a problem with the server since i cant compile it. I am getting 3 errors,
HelloServer.java:53: cannot find symbol
symbol: class _HelloImplBase
class HelloServant extends _HelloImplBase
^
HelloServer.java:27: connect(org.omg.CORBA.Object) in org.omg.CORBA.ORB cannot be applied to (HelloServant)
orb.connect(helloRef);
^
HelloServer.java:36: rebind(org.omg.CosNaming.NameComponent[],org.omg.CORBA.Object) in org.omg.CosNaming.NamingContextOperations cannot be applied to (org.omg.CosNaming.NameComponent[],HelloServant)
ncRef.rebind(path, helloRef);
^
Note: HelloApp/HelloPOA.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
3 errors
I found out that since i have J1.6 and not 1.3 the file _HelloImplBase is not created, and instead i have the HelloPOA.java, so i replaced them on the code but i am still getting the other 2 errors!
could someone help me with this one?
thanks alot
ilias