[prev in list] [next in list] [prev in thread] [next in thread]
List: openorb-users
Subject: AW: AW: AW: [openorb-users] Problems trying to use BOA
From: "Sven-Eric Dietrich" <S.Dietrich () insiders ! de>
Date: 2003-06-25 7:52:13
[Download RAW message or body]
Hi Daniel,
sorry, I don't know a good URL with many of samples using BOA.
Greetings,
Sven.
-----Ursprüngliche Nachricht-----
Von: openorb-users-admin@lists.sourceforge.net
[mailto:openorb-users-admin@lists.sourceforge.net] Im Auftrag von Daniel
H. F. e Silva
Gesendet: Dienstag, 24. Juni 2003 13:50
An: openorb-users@lists.sourceforge.net
Betreff: Re: AW: AW: [openorb-users] Problems trying to use BOA
Hi Sven,
Thanks again. It worked out.
By the way, do you know a cool URL with tons of samples using BOA? I
think i will have a lot of problems using it thanks to legacy world!
Greetings,
Daniel.
--- Sven-Eric Dietrich <S.Dietrich@insiders.de> wrote:
> Hi Daniel,
>
> have you connect your 'server1' and 'server2' instance to a BOA?
>
> BOA boa = BOA.init(orb, null);
> boa.connect(server1);
>
> Or what have you doing with an initialized BOA and the 'server1' and
> 'server2' instances?
>
> Regards,
> Sven.
>
> -----Ursprüngliche Nachricht-----
> Von: openorb-users-admin@lists.sourceforge.net
> [mailto:openorb-users-admin@lists.sourceforge.net] Im Auftrag von
> Daniel H. F. e Silva
> Gesendet: Montag, 23. Juni 2003 17:15
> An: openorb-users@lists.sourceforge.net
> Betreff: Re: AW: [openorb-users] Problems trying to use BOA
>
>
> Hi Sven,
> Thank you very much.
> Little time after send mail to openorb-list i detected my stupid
> mistake. Server i am deploying my application has a different
> java.home property value. I just put orb.properties at right place and
> it worked out! Now i have a new problem i think it is not so stupid
> like previous one. I am getting following stack trace:
>
> [java] org.omg.CORBA.BAD_OPERATION: The delegate has not been set!
> vmcid:0 minor code: 0
> completed: No
> [java] at
> org.omg.CORBA.portable.ObjectImpl._get_delegate(ObjectImpl.java:53)
> [java] at org.openorb.iiop.CDROutputStream.write_Object(Unknown
> Source)
> [java] at org.omg.CORBA.ObjectHelper.write(ObjectHelper.java:64)
> [java] at
> org.omg.CosNaming._NamingContextStub.bind(_NamingContextStub.java:54)
> [java] at
> ch.epfl.test.monitoring.MonitoringServer.main(MonitoringServer.java:47
> )
>
> when executing this code:
>
> org.omg.CosNaming.NamingContext ctxt =
> NiX.root_context();
> System.out.println("Registering server objects into the
> NS");
> NameComponent name[] = new NameComponent[1];
> name[0] = new NameComponent();
> try {
> name[0].kind = "OGS/Monitoring";
> name[0].id = "Server_1";
> try {
> ctxt.unbind(name);
> } catch (Exception exception) {
> }
> Problem is here -----> ctxt.bind(name, server1);
> name[0].kind = "OGS/Monitoring";
> name[0].id = "Server_2";
> try {
> ctxt.unbind(name);
> } catch (Exception exception1) {
> }
> And maybe here too --> ctxt.bind(name, server2);
> } catch (Exception ex) {
> log.error("Error in binding objects into the
> NS", ex);
> System.exit(-1);
> }
>
> My configurations is: OpenORB-1.3.0, JDK 1.4.1_02, ant 1.5.1,
> NameService-1.3.0, TransactionService-1.3.0.
>
> Thanks in advance,
> Daniel.
>
> --- Sven-Eric Dietrich <S.Dietrich@insiders.de> wrote:
> > Hi Daniel,
> >
> > you are using JDK 1.4.1_02. This JDK version has his own JavaORB
> > implementation. Is it possible that your ORB.init() method
> > instantiates the JavaORB and not the OpenORB?
> > If you never specify that an OpenORB instance must be created then
the
> > JDK 1.4.1_02 creates
> > his own JavaORB.
> >
> > One way to instantiate an OpenORB is the using of properties.
> >
> > Properties props = new Properties();
> >
> > props.put("org.omg.CORBA.ORBClass", "org.openorb.CORBA.ORB");
> > props.put("org.omg.CORBA.ORBSingletonClass",
> > "org.openorb.CORBA.ORBSingleton");
> >
> > props.setProperty("ImportModule.BOA",
> > "${openorb.home}config/default.xml#boa");
> >
> > ORB.init(args, props);
> >
> > The other way is an initialization file named 'orb.properties'.
> > Create
>
> > a 'orb.properties' in the 'lib' subdirectory of the directory
> > specified by the Java system property 'java.home'.
> > Insert the follow two lines in this file
> >
> > org.omg.CORBA.ORBClass=org.openorb.CORBA.ORB
> > org.omg.CORBA.ORBSingletonClass=org.openorb.CORBA.ORBSingleton
> >
> > That must solve your problem.
> >
> > Regards,
> > Sven Dietrich.
> >
> > -----Ursprüngliche Nachricht-----
> > Von: openorb-users-admin@lists.sourceforge.net
> > [mailto:openorb-users-admin@lists.sourceforge.net] Im Auftrag von
> > Daniel H. F. e Silva
> > Gesendet: Montag, 23. Juni 2003 15:37
> > An: openorb-users@lists.sourceforge.net
> > Betreff: [openorb-users] Problems trying to use BOA
> >
> >
> > Hi all,
> > I am trying to use BOA at my application but i am in trouble. When
> > i
> > call BOA.init() in my code i get a ClassCastException exception
inside
>
> > it. I am using OpenORB-1.3.0 and JDK 1.4.1_02. Code generating
> > exception is:
> >
> > org.omg.CORBA.ORB orb_;
> >
> > org.omg.CORBA.BOA boa_;
> >
> > // Configuring OpenORB to use BOA
> > Properties props = new Properties();
> > props.setProperty("ImportModule.BOA",
> > "${openorb.home}config/default.xml#boa");
> >
> > // initialize orb
> > orb_ = ORB.init(args, props);
> > // initialize boa
> > boa_ = BOA.init(orb_, null); <-------- Exception occurs when i
> > call
> > this line (137)
> >
> > Stack trace:
> >
> > [java] java.lang.ClassCastException
> > [java] at org.omg.CORBA.BOA.init(Unknown Source)
> > [java] at ch.epfl.util.NiX.initialize(NiX.java:137)
> > [java] at
> > ch.epfl.test.monitoring.MonitoringServer.main(MonitoringServer.java:
> > 28
> > )
> > [java] Exception in thread "main"
> >
> > By the way, i am running my app from ant 1.5.1 using fork="true".
> >
> > Regards,
> > Daniel Silva.
> >
> >
> >
> >
> > __________________________________
> > Do you Yahoo!?
> > SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com
> >
> >
> > -------------------------------------------------------
> > This SF.Net email is sponsored by: INetU
> > Attention Web Developers & Consultants: Become An INetU Hosting
> > Partner. Refer Dedicated Servers. We Manage Them. You Get 10%
Monthly
> > Commission! INetU Dedicated Managed Hosting
> > http://www.inetu.net/partner/index.php
> > _______________________________________________
> > openorb-users mailing list
> > openorb-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/openorb-users
> >
> >
> >
> > -------------------------------------------------------
> > This SF.Net email is sponsored by: INetU
> > Attention Web Developers & Consultants: Become An INetU Hosting
> > Partner. Refer Dedicated Servers. We Manage Them. You Get 10%
Monthly
> > Commission! INetU Dedicated Managed Hosting
> > http://www.inetu.net/partner/index.php
> > _______________________________________________
> > openorb-users mailing list
> > openorb-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/openorb-users
>
>
> __________________________________
> Do you Yahoo!?
> SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com
>
>
>
=== message truncated ===
__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com
-------------------------------------------------------
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
_______________________________________________
openorb-users mailing list
openorb-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openorb-users
-------------------------------------------------------
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
_______________________________________________
openorb-users mailing list
openorb-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openorb-users
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic