sixtydoses. where od is harmless.

March 5, 2010

Either Oracle Smart Update utility interface sucks or I’m an artard.

Filed under: Tech — Tags: , , — od @ 6:43 pm

I just couldn’t figure out how to get Smart Update to work offline. I don’t have the authorization to download all the patches, so I got them from some Oracle support guy, fire up bsu.sh, select work offline, and spend several hours trying to figure out how to point to my patches directory. Bleargh. Fortunately, CLI works like a charm.


od@sysh:/opt/bea103/utils/bsu$ ./bsu.sh -install -patchlist=79YU,CJ4W,ETR7,IQXV,SYCB,T552 -patch_download_dir=/home/od/Desktop/allpatcheszip -prod_dir=/opt/bea103/wlserver_10.3
Checking for conflicts..
No conflict(s) detected

Installing Patch ID: 79YU..
Result: Success

Installing Patch ID: CJ4W.
Result: Success

Installing Patch ID: ETR7.
Result: Success

Installing Patch ID: IQXV.
Result: Success

Installing Patch ID: SYCB.
Result: Success

Installing Patch ID: T552.
Result: Success



On a different note, while I was installing WebLogic Server 10.3.x in silent mode, I was prompted with this error:


od@sysh:~/Desktop$ ./server103_linux32.bin -mode=silent -silent_xml=silent_103.xml
Extracting 0%……………………………………………………………………………………….100%
The local BEA product registry is corrupted. Please select another BEA Home or contact BEA Support
** Error during execution, error code = 65280.



Found a forum that says, for version above 9.x, ‘COMPONENT_PATHS’ doesn’t accept value like this –> “WebLogic Server/Core Application Server” anymore. But actually it does accept “WebLogic Server/<insert_component>” format, and even the documentation says so.

So anyway, the error was due to my habit of copying and pasting in vi which sort of corrupted my component paths line. So yea, if you get that kind of error, I’d say chance is your silent.xml file format is incorrect.

These are my silent.xml files.



This will install Ā all WebLogic Server components.

###################################################

<?xml version=”1.0″ encoding=”UTF-8″?>
<!– Silent installer option: -mode=silent -silent_xml=C:\bea\silent.xml –>

<bea-installer>
<input-fields>
<data-value name=”BEAHOME” value=”/opt/bea1032″ />
<data-value name=”WLS_INSTALL_DIR” value=”/opt/bea1032/wlserver_10.3″ />
<data-value name=”COMPONENT_PATHS” value=”WebLogic Server” />
<data-value name=”INSTALL_NODE_MANAGER_SERVICE” value=”yes” />
<data-value name=”NODEMGR_PORT” value=”5559″ />
<data-value name=”INSTALL_SHORTCUT_IN_ALL_USERS_FOLDER” value=”yes”/>

</input-fields>
</bea-installer>

###################################################



This will install all WebLogic Server components, without the samples.

###################################################

<?xml version=”1.0″ encoding=”UTF-8″?>
<!– Silent installer option: -mode=silent -silent_xml=C:\bea\silent.xml –>

<bea-installer>
<input-fields>
<data-value name=”BEAHOME” value=”D:\bea\wls103_silent” />
<data-value name=”WLS_INSTALL_DIR” value=”D:\bea\wls103_silent\wlserver_10.3″ />
<data-value name=”WLW_INSTALL_DIR” value=”D:\bea\wls103_silent\workshop_10.3″ />
<data-value name=”COMPONENT_PATHS” value=”WebLogic Server/Core Application Server|WebLogic Server/Administration Console|WebLogic Server/Configuration Wizard and Upgrade Framework|WebLogic Server/Web 2.0 HTTP Pub-Sub Server|WebLogic Server/WebLogic JDBC Drivers|WebLogic Server/Third Party JDBC Drivers|WebLogic Server/WebLogic Server Clients|WebLogic Server/WebLogic Web Server Plugins|WebLogic Server/UDDI and Xquery Support|WebLogic Server/Server Examples|Workshop/Workshop for WebLogic|Workshop/Workshop Runtime Framework” />
<data-value name=”USE_EXTERNAL_ECLIPSE” value=”false” />
<data-value name=”EXTERNAL_ECLIPSE_DIR” value=”D:\eclipse332\eclipse” />
<data-value name=”INSTALL_NODE_MANAGER_SERVICE” value=”yes” />
<data-value name=”NODEMGR_PORT” value=”5559″ />
<data-value name=”INSTALL_SHORTCUT_IN_ALL_USERS_FOLDER” value=”yes”/>

</input-fields>
</bea-installer>

###################################################


What caused the error was, I simply copied the component paths from my terminal, and paste it using the vi editor, so I kinda missed the fact that the line was not continuous, creating breaks of white space. Something like this:

<data-value name=”COMPONENT_PATHS” value=”WebLogic Server/Core Application Server|WebLogic Server/Administration Console|WebLogic Server/Configuration Wizard and Upgrade Framework|WebLogic Server/Web 2.0 <break of white space>
HTTP Pub-Sub Server WebLogic Server/WebLogic JDBC Drivers|WebLogic Server/Third Party JDBC <break of white space>
Drivers|WebLogic Server/WebLogic Server Clients|WebLogic Server/WebLogic Web Server Plugins|WebLogic Server/UDDI and Xquery Support|WebLogic Server/Server Examples|Workshop/Workshop for <break of white space>
WebLogic|Workshop/Workshop Runtime Framework” />

Advertisements

March 14, 2009

Fitter happier.

Filed under: Life, Tech — Tags: , , , , , — od @ 11:19 pm

Yea, there has been a lack of update. I was busy with WebLogic, and Devin.. oh well, he only writes material that meets a certain literary and relevancy standard and he is not that prolific. Lol. Guess you’ll never find him writing anything that will be tagged as rant šŸ˜›

Few things happened last week..

Weblogic completed:
Am done with the project last week, which is cool. Haven’t gone through the UAT session with the users yet, so until they say “All’s good”, guess I’ll have to keep my fingers crossed. Weeee!!!!



I lost my handphone:
Yes, my cheap handphone. I can’t believe someone would want to steal it. I bought the handphone for about 300 – 400 bucks, so am surprised that someone would be so keen to steal it. How much does it worth really? 2 small packets of weed? Am not bothered about the phone. Well alright, I am bothered, because it costs money. But what I care the most is the data inside the phone. My contacts, my messages, heck I even have a few audio clips of my cat purring recorded with that phone. Oh well. Fuck you, thief.



Medical checkups:
I had a couple of medical checkups performed last Tuesday and Thursday. Last Tuesday I got all wired up for the holter monitoring test. It was something like a 24 hours of ECG (electrocardiogram) to monitor the electrical activity of my heart. I couldn’t take showers during the procedure because it’ll damage the device. So yeah, am pretty happy with the fact that I don’t have to shower and not feeling guilty about it. Am just plain lazy sometimes.

And last Thursday, I got up very early in the morning and headed to the General Hospital to get my brain checked. It was a quick EEG (electroencephalography), prolly around 20 minutes where I had to blink my eyes numerous times, with bright light flickered directly on me for a few minutes and inhale/exhale profusely for 5 minutes which was tiring since am asthmatic. And oh my, I looked horrible with my hair glued on with all the wires. And I looked even worse after the guy pulled them out. I looked like a woman who is trying too hard to impress a guy by applying extra hair gel. You know the type of hair gel that will make your hair hard and stiff? Gah. I hate it.

I’ll be getting the results this April. I hope everything will be fine, since am always fine, and anyway I agreed to go through all of these medical procedures because my sister told me to. Nothing serious.



FreeBSD upgrade:
Yeah, finally! Upgraded to 7.1. I did it last Saturday, and I was thinking to update this blog on Sunday, but guess what, the update went fine until suddenly I failed to start the X server. Hmmm.. now that’s weird, because this was not the first time I did a FreeBSD upgrade, plus, this was just a minor version upgrade, so what could go wrong? Building world, kernel and installing them went perfectly well. I didn’t forget to run mergemaster, the machine booted up well. Spent a day changing the theme, and all of the sudden it failed (yeah, ironically it failed after I spent the whole day beautifying my desktop, why didn’t it fail sooner?). I realized that it failed just after I ran portupgrade to upgrade my Opera and Firefox. Probably the modules are not synced, am not sure.

I spent the next 48 hours running portupgrade numerous times, until I finally decided to rebuild perl, xorg and xfce4. But to my surprise it failed. I reinstalled my xfce4 and its gang one by one, so they’ll all run on the same version. Reboot the machine and voila, am back. Still, some of my installed packages are broken, so I had to fix them.

So they say, if it ain’t broken, don’t fix it. I could’ve just stick to FreeBSD 7.0 and save the 48 hours from the agonizing pain of troubleshooting my machine. But seriously, it was worth it. The performance is so much better, XFCE 4.6 is brilliant with more new features and yes fellas.. flash 9 works šŸ™‚



He got engaged:
Yes, he finally got engaged. AmazingCongratulations.

February 18, 2009

What do WebLogic and someone-who-stole-my-chair-in-the-office have in common?

Filed under: Life — Tags: , , , , , — od @ 9:30 pm

They both suck donkey balls.

December 16, 2008

WebLogic 10.3 on FreeBSD?

Filed under: Tech — Tags: , , , — od @ 11:57 pm

I wish.. lol.

Am very new to weblogic, so am pretty excited to try it on my FreeBSD at home. Well ok, I just managed to install it, but couldn’t get it run. Bleargh. The problem is with the LD_LIBRARY_PATH I think. There’s no native directory under <WL_HOME>/server, so it’ll complain about the missing path when you try to start the domain or node manager. Pfftttt. I’d love to know how to fix this šŸ˜¦

But anyways, here’s how to install WebLogic 10g on FreeBSD 7. Just installing it, but it doesn’t work lol. I don’t know why I even bother writing this.

1 – FIrst of all, download the installer from the oracle website. Choose HP-UX as the operating system as that’ll provide you with a generic jar installer.
http://www.oracle.com/technology/software/products/ias/htdocs/wls_main.html

2 – While it’s downloading, install eclipse from the port.
cd /usr/ports/java/eclipse && make install clean

3 – Install eclipse WTP. Get it from here:
http://www.eclipse.org/downloads/download.php?file=/webtools/downloads/drops/R2.0/R-2.0.3-20080710044639/wtp-R-2.0.3-20080710044639.zip

Place the zip file at /usr/local and unzip it. It’ll place all the extracted files in the right directory.

4 – After you’re done with eclipse, you’re ready to install weblogic. Am performing this as a non root user.

I use diablo java, so running java -jar server103_generic.jar alone will not work.

My java -version:
java version “1.5.0”
Java(TM) 2 Runtime Environment, Standard Edition (build diablo-1.5.0-b01)
Java HotSpot(TM) 64-Bit Server VM (build diablo-1.5.0_07-b01, mixed mode)

So execute the installer using sun jdk directory to get it running:
/usr/local/jdk1.6.0/bin/java -Dos.name=unix -jar server103_generic.jar

You’ll have to specify the Dos unix name, else you’ll get the insufficient disk space error, which is very annoying when you actually have tons of free space. You may get lucky with this and the installation will end successfully. As for me, it stuck at 74% while creating the sample domain.

$ /usr/local/jdk1.6.0/bin/java -Dos.name=unix -jar server103_generic.jar
Extracting 0%……………………………………………………………………………………….100%
Exception in thread “Thread-14” java.lang.OutOfMemoryError: Java heap space
at java.io.BufferedOutputStream.<init>(BufferedOutputStream.java:59)
at java.io.BufferedOutputStream.<init>(BufferedOutputStream.java:42)
at com.bea.plateng.common.util.JarHelper.extract(JarHelper.java:790)
at com.bea.plateng.common.util.JarHelper.extract(JarHelper.java:676)
at com.bea.plateng.common.util.JarHelper.extract(JarHelper.java:634)
at com.bea.plateng.domain.TemplateImporter.generate(TemplateImporter.java:237)
at com.bea.plateng.domain.script.ScriptExecutor$2.run(ScriptExecutor.java:2785)

The error was out of memory exception, so I decided to reinstall it. But first I have to uninstall it first since weblogic detected that it has already been installed at the target directory.I run the installer with the following command:
/usr/local/jdk1.6.0/bin/java -Xmx2G -Dos.name=unix -jar server103_generic.jar

Installation complete!

Alright, now the installation is done, you might wanna try to start the sample domain.

Ahah! Now this is the part where I got unlucky.

It complains that the port is being used, when it’s not! Hmmmmphhhhh!

<Dec 13, 2008 12:25:25 PM MYT> <Notice> <Security> <BEA-090169> <Loading trusted certificates from the jks keystore file /usr/local/jdk1.6.0/jre/lib/security/cacerts.>
<Dec 13, 2008 12:25:29 PM MYT> <Error> <Server> <BEA-002606> <Unable to create a server socket for listening on channel “MedRec Local Network Channel”. The address 127.0.0.1 might be incorrect or another process is using port 7011: java.net.BindException: Can’t assign requested address.>
<Dec 13, 2008 12:25:29 PM MYT> <Error> <Server> <BEA-002606> <Unable to create a server socket for listening on channel “Default”. The address 192.168.0.1 might be incorrect or another process is using port 7011: java.net.BindException: Can’t assign requested address.>
<Dec 13, 2008 12:25:29 PM MYT> <Error> <Server> <BEA-002606> <Unable to create a server socket for listening on channel “DefaultSecure”. The address 192.168.0.1 might be incorrect or another process is using port 7012: java.net.BindException: Can’t assign requested address.>
<Dec 13, 2008 12:25:29 PM MYT> <Emergency> <Security> <BEA-090087> <Server failed to bind to the configured Admin port. The port may already be used by another process.>
<Dec 13, 2008 12:25:29 PM MYT> <Critical> <WebLogicServer> <BEA-000362> <Server failed. Reason: Server failed to bind to any usable port. See preceeding log message for details.>
<Dec 13, 2008 12:25:29 PM MYT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to FAILED>
<Dec 13, 2008 12:25:29 PM MYT> <Error> <WebLogicServer> <BEA-000383> <A critical service failed. The server will shut itself down>
<Dec 13, 2008 12:25:29 PM MYT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to FORCE_SHUTTING_DOWN>
Stopping PointBase server…
PointBase server stopped.

Well actually there are other errors came out before that but am too lazy to look at it. Lolz.

Now if you try to create a domain, you’ll get the shared library path error:

./config.sh: Don’t know how to set the shared library path for FreeBSD.
Exception in thread “AWT-EventQueue-0” java.lang.NullPointerException
at java.awt.Container.createHierarchyEvents(Container.java:1366)
at java.awt.Container.createHierarchyEvents(Container.java:1366)
at java.awt.Container.createHierarchyEvents(Container.java:1366)
at java.awt.Container.createHierarchyEvents(Container.java:1366)
at java.awt.Container.addImpl(Container.java:1082)
at java.awt.Container.add(Container.java:903)
at com.bea.plateng.wizard.GUIContext$8.run(GUIContext.java:480)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)

Same goes if you try to start a node manager.

Ah well.. think I’ll spare some other time playing around with this. Doing weblogic makes me miss websphere. Lol.