- This topic has 3 replies, 2 voices, and was last updated 21 years, 4 months ago by Scott Anderson.
-
AuthorPosts
-
Wayne KiddMemberDoes not work.
The entries in App servers look likefirst line=C:\OC4J\j2ee\home
third line=localhost:23791
nothing in second and fourth
This is a shutdown command that works:
java -jar admin.jar ormi://localhost:23791/ “admin” “” -shutdownHere is the entry from principals.xml
<user username=”admin” password=”” deactivated=”false”>
<description>The default administrator</description>
<group-membership group=”users” />
<group-membership group=”guests” />
<group-membership group=”administrators” />
</user>Here is what happens when you try to shut it down with these settings:
Error: javax.naming.NamingException: Lookup error: javax.naming.AuthenticationException: Invalid username/password for default (admin); nested exception is:
javax.naming.AuthenticationException: Invalid username/password for default (admin)
Scott AndersonParticipantLooks like you’re trying to shutdown an Oracle server that has no administrative password. To try this I reset my Oracle installation’s admin password by editing principals.xml to the following:
user username=”admin” password=””
Then in order to get the empty string to “take” as the password, in the preference page for the server I entered escaped quotes into the password field:
\”\”Once I had done this, the parameter passed as empty quotes and the shutdown behaved as expected. Of course, the easiest work around is simply to set the password to something. 🙂
–Scott
MyEclipse Support
Wayne KiddMemberThanks Scott, the escapes worked. I had tried some new passwords, early on, but I didn’t know what I was doing back then. I am wiser now. You should be aware that the standalone OC4J that you can download from Oracle OTN has principals “admin” set up with an empty string password and with deactivated = “true” . That combination will cause some people to have the same problems I had.
Wayne
Scott AndersonParticipantYou should be aware that the standalone OC4J that you can download from Oracle OTN has principals “admin” set up with an empty string password and with deactivated = “true” . That combination will cause some people to have the same problems I had.
Good point. We need to put a little note in the docs about that.
–Scott
MyEclipse Support -
AuthorPosts