Showing posts with label netbeans. Show all posts
Showing posts with label netbeans. Show all posts

Monday, August 25, 2008

Changing the Default Password for the Sun Java System Application Server

Hi again,

Today I'm recycling a blog entry from my Sun blog that was written in 2005 for NetBeans 5. It still applies.

Most NetBeans users know about the default username and password for the Sun Java System Application Server. Very few people will ever need to change the default password, but a situation may arrise in which it does become necessary to assign a new password to the "admin" user name. This can all be done quite easily in the server's Administration Console.


How to get to the Admin Console:


  1. First, check to see if the Sun Java System Application Server has been added to the IDE. Go to the Services window and expand the Servers node. If the Sun Java System Application Server isn't listed, right-click the Servers node and choose Add Server.... This takes you to the Add Server Instance dialog. For more information about adding the server, refer to the NetBeans IDE Help Files.
  2. After the Sun Java System Application Server has been added, start the server by right-clicking its node and choosing Start Server. A green arrow appears next the server's node, indicating that the server is running.
  3. To access the Admin Console, right-click the Sun Java System Application Server's node and choose View Admin Console.
  4. The Admin Console opens in the browser.
How to change the password:

  1. Enter the default User Name (admin) and Password (adminadmin) into the respective fields.
  2. Expand the Configuration, Security, and Realms nodes.
  3. Click the admin-realm node to access the Edit Realm screen. In this screen, click Manage Users to view the list of current users.
  4. To change the admin password, click the user "admin" and assign a new password. Enter the same password a second twice to confirm it.
  5. Click Save > Close to save your new password.
  6. Click Logout to log out of the Admin Console.

That's all for today, folks!

-- James

Saturday, August 23, 2008

RMI & NetBeans IDE


Hi everyone,


I'm sure there are a still quite a few people out there who are interested in how to start RMI in NetBeans. Although the demand for RMI support has been decreasing lately, this doesn't mean that it has completely disappeared. And with just a little tweaking, you can start the RMI registry in NetBeans very easily. Assuming you've already created RMIClient and RMIServer classes, do the following:


  1. 1. In your open project, go to the Files window.

  2. 2. Open the build.xml file in the Source Editor.

  3. 3. Paste the following Ant Script into the build.xml file:


    <target name="startRMI" depends="init">
    <exec executable="rmiregistry" dir="${build.classes.dir}">
    </exec>
    </target>



  4. 4. To start the registry, right-click the build.xml file, then select Run Target > Other Targets > StartRMI.

  5. 5. The Output window should display the result.

  6. 6. Run your RMIServer file. In the Output window, it should be displayed as "bound in server."

  7. 7. Run your RMIClient file, and watch it go.


See you tommorrow. Cheers!


--James

Friday, August 22, 2008

New Blog

Hi,

I've been wanting to do this for a while now. I already have one blog: James' Blog, and with all the reductions in force (RIF happening at my company (Sun Microsystems), I'm afraid to lose my blog eventually. So, I'll be picking the most helpful blog entries from that blog and writing some new ones. The goal of this blog is to help people perform tasks on their computer, whether they use Windows, Mac OS X, or Linux.

See you tomorrow with the next entry.

--James