0 Replies Latest reply on Apr 21, 2005 11:17 AM by cqueval

    CORBA.BAD PARAM with Janeva and JBoss (in english :-)

    cqueval

      Hello,

      I'm working to test Borland Janeva with JBoss.

      For this, i have made a simple jar HelloWorld (code here : http://www.techheadbrothers.net/DesktopDefault.aspx?tabindex=1&tabid=7&AId=33#D%C3%A9veloppement%20du%20client%20.Net).

      I deployed this app in JBoss (v4 localhost) et start it (run -c all).
      So.

      I created a C# class with Java2cs and put it in a DLL.

      And now, i want to make my client C# with reference to the dll and janeva runtime dll.
      I type the code like the documentation chap 4 for Janeva.

      Here my code :

      RemotingConfiguration.Configure("Hello.exe.config");
      HelloServerHome myHelloServerHome = new HelloServerHomeRemotingProxy();
      HelloServer myHelloServer = myHelloServerHome.Create();
      Console.WriteLine(myHelloServer.SayHello());
      Console.Read();

      Here my app.config :

      configuration
      configSections
      section name="janeva" type="Janeva.Settings, Borland.Janeva.Runtime"
      /configSections
      janeva
      naming url="corbaloc::localhost:3528/JBoss/Naming/root"/
      /janeva
      /configuration

      (I removed the '<' and '>' in tthis post else they my code is invisible !)

      But when i execute the code, i have CORBA.BAD_PARAM error message at the Create() line.

      Help me !!! Long hours to search but nothing :-(

      Thanx

      Christophe