Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-2097144 | 5.0 | Devananda Jayaraman | P2 | Resolved | Fixed | tiger |
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)
======================================================================
- backported by
-
JDK-2097144 ActiveX bridge fails under IIS 5.0
- Resolved
- relates to
-
JDK-5029105 ActiveX bridge doesn't allow to pass COM objects
- Resolved
-
JDK-5043549 more ActiveX bridge problems stalling Java apps migrations from MSJVM to SunJVM
- Closed