Tuesday, September 29, 2009

Reference site to Learn WebLogic

I found the following web site that provides simple instructions to help learn about web logic. The following is the URL of the first page. Links to the subsequent page is found at the bottom of the page.

More documentation on Weblogic is found here.

The documentation for creating a domain is found here.

Here is an overview about domains within WebLogic.

Friday, September 25, 2009

Daemonize a process in Unix

In unix when we run a command, it will usually run in the foreground and take over our terminal.

For long running processes, we can add & to create a child process to run the background. This will allow you to continue to use the terminal while waiting for the process to finish. However, for that process is still tied to the parent process and will terminate if you exit from your terminal.

Sometimes we want to start a process and let it continue to run even after we exit out of our terminal. This can be done using the nohup command.

For example, if we want to start the WebLogic server and have it continue serving out our web application even after we log out of the server. To do that just type:

nohup ./ &

All output will be redirected to a file called nohup.out but the WebLogic server process will continue to run even after we have logged out of the server.

Friday, September 18, 2009

Sun companion CD

The sun companion CD contains many useful software and is listed here.

Thursday, September 17, 2009

Installing WebLogic server on Sun Solaris x86

In order to install Weblogic server on Sun Solaris x86, you need to first upgrade the JDK to at least version 1.6. The instruction on how to do that is found here.

Sun Solaris u6 still has JDK version 1.5.

Next download the generic installer from the Oracle website.

To install go to the folder than contains the jar file downloaded (in this example server103_generic.jar and type:

java -jar server103_generic.jar

You can actually decide where you want to install it. By default, it will attempt to install it in /usr/local/bea folder.

In order to install the Workshop, you need to have Eclipse and WTP. I have not successfully done that so far. I tried to use the base Eclipse 3.5 but it still won't let me install. So I excluded that in my test installation.

After install, if you want access the console, you need to first start the server. This is found under:


Just type


add & if you don't want to lock up your terminal. You can then access the console using


You can then click on Start Administration Console to initiate and get into the Console.

Tuesday, September 15, 2009

Upgrading JDK in Sun Solaris

First go to Javasoft to download the software. In this example, I will use the j2se version 6 for Solaris x86. After you confirm all the selection, you have an option to select from 2 versions, one is .sh another is .Z. You only need the .sh version (which only contains the binaries).

The various versions Java is stored in /usr/jdk folder.

After downloading the .sh file to your folder run the following:

chmod +x

to make the file executable.

change to root, then change directory to /usr/jdk

After that, run the script. so assuming the file is in /export/home/strovek/, type


This will extract the every to the folder, in this case to /usr/jdk/jdk1.6.0_16

Then remove the existing symbolic link /usr/java and replace it with the new link

Just type:

ln -s jdk/jdk1.6.0_16 /usr/java

To verify, just type

java -version

Note that there is already symbolic link in /usr/sbin for java, javac etc that points to /usr/java.

Wednesday, September 9, 2009

Free download sample chapters on Security

Links to where you can download free sameple chapters related to security can be found in the following Url: