Policy Agent 2.2 - problem on installation
Hi,
I've seen this problem listed here a while ago without any solution.
1- I install my Java Web Server 6.1 under C:\Sun\WebServer6.1
2- I start the server, no problem.
3- I install the proper Policy Agent, installation seems fine.
4- In order to see the changes, I stop the server and then it won't restart. Here is the message in the error log:
failure ( 3592): CORE3170: Configuration initialization failed: Error running init function load-modules: dlopen of c:/Agents/2.2/es6/bin/ames6.dll failed
This file (ames6.dll) is there btw...
If I uninstall the agent, the server starts.
Thanks for you help,
[669 byte] By [
benb99a] at [2007-11-26 12:20:12]

# 1
it is most likely that the policy agent is unable to locate some of its dependent libraries.
if you have visual studio installed on your machine, you can run 'depends' program against c:/Agents/2.2/es6/bin/ames6.dll and find out which dependent library is missing.
also, you can post this query to the following url - they might be able to help you better
http://forum.java.sun.com/forum.jspa?forumID=760
# 2
I went and got depends and it did tell me ames.dll was missing some dependent libraries but it seems it's never-ending! If I add a missing library, then this one has missing librairies also. i can't see why the install wouldn't take care of that in the first place.thanks
# 3
The Policy Agent installer should definitely set up the library paths for you automatically. I believe the installer tells you to restart the computer after installation; is it possible you forgot to restart?
# 4
I don't think it asked me to... Anyway, I just restarted the computer it and the server still won't start!I just tried the same procedure on a colleague's machine and I get the same result as well...
# 5
HiiI m geting the same error, Did U get the solution for ur issue if u got pls let me know
# 6
You could also ask Policy agent forum : http://forum.java.sun.com/thread.jspa?threadID=5115183&messageID=9410809I found policy agent 2.1 guide in google 192.18.109.11/816-6772-10/816-6772-10.pdf has some trouble shooting tips.
mva at 2007-7-7 15:09:58 >

# 7
Hi!
I'm really amazed that something like this slipped through the Sun QA. But anyway, here's the solution.
Your web server won't start because it can't load ames6.dll BECAUSE it has some unresolved dependencies.
I downloaded an excellent tool called "depends.exe" from www.dependencywalker.com and ran it on ames6.dll.
It found that I am missing the following DLL files:
msvcp70.dll
msvcr70.dll
dwmapi.dll
You'll need to download them from "somewhere" (try google'ing them up, you'll find 'em) and then copy them to c:\windows\system
OBVIOUSLY - you're responsible for getting them from a "trusted source" - make sure you don't get any tainted/malware versions of these DLLs. You've been warned :-)
Next, I also had one unresolved dependency for libxml2.dll. This dll file was actually supplied by the policy agent, but for some weird reason it couldn't be found - so what I did was take the file and copy it into the same directory as ames6.dll.
I then rebooted (not sure whether I had to do it, but I figured, hey this is Windows, and it certainly won't hurt) :-) and then restarted the web server. Voila! The instance still didn't come up, but at least now it wasn't complaining about not being able to load ames6.dll anymore. (I then had to configure the AMAgent.properties file correctly, and then everything came up properly, but that's another story ;-)
Hope that helps!
- Felix Gaehtgens
Message was edited by:
phelicks
# 8
Hello...
I'm currently having the same problem with Policy Agent.
But when i ran depends.exe on ames6.dll it showed that I was only missing dwmapi.dll.
Well, I got my copy of the dll and put it on c:\windows\system, but here's when I'm lost:
1. It doesn't say that I'm missing msvcp70.dll and msvcr70.dll (I think that's good, but I'm not sure), or the libxml2.dll unresolved dependency. Instead, I have unresolved imports for advapi32.dll, shlwapi.dll, user32.dll and mpr.dll. I've been looking, but haven't been able to find a solution for this.
2. When I try to restart the server, it doesn't start, it tells me to get help with the NET HELPMSG 3534 command (which does nothing, by the way), and looking in the server logs, it gives me the "dlopen of c:/(...)/ames6.dll failed" error again.
Thanks for any help you can give me.