MyEclipse Forums
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
wk5657
Post subject: Oracle Shutdown  PostPosted: Jun 27, 2003 - 05:17 PM
Registered Member
Registered Member


Joined: Jun 17, 2003
Posts: 88

Does not work.
The entries in App servers look like

first 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" "" -shutdown

Here is the entry from principals.xml


<description>The default administrator</description>
<group-membership group="users" />
<group-membership group="guests" />
<group-membership group="administrators" />


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)
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
support-scott
Post subject:   PostPosted: Jun 27, 2003 - 05:38 PM
Moderator
Moderator


Joined: May 06, 2003
Posts: 6760

Looks 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
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
wk5657
Post subject:   PostPosted: Jun 28, 2003 - 11:13 PM
Registered Member
Registered Member


Joined: Jun 17, 2003
Posts: 88

Thanks 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
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
support-scott
Post subject:   PostPosted: Jun 28, 2003 - 11:18 PM
Moderator
Moderator


Joined: May 06, 2003
Posts: 6760

Quote:

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.


Good point. We need to put a little note in the docs about that.

--Scott
MyEclipse Support

_________________
--Scott
MyEclipse Support
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 6 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits