glassfish
  1. glassfish
  2. GLASSFISH-17356

Problems with remote glassfish corbaname

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 3.1.1
    • Fix Version/s: None
    • Component/s: orb
    • Labels:
      None
    • Environment:

      Linux ubuntu

      Description

      I have problems to configure a project WAR inside a glassfish instance A to access remotely an EJB inside instance B.

      Logging results in:
      Remote JNDI name used for lookup is 'corbaname:iiop:1.2@127.0.0.1:3700#java:global/Portal-ear/ServiceEJBImpl__3_x_Internal_RemoteBusinessHome__' [Root exception is org.omg.CORBA.BAD_PARAM: BOM: IOP00100009: string_to_object conversion failed due to bad schema specific part in name java:global/Portal-ear/ServiceEJBImpl__3_x_Internal_RemoteBusinessHome__ vmcid: SUN minor code: 9 completed: No]

      I found many issues related such as GLASSFISH-4880 and GLASSFISH-14704.

      In GLASSFISH-4880 the bug was "fixed" but the solution just reference a Jboss similar solution: http://objectmix.com/java/70356-jndi-jboss-127-0-0-1-1098-problem.html#post259802
      Someone could please be more specific on this issue?
      I really think just mentioning a Jboss solution is not good at all.

      Furthermore, the logging generated by these kind of error do not help too much for users neither for developers as we can verify in GLASSFISH-14704.

      Additionally, actual documentation is poor and has many errors.
      In http://download.oracle.com/docs/cd/E19798-01/821-1752/beanv/index.html and http://download.oracle.com/docs/cd/E18930_01/html/821-2418/beans.html the examples presents typo erros resulting in bad-formatted XML.

      In reference http://glassfish.java.net/javaee5/ejb/EJB_FAQ.html, the doc looks like a bit clearer. Otherwise, in section "What is the relationship between @EJB and ejb-ref/ejb-local-ref?" it gives hints about the relationship between @EJB and ejb-ref but lets unclear about the relationship with jndi-name inside glassfish-web.xml.

      What is preferred to make remote invocation? lookup name inside web.xml or jndi-name inside glassfish-web.xml? What are the differences between these strategies?
      I couldn't make work any of these alternatives. It worked for me just specifying mapped-name inside web.xml and referencing the IP 127.0.0.1.

      Could someone add comments about which kind of network issues may arise from these configuration?
      Could someone at least improve logging to make possible to identify the bugs in each specific environment?

        Issue Links

          Activity

          Hide
          dk123 added a comment -

          We are facing the same issue. The details can be found here: http://www.java.net/forum/topic/glassfish/glassfish/unable-do-remote-ejb-access-different-host?force=133.

          we also tried using the front-end back-end test cases from Glassfish bug: http://java.net/jira/browse/GLASSFISH-15523. We are getting the same exception.

          Can someone pls. let us know if there is a work around for this issue.

          Show
          dk123 added a comment - We are facing the same issue. The details can be found here: http://www.java.net/forum/topic/glassfish/glassfish/unable-do-remote-ejb-access-different-host?force=133 . we also tried using the front-end back-end test cases from Glassfish bug: http://java.net/jira/browse/GLASSFISH-15523 . We are getting the same exception. Can someone pls. let us know if there is a work around for this issue.

            People

            • Assignee:
              Harshad Vilekar
              Reporter:
              orair
            • Votes:
              2 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:

                Time Tracking

                Estimated:
                Original Estimate - 5 days
                5d
                Remaining:
                Remaining Estimate - 5 days
                5d
                Logged:
                Time Spent - Not Specified
                Not Specified