Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4900768

ActiveX bridge fails under IIS 5.0

XMLWordPrintable

    • 05
    • x86
    • windows_2000, windows_xp
    • Verified



        Name: gm110360 Date: 08/04/2003


        FULL PRODUCT VERSION :
        java version "1.4.2-beta"
        Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2-beta-b19)
        Java HotSpot(TM) Client VM (build 1.4.2-beta-b19, mixed mode)


        FULL OS VERSION :
        Microsoft Windows XP [Version 5.1.2600]

        A DESCRIPTION OF THE PROBLEM :
        I write a sample bean like this:

        package samples;

        public class SampleBean
        {
        public String hello()
        {
        return "Hello, World!";
        }
        }

        and wrap it with ActiveX using packager.exe. Then I can call it from, for example, console javascript runner (cscript.exe), and everything is fine.

        But when I try to call this bean from an ASP page (IIS 5.0), like this:

        <%@ language=javascript %>
        <%
        var obj = Server.CreateObject("SampleBean.Bean");
        %>
        <%= obj.hello() %>

        I get the following error:

        Error Type:
        Server object, ASP 0177 (0x80004005)
        Unspecified error
        /ejb.asp, line 3

        Is there any way to call javabeans from asp pages? Maybe it is necessary to modify some security descriptors?

        STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
        1. Write and compile bean (see above)
        2. Using packager.exe, create SampleBean.dll and register it.
        3. Write an ASP page (see above)
        4. Request this ASP page from IIS server

        EXPECTED VERSUS ACTUAL BEHAVIOR :
        EXPECTED -
        A page with "Hello, World!" phrase
        ACTUAL -
        Error Type:
        Server object, ASP 0177 (0x80004005)
        Unspecified error
        /ejb.asp, line 3


        ERROR MESSAGES/STACK TRACES THAT OCCUR :
        Error Type:
        Server object, ASP 0177 (0x80004005)
        Unspecified error
        /ejb.asp, line 3


        REPRODUCIBILITY :
        This bug can be reproduced always.
        (Incident Review ID: 191393)
        ======================================================================

              djayaramsunw Devananda Jayaraman (Inactive)
              gmanwanisunw Girish Manwani (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: