From: <jfv...@vi...> - 2004-03-24 21:16:01
|
got it !!! in ERXExtensions.java: ... public void finishedLaunchingApp(NSNotification n) { ERXProperties.populateSystemProperties(); =20 ERXConfigurationManager.defaultManager().configureRapidTurnAround(); // initialize compiler proxy ERXCompilerProxy.defaultProxy().initialize(); ERXLocalizer.initialize(); ERXValidationFactory.defaultFactory().configureFactory(); if(!ERXProperties.webObjectsVersionIs522OrHigher()) { NSLog.setDebug(new=20 ERXNSLogLog4jBridge(ERXNSLogLog4jBridge.DEBUG)); NSLog.setOut(new=20 ERXNSLogLog4jBridge(ERXNSLogLog4jBridge.OUT)); NSLog.setErr(new=20 ERXNSLogLog4jBridge(ERXNSLogLog4jBridge.ERR)); } } ... the ERXProperties.webObjectsVersionIs522OrHigher() return false on WO=20 5.2.3 : /** * Quick convience method used to determine if the current * webobjects version is 5.22 or higher. * @return if the version of webobjects is 5.22 or better */ public static boolean webObjectsVersionIs522OrHigher() { String webObjectsVersion =3D webObjectsVersion(); if("5.2".equals(webObjectsVersion)) { String sourceVersion =3D sourceVersionString(); if("9260000".equals(sourceVersion)) { return true; } } return false; } I do not know what it should compare to, but I simply commented out the=20= lines in ERExtensions.java and that did the trick anyway. Sorry, I do not have a real fix, just a hack :-/ - jfv Le 04-03-24, =E0 15:45, Jean-Fran=E7ois Veillette a =E9crit : > > I've almost lost my entire day trying to see my SQL logs I can't get=20= > my log4j properties setup correctly so that I could see SQL output=20 > (like the simple flag EOAdaptorDebugEnabled is doing). > > What is the magic flag that will make my sql appear ? > > > I had a cvs checkout of end of february, and since I'm running on=20 > 10.3.3 / WO 5.2.3, I thought, maybe they fixed something in there that=20= > was incompatible with wo 5.2.3 / log4j / erxextensions. > > So I just made a ' cvs update ' on erextensions. I had trouble=20 > building the ERXCrypto.java file, I had to comment out most of it. It=20= > seem that I don't have javax.crypto.* packages, but the comments and=20= > other docs imply that it is now part of java 1.4.x, but somehow it=20 > didn't find it. > . > > One important note, is that I don't see any nsloglog4jbridge anymore,=20= > and I'm sure that the sql output are part of them. > Why ? How to fix ? > > thanks for your support, I'm tired, I tried all day long to see my=20 > sql, and I had it running not too long ago on that same project, but I=20= > can't see what I did that would have cause it to disapear. > > > - jfv |