Thursday, May 13, 2010

How to add shortcut icon

I am not so sure how to name it. just call it shortcut icon, what is shortcut icon?
The icon in front of the URL at address bar





If adding this site to your bookmarks, you also see the icon shown in the bookmark list with the site name.

<link rel="shortcut icon" href="images/favicon.ico" type="image/x-icon"/>

take the site http://wangxiangblog.blogspot.com as example,
 <link href='http://www.blogger.com/favicon.ico' rel='icon' type='image/vnd.microsoft.icon'/>

Monday, May 10, 2010

reset admin password for weblogic v10.3

scenario 1, sometimes we might forget the admin console password.
scenario 2, we want to skip to key in username/password while admin console startup

go to <weblogic root folder>\user_projects\domains\<your domain>\servers\<your domain>AdminServer\

to add a folder \security and add a new property boot.properties

the content in this property would be
username=<your username to access admin console>
password=<your password to access admin console>

then, restart weblogic , weblogic will encrypt username/password in boot.properties, the content maybe:

#Mon May 10 12:56:22 SGT 2010
password={3DES}AWQsP+YSimYA7Je1swu9tQ\=\=
username={3DES}AWQsP+YSimYA7Je1swu9tQ\=\=

(maybe you need to restart weblogic again if you found some exception. then everything will be fine.)

Wednesday, May 5, 2010

Config log4j to print SOAP content with AXIS2

log4j.rootLogger=debug

# set to false to turn off log4j debug statements
log4j.debug=true

# Turns off logging in log4j
# log4j.threshold=OFF

# set standard out appender.
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern=%-4r [%d{ISO8601}] [%t] %-5p %c %x - %m%n

# configure httpclient to print SOAP content
log4j.logger.httpclient=debug,stdout
log4j.logger.org.apache.commons.httpclient=debug,stdout