Featured post

c# - Usage of Server Side Controls in MVC Frame work -

i using asp.net 4.0 , mvc 2.0 web application. project requiremrnt have use server side control in application not possibl in noraml case. ideally want use adrotator control , datalist control. i saw few samples , references in codepleax mvc controllib howwver found less useful. can tell how utilize theese controls in asp.net application along mvc. note: please provide functionalities related adrotator , datalist controls not equivalent functionalities thanks in advace. mvc pages not use normal .net solution makes use of normal .net components impossible. a normal .net page use event driven solution call different methods service side mvc use actions , view completly different way handle things. also, mvc not use viewstate normal .net controlls require. found article discussing mixing of normal .net , mvc.

weblogic log4j with incorrect time in logs -


we have weblogic appserver running on unix box our application uses log4j configured dailyrollingfileappender.

when try "date" command on unix prompt shows me correct timezone (i in pacific timezone) same time in log files can see 1 hour ahead time.

like, date command shows "mon dec 20 15:10:39 pst 2010" if open log file, can see 20-dec-2010 16:10:39,773 debug xyz....

my log4j settings

log4j.appender.test=org.apache.log4j.dailyrollingfileappender log4j.appender.test.datepattern='.'yyyy-mm-dd log4j.appender.test.threshold=debug log4j.appender.test.immediateflush=true log4j.appender.test.file=test.log log4j.appender.test.append=true log4j.appender.test.layout=org.apache.log4j.patternlayout log4j.appender.test.layout.conversionpattern=%d{dd-mmm-yyyy hh:mm:ss,sss} %-5p %c:%l - %m%n 

not sure if unix time proper pst time time log4j using logging, dont see log4j timezone configuration in above settings.

how can check timezone settings incorrect in weblogic ?

-rushik.

i solved problem on ubuntu,here steps 1.use tzselect command confiugre timezone 2.ln -sf /usr/share/zoneinfo/$state/$city /etc/localtime 3.ensure "/ etc/timezone" configured set timezone 4.reboot


Comments

Popular posts from this blog

c# - Usage of Server Side Controls in MVC Frame work -

cocoa - Nesting arrays into NSDictionary object (Objective-C) -

ios - Very simple iPhone App crashes on UILabel settext -