WebLogic, umask and log files permissions
Our soa user has umask 0022 , which mean every new file will be created with rw.r..r.. attributes. However, weblogic log files are rw.r...., which means that our monitoring system, running with a user...
View ArticleConfiguration error while reading domain directory
Error occured while performing nmConnect : Cannot connect to Node Manager. : Configuration error while reading domain directorySolution: locate all nm_password.properties in your domains, and...
View ArticleWikilosers, get a life
From Urban Dictionary: "Wiki-loser: a loser with too much time on their hands spending that time at the wikipedia editing pages and making changes to fit their own personal philosophy" Once more I have...
View ArticleWebLogic, changing the listen address or port
if your port is 7001, since it's the default it might not be mentioned in the config.xml. config.xml only reports stuff which differs from the default, for sake of simplicity.apart from the config.xml,...
View ArticleDownloading files from a WebLogic WebApp
If you want to download from your WebLogic webapp any file located anywhere in your filesystem, use the virtual-directory-mapping clause in the weblogic.xml of your webapp: <!DOCTYPE...
View ArticlePuppet: usermod: user is currently logged in
If you are provisioning a node, and this entails changing something os a user (in my case, the home directory), usermod could fail with the message "usermod: user BLA is currently logged in" Run "who"...
View ArticleStarting a WebLogic admin on a backup node in a OSB cluster
I have stopped the admin on machine1, made sure the virtualIP is removed from the NIC, and started on the second node. I get immediately this error in the logs when logging to the sbconsole:...
View ArticleMigrating Admin for a OSB cluster
if you plan to start the admin server on the second node, all DOMAIN_HOME/osb/config/* have to be copied from node1 o node2:make sure no osb session is currently open:Â this should be empty:ls...
View Articlecom.bea.wli.monitoring.statistics.ALSBStatisticsManager.getRemoteAggregator...
In the server logs I was getting: ####<Jul 14, 2013 8:59:00 AM CEST> <Error> <ALSB Statistics Manager> <hqchacme104> <osbts1ms2> <[ACTIVE] ExecuteThread: '31' for...
View ArticlecurrentTimeMillis reverse lookup, AKA "from currentTimeMillis to date" in WLST
If you have a timestamp expressed asSystem.currentTimeMillis()=1373941644513Â Â you can transform it into a readable date this way:from java.text import SimpleDateFormat from java.util import Datesdf...
View Articleweblogic servlet redirect HTTP 302
If you deploy a WebApp, in a WebLogic cluster with a FrontEnd HTTP Host set (a loadbalancer typically), the Servlet will generate a redirect if the URL doesn't end with a /: wget...
View ArticleHow to retrieve a BLOB and write it to a file in WLST
We often need to recover errored payloads from the OSB reporting archiving tables. in WLST/Python it's VERY easy (much easier than in Java) from com.ziclix.python.sql import zxJDBCdef...
View ArticleOracle DB, purge large tables
I have a huge table WLI_NESOA2_REPORTING_ARCHIVE and I need to purge 10000 rows at a time for all records older than 2013-05-10. It's easy if you use a ROWID table and empty it progressively....
View ArticleOSB service discovery code (poor man's Amberpoint)
This will generate SQL code to display dependencies. You need to create 3 tables: ACME2_OSBPROJECTS, ACME2_SERVICES, ACME2_SERVICE_DEPENDENCIES CREATE TABLE "ACME2_OSBPROJECTS" ( "OSBPROJECTNAME"...
View ArticleLint and CheckStyle for OSB
Export your sbconfig.jar and unjar it find . -name *.ProxyService > allproxies.txt wlst osblint.py > osblintresult.txt from xml.dom import minidomf = open('allproxies.txt')allproxies =...
View ArticleOSB dependencies rendered as graphs
Excellent "graphviz getting started" guide: http://dborody.wordpress.com/2013/02/23/graph-visualization-with-graphviz-examples-tutorial/Official graphviz site: http://www.graphviz.org/Details on...
View ArticleScum Master
If you feel bored and that life has nothing more to offer you, google "scum master" (with quotes) and you will get back a taste of life and laughter.Let me google it for you: http://bit.ly/14pum3jThe...
View ArticlePython, show methods for a class, and type of an object
use "inspect", "type" and __class__ here an example: from xml.dom import minidomaproxy='someps.proxy'xmldoc =...
View ArticleOSB Hello World
I hate WSDL. So here I put a basic WSDL for a Hello World SOAP service for OSB. I had one here http://www.javamonamour.org/2010/06/helloworld-wsdl.html but I need a WLSD with a xsd:import....
View Article