The problems given are caused by the security enabled on the Server.
I recently enabled WAS security using Local OS for authentication along with
Java 2 security for application.
After which I could deploy and test my application but could not open the Administration Console.
I am not sure about the cause.
But the next thing I did was add the all permission entries in the
app.policy(all sections) and library.policy(just the one section was there).
Also for my application I added my own was.policy file.
All these files can be found in the was profile folder.
I am pasting the final contents of these files here just for reference.
You might need to modify it for your own purposes.
Also I used the AllPermission which is like a super set of all security allowance policies you might want to use a specific entry which gives specific permissions to specific files.
You will be doing yourself a big favor by using the java policytool to edit your policy files.
{profileHome)/config/cells/{cellName}/nodes/{nodeName}/app.policy
/* AUTOMATICALLY GENERATED ON Thu Apr 09 10:05:53 CST 2009*/
/* DO NOT EDIT */
grant codeBase "file:${application}" {
permission java.io.FilePermission "${was.install.root}${/}lib${/}mail-impl.jar", "read";
permission java.io.FilePermission "${was.install.root}${/}lib${/}activation-impl.jar", "read";
permission java.security.AllPermission;
};
grant codeBase "file:${jars}" {
permission java.net.SocketPermission "*", "connect";
permission java.util.PropertyPermission "*", "read";
permission java.security.AllPermission;
};
grant codeBase "file:${connectorComponent}" {
permission java.net.SocketPermission "*", "connect";
permission java.util.PropertyPermission "*", "read";
permission java.security.AllPermission;
};
grant codeBase "file:${webComponent}" {
permission java.io.FilePermission "${was.module.path}${/}-", "read, write";
permission java.lang.RuntimePermission "loadLibrary.*";
permission java.lang.RuntimePermission "queuePrintJob";
permission java.net.SocketPermission "*", "connect";
permission java.util.PropertyPermission "*", "read";
permission java.security.AllPermission;
};
grant codeBase "file:${ejbComponent}" {
permission java.lang.RuntimePermission "queuePrintJob";
permission java.net.SocketPermission "*", "connect";
permission java.util.PropertyPermission "*", "read";
permission java.security.AllPermission;
};
{profileHome)/config/cells/{cellName}/nodes/{nodeName}/library.policy
/* AUTOMATICALLY GENERATED ON Thu Apr 09 10:03:19 CST 2009*/
/* DO NOT EDIT */
grant {
permission java.security.AllPermission;
};
{EARProjectName)/META-INF/was.policy
/* AUTOMATICALLY GENERATED ON Tue Mar 24 17:39:57 CST 2009*/
/* DO NOT EDIT */
grant codeBase "file:${application}" {
permission java.security.AllPermission;
};
grant codeBase "file:${jars}" {
permission java.security.AllPermission;
};
grant codeBase "file:${connectorComponent}" {
permission java.security.AllPermission;
};
grant codeBase "file:${webComponent}" {
permission java.security.AllPermission;
};
grant codeBase "file:${ejbComponent}" {
permission java.security.AllPermission;
};