Re: jawin.COMException: 8000ffff: CoCreateInstance

Adam Bradley <[email protected]> Tue, 17 Jan 2006 10:07:12 +1000
Newsgroups gmane.comp.windows.devel.jawin
Message-ID <[email protected]>
Bob Farnik wrote:
> Hi,
> I am calling my COM (BSCFunctions) from JSP (JSDK 1.5 @ Tomcat 5.5.12) using
> Jawin.
> It worked on my development environment and now I moved it to the clean,
> release environment.I did not recompile stubs, just moved all classes to the
> new environment.
> A path to jawin is specified as
> -Djava.library.path=C:\Java\tomcat5512\webapps\bsc\WEB-INF\lib
>
> Does anybody know, what might be causing the following error? I have tried
> to put my COM BSCFunctions.dll to the same directory as jawin.dll, but it
> did not help.
>
> com.develop.jawin.COMException: 8000ffff: CoCreateInstance for
> "{64a5179c-ffffaf3b-4e6b-a09e-f4b7efa0ee00}" failed
>  com.develop.jawin.win32.Ole32.CoCreateInstance(Ole32.java:143)
>  com.develop.jawin.DispatchPtr.<init>(DispatchPtr.java:87)
>  BSCFunctions.IBSCFunctions.<init>(IBSCFunctions.java:50)
>  BSCBeans.JavaNativeBridge.<init>(JavaNativeBridge.java:134)
>  org.apache.jsp.errorpage_jsp._jspService(org.apache.jsp.errorpage_jsp:52)
>
> Thanks for any ideas.
>

Bob,

I'm new at this myself so forgive me if this is poor advise, but I
believe that when you register a COM DLL it saves the location of the
file in the registry.

If you've successfully registered this COM object, check the registry
for where it believe it is located and make sure there is a copy there :)

Adam