Re: When using Tomcat, got "80004002: No such interface supported".

Herman Lee <[email protected]> Thu, 25 Aug 2005 14:25:51 -0400
Newsgroups gmane.comp.windows.devel.jawin
Message-ID <[email protected]>
Thank you for the response.  Any response will bring me a little further.

The Tomcat that I have comes with the Java Web Services Developer Pack 1.5.  It is not running as a service.  The User Name of the process is my login name and  I also registered those com DLLs with my login name.  My login is a member of the Administrators group.  May be I should try the "real" Apache Tomcat.  Any comments?

Thanks,
Herman

>>> [email protected] 8/25/05 11:16:28 AM >>>
Hi Herman,

Herman Lee wrote:

> I tried setting the CATALINA_OPTS environment variable to the path of the jawin dll.  The problem stills there.  I think somehow it cannot locate the com interface, which has been registered in the registry.  Since the java console program works without any problem, I think the problem is related to the security settings of my com dlls.  I tried dcomcnfg and also setting the security permission of the com interface in the registry, but these also doesn't fix the problem.  My Tomcat is started without using a SecurityManager.

I think that if we were unable to locate the Jawin.dll you would get an
UnsatisfiedLinkError, so I think your are right that the Jawin part
seems okay.

But a wild guess: Is tomcat running as some kind of service, using
another user account than the one you are running the test-application
with? If this is the case, perhaps your COM-interface has only been
registered for your test user, and not system-wide and/or for the
tomcat-service user?

Hope this brings you a little further.

Best Regards
Morten