Return-Path: Delivered-To: apmail-ibatis-user-java-archive@www.apache.org Received: (qmail 21894 invoked from network); 9 Nov 2007 16:08:33 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 9 Nov 2007 16:08:33 -0000 Received: (qmail 47937 invoked by uid 500); 9 Nov 2007 16:08:19 -0000 Delivered-To: apmail-ibatis-user-java-archive@ibatis.apache.org Received: (qmail 47668 invoked by uid 500); 9 Nov 2007 16:08:18 -0000 Mailing-List: contact user-java-help@ibatis.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user-java@ibatis.apache.org Delivered-To: mailing list user-java@ibatis.apache.org Received: (qmail 47657 invoked by uid 99); 9 Nov 2007 16:08:18 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Nov 2007 08:08:18 -0800 X-ASF-Spam-Status: No, hits=2.6 required=10.0 tests=DNS_FROM_OPENWHOIS,SPF_HELO_PASS,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Nov 2007 16:08:19 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1IqWOl-0003Yz-8d for user-java@ibatis.apache.org; Fri, 09 Nov 2007 08:07:59 -0800 Message-ID: <13669981.post@talk.nabble.com> Date: Fri, 9 Nov 2007 08:07:59 -0800 (PST) From: Jeremy Jardin To: user-java@ibatis.apache.org Subject: Re: AW: unexpected ExceptionInInitializerError In-Reply-To: <2534.39517.qm@web44801.mail.sp1.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Nabble-From: jeremy.jardin@gmail.com References: <13647996.post@talk.nabble.com> <2534.39517.qm@web44801.mail.sp1.yahoo.com> X-Virus-Checked: Checked by ClamAV on apache.org uhu;. I did not change anything on my log4j.properties file... The project is in developpement part, so, the appender is the console... I'm losing all my time with that pb !! :-( Carlos de Luna wrote: >=20 > Seems like you have to review your logger properties file in order to see > if you have something worng with the appenders... that's my first guess. > Carlos de Luna >=20 > ----- Mensaje original ---- > De: Jeremy Jardin > Para: user-java@ibatis.apache.org > Enviado: viernes, 9 de noviembre, 2007 9:17:38 > Asunto: Re: AW: unexpected ExceptionInInitializerError >=20 >=20 > anyone ? >=20 > :-( >=20 >=20 >=20 > Jeremy Jardin wrote: >>=20 >> Of course, I have that lib.. That was the first thing I made sur before >> posting :) >>=20 >> I really don't understand ! >> maybe conflicts between common-logging and log4j ? >>=20 >> heeelp >>=20 >>=20 >> charlie bird wrote: >>>=20 >>> Looks like you've lost the commons logging jar from >>> your classpath somehow. Have look at your Eclipse >>> project properties java buildpath (Right click on your >>> project in the navigator window - properties - java >>> build path - libraries). If you do not have >>> commons-logging-somenumbers.jar there than that'll be >>> your problem. >>>=20 >>> Charlie=20 >>>=20 >>> --- Jeremy Jardin wrote: >>>=20 >>>>=20 >>>> Hey, I've got something more.. >>>> I think a library is missing ...=20 >>>>=20 >>>> I caught the Throwable exception et logged the cause >>>> : >>>>=20 >>>> Caused by: java.lang.RuntimeException: Error >>>> creating logger for class class >>>> com.ibatis.sqlmap.engine.impl.SqlMapClientImpl.=20 >>>> Cause: >>>> java.lang.reflect.InvocationTargetException >>>> at com.ibatis.common.logging.LogFactory.getLog >>>> (LogFactory.java:33) >>>> at >>>> >>> com.ibatis.sqlmap.engine.impl.SqlMapClientImpl.(SqlMapClientImp= l.java:41) >>>> ... 51 more >>>> Caused by: >>>> java.lang.reflect.InvocationTargetException >>>> at >>>> >>> sun.reflect.NativeConstructorAccessorImpl.newInstance0 >>>> (Native >>>> Method) >>>> at >>>> >>> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructor= AccessorImpl.java:39) >>>> at >>>> >>> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingCon= structorAccessorImpl.java >>>> :27) >>>> at >>>> >>> java.lang.reflect.Constructor.newInstance(Constructor.java:494) >>>> at >>>> >>> com.ibatis.common.logging.LogFactory.getLog(LogFactory.java:31) >>>> ... 52 more >>>> Caused by: java.lang.NoClassDefFoundError: >>>> org/apache/commons/logging/LogFactory >>>> at >>>> >>> com.ibatis.common.logging..jakarta.JakartaCommonsLoggingImpl.(Jak= artaCommonsLoggingImpl.java:11) >>>> ... 57 more >>>> INFO [http-8888-Processor24] (?:?) - Cause de >>>> l'exception : >>>> java.lang.RuntimeException : Error creating logger >>>> for class class >>>> com.ibatis.sqlmap.engine.impl.SqlMapClientImpl.=20 >>>> Cause: >>>> java.lang.reflect.InvocationTargetException >>>> WARN [http-8888-Processor24] >>>> (RequestProcessor.java:528) - Unhandled >>>> Exception thrown: class >>>> >>> fr.gouv.finances.douane.dnsce.oci..business.exception.DAOConfLoadingExc= eption >>>> ERROR [http-8888-Processor24] >>>> (ApplicationDispatcher.java:723) - >>>> "Servlet.service()" pour la servlet action a lanc=C3=A9 >>>> une exception >>>>=20 >>>>=20 >>>>=20 >>>> Jeremy Jardin wrote: >>>> >=20 >>>> >=20 >>>> > This is my doctype : >>>> > >>> SQL Map 2.0//EN" >>>> > "http://ibatis.apache.org/dtd/sql-map-2.dtd"> >>>> >=20 >>>> > And the application is running with Tomcat >>>> 5.5.23.. >>>> >=20 >>>> > There are things I don't understand.. my >>>> application WORKED with my dtds.. >>>> > and >>>> > I did not modify anything on it..... >>>> > I just changed workspace properties in eclipse...=20 >>>> >=20 >>>> > ... >>>> >=20 >>>> >=20 >>>> >=20 >>>> > nmaves wrote: >>>> >>=20 >>>> >> hmmm please ensure that you have the following >>>> >>=20 >>>> >> >>> SQL Map Config 2.0//EN" >>>> >> " >>>> >> >>>> http://ibatis.apache.org/dtd/sql-map-config-2.dtd"> >>>> >>=20 >>>> >> What larry is trying to find out is what xml >>>> parser is tomcat using.... >>>> >> but >>>> >> in reality almost any recent version of tomcat >>>> should work. I am >>>> >> assuming >>>> >> that your dev environment is behind a firewall >>>> that prevents you from >>>> >> seeing >>>> >> ibatis.apache.org but and recent xml parser >>>> should read the dtd from your >>>> >> jar file and only try to use th actual url if >>>> there is not one in the jar >>>> >> file. >>>> >>=20 >>>> >> So please find out what version of tomcat you are >>>> using? >>>> >>=20 >>>> >>=20 >>>> >> Nathan >>>> >>=20 >>>> >> On Nov 9, 2007 12:41 AM, Jeremy Jardin >>>> wrote: >>>> >>=20 >>>> >>> >>>> >>> Hi, >>>> >>> >>>> >>> I'm not sure to know what you want me to tell >>>> you ... >>>> >>> So, I wrote my application with eclipse >>>> plateform, webapps running on >>>> >>> tomcat.. >>>> >>> I thought that the xml parsing of those files is >>>> managed by Ibatis >>>> >>> framework.... >>>> >>> >>>> >>> You make me remind that i changed some XML >>>> validation properties on >>>> >>> eclipse...because >>>> >>> I just wanted tu suppress warning in my project >>>> on my xml files.. >>>> >>> The warnings were : "can't reach >>>> ibatis.apache.org" .. on my >>>> >>> sqlmapfiles... >>>> >>> >>>> >>> But I rollback my changes.. and it still does=20 >>>> not work.. >>>> >>> >>>> >>> >>>> >>> >>>> >>> Larry Meadors-2 wrote: >>>> >>> > >>>> >>> > Yeah, sorry w/o =3D=3D without. >>>> >>> > >>>> >>> > What does your JDK or app server use to read / >>>> manage XML data? >>>> >>> > >>>> >>> > Larry >>>> >>> > >>>> >>> > >>>> >>> > On Nov 8, 2007 9:17 AM, Jeremy Jardin >>>> wrote: >>>> >>> >> >>>> >>> >> I guess w/o means without ? :) ? >>>> >>> >> >>>> >>> >> XML parser .??? what do you mean ? >>>> >>> >> >>>> >>> >> >>>> >>> >> >>>> >>> >> >>>> >>> >> Larry Meadors-2 wrote: >>>> >>> >> > >>>> >>> >> > Hmm, the DTD should be resolved w/o >>>> internet access. Do you have an >>>> >>> >> > unusual or older XML parser? >>>> >>> >> > >>>> >>> >> > Larry >>>> >>> >> > >>>> >>> >> > >>>> >>> >> > On Nov 8, 2007 9:01 AM, Jeremy Jardin >>>> >>>> >>> wrote: >>>> >>> >> >> >>>> >>> >> >> Well, the pc from which I start the web >>>> application don't have any >>>> >>> web >>>> >>> >> >> connection. >>>> >>> >> >> So, I put the dtds into my web-inf >>>> directory... not very sexy, but >>>> >>> it >>>> >>> >> >> works >>>> >>> >> >> ;-) >>>> >>> >> >> >>>> >>> >> >> I wrote a DaoConfLoader class, used ton >>>> init the ibatis >>>> >>> configuration, >>>> >>> >> >> parsing the dao.xml file. >>>> >>> >> >> That classe is invoked by the >>>> authentication servlet, when the >>>> >>> server >>>> >>> >> is >>>> >>> >> >> up. >>>> >>> >> >> >>>> >>> >> >> I unfortunatly can't use the >>>> ibatis.apache.org's dtd... but my >>>> >>> >> solution >>>> >>> >> >> worked 'til today !! >>>> >>> >> >> >>>> >>> >> >> >>>> >>> >> >> >>>> >>> >> >> >>>> >>> >> >> >>>> >>> >> >> >>>> >>> >> >> Larry Meadors-2 wrote: >>>>=20 >>> =3D=3D=3D message truncated =3D=3D=3D >>>=20 >>>=20 >>>=20 >>> ___________________________________________________________ >>> Yahoo! Answers - Got a question? Someone out there knows the answer. Tr= y >>> it >>> now. >>> http://uk.answers.yahoo.com/=20 >>>=20 >>>=20 >>=20 >>=20 >=20 > --=20 > View this message in context: > http://www.nabble.com/unexpected-ExceptionInInitializerError-tf4771224.ht= ml#a13668746 > Sent from the iBATIS - User - Java mailing list archive at Nabble..com. >=20 >=20 > Comparte video en la ventana de tus mensajes (y tambi=C3=A9n tus fo= tos de > Flickr). Usa el nuevo Yahoo! Messenger versi=C3=B3n Beta. > http://e1.beta.messenger.yahoo.com/ >=20 >=20 >=20 --=20 View this message in context: http://www.nabble.com/unexpected-ExceptionInI= nitializerError-tf4771224.html#a13669981 Sent from the iBATIS - User - Java mailing list archive at Nabble.com.