Yes there are quite a few blogs on this but none of them is as complete as i would like it to be.  So i am documenting my experience here.

 
 

1) First download the bits from Oracle.  Key is to download the "Generic" Package Installer from here

 
 

2) Before starting to install you have to trick the installer into thinking that the local JDK is the generic Sun JDK.  If you skip this step the installer will not accept the default Mac OS X JDK and complain that it is Invalid.

  

  $ cd /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home 

  $ sudo mkdir -p jre/lib

  $ cd jre/lib

  $ sudo touch rt.jar

  $ sudo touch core.jar

 
 

3) Now install WLS using the following command.  The installation is pretty straightforward.

 
 

  $ java -Xmx1024m -Dos.name=unix -jar wls1031_generic.jar

 
 

4) The next challange is to overcome the java.lang.OutOfMemory error that occurs when you try to access the console at http://localhost:7001/console.  As a result the server hangs. 

 
 

To recover from this error you actually have to kill the JVM.  So edit the user_projects/domains/mydomain/bin/setDomainEnv.sh script first and change the line "if [ "${JAVA_VENDOR}" = "Unknown" ] ; then" to "if [ "${JAVA_VENDOR}" = "Sun" ] ; then"

 
 

5) One last thing that is recommended is to set USER_MEM_ARGS="-Xms256m -Xmx512m -XX:MaxPermSize=128m" in startWebLogic.sh script.  I added this as the first line.

 
 

6) Finally start the server

 
 

  $ cd user_projects/domains/mydomain && ./startWebLogic.sh

 

 

Usually i don’t blog about Windows issues since i don’t use it. However recently i bought a Laptop for my father. It had Windows Vista Ultimate Home on it. The hard disk is 250GB in size so i wanted to partition it into smaller ones so that i could have “D” drive for data and possible slap Ubuntu on it too. The problem was that there was one cluster of data right at the end of the partition that could not be moved by defrag or any of the commercial available Defrags out there.

So first i did the usual tricks i.e. set page file to zero, disabled system restore, disabled dumps, disabled hibernation. Deleted all the related files etc.

Then i ran defrag. Still no joy. Then i ran defrag.exe from command line with -w switch. Still no joy.

Then i downloaded a commercial utility called O&O Defrag. This utility still did not move the file(s). But it did help to identify the name which was “$Extend/$UsnJrnl…”

Further research reveled that this journal file was actually being used by the windows indexing service. So naturally i disabled the indexing service. This did release/delete some of the journal file but a small cluster of them still remained. I could not figure out what application was using them.

Then i attempted to use “fsutil usn deletejournal /D C:” command from a System Administror command prompt. I would always get “Access Denied”.

So i downloaded PEbuilder and created a Windows XP SP3 BartPE disk. I booted from the disk and then i ran “fsutil usn deletejournal /D C:” again. This time the command worked since the journal was not opened by any process.

I rebooted and ran a free defrag utility called Auslogics Disk Defrag. Everthing now consolodated to my liking and i was able to resize the partition to my hearts content!

© 2012 Wajih's Chronicles Suffusion theme by Sayontan Sinha