You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user-java@ibatis.apache.org by Jeremy Jardin <je...@gmail.com> on 2007/11/08 15:37:10 UTC

unexpected ExceptionInInitializerError

Hi,

I'm working using Ibatis framework for 2 months, and it works quite well.
But this morning, each time I'm initializing Ibatis configuration, parsing
dao.xml and sql-map-config.xml files, I've got that exception :

java.lang.ExceptionInInitializerError
    at
com.ibatis.sqlmap.engine.builder.xml.SqlMapConfigParser.<init>(SqlMapConfigParser.java:55)

I cleaned my tomcat work directory, stop and start server x times, ... got
the last runnig configuration.. and it still does not work.. 
What hell did I make wrong ??

Thx  4 u're help
-- 
View this message in context: http://www.nabble.com/unexpected-ExceptionInInitializerError-tf4771224.html#a13647996
Sent from the iBATIS - User - Java mailing list archive at Nabble.com.


Re: unexpected ExceptionInInitializerError

Posted by Jeremy Jardin <je...@gmail.com>.
So, that's the stackTrace...

 INFO [http-8888-Processor24] (?:?) - Problème au chargement de la
configuration d'IBATIS - java.lang.ExceptionInInitializerError -
java.lang.ExceptionInInitializerError
    at
com.ibatis.sqlmap.engine.builder.xml.SqlMapConfigParser.<init>(SqlMapConfigParser.java:55)
    at com.ibatis.sqlmap.engine.builder.xml.SqlMapConfigParser
.<init>(SqlMapConfigParser.java:42)
    at
com.ibatis.sqlmap.client.SqlMapClientBuilder.buildSqlMapClient(SqlMapClientBuilder.java:78)
    at
com.ibatis.dao.engine.transaction.sqlmap.SqlMapDaoTransactionManager.configure
(SqlMapDaoTransactionManager.java:52)
    at
com.ibatis.dao.engine.builder.xml.XmlDaoManagerBuilder.parseTransactionManager(XmlDaoManagerBuilder.java:193)
    at com.ibatis.dao.engine.builder.xml.XmlDaoManagerBuilder.parseContext
(XmlDaoManagerBuilder.java:157)
    at
com.ibatis.dao.engine.builder.xml.XmlDaoManagerBuilder.buildDaoManager(XmlDaoManagerBuilder.java:102)
    at
com.ibatis.dao.client.DaoManagerBuilder.buildDaoManager(DaoManagerBuilder.java
:59)
    at fr.gouv.finances.douane.dnsce.service.DaoConfLoader.init(Unknown
Source)



Larry Meadors-2 wrote:
> 
> Can you give us more than one line of a stack trace?
> 
> Larry
> 
> 
> On Nov 8, 2007 7:37 AM, Jeremy Jardin <je...@gmail.com> wrote:
>>
>> Hi,
>>
>> I'm working using Ibatis framework for 2 months, and it works quite well.
>> But this morning, each time I'm initializing Ibatis configuration,
>> parsing
>> dao.xml and sql-map-config.xml files, I've got that exception :
>>
>> java.lang.ExceptionInInitializerError
>>     at
>> com.ibatis.sqlmap.engine.builder.xml.SqlMapConfigParser.<init>(SqlMapConfigParser.java:55)
>>
>> I cleaned my tomcat work directory, stop and start server x times, ...
>> got
>> the last runnig configuration.. and it still does not work..
>> What hell did I make wrong ??
>>
>> Thx  4 u're help
>> --
>> View this message in context:
>> http://www.nabble.com/unexpected-ExceptionInInitializerError-tf4771224.html#a13647996
>> Sent from the iBATIS - User - Java mailing list archive at Nabble.com.
>>
>>
> 
> 

-- 
View this message in context: http://www.nabble.com/unexpected-ExceptionInInitializerError-tf4771224.html#a13648783
Sent from the iBATIS - User - Java mailing list archive at Nabble.com.


Re: unexpected ExceptionInInitializerError

Posted by Larry Meadors <lm...@apache.org>.
Can you give us more than one line of a stack trace?

Larry


On Nov 8, 2007 7:37 AM, Jeremy Jardin <je...@gmail.com> wrote:
>
> Hi,
>
> I'm working using Ibatis framework for 2 months, and it works quite well.
> But this morning, each time I'm initializing Ibatis configuration, parsing
> dao.xml and sql-map-config.xml files, I've got that exception :
>
> java.lang.ExceptionInInitializerError
>     at
> com.ibatis.sqlmap.engine.builder.xml.SqlMapConfigParser.<init>(SqlMapConfigParser.java:55)
>
> I cleaned my tomcat work directory, stop and start server x times, ... got
> the last runnig configuration.. and it still does not work..
> What hell did I make wrong ??
>
> Thx  4 u're help
> --
> View this message in context: http://www.nabble.com/unexpected-ExceptionInInitializerError-tf4771224.html#a13647996
> Sent from the iBATIS - User - Java mailing list archive at Nabble.com.
>
>

Re: AW: unexpected ExceptionInInitializerError

Posted by Jeremy Jardin <je...@gmail.com>.
hello,

I tried to create another Tomcat server.. and it works well !!
So, still don't know what was the pb with the older instance.. that was not
an ibatis pb ;-)
and thanks a lot 4 your help.

Jeremy



Christopher Lamey wrote:
> 
> If creating a new server config doesn't work, I would try building a war
> from the source and deploying that to a standalone tomcat instance.  It
> seems like the tomcat plugin and eclipse aren't playing well together.
> Maybe the plugin doesn't automatically add jars in the WEB-INF/lib
> directory
> to the classpath or something like that.
> 
> So if you can get the war to run in a standalone tomcat server, then you
> know it's the plugin and/or eclipse.  If you can't get it to run, you're
> then only dealing with a standalone tomcat instance and your warfile
> rather
> than tomcat, the warfile, the plugin, and eclipse.
> 
> And it still doesn't make sense that you had to put the dtds in a
> directory.
> The xml parser should have found them in the ibatis jars, even if your
> machine has no internet access.
> 
> What version of Java are you using?
> 
> And what xml libraries are you using?
> 
> On 11/9/07 10:25 AM, "Jeremy Jardin" <je...@gmail.com> wrote:
> 
>> 
>> so, 
>> 
>> I can't find any other jar out of the WEB-INF/lib directory..
>> and I'm using an eclipse plugin to start my tomcat. I'm using de EUROPA
>> version 
>> of eclipse, able to start a tomcat server. (and not the sysdeo plugin)
>> 
>> I don't think there's any pb with my eclipse environment, because the
>> exception appears
>> from the web pages...when my authentication servlet load ibatis conf.
>> I checked the directory
>> in which my webapp has been deployed..everything's alright, every libs
>> are
>> the good place..
>> 
>> maybe should I try to delete my server configuration and re-configurate a
>> new one..
>> 
>> 
>> 
>> 
>> Christopher Lamey wrote:
>>> 
>>> Are there ibatis or commons-logging jars anywhere else in Tomcat besides
>>> WEB-INF/lib?  For example, if you have an ibatis jar in the server/lib
>>> directory, it won't have visibility into WEB-INF/lib.
>>> 
>>> And are you running Tomcat through Eclipse via a plugin?  Or are you
>>> using
>>> Eclipse to develop the code and then deploying to Tomcat?
>>> 
>>> On 11/9/07 9:48 AM, "Jeremy Jardin" <je...@gmail.com> wrote:
>>> 
>>>> 
>>>> all of those jars are in the WEB-INF/lib directory.... where the  have
>>>> to
>>>> be
>>>> !
>>>> 
>>>> Ibatis version2.2 ./......
>>>> 
>>>> 
>>>> 
>>>> Christopher Lamey wrote:
>>>>> 
>>>>> Can you do these commands in the root of your Tomcat install?
>>>>> 
>>>>>     find . -name "*commons-logg*jar"
>>>>>     fina . -name "*ibatis*jar"
>>>>> 
>>>>> So we know what jars are where.
>>>>> 
>>>>> Also, what version of ibatis are you using?
>>>>> 
>>>>> Cheers,
>>>>> Chris
>>>>> 
>>>>> On 11/9/07 3:12 AM, "Jeremy Jardin" <je...@gmail.com> wrote:
>>>>> 
>>>>>> 
>>>>>> Of course, I have that lib.. That was the first thing I made sur
>>>>>> before
>>>>>> posting :)
>>>>>> 
>>>>>> I really don't understand !
>>>>>> maybe conflicts between common-logging and log4j ?
>>>>>> 
>>>>>> heeelp
>>>>>> 
>>>>>> 
>>>>>> charlie bird wrote:
>>>>>>> 
>>>>>>> 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.
>>>>>>> 
>>>>>>> Charlie 
>>>>>>> 
>>>>>>> --- Jeremy Jardin <je...@gmail.com> wrote:
>>>>>>> 
>>>>>>>> 
>>>>>>>> Hey, I've got something more..
>>>>>>>> I think a library is missing ...
>>>>>>>> 
>>>>>>>> I caught the Throwable exception et logged the cause
>>>>>>>> :
>>>>>>>> 
>>>>>>>> Caused by: java.lang.RuntimeException: Error
>>>>>>>> creating logger for class class
>>>>>>>> com.ibatis.sqlmap.engine.impl.SqlMapClientImpl.
>>>>>>>> Cause:
>>>>>>>> java.lang.reflect.InvocationTargetException
>>>>>>>>     at com.ibatis.common.logging.LogFactory.getLog
>>>>>>>> (LogFactory.java:33)
>>>>>>>>     at
>>>>>>>> 
>>>>>>> com.ibatis.sqlmap.engine.impl.SqlMapClientImpl.<clinit>(SqlMapClientImpl.
>>>>>>> ja
>>>>>>> va
>>>>>>> :41)
>>>>>>>>     ... 51 more
>>>>>>>> Caused by:
>>>>>>>> java.lang.reflect.InvocationTargetException
>>>>>>>>     at
>>>>>>>> 
>>>>>>> sun.reflect.NativeConstructorAccessorImpl.newInstance0
>>>>>>>> (Native
>>>>>>>> Method)
>>>>>>>>     at
>>>>>>>> 
>>>>>>> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAc
>>>>>>> ce
>>>>>>> ss
>>>>>>> orImpl.java:39)
>>>>>>>>     at
>>>>>>>> 
>>>>>>> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConst
>>>>>>> ru
>>>>>>> ct
>>>>>>> orAccessorImpl.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.<init>(Jakart
>>>>>>> aC
>>>>>>> om
>>>>>>> monsLoggingImpl.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.
>>>>>>>> Cause:
>>>>>>>> java.lang.reflect.InvocationTargetException
>>>>>>>>  WARN [http-8888-Processor24]
>>>>>>>> (RequestProcessor.java:528) - Unhandled
>>>>>>>> Exception thrown: class
>>>>>>>> 
>>>>>>> 
>>> fr.gouv.finances.douane.dnsce.oci.business.exception.DAOConfLoadingExceptio>>
>>> >>
>>> n
>>>>>>>> ERROR [http-8888-Processor24]
>>>>>>>> (ApplicationDispatcher.java:723) -
>>>>>>>> "Servlet.service()" pour la servlet action a lancé
>>>>>>>> une exception
>>>>>>>> 
>>>>>>>> 
>>>>>>>> 
>>>>>>>> Jeremy Jardin wrote:
>>>>>>>>> 
>>>>>>>>> 
>>>>>>>>> This is my doctype :
>>>>>>>>> <!DOCTYPE sqlMap PUBLIC "-//ibatis.apache.org//DTD
>>>>>>>> SQL Map 2.0//EN"
>>>>>>>>> "http://ibatis.apache.org/dtd/sql-map-2.dtd">
>>>>>>>>> 
>>>>>>>>> And the application is running with Tomcat
>>>>>>>> 5.5.23..
>>>>>>>>> 
>>>>>>>>> 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...
>>>>>>>>> 
>>>>>>>>> ...
>>>>>>>>> 
>>>>>>>>> 
>>>>>>>>> 
>>>>>>>>> nmaves wrote:
>>>>>>>>>> 
>>>>>>>>>> hmmm please ensure that you have the following
>>>>>>>>>> 
>>>>>>>>>> <!DOCTYPE sqlMapConfig PUBLIC "-//iBATIS.com//DTD
>>>>>>>> SQL Map Config 2.0//EN"
>>>>>>>>>> "
>>>>>>>>>> 
>>>>>>>> http://ibatis.apache.org/dtd/sql-map-config-2.dtd">
>>>>>>>>>> 
>>>>>>>>>> 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.
>>>>>>>>>> 
>>>>>>>>>> So please find out what version of tomcat you are
>>>>>>>> using?
>>>>>>>>>> 
>>>>>>>>>> 
>>>>>>>>>> Nathan
>>>>>>>>>> 
>>>>>>>>>> On Nov 9, 2007 12:41 AM, Jeremy Jardin
>>>>>>>> <je...@gmail.com> wrote:
>>>>>>>>>> 
>>>>>>>>>>> 
>>>>>>>>>>> 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
>>>>>>>> not work..
>>>>>>>>>>> 
>>>>>>>>>>> 
>>>>>>>>>>> 
>>>>>>>>>>> Larry Meadors-2 wrote:
>>>>>>>>>>>> 
>>>>>>>>>>>> Yeah, sorry w/o == without.
>>>>>>>>>>>> 
>>>>>>>>>>>> What does your JDK or app server use to read /
>>>>>>>> manage XML data?
>>>>>>>>>>>> 
>>>>>>>>>>>> Larry
>>>>>>>>>>>> 
>>>>>>>>>>>> 
>>>>>>>>>>>> On Nov 8, 2007 9:17 AM, Jeremy Jardin
>>>>>>>> <je...@gmail.com> 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
>>>>>>>> <je...@gmail.com>
>>>>>>>>>>> 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:
>>>>>>>> 
>>>>>>> === message truncated ===
>>>>>>> 
>>>>>>> 
>>>>>>> 
>>>>>>>       ___________________________________________________________
>>>>>>> Yahoo! Answers - Got a question? Someone out there knows the answer.
>>>>>>> Try
>>>>>>> it
>>>>>>> now.
>>>>>>> http://uk.answers.yahoo.com/
>>>>>>> 
>>>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>> 
>>> 
>>> 
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/unexpected-ExceptionInInitializerError-tf4771224.html#a13702599
Sent from the iBATIS - User - Java mailing list archive at Nabble.com.


Re: AW: unexpected ExceptionInInitializerError

Posted by Christopher Lamey <cl...@localmatters.com>.
If creating a new server config doesn't work, I would try building a war
from the source and deploying that to a standalone tomcat instance.  It
seems like the tomcat plugin and eclipse aren't playing well together.
Maybe the plugin doesn't automatically add jars in the WEB-INF/lib directory
to the classpath or something like that.

So if you can get the war to run in a standalone tomcat server, then you
know it's the plugin and/or eclipse.  If you can't get it to run, you're
then only dealing with a standalone tomcat instance and your warfile rather
than tomcat, the warfile, the plugin, and eclipse.

And it still doesn't make sense that you had to put the dtds in a directory.
The xml parser should have found them in the ibatis jars, even if your
machine has no internet access.

What version of Java are you using?

And what xml libraries are you using?

On 11/9/07 10:25 AM, "Jeremy Jardin" <je...@gmail.com> wrote:

> 
> so, 
> 
> I can't find any other jar out of the WEB-INF/lib directory..
> and I'm using an eclipse plugin to start my tomcat. I'm using de EUROPA
> version 
> of eclipse, able to start a tomcat server. (and not the sysdeo plugin)
> 
> I don't think there's any pb with my eclipse environment, because the
> exception appears
> from the web pages...when my authentication servlet load ibatis conf.
> I checked the directory
> in which my webapp has been deployed..everything's alright, every libs are
> the good place..
> 
> maybe should I try to delete my server configuration and re-configurate a
> new one..
> 
> 
> 
> 
> Christopher Lamey wrote:
>> 
>> Are there ibatis or commons-logging jars anywhere else in Tomcat besides
>> WEB-INF/lib?  For example, if you have an ibatis jar in the server/lib
>> directory, it won't have visibility into WEB-INF/lib.
>> 
>> And are you running Tomcat through Eclipse via a plugin?  Or are you using
>> Eclipse to develop the code and then deploying to Tomcat?
>> 
>> On 11/9/07 9:48 AM, "Jeremy Jardin" <je...@gmail.com> wrote:
>> 
>>> 
>>> all of those jars are in the WEB-INF/lib directory.... where the  have to
>>> be
>>> !
>>> 
>>> Ibatis version2.2 ./......
>>> 
>>> 
>>> 
>>> Christopher Lamey wrote:
>>>> 
>>>> Can you do these commands in the root of your Tomcat install?
>>>> 
>>>>     find . -name "*commons-logg*jar"
>>>>     fina . -name "*ibatis*jar"
>>>> 
>>>> So we know what jars are where.
>>>> 
>>>> Also, what version of ibatis are you using?
>>>> 
>>>> Cheers,
>>>> Chris
>>>> 
>>>> On 11/9/07 3:12 AM, "Jeremy Jardin" <je...@gmail.com> wrote:
>>>> 
>>>>> 
>>>>> Of course, I have that lib.. That was the first thing I made sur before
>>>>> posting :)
>>>>> 
>>>>> I really don't understand !
>>>>> maybe conflicts between common-logging and log4j ?
>>>>> 
>>>>> heeelp
>>>>> 
>>>>> 
>>>>> charlie bird wrote:
>>>>>> 
>>>>>> 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.
>>>>>> 
>>>>>> Charlie 
>>>>>> 
>>>>>> --- Jeremy Jardin <je...@gmail.com> wrote:
>>>>>> 
>>>>>>> 
>>>>>>> Hey, I've got something more..
>>>>>>> I think a library is missing ...
>>>>>>> 
>>>>>>> I caught the Throwable exception et logged the cause
>>>>>>> :
>>>>>>> 
>>>>>>> Caused by: java.lang.RuntimeException: Error
>>>>>>> creating logger for class class
>>>>>>> com.ibatis.sqlmap.engine.impl.SqlMapClientImpl.
>>>>>>> Cause:
>>>>>>> java.lang.reflect.InvocationTargetException
>>>>>>>     at com.ibatis.common.logging.LogFactory.getLog
>>>>>>> (LogFactory.java:33)
>>>>>>>     at
>>>>>>> 
>>>>>> com.ibatis.sqlmap.engine.impl.SqlMapClientImpl.<clinit>(SqlMapClientImpl.
>>>>>> ja
>>>>>> va
>>>>>> :41)
>>>>>>>     ... 51 more
>>>>>>> Caused by:
>>>>>>> java.lang.reflect.InvocationTargetException
>>>>>>>     at
>>>>>>> 
>>>>>> sun.reflect.NativeConstructorAccessorImpl.newInstance0
>>>>>>> (Native
>>>>>>> Method)
>>>>>>>     at
>>>>>>> 
>>>>>> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAc
>>>>>> ce
>>>>>> ss
>>>>>> orImpl.java:39)
>>>>>>>     at
>>>>>>> 
>>>>>> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConst
>>>>>> ru
>>>>>> ct
>>>>>> orAccessorImpl.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.<init>(Jakart
>>>>>> aC
>>>>>> om
>>>>>> monsLoggingImpl.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.
>>>>>>> Cause:
>>>>>>> java.lang.reflect.InvocationTargetException
>>>>>>>  WARN [http-8888-Processor24]
>>>>>>> (RequestProcessor.java:528) - Unhandled
>>>>>>> Exception thrown: class
>>>>>>> 
>>>>>> 
>> fr.gouv.finances.douane.dnsce.oci.business.exception.DAOConfLoadingExceptio>>
>> >>
>> n
>>>>>>> ERROR [http-8888-Processor24]
>>>>>>> (ApplicationDispatcher.java:723) -
>>>>>>> "Servlet.service()" pour la servlet action a lancé
>>>>>>> une exception
>>>>>>> 
>>>>>>> 
>>>>>>> 
>>>>>>> Jeremy Jardin wrote:
>>>>>>>> 
>>>>>>>> 
>>>>>>>> This is my doctype :
>>>>>>>> <!DOCTYPE sqlMap PUBLIC "-//ibatis.apache.org//DTD
>>>>>>> SQL Map 2.0//EN"
>>>>>>>> "http://ibatis.apache.org/dtd/sql-map-2.dtd">
>>>>>>>> 
>>>>>>>> And the application is running with Tomcat
>>>>>>> 5.5.23..
>>>>>>>> 
>>>>>>>> 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...
>>>>>>>> 
>>>>>>>> ...
>>>>>>>> 
>>>>>>>> 
>>>>>>>> 
>>>>>>>> nmaves wrote:
>>>>>>>>> 
>>>>>>>>> hmmm please ensure that you have the following
>>>>>>>>> 
>>>>>>>>> <!DOCTYPE sqlMapConfig PUBLIC "-//iBATIS.com//DTD
>>>>>>> SQL Map Config 2.0//EN"
>>>>>>>>> "
>>>>>>>>> 
>>>>>>> http://ibatis.apache.org/dtd/sql-map-config-2.dtd">
>>>>>>>>> 
>>>>>>>>> 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.
>>>>>>>>> 
>>>>>>>>> So please find out what version of tomcat you are
>>>>>>> using?
>>>>>>>>> 
>>>>>>>>> 
>>>>>>>>> Nathan
>>>>>>>>> 
>>>>>>>>> On Nov 9, 2007 12:41 AM, Jeremy Jardin
>>>>>>> <je...@gmail.com> wrote:
>>>>>>>>> 
>>>>>>>>>> 
>>>>>>>>>> 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
>>>>>>> not work..
>>>>>>>>>> 
>>>>>>>>>> 
>>>>>>>>>> 
>>>>>>>>>> Larry Meadors-2 wrote:
>>>>>>>>>>> 
>>>>>>>>>>> Yeah, sorry w/o == without.
>>>>>>>>>>> 
>>>>>>>>>>> What does your JDK or app server use to read /
>>>>>>> manage XML data?
>>>>>>>>>>> 
>>>>>>>>>>> Larry
>>>>>>>>>>> 
>>>>>>>>>>> 
>>>>>>>>>>> On Nov 8, 2007 9:17 AM, Jeremy Jardin
>>>>>>> <je...@gmail.com> 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
>>>>>>> <je...@gmail.com>
>>>>>>>>>> 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:
>>>>>>> 
>>>>>> === message truncated ===
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>>       ___________________________________________________________
>>>>>> Yahoo! Answers - Got a question? Someone out there knows the answer.
>>>>>> Try
>>>>>> it
>>>>>> now.
>>>>>> http://uk.answers.yahoo.com/
>>>>>> 
>>>>>> 
>>>> 
>>>> 
>>>> 
>> 
>> 
>> 


Re: AW: unexpected ExceptionInInitializerError

Posted by Jeremy Jardin <je...@gmail.com>.
so, 

I can't find any other jar out of the WEB-INF/lib directory..
and I'm using an eclipse plugin to start my tomcat. I'm using de EUROPA
version 
of eclipse, able to start a tomcat server. (and not the sysdeo plugin)

I don't think there's any pb with my eclipse environment, because the
exception appears
from the web pages...when my authentication servlet load ibatis conf.
I checked the directory
in which my webapp has been deployed..everything's alright, every libs are
the good place..

maybe should I try to delete my server configuration and re-configurate a
new one..




Christopher Lamey wrote:
> 
> Are there ibatis or commons-logging jars anywhere else in Tomcat besides
> WEB-INF/lib?  For example, if you have an ibatis jar in the server/lib
> directory, it won't have visibility into WEB-INF/lib.
> 
> And are you running Tomcat through Eclipse via a plugin?  Or are you using
> Eclipse to develop the code and then deploying to Tomcat?
> 
> On 11/9/07 9:48 AM, "Jeremy Jardin" <je...@gmail.com> wrote:
> 
>> 
>> all of those jars are in the WEB-INF/lib directory.... where the  have to
>> be
>> !
>> 
>> Ibatis version2.2 ./......
>> 
>> 
>> 
>> Christopher Lamey wrote:
>>> 
>>> Can you do these commands in the root of your Tomcat install?
>>> 
>>>     find . -name "*commons-logg*jar"
>>>     fina . -name "*ibatis*jar"
>>> 
>>> So we know what jars are where.
>>> 
>>> Also, what version of ibatis are you using?
>>> 
>>> Cheers,
>>> Chris
>>> 
>>> On 11/9/07 3:12 AM, "Jeremy Jardin" <je...@gmail.com> wrote:
>>> 
>>>> 
>>>> Of course, I have that lib.. That was the first thing I made sur before
>>>> posting :)
>>>> 
>>>> I really don't understand !
>>>> maybe conflicts between common-logging and log4j ?
>>>> 
>>>> heeelp
>>>> 
>>>> 
>>>> charlie bird wrote:
>>>>> 
>>>>> 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.
>>>>> 
>>>>> Charlie 
>>>>> 
>>>>> --- Jeremy Jardin <je...@gmail.com> wrote:
>>>>> 
>>>>>> 
>>>>>> Hey, I've got something more..
>>>>>> I think a library is missing ...
>>>>>> 
>>>>>> I caught the Throwable exception et logged the cause
>>>>>> :
>>>>>> 
>>>>>> Caused by: java.lang.RuntimeException: Error
>>>>>> creating logger for class class
>>>>>> com.ibatis.sqlmap.engine.impl.SqlMapClientImpl.
>>>>>> Cause:
>>>>>> java.lang.reflect.InvocationTargetException
>>>>>>     at com.ibatis.common.logging.LogFactory.getLog
>>>>>> (LogFactory.java:33)
>>>>>>     at
>>>>>> 
>>>>> com.ibatis.sqlmap.engine.impl.SqlMapClientImpl.<clinit>(SqlMapClientImpl.ja
>>>>> va
>>>>> :41)
>>>>>>     ... 51 more
>>>>>> Caused by:
>>>>>> java.lang.reflect.InvocationTargetException
>>>>>>     at
>>>>>> 
>>>>> sun.reflect.NativeConstructorAccessorImpl.newInstance0
>>>>>> (Native
>>>>>> Method)
>>>>>>     at
>>>>>> 
>>>>> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAcce
>>>>> ss
>>>>> orImpl.java:39)
>>>>>>     at
>>>>>> 
>>>>> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstru
>>>>> ct
>>>>> orAccessorImpl.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.<init>(JakartaC
>>>>> om
>>>>> monsLoggingImpl.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.
>>>>>> Cause:
>>>>>> java.lang.reflect.InvocationTargetException
>>>>>>  WARN [http-8888-Processor24]
>>>>>> (RequestProcessor.java:528) - Unhandled
>>>>>> Exception thrown: class
>>>>>> 
>>>>> 
> fr.gouv.finances.douane.dnsce.oci.business.exception.DAOConfLoadingExceptio>>>>
> n
>>>>>> ERROR [http-8888-Processor24]
>>>>>> (ApplicationDispatcher.java:723) -
>>>>>> "Servlet.service()" pour la servlet action a lancé
>>>>>> une exception
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> Jeremy Jardin wrote:
>>>>>>> 
>>>>>>> 
>>>>>>> This is my doctype :
>>>>>>> <!DOCTYPE sqlMap PUBLIC "-//ibatis.apache.org//DTD
>>>>>> SQL Map 2.0//EN"
>>>>>>> "http://ibatis.apache.org/dtd/sql-map-2.dtd">
>>>>>>> 
>>>>>>> And the application is running with Tomcat
>>>>>> 5.5.23..
>>>>>>> 
>>>>>>> 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...
>>>>>>> 
>>>>>>> ...
>>>>>>> 
>>>>>>> 
>>>>>>> 
>>>>>>> nmaves wrote:
>>>>>>>> 
>>>>>>>> hmmm please ensure that you have the following
>>>>>>>> 
>>>>>>>> <!DOCTYPE sqlMapConfig PUBLIC "-//iBATIS.com//DTD
>>>>>> SQL Map Config 2.0//EN"
>>>>>>>> "
>>>>>>>> 
>>>>>> http://ibatis.apache.org/dtd/sql-map-config-2.dtd">
>>>>>>>> 
>>>>>>>> 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.
>>>>>>>> 
>>>>>>>> So please find out what version of tomcat you are
>>>>>> using?
>>>>>>>> 
>>>>>>>> 
>>>>>>>> Nathan
>>>>>>>> 
>>>>>>>> On Nov 9, 2007 12:41 AM, Jeremy Jardin
>>>>>> <je...@gmail.com> wrote:
>>>>>>>> 
>>>>>>>>> 
>>>>>>>>> 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
>>>>>> not work..
>>>>>>>>> 
>>>>>>>>> 
>>>>>>>>> 
>>>>>>>>> Larry Meadors-2 wrote:
>>>>>>>>>> 
>>>>>>>>>> Yeah, sorry w/o == without.
>>>>>>>>>> 
>>>>>>>>>> What does your JDK or app server use to read /
>>>>>> manage XML data?
>>>>>>>>>> 
>>>>>>>>>> Larry
>>>>>>>>>> 
>>>>>>>>>> 
>>>>>>>>>> On Nov 8, 2007 9:17 AM, Jeremy Jardin
>>>>>> <je...@gmail.com> 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
>>>>>> <je...@gmail.com>
>>>>>>>>> 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:
>>>>>> 
>>>>> === message truncated ===
>>>>> 
>>>>> 
>>>>> 
>>>>>       ___________________________________________________________
>>>>> Yahoo! Answers - Got a question? Someone out there knows the answer.
>>>>> Try
>>>>> it
>>>>> now.
>>>>> http://uk.answers.yahoo.com/
>>>>> 
>>>>> 
>>> 
>>> 
>>> 
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/unexpected-ExceptionInInitializerError-tf4771224.html#a13671463
Sent from the iBATIS - User - Java mailing list archive at Nabble.com.


Re: AW: unexpected ExceptionInInitializerError

Posted by Christopher Lamey <cl...@localmatters.com>.
Are there ibatis or commons-logging jars anywhere else in Tomcat besides
WEB-INF/lib?  For example, if you have an ibatis jar in the server/lib
directory, it won't have visibility into WEB-INF/lib.

And are you running Tomcat through Eclipse via a plugin?  Or are you using
Eclipse to develop the code and then deploying to Tomcat?

On 11/9/07 9:48 AM, "Jeremy Jardin" <je...@gmail.com> wrote:

> 
> all of those jars are in the WEB-INF/lib directory.... where the  have to be
> !
> 
> Ibatis version2.2 ./......
> 
> 
> 
> Christopher Lamey wrote:
>> 
>> Can you do these commands in the root of your Tomcat install?
>> 
>>     find . -name "*commons-logg*jar"
>>     fina . -name "*ibatis*jar"
>> 
>> So we know what jars are where.
>> 
>> Also, what version of ibatis are you using?
>> 
>> Cheers,
>> Chris
>> 
>> On 11/9/07 3:12 AM, "Jeremy Jardin" <je...@gmail.com> wrote:
>> 
>>> 
>>> Of course, I have that lib.. That was the first thing I made sur before
>>> posting :)
>>> 
>>> I really don't understand !
>>> maybe conflicts between common-logging and log4j ?
>>> 
>>> heeelp
>>> 
>>> 
>>> charlie bird wrote:
>>>> 
>>>> 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.
>>>> 
>>>> Charlie 
>>>> 
>>>> --- Jeremy Jardin <je...@gmail.com> wrote:
>>>> 
>>>>> 
>>>>> Hey, I've got something more..
>>>>> I think a library is missing ...
>>>>> 
>>>>> I caught the Throwable exception et logged the cause
>>>>> :
>>>>> 
>>>>> Caused by: java.lang.RuntimeException: Error
>>>>> creating logger for class class
>>>>> com.ibatis.sqlmap.engine.impl.SqlMapClientImpl.
>>>>> Cause:
>>>>> java.lang.reflect.InvocationTargetException
>>>>>     at com.ibatis.common.logging.LogFactory.getLog
>>>>> (LogFactory.java:33)
>>>>>     at
>>>>> 
>>>> com.ibatis.sqlmap.engine.impl.SqlMapClientImpl.<clinit>(SqlMapClientImpl.ja
>>>> va
>>>> :41)
>>>>>     ... 51 more
>>>>> Caused by:
>>>>> java.lang.reflect.InvocationTargetException
>>>>>     at
>>>>> 
>>>> sun.reflect.NativeConstructorAccessorImpl.newInstance0
>>>>> (Native
>>>>> Method)
>>>>>     at
>>>>> 
>>>> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAcce
>>>> ss
>>>> orImpl.java:39)
>>>>>     at
>>>>> 
>>>> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstru
>>>> ct
>>>> orAccessorImpl.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.<init>(JakartaC
>>>> om
>>>> monsLoggingImpl.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.
>>>>> Cause:
>>>>> java.lang.reflect.InvocationTargetException
>>>>>  WARN [http-8888-Processor24]
>>>>> (RequestProcessor.java:528) - Unhandled
>>>>> Exception thrown: class
>>>>> 
>>>> 
fr.gouv.finances.douane.dnsce.oci.business.exception.DAOConfLoadingExceptio>>>>
n
>>>>> ERROR [http-8888-Processor24]
>>>>> (ApplicationDispatcher.java:723) -
>>>>> "Servlet.service()" pour la servlet action a lancé
>>>>> une exception
>>>>> 
>>>>> 
>>>>> 
>>>>> Jeremy Jardin wrote:
>>>>>> 
>>>>>> 
>>>>>> This is my doctype :
>>>>>> <!DOCTYPE sqlMap PUBLIC "-//ibatis.apache.org//DTD
>>>>> SQL Map 2.0//EN"
>>>>>> "http://ibatis.apache.org/dtd/sql-map-2.dtd">
>>>>>> 
>>>>>> And the application is running with Tomcat
>>>>> 5.5.23..
>>>>>> 
>>>>>> 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...
>>>>>> 
>>>>>> ...
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> nmaves wrote:
>>>>>>> 
>>>>>>> hmmm please ensure that you have the following
>>>>>>> 
>>>>>>> <!DOCTYPE sqlMapConfig PUBLIC "-//iBATIS.com//DTD
>>>>> SQL Map Config 2.0//EN"
>>>>>>> "
>>>>>>> 
>>>>> http://ibatis.apache.org/dtd/sql-map-config-2.dtd">
>>>>>>> 
>>>>>>> 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.
>>>>>>> 
>>>>>>> So please find out what version of tomcat you are
>>>>> using?
>>>>>>> 
>>>>>>> 
>>>>>>> Nathan
>>>>>>> 
>>>>>>> On Nov 9, 2007 12:41 AM, Jeremy Jardin
>>>>> <je...@gmail.com> wrote:
>>>>>>> 
>>>>>>>> 
>>>>>>>> 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
>>>>> not work..
>>>>>>>> 
>>>>>>>> 
>>>>>>>> 
>>>>>>>> Larry Meadors-2 wrote:
>>>>>>>>> 
>>>>>>>>> Yeah, sorry w/o == without.
>>>>>>>>> 
>>>>>>>>> What does your JDK or app server use to read /
>>>>> manage XML data?
>>>>>>>>> 
>>>>>>>>> Larry
>>>>>>>>> 
>>>>>>>>> 
>>>>>>>>> On Nov 8, 2007 9:17 AM, Jeremy Jardin
>>>>> <je...@gmail.com> 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
>>>>> <je...@gmail.com>
>>>>>>>> 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:
>>>>> 
>>>> === message truncated ===
>>>> 
>>>> 
>>>> 
>>>>       ___________________________________________________________
>>>> Yahoo! Answers - Got a question? Someone out there knows the answer. Try
>>>> it
>>>> now.
>>>> http://uk.answers.yahoo.com/
>>>> 
>>>> 
>> 
>> 
>> 


Re: AW: unexpected ExceptionInInitializerError

Posted by Jeremy Jardin <je...@gmail.com>.
all of those jars are in the WEB-INF/lib directory.... where the  have to be
!

Ibatis version2.2 ./......



Christopher Lamey wrote:
> 
> Can you do these commands in the root of your Tomcat install?
> 
>     find . -name "*commons-logg*jar"
>     fina . -name "*ibatis*jar"
> 
> So we know what jars are where.
> 
> Also, what version of ibatis are you using?
> 
> Cheers,
> Chris
> 
> On 11/9/07 3:12 AM, "Jeremy Jardin" <je...@gmail.com> wrote:
> 
>> 
>> Of course, I have that lib.. That was the first thing I made sur before
>> posting :)
>> 
>> I really don't understand !
>> maybe conflicts between common-logging and log4j ?
>> 
>> heeelp
>> 
>> 
>> charlie bird wrote:
>>> 
>>> 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.
>>> 
>>> Charlie 
>>> 
>>> --- Jeremy Jardin <je...@gmail.com> wrote:
>>> 
>>>> 
>>>> Hey, I've got something more..
>>>> I think a library is missing ...
>>>> 
>>>> I caught the Throwable exception et logged the cause
>>>> :
>>>> 
>>>> Caused by: java.lang.RuntimeException: Error
>>>> creating logger for class class
>>>> com.ibatis.sqlmap.engine.impl.SqlMapClientImpl.
>>>> Cause:
>>>> java.lang.reflect.InvocationTargetException
>>>>     at com.ibatis.common.logging.LogFactory.getLog
>>>> (LogFactory.java:33)
>>>>     at
>>>> 
>>> com.ibatis.sqlmap.engine.impl.SqlMapClientImpl.<clinit>(SqlMapClientImpl.java
>>> :41)
>>>>     ... 51 more
>>>> Caused by:
>>>> java.lang.reflect.InvocationTargetException
>>>>     at
>>>> 
>>> sun.reflect.NativeConstructorAccessorImpl.newInstance0
>>>> (Native
>>>> Method)
>>>>     at
>>>> 
>>> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccess
>>> orImpl.java:39)
>>>>     at
>>>> 
>>> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstruct
>>> orAccessorImpl.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.<init>(JakartaCom
>>> monsLoggingImpl.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.
>>>> Cause:
>>>> java.lang.reflect.InvocationTargetException
>>>>  WARN [http-8888-Processor24]
>>>> (RequestProcessor.java:528) - Unhandled
>>>> Exception thrown: class
>>>> 
>>> fr.gouv.finances.douane.dnsce.oci.business.exception.DAOConfLoadingException
>>>> ERROR [http-8888-Processor24]
>>>> (ApplicationDispatcher.java:723) -
>>>> "Servlet.service()" pour la servlet action a lancé
>>>> une exception
>>>> 
>>>> 
>>>> 
>>>> Jeremy Jardin wrote:
>>>>> 
>>>>> 
>>>>> This is my doctype :
>>>>> <!DOCTYPE sqlMap PUBLIC "-//ibatis.apache.org//DTD
>>>> SQL Map 2.0//EN"
>>>>> "http://ibatis.apache.org/dtd/sql-map-2.dtd">
>>>>> 
>>>>> And the application is running with Tomcat
>>>> 5.5.23..
>>>>> 
>>>>> 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...
>>>>> 
>>>>> ...
>>>>> 
>>>>> 
>>>>> 
>>>>> nmaves wrote:
>>>>>> 
>>>>>> hmmm please ensure that you have the following
>>>>>> 
>>>>>> <!DOCTYPE sqlMapConfig PUBLIC "-//iBATIS.com//DTD
>>>> SQL Map Config 2.0//EN"
>>>>>> "
>>>>>> 
>>>> http://ibatis.apache.org/dtd/sql-map-config-2.dtd">
>>>>>> 
>>>>>> 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.
>>>>>> 
>>>>>> So please find out what version of tomcat you are
>>>> using?
>>>>>> 
>>>>>> 
>>>>>> Nathan
>>>>>> 
>>>>>> On Nov 9, 2007 12:41 AM, Jeremy Jardin
>>>> <je...@gmail.com> wrote:
>>>>>> 
>>>>>>> 
>>>>>>> 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
>>>> not work..
>>>>>>> 
>>>>>>> 
>>>>>>> 
>>>>>>> Larry Meadors-2 wrote:
>>>>>>>> 
>>>>>>>> Yeah, sorry w/o == without.
>>>>>>>> 
>>>>>>>> What does your JDK or app server use to read /
>>>> manage XML data?
>>>>>>>> 
>>>>>>>> Larry
>>>>>>>> 
>>>>>>>> 
>>>>>>>> On Nov 8, 2007 9:17 AM, Jeremy Jardin
>>>> <je...@gmail.com> 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
>>>> <je...@gmail.com>
>>>>>>> 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:
>>>> 
>>> === message truncated ===
>>> 
>>> 
>>> 
>>>       ___________________________________________________________
>>> Yahoo! Answers - Got a question? Someone out there knows the answer. Try
>>> it
>>> now.
>>> http://uk.answers.yahoo.com/
>>> 
>>> 
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/unexpected-ExceptionInInitializerError-tf4771224.html#a13670710
Sent from the iBATIS - User - Java mailing list archive at Nabble.com.


Re: AW: unexpected ExceptionInInitializerError

Posted by Christopher Lamey <cl...@localmatters.com>.
Can you do these commands in the root of your Tomcat install?

    find . -name "*commons-logg*jar"
    fina . -name "*ibatis*jar"

So we know what jars are where.

Also, what version of ibatis are you using?

Cheers,
Chris

On 11/9/07 3:12 AM, "Jeremy Jardin" <je...@gmail.com> wrote:

> 
> Of course, I have that lib.. That was the first thing I made sur before
> posting :)
> 
> I really don't understand !
> maybe conflicts between common-logging and log4j ?
> 
> heeelp
> 
> 
> charlie bird wrote:
>> 
>> 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.
>> 
>> Charlie 
>> 
>> --- Jeremy Jardin <je...@gmail.com> wrote:
>> 
>>> 
>>> Hey, I've got something more..
>>> I think a library is missing ...
>>> 
>>> I caught the Throwable exception et logged the cause
>>> :
>>> 
>>> Caused by: java.lang.RuntimeException: Error
>>> creating logger for class class
>>> com.ibatis.sqlmap.engine.impl.SqlMapClientImpl.
>>> Cause:
>>> java.lang.reflect.InvocationTargetException
>>>     at com.ibatis.common.logging.LogFactory.getLog
>>> (LogFactory.java:33)
>>>     at
>>> 
>> com.ibatis.sqlmap.engine.impl.SqlMapClientImpl.<clinit>(SqlMapClientImpl.java
>> :41)
>>>     ... 51 more
>>> Caused by:
>>> java.lang.reflect.InvocationTargetException
>>>     at
>>> 
>> sun.reflect.NativeConstructorAccessorImpl.newInstance0
>>> (Native
>>> Method)
>>>     at
>>> 
>> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccess
>> orImpl.java:39)
>>>     at
>>> 
>> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstruct
>> orAccessorImpl.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.<init>(JakartaCom
>> monsLoggingImpl.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.
>>> Cause:
>>> java.lang.reflect.InvocationTargetException
>>>  WARN [http-8888-Processor24]
>>> (RequestProcessor.java:528) - Unhandled
>>> Exception thrown: class
>>> 
>> fr.gouv.finances.douane.dnsce.oci.business.exception.DAOConfLoadingException
>>> ERROR [http-8888-Processor24]
>>> (ApplicationDispatcher.java:723) -
>>> "Servlet.service()" pour la servlet action a lancé
>>> une exception
>>> 
>>> 
>>> 
>>> Jeremy Jardin wrote:
>>>> 
>>>> 
>>>> This is my doctype :
>>>> <!DOCTYPE sqlMap PUBLIC "-//ibatis.apache.org//DTD
>>> SQL Map 2.0//EN"
>>>> "http://ibatis.apache.org/dtd/sql-map-2.dtd">
>>>> 
>>>> And the application is running with Tomcat
>>> 5.5.23..
>>>> 
>>>> 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...
>>>> 
>>>> ...
>>>> 
>>>> 
>>>> 
>>>> nmaves wrote:
>>>>> 
>>>>> hmmm please ensure that you have the following
>>>>> 
>>>>> <!DOCTYPE sqlMapConfig PUBLIC "-//iBATIS.com//DTD
>>> SQL Map Config 2.0//EN"
>>>>> "
>>>>> 
>>> http://ibatis.apache.org/dtd/sql-map-config-2.dtd">
>>>>> 
>>>>> 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.
>>>>> 
>>>>> So please find out what version of tomcat you are
>>> using?
>>>>> 
>>>>> 
>>>>> Nathan
>>>>> 
>>>>> On Nov 9, 2007 12:41 AM, Jeremy Jardin
>>> <je...@gmail.com> wrote:
>>>>> 
>>>>>> 
>>>>>> 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
>>> not work..
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> Larry Meadors-2 wrote:
>>>>>>> 
>>>>>>> Yeah, sorry w/o == without.
>>>>>>> 
>>>>>>> What does your JDK or app server use to read /
>>> manage XML data?
>>>>>>> 
>>>>>>> Larry
>>>>>>> 
>>>>>>> 
>>>>>>> On Nov 8, 2007 9:17 AM, Jeremy Jardin
>>> <je...@gmail.com> 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
>>> <je...@gmail.com>
>>>>>> 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:
>>> 
>> === message truncated ===
>> 
>> 
>> 
>>       ___________________________________________________________
>> Yahoo! Answers - Got a question? Someone out there knows the answer. Try
>> it
>> now.
>> http://uk.answers.yahoo.com/
>> 
>> 


Re: AW: unexpected ExceptionInInitializerError

Posted by Jeremy Jardin <je...@gmail.com>.
anyone ?

:-(



Jeremy Jardin wrote:
> 
> Of course, I have that lib.. That was the first thing I made sur before
> posting :)
> 
> I really don't understand !
> maybe conflicts between common-logging and log4j ?
> 
> heeelp
> 
> 
> charlie bird wrote:
>> 
>> 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.
>> 
>> Charlie 
>> 
>> --- Jeremy Jardin <je...@gmail.com> wrote:
>> 
>>> 
>>> Hey, I've got something more..
>>> I think a library is missing ... 
>>> 
>>> I caught the Throwable exception et logged the cause
>>> :
>>> 
>>> Caused by: java.lang.RuntimeException: Error
>>> creating logger for class class
>>> com.ibatis.sqlmap.engine.impl.SqlMapClientImpl. 
>>> Cause:
>>> java.lang.reflect.InvocationTargetException
>>>     at com.ibatis.common.logging.LogFactory.getLog
>>> (LogFactory.java:33)
>>>     at
>>>
>> com.ibatis.sqlmap.engine.impl.SqlMapClientImpl.<clinit>(SqlMapClientImpl.java:41)
>>>     ... 51 more
>>> Caused by:
>>> java.lang.reflect.InvocationTargetException
>>>     at
>>>
>> sun.reflect.NativeConstructorAccessorImpl.newInstance0
>>> (Native
>>> Method)
>>>     at
>>>
>> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
>>>     at
>>>
>> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.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.<init>(JakartaCommonsLoggingImpl.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. 
>>> Cause:
>>> java.lang.reflect.InvocationTargetException
>>>  WARN [http-8888-Processor24]
>>> (RequestProcessor.java:528) - Unhandled
>>> Exception thrown: class
>>>
>> fr.gouv.finances.douane.dnsce.oci.business.exception.DAOConfLoadingException
>>> ERROR [http-8888-Processor24]
>>> (ApplicationDispatcher.java:723) -
>>> "Servlet.service()" pour la servlet action a lancé
>>> une exception
>>> 
>>> 
>>> 
>>> Jeremy Jardin wrote:
>>> > 
>>> > 
>>> > This is my doctype :
>>> > <!DOCTYPE sqlMap PUBLIC "-//ibatis.apache.org//DTD
>>> SQL Map 2.0//EN"
>>> > "http://ibatis.apache.org/dtd/sql-map-2.dtd">
>>> > 
>>> > And the application is running with Tomcat
>>> 5.5.23..
>>> > 
>>> > 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... 
>>> > 
>>> > ...
>>> > 
>>> > 
>>> > 
>>> > nmaves wrote:
>>> >> 
>>> >> hmmm please ensure that you have the following
>>> >> 
>>> >> <!DOCTYPE sqlMapConfig PUBLIC "-//iBATIS.com//DTD
>>> SQL Map Config 2.0//EN"
>>> >> "
>>> >>
>>> http://ibatis.apache.org/dtd/sql-map-config-2.dtd">
>>> >> 
>>> >> 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.
>>> >> 
>>> >> So please find out what version of tomcat you are
>>> using?
>>> >> 
>>> >> 
>>> >> Nathan
>>> >> 
>>> >> On Nov 9, 2007 12:41 AM, Jeremy Jardin
>>> <je...@gmail.com> wrote:
>>> >> 
>>> >>>
>>> >>> 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 
>>> not work..
>>> >>>
>>> >>>
>>> >>>
>>> >>> Larry Meadors-2 wrote:
>>> >>> >
>>> >>> > Yeah, sorry w/o == without.
>>> >>> >
>>> >>> > What does your JDK or app server use to read /
>>> manage XML data?
>>> >>> >
>>> >>> > Larry
>>> >>> >
>>> >>> >
>>> >>> > On Nov 8, 2007 9:17 AM, Jeremy Jardin
>>> <je...@gmail.com> 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
>>> <je...@gmail.com>
>>> >>> 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:
>>> 
>> === message truncated ===
>> 
>> 
>> 
>>       ___________________________________________________________
>> Yahoo! Answers - Got a question? Someone out there knows the answer. Try
>> it
>> now.
>> http://uk.answers.yahoo.com/ 
>> 
>> 
> 
> 

-- 
View this message in context: http://www.nabble.com/unexpected-ExceptionInInitializerError-tf4771224.html#a13668746
Sent from the iBATIS - User - Java mailing list archive at Nabble.com.


Re: AW: unexpected ExceptionInInitializerError

Posted by Jeremy Jardin <je...@gmail.com>.
Of course, I have that lib.. That was the first thing I made sur before
posting :)

I really don't understand !
maybe conflicts between common-logging and log4j ?

heeelp


charlie bird wrote:
> 
> 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.
> 
> Charlie 
> 
> --- Jeremy Jardin <je...@gmail.com> wrote:
> 
>> 
>> Hey, I've got something more..
>> I think a library is missing ... 
>> 
>> I caught the Throwable exception et logged the cause
>> :
>> 
>> Caused by: java.lang.RuntimeException: Error
>> creating logger for class class
>> com.ibatis.sqlmap.engine.impl.SqlMapClientImpl. 
>> Cause:
>> java.lang.reflect.InvocationTargetException
>>     at com.ibatis.common.logging.LogFactory.getLog
>> (LogFactory.java:33)
>>     at
>>
> com.ibatis.sqlmap.engine.impl.SqlMapClientImpl.<clinit>(SqlMapClientImpl.java:41)
>>     ... 51 more
>> Caused by:
>> java.lang.reflect.InvocationTargetException
>>     at
>>
> sun.reflect.NativeConstructorAccessorImpl.newInstance0
>> (Native
>> Method)
>>     at
>>
> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
>>     at
>>
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.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.<init>(JakartaCommonsLoggingImpl.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. 
>> Cause:
>> java.lang.reflect.InvocationTargetException
>>  WARN [http-8888-Processor24]
>> (RequestProcessor.java:528) - Unhandled
>> Exception thrown: class
>>
> fr.gouv.finances.douane.dnsce.oci.business.exception.DAOConfLoadingException
>> ERROR [http-8888-Processor24]
>> (ApplicationDispatcher.java:723) -
>> "Servlet.service()" pour la servlet action a lancé
>> une exception
>> 
>> 
>> 
>> Jeremy Jardin wrote:
>> > 
>> > 
>> > This is my doctype :
>> > <!DOCTYPE sqlMap PUBLIC "-//ibatis.apache.org//DTD
>> SQL Map 2.0//EN"
>> > "http://ibatis.apache.org/dtd/sql-map-2.dtd">
>> > 
>> > And the application is running with Tomcat
>> 5.5.23..
>> > 
>> > 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... 
>> > 
>> > ...
>> > 
>> > 
>> > 
>> > nmaves wrote:
>> >> 
>> >> hmmm please ensure that you have the following
>> >> 
>> >> <!DOCTYPE sqlMapConfig PUBLIC "-//iBATIS.com//DTD
>> SQL Map Config 2.0//EN"
>> >> "
>> >>
>> http://ibatis.apache.org/dtd/sql-map-config-2.dtd">
>> >> 
>> >> 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.
>> >> 
>> >> So please find out what version of tomcat you are
>> using?
>> >> 
>> >> 
>> >> Nathan
>> >> 
>> >> On Nov 9, 2007 12:41 AM, Jeremy Jardin
>> <je...@gmail.com> wrote:
>> >> 
>> >>>
>> >>> 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 
>> not work..
>> >>>
>> >>>
>> >>>
>> >>> Larry Meadors-2 wrote:
>> >>> >
>> >>> > Yeah, sorry w/o == without.
>> >>> >
>> >>> > What does your JDK or app server use to read /
>> manage XML data?
>> >>> >
>> >>> > Larry
>> >>> >
>> >>> >
>> >>> > On Nov 8, 2007 9:17 AM, Jeremy Jardin
>> <je...@gmail.com> 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
>> <je...@gmail.com>
>> >>> 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:
>> 
> === message truncated ===
> 
> 
> 
>       ___________________________________________________________
> Yahoo! Answers - Got a question? Someone out there knows the answer. Try
> it
> now.
> http://uk.answers.yahoo.com/ 
> 
> 

-- 
View this message in context: http://www.nabble.com/unexpected-ExceptionInInitializerError-tf4771224.html#a13664305
Sent from the iBATIS - User - Java mailing list archive at Nabble.com.


Re: AW: unexpected ExceptionInInitializerError

Posted by charlie bird <ze...@yahoo.co.uk>.
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.

Charlie 

--- Jeremy Jardin <je...@gmail.com> wrote:

> 
> Hey, I've got something more..
> I think a library is missing ... 
> 
> I caught the Throwable exception et logged the cause
> :
> 
> Caused by: java.lang.RuntimeException: Error
> creating logger for class class
> com.ibatis.sqlmap.engine.impl.SqlMapClientImpl. 
> Cause:
> java.lang.reflect.InvocationTargetException
>     at com.ibatis.common.logging.LogFactory.getLog
> (LogFactory.java:33)
>     at
>
com.ibatis.sqlmap.engine.impl.SqlMapClientImpl.<clinit>(SqlMapClientImpl.java:41)
>     ... 51 more
> Caused by:
> java.lang.reflect.InvocationTargetException
>     at
>
sun.reflect.NativeConstructorAccessorImpl.newInstance0
> (Native
> Method)
>     at
>
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
>     at
>
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.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.<init>(JakartaCommonsLoggingImpl.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. 
> Cause:
> java.lang.reflect.InvocationTargetException
>  WARN [http-8888-Processor24]
> (RequestProcessor.java:528) - Unhandled
> Exception thrown: class
>
fr.gouv.finances.douane.dnsce.oci.business.exception.DAOConfLoadingException
> ERROR [http-8888-Processor24]
> (ApplicationDispatcher.java:723) -
> "Servlet.service()" pour la servlet action a lancé
> une exception
> 
> 
> 
> Jeremy Jardin wrote:
> > 
> > 
> > This is my doctype :
> > <!DOCTYPE sqlMap PUBLIC "-//ibatis.apache.org//DTD
> SQL Map 2.0//EN"
> > "http://ibatis.apache.org/dtd/sql-map-2.dtd">
> > 
> > And the application is running with Tomcat
> 5.5.23..
> > 
> > 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... 
> > 
> > ...
> > 
> > 
> > 
> > nmaves wrote:
> >> 
> >> hmmm please ensure that you have the following
> >> 
> >> <!DOCTYPE sqlMapConfig PUBLIC "-//iBATIS.com//DTD
> SQL Map Config 2.0//EN"
> >> "
> >>
> http://ibatis.apache.org/dtd/sql-map-config-2.dtd">
> >> 
> >> 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.
> >> 
> >> So please find out what version of tomcat you are
> using?
> >> 
> >> 
> >> Nathan
> >> 
> >> On Nov 9, 2007 12:41 AM, Jeremy Jardin
> <je...@gmail.com> wrote:
> >> 
> >>>
> >>> 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 
> not work..
> >>>
> >>>
> >>>
> >>> Larry Meadors-2 wrote:
> >>> >
> >>> > Yeah, sorry w/o == without.
> >>> >
> >>> > What does your JDK or app server use to read /
> manage XML data?
> >>> >
> >>> > Larry
> >>> >
> >>> >
> >>> > On Nov 8, 2007 9:17 AM, Jeremy Jardin
> <je...@gmail.com> 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
> <je...@gmail.com>
> >>> 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:
> 
=== message truncated ===



      ___________________________________________________________
Yahoo! Answers - Got a question? Someone out there knows the answer. Try it
now.
http://uk.answers.yahoo.com/ 

Re: AW: unexpected ExceptionInInitializerError

Posted by Jeremy Jardin <je...@gmail.com>.
Hey, I've got something more..
I think a library is missing ... 

I caught the Throwable exception et logged the cause :

Caused by: java.lang.RuntimeException: Error creating logger for class class
com.ibatis.sqlmap.engine.impl.SqlMapClientImpl.  Cause:
java.lang.reflect.InvocationTargetException
    at com.ibatis.common.logging.LogFactory.getLog (LogFactory.java:33)
    at
com.ibatis.sqlmap.engine.impl.SqlMapClientImpl.<clinit>(SqlMapClientImpl.java:41)
    ... 51 more
Caused by: java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0 (Native
Method)
    at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
    at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.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.<init>(JakartaCommonsLoggingImpl.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.  Cause:
java.lang.reflect.InvocationTargetException
 WARN [http-8888-Processor24] (RequestProcessor.java:528) - Unhandled
Exception thrown: class
fr.gouv.finances.douane.dnsce.oci.business.exception.DAOConfLoadingException
ERROR [http-8888-Processor24] (ApplicationDispatcher.java:723) -
"Servlet.service()" pour la servlet action a lancé une exception



Jeremy Jardin wrote:
> 
> 
> This is my doctype :
> <!DOCTYPE sqlMap PUBLIC "-//ibatis.apache.org//DTD SQL Map 2.0//EN"
> "http://ibatis.apache.org/dtd/sql-map-2.dtd">
> 
> And the application is running with Tomcat 5.5.23..
> 
> 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... 
> 
> ...
> 
> 
> 
> nmaves wrote:
>> 
>> hmmm please ensure that you have the following
>> 
>> <!DOCTYPE sqlMapConfig PUBLIC "-//iBATIS.com//DTD SQL Map Config 2.0//EN"
>> "
>> http://ibatis.apache.org/dtd/sql-map-config-2.dtd">
>> 
>> 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.
>> 
>> So please find out what version of tomcat you are using?
>> 
>> 
>> Nathan
>> 
>> On Nov 9, 2007 12:41 AM, Jeremy Jardin <je...@gmail.com> wrote:
>> 
>>>
>>> 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  not work..
>>>
>>>
>>>
>>> Larry Meadors-2 wrote:
>>> >
>>> > Yeah, sorry w/o == without.
>>> >
>>> > What does your JDK or app server use to read / manage XML data?
>>> >
>>> > Larry
>>> >
>>> >
>>> > On Nov 8, 2007 9:17 AM, Jeremy Jardin <je...@gmail.com> 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 <je...@gmail.com>
>>> 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:
>>> >> >> >
>>> >> >> > What's with that DTD?
>>> >> >> >
>>> >> >> > Your server won't be up when that request is made, and if you
>>> use
>>> >> the
>>> >> >> > ibatis.apache.org DTD, it'll be resolved from the JAR, not over
>>> the
>>> >> >> > net.
>>> >> >> >
>>> >> >> > Larry
>>> >> >> >
>>> >> >> >
>>> >> >> > On Nov 8, 2007 8:34 AM, Jeremy Jardin <je...@gmail.com>
>>> >> wrote:
>>> >> >> >>
>>> >> >> >>
>>> >> >> >> so, the sql map config :
>>> >> >> >>
>>> >> >> >> <?xml version="1.0" encoding="utf-8" ?>
>>> >> >> >> <!DOCTYPE sqlMapConfig
>>> >> >> >>   PUBLIC "-//iBATIS.com//DTD SQL Map Config 2.0//EN"
>>> >> >> >>   " http://localhost:8888/oci/sql-map-config-2.dtd">
>>> >> >> >>
>>> >> >> >> <sqlMapConfig>
>>> >> >> >>     <properties resource="conf/oci.properties" />
>>> >> >> >>     <settings cacheModelsEnabled="true"
>>> enhancementEnabled="true"
>>> >> >> >>         lazyLoadingEnabled="true" maxRequests="32"
>>> maxSessions="10"
>>> >> >> >>         maxTransactions="5" useStatementNamespaces="true" />
>>> >> >> >>     <typeAlias alias="order" type=" testdomain.Order" />
>>> >> >> >>
>>> >> >> >>     <transactionManager type="JDBC">
>>> >> >> >>         <dataSource type="SIMPLE">
>>> >> >> >>             <property name="JDBC.Driver" value="${driver}"/>
>>> >> >> >>             <property name="JDBC.ConnectionURL"
>>> value="${url}"/>
>>> >> >> >>             <property name="JDBC.Username"
>>> value="${username}"/>
>>> >> >> >>             <property name=" JDBC.Password"
>>> value="${password}"/>
>>> >> >> >>             <property name="JDBC.DefaultAutoCommit"
>>> value="true"
>>> />
>>> >> >> >>         </dataSource>
>>> >> >> >>     </transactionManager>
>>> >> >> >>
>>> >> >> >>     <sqlMap
>>> >> >> >>
>>> >> >> >>
>>> >> >>
>>> >>
>>> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/DOSSIERS_SqlMap.xml"
>>> >> >> >> />
>>> >> >> >>     <sqlMap
>>> >> >> >>
>>> >> >> >>
>>> >> >>
>>> >>
>>> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/AGENTS_SqlMap.xml"
>>> >> >> >> />
>>> >> >> >>     <sqlMap
>>> >> >> >>
>>> >> >> >>
>>> >> >>
>>> >>
>>> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/CARTES01_SqlMap.xml"
>>> >> >> >> />
>>> >> >> >>     <sqlMap
>>> >> >> >>
>>> >> >> >>
>>> >> >>
>>> >>
>>> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/CARTES02_SqlMap.xml"
>>> >> >> >> />
>>> >> >> >>     <sqlMap
>>> >> >> >>
>>> >> >> >>
>>> >> >>
>>> >>
>>> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/CARTES03_SqlMap.xml"
>>> >> >> >> />
>>> >> >> >>     <sqlMap
>>> >> >> >>
>>> >> >> >>
>>> >> >>
>>> >>
>>> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/CARTES05_SqlMap.xml"
>>> >> >> >> />
>>> >> >> >>     <sqlMap
>>> >> >> >>
>>> >> >> >>
>>> >> >>
>>> >>
>>> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/CARTES20_SqlMap.xml"
>>> >> >> >> />
>>> >> >> >>     <sqlMap
>>> >> >> >>
>>> >> >> >>
>>> >> >>
>>> >>
>>> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/CARTES21_SqlMap.xml"
>>> >> >> >> />
>>> >> >> >>     <sqlMap
>>> >> >> >>
>>> >> >> >>
>>> >> >>
>>> >>
>>> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/CARTES22_SqlMap.xml"
>>> >> >> >> />
>>> >> >> >>     <sqlMap
>>> >> >> >>
>>> >> >> >>
>>> >> >>
>>> >>
>>> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/CARTES4N_SqlMap.xml"
>>> >> >> >> />
>>> >> >> >>     <sqlMap
>>> >> >> >>
>>> >> >> >>
>>> >> >>
>>> >>
>>> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/CARTES9C_SqlMap.xml"
>>> >> >> >> />
>>> >> >> >>     <sqlMap
>>> >> >> >>
>>> >> >> >>
>>> >> >>
>>> >>
>>> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/CARTES9G_SqlMap.xml"
>>> >> >> >> />
>>> >> >> >>     <sqlMap
>>> >> >> >>
>>> >> >> >>
>>> >> >>
>>> >>
>>> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/INDEMNITES_SqlMap.xml"
>>> >> >> >> />
>>> >> >> >>     <sqlMap
>>> >> >> >>
>>> >> >> >>
>>> >> >>
>>> >>
>>> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/ECHELONS_SqlMap.xml"
>>> >> >> >> />
>>> >> >> >>     <sqlMap
>>> >> >> >>
>>> >> >> >>
>>> >> >>
>>> >>
>>> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/GRADES_SqlMap.xml"
>>> >> >> >> />
>>> >> >> >>     <sqlMap
>>> >> >> >>
>>> >> >> >>
>>> >> >>
>>> >>
>>> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/DIVISION_SqlMap.xml"
>>> >> >> >> />
>>> >> >> >>     <sqlMap
>>> >> >> >>
>>> >> >> >>
>>> >> >>
>>> >>
>>> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/UTILISATEURS_SqlMap.xml"
>>> >> >> >> />
>>> >> >> >>     <sqlMap
>>> >> >> >>
>>> >> >> >>
>>> >> >>
>>> >>
>>> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/HABILITATIONS_SqlMap.xml"
>>> >> >> >> />
>>> >> >> >>     <sqlMap
>>> >> >> >>
>>> >> >> >>
>>> >> >>
>>> >>
>>> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/GESTIONNAIRES_SqlMap.xml"
>>> >> >> >> />
>>> >> >> >>     <sqlMap
>>> >> >> >>
>>> >> >> >>
>>> >> >>
>>> >>
>>> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/LIBELLES_SqlMap.xml"
>>> >> >> >> />
>>> >> >> >>     <sqlMap
>>> >> >> >>
>>> >> >> >>
>>> >> >>
>>> >>
>>> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/POSTES_SqlMap.xml"
>>> >> >> >> />
>>> >> >> >>     <sqlMap
>>> >> >> >>
>>> >> >> >>
>>> >> >>
>>> >>
>>> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/MEMOMODIFS_SqlMap.xml"
>>> >> >> >> />
>>> >> >> >>     <sqlMap
>>> >> >> >>
>>> >> >> >>
>>> >> >>
>>> >>
>>> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/BATCHS_SqlMap.xml"
>>> >> >> >> />
>>> >> >> >> </sqlMapConfig>
>>> >> >> >>
>>> >> >> >>
>>> >> >> >> ===============
>>> >> >> >>
>>> >> >> >> and there, the dao.xml file..
>>> >> >> >> <!DOCTYPE daoConfig
>>> >> >> >> PUBLIC "-//ibatis.apache.org//DTD DAO Configuration 2.0//EN"
>>> >> >> >> "http://localhost:8888/oci/dao-2.dtd">
>>> >> >> >> <daoConfig>
>>> >> >> >>     <context>
>>> >> >> >>         <transactionManager type="SQLMAP">
>>> >> >> >>             <property name="SqlMapConfigResource"
>>> >> >> >>                 value="conf/SqlMapConfig.xml" />
>>> >> >> >>         </transactionManager>
>>> >> >> >>
>>> >> >> >>                                          <!-- DOSSIERS-->
>>> >> >> >>         <dao
>>> >> >> >>
>>> >> >> >>
>>> >> >>
>>> >> interface="
>>> fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.DossiersDAO
>>> >> >> >> "
>>> >> >> >>
>>> >> >> >>
>>> >> >>
>>> >> implementation="
>>> fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.DossiersDAOImpl"
>>> >> >> >> />
>>> >> >> >>
>>> >> >> >>                                         <!-- AGENTS -->
>>> >> >> >>
>>> >> >> >>         <dao
>>> >> >> >>
>>> >> >> >>
>>> >> >>
>>> >> interface="
>>> fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.AgentsDAO"
>>> >> >> >>
>>> >> >> >>
>>> >> >>
>>> >> implementation="
>>> fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.AgentsDAOImpl
>>> >> >> >> " />
>>> >> >> >>
>>> >> >> >>                                         <!-- CARTES -->
>>> >> >> >>         <dao
>>> >> >> >>
>>> >> >> >>
>>> >> >>
>>> >> interface="
>>> fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes01DAO
>>> >> >> >> "
>>> >> >> >>
>>> >> >> >>
>>> >> >>
>>> >> implementation="
>>> fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes01DAOImpl"
>>> >> >> >> />
>>> >> >> >>         <dao
>>> >> >> >>
>>> >> >> >>
>>> >> >>
>>> >> interface="
>>> fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes02DAO
>>> >> >> >> "
>>> >> >> >>
>>> >> >> >>
>>> >> >>
>>> >> implementation="
>>> fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes02DAOImpl"
>>> >> >> >> />
>>> >> >> >>         <dao
>>> >> >> >>
>>> >> >> >>
>>> >> >>
>>> >> interface="
>>> fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes03DAO
>>> >> >> >> "
>>> >> >> >>
>>> >> >> >>
>>> >> >>
>>> >> implementation="
>>> fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes03DAOImpl"
>>> >> >> >> />
>>> >> >> >>         <dao
>>> >> >> >>
>>> >> >> >>
>>> >> >>
>>> >> interface="
>>> fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes05DAO
>>> >> >> >> "
>>> >> >> >>
>>> >> >> >>
>>> >> >>
>>> >> implementation="
>>> fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes05DAOImpl"
>>> >> >> >> />
>>> >> >> >>         <dao
>>> >> >> >>
>>> >> >> >>
>>> >> >>
>>> >> interface="
>>> fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes20DAO
>>> >> >> >> "
>>> >> >> >>
>>> >> >> >>
>>> >> >>
>>> >> implementation="
>>> fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes20DAOImpl"
>>> >> >> >> />
>>> >> >> >>         <dao
>>> >> >> >>
>>> >> >> >>
>>> >> >>
>>> >> interface="
>>> fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes21DAO
>>> >> >> >> "
>>> >> >> >>
>>> >> >> >>
>>> >> >>
>>> >> implementation="
>>> fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes21DAOImpl"
>>> >> >> >> />
>>> >> >> >>         <dao
>>> >> >> >>
>>> >> >> >>
>>> >> >>
>>> >> interface="
>>> fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes22DAO
>>> >> >> >> "
>>> >> >> >>
>>> >> >> >>
>>> >> >>
>>> >> implementation="
>>> fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes22DAOImpl"
>>> >> >> >> />
>>> >> >> >>         <dao
>>> >> >> >>
>>> >> >> >>
>>> >> >>
>>> >> interface="
>>> fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes4nDAO
>>> >> >> >> "
>>> >> >> >>
>>> >> >> >>
>>> >> >>
>>> >> implementation="
>>> fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes4nDAOImpl"
>>> >> >> >> />
>>> >> >> >>         <dao
>>> >> >> >>
>>> >> >> >>
>>> >> >>
>>> >> interface="
>>> fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes9cDAO
>>> >> >> >> "
>>> >> >> >>
>>> >> >> >>
>>> >> >>
>>> >> implementation="
>>> fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes9cDAOImpl"
>>> >> >> >> />
>>> >> >> >>         <dao
>>> >> >> >>
>>> >> >> >>
>>> >> >>
>>> >> interface="
>>> fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes9gDAO
>>> >> >> >> "
>>> >> >> >>
>>> >> >> >>
>>> >> >>
>>> >> implementation="
>>> fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes9gDAOImpl"
>>> >> >> >> />
>>> >> >> >>
>>> >> >> >>                                     <!-- INDEMNITES -->
>>> >> >> >>         <dao
>>> >> >> >>
>>> >> >> >>
>>> >> >>
>>> >> interface="
>>> fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.IndemnitesDAO"
>>> >> >> >>
>>> >> >> >>
>>> >> >>
>>> >> implementation="
>>> fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.IndemnitesDAOImpl
>>> >> >> >> " />
>>> >> >> >>
>>> >> >> >>                                     <!-- ECHELONS -->
>>> >> >> >>         <dao
>>> >> >> >>
>>> >> >> >>
>>> >> >>
>>> >> interface="
>>> fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.EchelonsDAO"
>>> >> >> >>
>>> >> >> >>
>>> >> >>
>>> >> implementation="
>>> fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.EchelonsDAOImpl"
>>> >> >> >> />
>>> >> >> >>
>>> >> >> >>                                     <!-- GRADES -->
>>> >> >> >>         <dao
>>> >> >> >>
>>> >> >> >>
>>> >> >>
>>> >> interface="
>>> fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.GradesDAO"
>>> >> >> >>
>>> >> >> >>
>>> >> >>
>>> >> implementation="
>>> fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.GradesDAOImpl"
>>> >> >> >> />
>>> >> >> >>
>>> >> >> >>                                     <!-- DIVISION -->
>>> >> >> >>         <dao
>>> >> >> >>
>>> >> >> >>
>>> >> >>
>>> >> interface="
>>> fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.DivisionDAO"
>>> >> >> >>
>>> >> >> >>
>>> >> >>
>>> >> implementation="
>>> fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.DivisionDAOImpl"
>>> >> >> >> />
>>> >> >> >>
>>> >> >> >>                                     <!-- UTILISATEURS -->
>>> >> >> >>         <dao
>>> >> >> >>
>>> >> >> >>
>>> >> >>
>>> >> interface="
>>> fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.UtilisateursDAO"
>>> >> >> >>
>>> >> >> >>
>>> >> >>
>>> >> implementation="
>>> fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.UtilisateursDAOImpl
>>> >> >> >> " />
>>> >> >> >>
>>> >> >> >>                                     <!-- HABILITATIONS -->
>>> >> >> >>         <dao
>>> >> >> >>
>>> >> >> >>
>>> >> >>
>>> >> interface="
>>> fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.HabilitationsDAO
>>> >> >> >> "
>>> >> >> >>
>>> >> >> >>
>>> >> >>
>>> >> implementation="
>>> fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.HabilitationsDAOImpl
>>> "
>>> >> >> >> />
>>> >> >> >>
>>> >> >> >>                                         <!-- GESTIONNAIRES  -->
>>> >> >> >>         <dao
>>> >> >> >>
>>> >> >> >>
>>> >> >>
>>> >> interface="
>>> fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.GestionnairesDAO"
>>> >> >> >>
>>> >> >> >>
>>> >> >>
>>> >> implementation="
>>> fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.GestionnairesDAOImpl
>>> >> >> >> " />
>>> >> >> >>
>>> >> >> >>                                         <!-- LIBELLES   -->
>>> >> >> >>         <dao
>>> >> >> >>
>>> >> >> >>
>>> >> >>
>>> >> interface="
>>> fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.LibellesDAO
>>> >> >> >> "
>>> >> >> >>
>>> >> >> >>
>>> >> >>
>>> >> implementation="
>>> fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.LibellesDAOImpl"
>>> >> >> >> />
>>> >> >> >>                                         <!-- POSTES    -->
>>> >> >> >>         <dao
>>> >> >> >>
>>> >> >> >>
>>> >> >>
>>> >> interface="
>>> fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.PostesDAO"
>>> >> >> >>
>>> >> >> >>
>>> >> >>
>>> >> implementation="
>>> fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.PostesDAOImpl"
>>> >> >> >> />
>>> >> >> >>                                         <!-- MEMOMODIFS    -->
>>> >> >> >>         <dao
>>> >> >> >>
>>> >> >> >>
>>> >> >>
>>> >> interface="
>>> fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.MemoModifsDAO"
>>> >> >> >>             implementation="
>>> >> >> >>
>>> >> >>
>>> >>
>>> fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.MemoModifsDAOImpl
>>> "
>>> >> >> >> />
>>> >> >> >>                                         <!-- BATCHS -->
>>> >> >> >>         <dao
>>> >> >> >>
>>> >> >> >>
>>> >> >>
>>> >> interface="
>>> fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.BatchsDAO
>>> >> >> >> "
>>> >> >> >>
>>> >> >> >>
>>> >> >>
>>> >> implementation="
>>> fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.BatchsDAOImpl"
>>> >> >> >> />
>>> >> >> >>     </context>
>>> >> >> >> </daoConfig>
>>> >> >> >>
>>> >> >> >>
>>> >> >> >>
>>> >> >> >>
>>> >> >> >>
>>> >> >> >> Leucht, Axel wrote:
>>> >> >> >> >
>>> >> >> >> > Looks like a syntax error to mw in one of you're XML files.
>>> Could
>>> >> >> you
>>> >> >> >> post
>>> >> >> >> > them here, especially your dao.xml?
>>> >> >> >> >
>>> >> >> >> > I often verify the syntax by opening it with Internet
>>> Explorer.
>>> >> >> Perhaps
>>> >> >> >> > there is a simple typo in it?
>>> >> >> >> >
>>> >> >> >> > /Axel
>>> >> >> >> >
>>> >> >> >> >
>>> >> >> >>
>>> >> >> >> --
>>> >> >> >> View this message in context:
>>> >> >> >>
>>> >> >>
>>> >>
>>> http://www.nabble.com/unexpected-ExceptionInInitializerError-tf4771224.html#a13649180
>>> >> >> >>
>>> >> >> >> Sent from the iBATIS - User - Java mailing list archive at
>>> >> Nabble.com.
>>> >> >> >>
>>> >> >> >>
>>> >> >> >
>>> >> >> >
>>> >> >>
>>> >> >> --
>>> >> >> View this message in context:
>>> >> >>
>>> >>
>>> http://www.nabble.com/unexpected-ExceptionInInitializerError-tf4771224.html#a13649924
>>> >> >>
>>> >> >> Sent from the iBATIS - User - Java mailing list archive at
>>> Nabble.com.
>>> >> >>
>>> >> >>
>>> >> >
>>> >> >
>>> >>
>>> >> --
>>> >> View this message in context:
>>> >>
>>> http://www.nabble.com/unexpected-ExceptionInInitializerError-tf4771224.html#a13650247
>>> >>
>>> >> Sent from the iBATIS - User - Java mailing list archive at
>>> Nabble.com.
>>> >>
>>> >>
>>> >
>>> >
>>>
>>> --
>>> View this message in context:
>>> http://www.nabble.com/unexpected-ExceptionInInitializerError-tf4771224.html#a13662642
>>> Sent from the iBATIS - User - Java mailing list archive at Nabble.com.
>>>
>>>
>> 
>> 
> 
> 

-- 
View this message in context: http://www.nabble.com/unexpected-ExceptionInInitializerError-tf4771224.html#a13663469
Sent from the iBATIS - User - Java mailing list archive at Nabble.com.


Re: AW: unexpected ExceptionInInitializerError

Posted by Jeremy Jardin <je...@gmail.com>.

This is my doctype :
<!DOCTYPE sqlMap PUBLIC "-//ibatis.apache.org//DTD SQL Map 2.0//EN"
"http://ibatis.apache.org/dtd/sql-map-2.dtd">

And the application is running with Tomcat 5.5.23..

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... 

...



nmaves wrote:
> 
> hmmm please ensure that you have the following
> 
> <!DOCTYPE sqlMapConfig PUBLIC "-//iBATIS.com//DTD SQL Map Config 2.0//EN"
> "
> http://ibatis.apache.org/dtd/sql-map-config-2.dtd">
> 
> 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.
> 
> So please find out what version of tomcat you are using?
> 
> 
> Nathan
> 
> On Nov 9, 2007 12:41 AM, Jeremy Jardin <je...@gmail.com> wrote:
> 
>>
>> 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  not work..
>>
>>
>>
>> Larry Meadors-2 wrote:
>> >
>> > Yeah, sorry w/o == without.
>> >
>> > What does your JDK or app server use to read / manage XML data?
>> >
>> > Larry
>> >
>> >
>> > On Nov 8, 2007 9:17 AM, Jeremy Jardin <je...@gmail.com> 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 <je...@gmail.com>
>> 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:
>> >> >> >
>> >> >> > What's with that DTD?
>> >> >> >
>> >> >> > Your server won't be up when that request is made, and if you use
>> >> the
>> >> >> > ibatis.apache.org DTD, it'll be resolved from the JAR, not over
>> the
>> >> >> > net.
>> >> >> >
>> >> >> > Larry
>> >> >> >
>> >> >> >
>> >> >> > On Nov 8, 2007 8:34 AM, Jeremy Jardin <je...@gmail.com>
>> >> wrote:
>> >> >> >>
>> >> >> >>
>> >> >> >> so, the sql map config :
>> >> >> >>
>> >> >> >> <?xml version="1.0" encoding="utf-8" ?>
>> >> >> >> <!DOCTYPE sqlMapConfig
>> >> >> >>   PUBLIC "-//iBATIS.com//DTD SQL Map Config 2.0//EN"
>> >> >> >>   " http://localhost:8888/oci/sql-map-config-2.dtd">
>> >> >> >>
>> >> >> >> <sqlMapConfig>
>> >> >> >>     <properties resource="conf/oci.properties" />
>> >> >> >>     <settings cacheModelsEnabled="true"
>> enhancementEnabled="true"
>> >> >> >>         lazyLoadingEnabled="true" maxRequests="32"
>> maxSessions="10"
>> >> >> >>         maxTransactions="5" useStatementNamespaces="true" />
>> >> >> >>     <typeAlias alias="order" type=" testdomain.Order" />
>> >> >> >>
>> >> >> >>     <transactionManager type="JDBC">
>> >> >> >>         <dataSource type="SIMPLE">
>> >> >> >>             <property name="JDBC.Driver" value="${driver}"/>
>> >> >> >>             <property name="JDBC.ConnectionURL" value="${url}"/>
>> >> >> >>             <property name="JDBC.Username" value="${username}"/>
>> >> >> >>             <property name=" JDBC.Password"
>> value="${password}"/>
>> >> >> >>             <property name="JDBC.DefaultAutoCommit" value="true"
>> />
>> >> >> >>         </dataSource>
>> >> >> >>     </transactionManager>
>> >> >> >>
>> >> >> >>     <sqlMap
>> >> >> >>
>> >> >> >>
>> >> >>
>> >>
>> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/DOSSIERS_SqlMap.xml"
>> >> >> >> />
>> >> >> >>     <sqlMap
>> >> >> >>
>> >> >> >>
>> >> >>
>> >>
>> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/AGENTS_SqlMap.xml"
>> >> >> >> />
>> >> >> >>     <sqlMap
>> >> >> >>
>> >> >> >>
>> >> >>
>> >>
>> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/CARTES01_SqlMap.xml"
>> >> >> >> />
>> >> >> >>     <sqlMap
>> >> >> >>
>> >> >> >>
>> >> >>
>> >>
>> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/CARTES02_SqlMap.xml"
>> >> >> >> />
>> >> >> >>     <sqlMap
>> >> >> >>
>> >> >> >>
>> >> >>
>> >>
>> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/CARTES03_SqlMap.xml"
>> >> >> >> />
>> >> >> >>     <sqlMap
>> >> >> >>
>> >> >> >>
>> >> >>
>> >>
>> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/CARTES05_SqlMap.xml"
>> >> >> >> />
>> >> >> >>     <sqlMap
>> >> >> >>
>> >> >> >>
>> >> >>
>> >>
>> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/CARTES20_SqlMap.xml"
>> >> >> >> />
>> >> >> >>     <sqlMap
>> >> >> >>
>> >> >> >>
>> >> >>
>> >>
>> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/CARTES21_SqlMap.xml"
>> >> >> >> />
>> >> >> >>     <sqlMap
>> >> >> >>
>> >> >> >>
>> >> >>
>> >>
>> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/CARTES22_SqlMap.xml"
>> >> >> >> />
>> >> >> >>     <sqlMap
>> >> >> >>
>> >> >> >>
>> >> >>
>> >>
>> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/CARTES4N_SqlMap.xml"
>> >> >> >> />
>> >> >> >>     <sqlMap
>> >> >> >>
>> >> >> >>
>> >> >>
>> >>
>> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/CARTES9C_SqlMap.xml"
>> >> >> >> />
>> >> >> >>     <sqlMap
>> >> >> >>
>> >> >> >>
>> >> >>
>> >>
>> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/CARTES9G_SqlMap.xml"
>> >> >> >> />
>> >> >> >>     <sqlMap
>> >> >> >>
>> >> >> >>
>> >> >>
>> >>
>> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/INDEMNITES_SqlMap.xml"
>> >> >> >> />
>> >> >> >>     <sqlMap
>> >> >> >>
>> >> >> >>
>> >> >>
>> >>
>> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/ECHELONS_SqlMap.xml"
>> >> >> >> />
>> >> >> >>     <sqlMap
>> >> >> >>
>> >> >> >>
>> >> >>
>> >>
>> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/GRADES_SqlMap.xml"
>> >> >> >> />
>> >> >> >>     <sqlMap
>> >> >> >>
>> >> >> >>
>> >> >>
>> >>
>> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/DIVISION_SqlMap.xml"
>> >> >> >> />
>> >> >> >>     <sqlMap
>> >> >> >>
>> >> >> >>
>> >> >>
>> >>
>> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/UTILISATEURS_SqlMap.xml"
>> >> >> >> />
>> >> >> >>     <sqlMap
>> >> >> >>
>> >> >> >>
>> >> >>
>> >>
>> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/HABILITATIONS_SqlMap.xml"
>> >> >> >> />
>> >> >> >>     <sqlMap
>> >> >> >>
>> >> >> >>
>> >> >>
>> >>
>> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/GESTIONNAIRES_SqlMap.xml"
>> >> >> >> />
>> >> >> >>     <sqlMap
>> >> >> >>
>> >> >> >>
>> >> >>
>> >>
>> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/LIBELLES_SqlMap.xml"
>> >> >> >> />
>> >> >> >>     <sqlMap
>> >> >> >>
>> >> >> >>
>> >> >>
>> >>
>> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/POSTES_SqlMap.xml"
>> >> >> >> />
>> >> >> >>     <sqlMap
>> >> >> >>
>> >> >> >>
>> >> >>
>> >>
>> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/MEMOMODIFS_SqlMap.xml"
>> >> >> >> />
>> >> >> >>     <sqlMap
>> >> >> >>
>> >> >> >>
>> >> >>
>> >>
>> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/BATCHS_SqlMap.xml"
>> >> >> >> />
>> >> >> >> </sqlMapConfig>
>> >> >> >>
>> >> >> >>
>> >> >> >> ===============
>> >> >> >>
>> >> >> >> and there, the dao.xml file..
>> >> >> >> <!DOCTYPE daoConfig
>> >> >> >> PUBLIC "-//ibatis.apache.org//DTD DAO Configuration 2.0//EN"
>> >> >> >> "http://localhost:8888/oci/dao-2.dtd">
>> >> >> >> <daoConfig>
>> >> >> >>     <context>
>> >> >> >>         <transactionManager type="SQLMAP">
>> >> >> >>             <property name="SqlMapConfigResource"
>> >> >> >>                 value="conf/SqlMapConfig.xml" />
>> >> >> >>         </transactionManager>
>> >> >> >>
>> >> >> >>                                          <!-- DOSSIERS-->
>> >> >> >>         <dao
>> >> >> >>
>> >> >> >>
>> >> >>
>> >> interface="
>> fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.DossiersDAO
>> >> >> >> "
>> >> >> >>
>> >> >> >>
>> >> >>
>> >> implementation="
>> fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.DossiersDAOImpl"
>> >> >> >> />
>> >> >> >>
>> >> >> >>                                         <!-- AGENTS -->
>> >> >> >>
>> >> >> >>         <dao
>> >> >> >>
>> >> >> >>
>> >> >>
>> >> interface="
>> fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.AgentsDAO"
>> >> >> >>
>> >> >> >>
>> >> >>
>> >> implementation="
>> fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.AgentsDAOImpl
>> >> >> >> " />
>> >> >> >>
>> >> >> >>                                         <!-- CARTES -->
>> >> >> >>         <dao
>> >> >> >>
>> >> >> >>
>> >> >>
>> >> interface="
>> fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes01DAO
>> >> >> >> "
>> >> >> >>
>> >> >> >>
>> >> >>
>> >> implementation="
>> fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes01DAOImpl"
>> >> >> >> />
>> >> >> >>         <dao
>> >> >> >>
>> >> >> >>
>> >> >>
>> >> interface="
>> fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes02DAO
>> >> >> >> "
>> >> >> >>
>> >> >> >>
>> >> >>
>> >> implementation="
>> fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes02DAOImpl"
>> >> >> >> />
>> >> >> >>         <dao
>> >> >> >>
>> >> >> >>
>> >> >>
>> >> interface="
>> fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes03DAO
>> >> >> >> "
>> >> >> >>
>> >> >> >>
>> >> >>
>> >> implementation="
>> fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes03DAOImpl"
>> >> >> >> />
>> >> >> >>         <dao
>> >> >> >>
>> >> >> >>
>> >> >>
>> >> interface="
>> fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes05DAO
>> >> >> >> "
>> >> >> >>
>> >> >> >>
>> >> >>
>> >> implementation="
>> fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes05DAOImpl"
>> >> >> >> />
>> >> >> >>         <dao
>> >> >> >>
>> >> >> >>
>> >> >>
>> >> interface="
>> fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes20DAO
>> >> >> >> "
>> >> >> >>
>> >> >> >>
>> >> >>
>> >> implementation="
>> fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes20DAOImpl"
>> >> >> >> />
>> >> >> >>         <dao
>> >> >> >>
>> >> >> >>
>> >> >>
>> >> interface="
>> fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes21DAO
>> >> >> >> "
>> >> >> >>
>> >> >> >>
>> >> >>
>> >> implementation="
>> fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes21DAOImpl"
>> >> >> >> />
>> >> >> >>         <dao
>> >> >> >>
>> >> >> >>
>> >> >>
>> >> interface="
>> fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes22DAO
>> >> >> >> "
>> >> >> >>
>> >> >> >>
>> >> >>
>> >> implementation="
>> fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes22DAOImpl"
>> >> >> >> />
>> >> >> >>         <dao
>> >> >> >>
>> >> >> >>
>> >> >>
>> >> interface="
>> fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes4nDAO
>> >> >> >> "
>> >> >> >>
>> >> >> >>
>> >> >>
>> >> implementation="
>> fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes4nDAOImpl"
>> >> >> >> />
>> >> >> >>         <dao
>> >> >> >>
>> >> >> >>
>> >> >>
>> >> interface="
>> fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes9cDAO
>> >> >> >> "
>> >> >> >>
>> >> >> >>
>> >> >>
>> >> implementation="
>> fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes9cDAOImpl"
>> >> >> >> />
>> >> >> >>         <dao
>> >> >> >>
>> >> >> >>
>> >> >>
>> >> interface="
>> fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes9gDAO
>> >> >> >> "
>> >> >> >>
>> >> >> >>
>> >> >>
>> >> implementation="
>> fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes9gDAOImpl"
>> >> >> >> />
>> >> >> >>
>> >> >> >>                                     <!-- INDEMNITES -->
>> >> >> >>         <dao
>> >> >> >>
>> >> >> >>
>> >> >>
>> >> interface="
>> fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.IndemnitesDAO"
>> >> >> >>
>> >> >> >>
>> >> >>
>> >> implementation="
>> fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.IndemnitesDAOImpl
>> >> >> >> " />
>> >> >> >>
>> >> >> >>                                     <!-- ECHELONS -->
>> >> >> >>         <dao
>> >> >> >>
>> >> >> >>
>> >> >>
>> >> interface="
>> fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.EchelonsDAO"
>> >> >> >>
>> >> >> >>
>> >> >>
>> >> implementation="
>> fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.EchelonsDAOImpl"
>> >> >> >> />
>> >> >> >>
>> >> >> >>                                     <!-- GRADES -->
>> >> >> >>         <dao
>> >> >> >>
>> >> >> >>
>> >> >>
>> >> interface="
>> fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.GradesDAO"
>> >> >> >>
>> >> >> >>
>> >> >>
>> >> implementation="
>> fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.GradesDAOImpl"
>> >> >> >> />
>> >> >> >>
>> >> >> >>                                     <!-- DIVISION -->
>> >> >> >>         <dao
>> >> >> >>
>> >> >> >>
>> >> >>
>> >> interface="
>> fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.DivisionDAO"
>> >> >> >>
>> >> >> >>
>> >> >>
>> >> implementation="
>> fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.DivisionDAOImpl"
>> >> >> >> />
>> >> >> >>
>> >> >> >>                                     <!-- UTILISATEURS -->
>> >> >> >>         <dao
>> >> >> >>
>> >> >> >>
>> >> >>
>> >> interface="
>> fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.UtilisateursDAO"
>> >> >> >>
>> >> >> >>
>> >> >>
>> >> implementation="
>> fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.UtilisateursDAOImpl
>> >> >> >> " />
>> >> >> >>
>> >> >> >>                                     <!-- HABILITATIONS -->
>> >> >> >>         <dao
>> >> >> >>
>> >> >> >>
>> >> >>
>> >> interface="
>> fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.HabilitationsDAO
>> >> >> >> "
>> >> >> >>
>> >> >> >>
>> >> >>
>> >> implementation="
>> fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.HabilitationsDAOImpl
>> "
>> >> >> >> />
>> >> >> >>
>> >> >> >>                                         <!-- GESTIONNAIRES  -->
>> >> >> >>         <dao
>> >> >> >>
>> >> >> >>
>> >> >>
>> >> interface="
>> fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.GestionnairesDAO"
>> >> >> >>
>> >> >> >>
>> >> >>
>> >> implementation="
>> fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.GestionnairesDAOImpl
>> >> >> >> " />
>> >> >> >>
>> >> >> >>                                         <!-- LIBELLES   -->
>> >> >> >>         <dao
>> >> >> >>
>> >> >> >>
>> >> >>
>> >> interface="
>> fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.LibellesDAO
>> >> >> >> "
>> >> >> >>
>> >> >> >>
>> >> >>
>> >> implementation="
>> fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.LibellesDAOImpl"
>> >> >> >> />
>> >> >> >>                                         <!-- POSTES    -->
>> >> >> >>         <dao
>> >> >> >>
>> >> >> >>
>> >> >>
>> >> interface="
>> fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.PostesDAO"
>> >> >> >>
>> >> >> >>
>> >> >>
>> >> implementation="
>> fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.PostesDAOImpl"
>> >> >> >> />
>> >> >> >>                                         <!-- MEMOMODIFS    -->
>> >> >> >>         <dao
>> >> >> >>
>> >> >> >>
>> >> >>
>> >> interface="
>> fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.MemoModifsDAO"
>> >> >> >>             implementation="
>> >> >> >>
>> >> >>
>> >>
>> fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.MemoModifsDAOImpl
>> "
>> >> >> >> />
>> >> >> >>                                         <!-- BATCHS -->
>> >> >> >>         <dao
>> >> >> >>
>> >> >> >>
>> >> >>
>> >> interface="
>> fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.BatchsDAO
>> >> >> >> "
>> >> >> >>
>> >> >> >>
>> >> >>
>> >> implementation="
>> fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.BatchsDAOImpl"
>> >> >> >> />
>> >> >> >>     </context>
>> >> >> >> </daoConfig>
>> >> >> >>
>> >> >> >>
>> >> >> >>
>> >> >> >>
>> >> >> >>
>> >> >> >> Leucht, Axel wrote:
>> >> >> >> >
>> >> >> >> > Looks like a syntax error to mw in one of you're XML files.
>> Could
>> >> >> you
>> >> >> >> post
>> >> >> >> > them here, especially your dao.xml?
>> >> >> >> >
>> >> >> >> > I often verify the syntax by opening it with Internet
>> Explorer.
>> >> >> Perhaps
>> >> >> >> > there is a simple typo in it?
>> >> >> >> >
>> >> >> >> > /Axel
>> >> >> >> >
>> >> >> >> >
>> >> >> >>
>> >> >> >> --
>> >> >> >> View this message in context:
>> >> >> >>
>> >> >>
>> >>
>> http://www.nabble.com/unexpected-ExceptionInInitializerError-tf4771224.html#a13649180
>> >> >> >>
>> >> >> >> Sent from the iBATIS - User - Java mailing list archive at
>> >> Nabble.com.
>> >> >> >>
>> >> >> >>
>> >> >> >
>> >> >> >
>> >> >>
>> >> >> --
>> >> >> View this message in context:
>> >> >>
>> >>
>> http://www.nabble.com/unexpected-ExceptionInInitializerError-tf4771224.html#a13649924
>> >> >>
>> >> >> Sent from the iBATIS - User - Java mailing list archive at
>> Nabble.com.
>> >> >>
>> >> >>
>> >> >
>> >> >
>> >>
>> >> --
>> >> View this message in context:
>> >>
>> http://www.nabble.com/unexpected-ExceptionInInitializerError-tf4771224.html#a13650247
>> >>
>> >> Sent from the iBATIS - User - Java mailing list archive at Nabble.com.
>> >>
>> >>
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/unexpected-ExceptionInInitializerError-tf4771224.html#a13662642
>> Sent from the iBATIS - User - Java mailing list archive at Nabble.com.
>>
>>
> 
> 

-- 
View this message in context: http://www.nabble.com/unexpected-ExceptionInInitializerError-tf4771224.html#a13663109
Sent from the iBATIS - User - Java mailing list archive at Nabble.com.


Re: AW: unexpected ExceptionInInitializerError

Posted by Nathan Maves <na...@gmail.com>.
hmmm please ensure that you have the following

<!DOCTYPE sqlMapConfig PUBLIC "-//iBATIS.com//DTD SQL Map Config 2.0//EN" "
http://ibatis.apache.org/dtd/sql-map-config-2.dtd">

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.

So please find out what version of tomcat you are using?


Nathan

On Nov 9, 2007 12:41 AM, Jeremy Jardin <je...@gmail.com> wrote:

>
> 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  not work..
>
>
>
> Larry Meadors-2 wrote:
> >
> > Yeah, sorry w/o == without.
> >
> > What does your JDK or app server use to read / manage XML data?
> >
> > Larry
> >
> >
> > On Nov 8, 2007 9:17 AM, Jeremy Jardin <je...@gmail.com> 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 <je...@gmail.com>
> 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:
> >> >> >
> >> >> > What's with that DTD?
> >> >> >
> >> >> > Your server won't be up when that request is made, and if you use
> >> the
> >> >> > ibatis.apache.org DTD, it'll be resolved from the JAR, not over
> the
> >> >> > net.
> >> >> >
> >> >> > Larry
> >> >> >
> >> >> >
> >> >> > On Nov 8, 2007 8:34 AM, Jeremy Jardin <je...@gmail.com>
> >> wrote:
> >> >> >>
> >> >> >>
> >> >> >> so, the sql map config :
> >> >> >>
> >> >> >> <?xml version="1.0" encoding="utf-8" ?>
> >> >> >> <!DOCTYPE sqlMapConfig
> >> >> >>   PUBLIC "-//iBATIS.com//DTD SQL Map Config 2.0//EN"
> >> >> >>   " http://localhost:8888/oci/sql-map-config-2.dtd">
> >> >> >>
> >> >> >> <sqlMapConfig>
> >> >> >>     <properties resource="conf/oci.properties" />
> >> >> >>     <settings cacheModelsEnabled="true" enhancementEnabled="true"
> >> >> >>         lazyLoadingEnabled="true" maxRequests="32"
> maxSessions="10"
> >> >> >>         maxTransactions="5" useStatementNamespaces="true" />
> >> >> >>     <typeAlias alias="order" type=" testdomain.Order" />
> >> >> >>
> >> >> >>     <transactionManager type="JDBC">
> >> >> >>         <dataSource type="SIMPLE">
> >> >> >>             <property name="JDBC.Driver" value="${driver}"/>
> >> >> >>             <property name="JDBC.ConnectionURL" value="${url}"/>
> >> >> >>             <property name="JDBC.Username" value="${username}"/>
> >> >> >>             <property name=" JDBC.Password" value="${password}"/>
> >> >> >>             <property name="JDBC.DefaultAutoCommit" value="true"
> />
> >> >> >>         </dataSource>
> >> >> >>     </transactionManager>
> >> >> >>
> >> >> >>     <sqlMap
> >> >> >>
> >> >> >>
> >> >>
> >>
> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/DOSSIERS_SqlMap.xml"
> >> >> >> />
> >> >> >>     <sqlMap
> >> >> >>
> >> >> >>
> >> >>
> >>
> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/AGENTS_SqlMap.xml"
> >> >> >> />
> >> >> >>     <sqlMap
> >> >> >>
> >> >> >>
> >> >>
> >>
> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/CARTES01_SqlMap.xml"
> >> >> >> />
> >> >> >>     <sqlMap
> >> >> >>
> >> >> >>
> >> >>
> >>
> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/CARTES02_SqlMap.xml"
> >> >> >> />
> >> >> >>     <sqlMap
> >> >> >>
> >> >> >>
> >> >>
> >>
> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/CARTES03_SqlMap.xml"
> >> >> >> />
> >> >> >>     <sqlMap
> >> >> >>
> >> >> >>
> >> >>
> >>
> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/CARTES05_SqlMap.xml"
> >> >> >> />
> >> >> >>     <sqlMap
> >> >> >>
> >> >> >>
> >> >>
> >>
> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/CARTES20_SqlMap.xml"
> >> >> >> />
> >> >> >>     <sqlMap
> >> >> >>
> >> >> >>
> >> >>
> >>
> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/CARTES21_SqlMap.xml"
> >> >> >> />
> >> >> >>     <sqlMap
> >> >> >>
> >> >> >>
> >> >>
> >>
> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/CARTES22_SqlMap.xml"
> >> >> >> />
> >> >> >>     <sqlMap
> >> >> >>
> >> >> >>
> >> >>
> >>
> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/CARTES4N_SqlMap.xml"
> >> >> >> />
> >> >> >>     <sqlMap
> >> >> >>
> >> >> >>
> >> >>
> >>
> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/CARTES9C_SqlMap.xml"
> >> >> >> />
> >> >> >>     <sqlMap
> >> >> >>
> >> >> >>
> >> >>
> >>
> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/CARTES9G_SqlMap.xml"
> >> >> >> />
> >> >> >>     <sqlMap
> >> >> >>
> >> >> >>
> >> >>
> >>
> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/INDEMNITES_SqlMap.xml"
> >> >> >> />
> >> >> >>     <sqlMap
> >> >> >>
> >> >> >>
> >> >>
> >>
> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/ECHELONS_SqlMap.xml"
> >> >> >> />
> >> >> >>     <sqlMap
> >> >> >>
> >> >> >>
> >> >>
> >>
> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/GRADES_SqlMap.xml"
> >> >> >> />
> >> >> >>     <sqlMap
> >> >> >>
> >> >> >>
> >> >>
> >>
> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/DIVISION_SqlMap.xml"
> >> >> >> />
> >> >> >>     <sqlMap
> >> >> >>
> >> >> >>
> >> >>
> >>
> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/UTILISATEURS_SqlMap.xml"
> >> >> >> />
> >> >> >>     <sqlMap
> >> >> >>
> >> >> >>
> >> >>
> >>
> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/HABILITATIONS_SqlMap.xml"
> >> >> >> />
> >> >> >>     <sqlMap
> >> >> >>
> >> >> >>
> >> >>
> >>
> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/GESTIONNAIRES_SqlMap.xml"
> >> >> >> />
> >> >> >>     <sqlMap
> >> >> >>
> >> >> >>
> >> >>
> >>
> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/LIBELLES_SqlMap.xml"
> >> >> >> />
> >> >> >>     <sqlMap
> >> >> >>
> >> >> >>
> >> >>
> >>
> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/POSTES_SqlMap.xml"
> >> >> >> />
> >> >> >>     <sqlMap
> >> >> >>
> >> >> >>
> >> >>
> >>
> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/MEMOMODIFS_SqlMap.xml"
> >> >> >> />
> >> >> >>     <sqlMap
> >> >> >>
> >> >> >>
> >> >>
> >>
> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/BATCHS_SqlMap.xml"
> >> >> >> />
> >> >> >> </sqlMapConfig>
> >> >> >>
> >> >> >>
> >> >> >> ===============
> >> >> >>
> >> >> >> and there, the dao.xml file..
> >> >> >> <!DOCTYPE daoConfig
> >> >> >> PUBLIC "-//ibatis.apache.org//DTD DAO Configuration 2.0//EN"
> >> >> >> "http://localhost:8888/oci/dao-2.dtd">
> >> >> >> <daoConfig>
> >> >> >>     <context>
> >> >> >>         <transactionManager type="SQLMAP">
> >> >> >>             <property name="SqlMapConfigResource"
> >> >> >>                 value="conf/SqlMapConfig.xml" />
> >> >> >>         </transactionManager>
> >> >> >>
> >> >> >>                                          <!-- DOSSIERS-->
> >> >> >>         <dao
> >> >> >>
> >> >> >>
> >> >>
> >> interface="
> fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.DossiersDAO
> >> >> >> "
> >> >> >>
> >> >> >>
> >> >>
> >> implementation="
> fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.DossiersDAOImpl"
> >> >> >> />
> >> >> >>
> >> >> >>                                         <!-- AGENTS -->
> >> >> >>
> >> >> >>         <dao
> >> >> >>
> >> >> >>
> >> >>
> >> interface="
> fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.AgentsDAO"
> >> >> >>
> >> >> >>
> >> >>
> >> implementation="
> fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.AgentsDAOImpl
> >> >> >> " />
> >> >> >>
> >> >> >>                                         <!-- CARTES -->
> >> >> >>         <dao
> >> >> >>
> >> >> >>
> >> >>
> >> interface="
> fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes01DAO
> >> >> >> "
> >> >> >>
> >> >> >>
> >> >>
> >> implementation="
> fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes01DAOImpl"
> >> >> >> />
> >> >> >>         <dao
> >> >> >>
> >> >> >>
> >> >>
> >> interface="
> fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes02DAO
> >> >> >> "
> >> >> >>
> >> >> >>
> >> >>
> >> implementation="
> fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes02DAOImpl"
> >> >> >> />
> >> >> >>         <dao
> >> >> >>
> >> >> >>
> >> >>
> >> interface="
> fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes03DAO
> >> >> >> "
> >> >> >>
> >> >> >>
> >> >>
> >> implementation="
> fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes03DAOImpl"
> >> >> >> />
> >> >> >>         <dao
> >> >> >>
> >> >> >>
> >> >>
> >> interface="
> fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes05DAO
> >> >> >> "
> >> >> >>
> >> >> >>
> >> >>
> >> implementation="
> fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes05DAOImpl"
> >> >> >> />
> >> >> >>         <dao
> >> >> >>
> >> >> >>
> >> >>
> >> interface="
> fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes20DAO
> >> >> >> "
> >> >> >>
> >> >> >>
> >> >>
> >> implementation="
> fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes20DAOImpl"
> >> >> >> />
> >> >> >>         <dao
> >> >> >>
> >> >> >>
> >> >>
> >> interface="
> fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes21DAO
> >> >> >> "
> >> >> >>
> >> >> >>
> >> >>
> >> implementation="
> fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes21DAOImpl"
> >> >> >> />
> >> >> >>         <dao
> >> >> >>
> >> >> >>
> >> >>
> >> interface="
> fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes22DAO
> >> >> >> "
> >> >> >>
> >> >> >>
> >> >>
> >> implementation="
> fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes22DAOImpl"
> >> >> >> />
> >> >> >>         <dao
> >> >> >>
> >> >> >>
> >> >>
> >> interface="
> fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes4nDAO
> >> >> >> "
> >> >> >>
> >> >> >>
> >> >>
> >> implementation="
> fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes4nDAOImpl"
> >> >> >> />
> >> >> >>         <dao
> >> >> >>
> >> >> >>
> >> >>
> >> interface="
> fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes9cDAO
> >> >> >> "
> >> >> >>
> >> >> >>
> >> >>
> >> implementation="
> fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes9cDAOImpl"
> >> >> >> />
> >> >> >>         <dao
> >> >> >>
> >> >> >>
> >> >>
> >> interface="
> fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes9gDAO
> >> >> >> "
> >> >> >>
> >> >> >>
> >> >>
> >> implementation="
> fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes9gDAOImpl"
> >> >> >> />
> >> >> >>
> >> >> >>                                     <!-- INDEMNITES -->
> >> >> >>         <dao
> >> >> >>
> >> >> >>
> >> >>
> >> interface="
> fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.IndemnitesDAO"
> >> >> >>
> >> >> >>
> >> >>
> >> implementation="
> fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.IndemnitesDAOImpl
> >> >> >> " />
> >> >> >>
> >> >> >>                                     <!-- ECHELONS -->
> >> >> >>         <dao
> >> >> >>
> >> >> >>
> >> >>
> >> interface="
> fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.EchelonsDAO"
> >> >> >>
> >> >> >>
> >> >>
> >> implementation="
> fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.EchelonsDAOImpl"
> >> >> >> />
> >> >> >>
> >> >> >>                                     <!-- GRADES -->
> >> >> >>         <dao
> >> >> >>
> >> >> >>
> >> >>
> >> interface="
> fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.GradesDAO"
> >> >> >>
> >> >> >>
> >> >>
> >> implementation="
> fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.GradesDAOImpl"
> >> >> >> />
> >> >> >>
> >> >> >>                                     <!-- DIVISION -->
> >> >> >>         <dao
> >> >> >>
> >> >> >>
> >> >>
> >> interface="
> fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.DivisionDAO"
> >> >> >>
> >> >> >>
> >> >>
> >> implementation="
> fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.DivisionDAOImpl"
> >> >> >> />
> >> >> >>
> >> >> >>                                     <!-- UTILISATEURS -->
> >> >> >>         <dao
> >> >> >>
> >> >> >>
> >> >>
> >> interface="
> fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.UtilisateursDAO"
> >> >> >>
> >> >> >>
> >> >>
> >> implementation="
> fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.UtilisateursDAOImpl
> >> >> >> " />
> >> >> >>
> >> >> >>                                     <!-- HABILITATIONS -->
> >> >> >>         <dao
> >> >> >>
> >> >> >>
> >> >>
> >> interface="
> fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.HabilitationsDAO
> >> >> >> "
> >> >> >>
> >> >> >>
> >> >>
> >> implementation="
> fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.HabilitationsDAOImpl
> "
> >> >> >> />
> >> >> >>
> >> >> >>                                         <!-- GESTIONNAIRES  -->
> >> >> >>         <dao
> >> >> >>
> >> >> >>
> >> >>
> >> interface="
> fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.GestionnairesDAO"
> >> >> >>
> >> >> >>
> >> >>
> >> implementation="
> fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.GestionnairesDAOImpl
> >> >> >> " />
> >> >> >>
> >> >> >>                                         <!-- LIBELLES   -->
> >> >> >>         <dao
> >> >> >>
> >> >> >>
> >> >>
> >> interface="
> fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.LibellesDAO
> >> >> >> "
> >> >> >>
> >> >> >>
> >> >>
> >> implementation="
> fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.LibellesDAOImpl"
> >> >> >> />
> >> >> >>                                         <!-- POSTES    -->
> >> >> >>         <dao
> >> >> >>
> >> >> >>
> >> >>
> >> interface="
> fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.PostesDAO"
> >> >> >>
> >> >> >>
> >> >>
> >> implementation="
> fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.PostesDAOImpl"
> >> >> >> />
> >> >> >>                                         <!-- MEMOMODIFS    -->
> >> >> >>         <dao
> >> >> >>
> >> >> >>
> >> >>
> >> interface="
> fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.MemoModifsDAO"
> >> >> >>             implementation="
> >> >> >>
> >> >>
> >> fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.MemoModifsDAOImpl
> "
> >> >> >> />
> >> >> >>                                         <!-- BATCHS -->
> >> >> >>         <dao
> >> >> >>
> >> >> >>
> >> >>
> >> interface="
> fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.BatchsDAO
> >> >> >> "
> >> >> >>
> >> >> >>
> >> >>
> >> implementation="
> fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.BatchsDAOImpl"
> >> >> >> />
> >> >> >>     </context>
> >> >> >> </daoConfig>
> >> >> >>
> >> >> >>
> >> >> >>
> >> >> >>
> >> >> >>
> >> >> >> Leucht, Axel wrote:
> >> >> >> >
> >> >> >> > Looks like a syntax error to mw in one of you're XML files.
> Could
> >> >> you
> >> >> >> post
> >> >> >> > them here, especially your dao.xml?
> >> >> >> >
> >> >> >> > I often verify the syntax by opening it with Internet Explorer.
> >> >> Perhaps
> >> >> >> > there is a simple typo in it?
> >> >> >> >
> >> >> >> > /Axel
> >> >> >> >
> >> >> >> >
> >> >> >>
> >> >> >> --
> >> >> >> View this message in context:
> >> >> >>
> >> >>
> >>
> http://www.nabble.com/unexpected-ExceptionInInitializerError-tf4771224.html#a13649180
> >> >> >>
> >> >> >> Sent from the iBATIS - User - Java mailing list archive at
> >> Nabble.com.
> >> >> >>
> >> >> >>
> >> >> >
> >> >> >
> >> >>
> >> >> --
> >> >> View this message in context:
> >> >>
> >>
> http://www.nabble.com/unexpected-ExceptionInInitializerError-tf4771224.html#a13649924
> >> >>
> >> >> Sent from the iBATIS - User - Java mailing list archive at
> Nabble.com.
> >> >>
> >> >>
> >> >
> >> >
> >>
> >> --
> >> View this message in context:
> >>
> http://www.nabble.com/unexpected-ExceptionInInitializerError-tf4771224.html#a13650247
> >>
> >> Sent from the iBATIS - User - Java mailing list archive at Nabble.com.
> >>
> >>
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/unexpected-ExceptionInInitializerError-tf4771224.html#a13662642
> Sent from the iBATIS - User - Java mailing list archive at Nabble.com.
>
>

Re: AW: unexpected ExceptionInInitializerError

Posted by Jeremy Jardin <je...@gmail.com>.
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  not work.. 



Larry Meadors-2 wrote:
> 
> Yeah, sorry w/o == without.
> 
> What does your JDK or app server use to read / manage XML data?
> 
> Larry
> 
> 
> On Nov 8, 2007 9:17 AM, Jeremy Jardin <je...@gmail.com> 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 <je...@gmail.com> 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:
>> >> >
>> >> > What's with that DTD?
>> >> >
>> >> > Your server won't be up when that request is made, and if you use
>> the
>> >> > ibatis.apache.org DTD, it'll be resolved from the JAR, not over the
>> >> > net.
>> >> >
>> >> > Larry
>> >> >
>> >> >
>> >> > On Nov 8, 2007 8:34 AM, Jeremy Jardin <je...@gmail.com>
>> wrote:
>> >> >>
>> >> >>
>> >> >> so, the sql map config :
>> >> >>
>> >> >> <?xml version="1.0" encoding="utf-8" ?>
>> >> >> <!DOCTYPE sqlMapConfig
>> >> >>   PUBLIC "-//iBATIS.com//DTD SQL Map Config 2.0//EN"
>> >> >>   " http://localhost:8888/oci/sql-map-config-2.dtd">
>> >> >>
>> >> >> <sqlMapConfig>
>> >> >>     <properties resource="conf/oci.properties" />
>> >> >>     <settings cacheModelsEnabled="true" enhancementEnabled="true"
>> >> >>         lazyLoadingEnabled="true" maxRequests="32" maxSessions="10"
>> >> >>         maxTransactions="5" useStatementNamespaces="true" />
>> >> >>     <typeAlias alias="order" type=" testdomain.Order" />
>> >> >>
>> >> >>     <transactionManager type="JDBC">
>> >> >>         <dataSource type="SIMPLE">
>> >> >>             <property name="JDBC.Driver" value="${driver}"/>
>> >> >>             <property name="JDBC.ConnectionURL" value="${url}"/>
>> >> >>             <property name="JDBC.Username" value="${username}"/>
>> >> >>             <property name=" JDBC.Password" value="${password}"/>
>> >> >>             <property name="JDBC.DefaultAutoCommit" value="true" />
>> >> >>         </dataSource>
>> >> >>     </transactionManager>
>> >> >>
>> >> >>     <sqlMap
>> >> >>
>> >> >>
>> >>
>> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/DOSSIERS_SqlMap.xml"
>> >> >> />
>> >> >>     <sqlMap
>> >> >>
>> >> >>
>> >>
>> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/AGENTS_SqlMap.xml"
>> >> >> />
>> >> >>     <sqlMap
>> >> >>
>> >> >>
>> >>
>> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/CARTES01_SqlMap.xml"
>> >> >> />
>> >> >>     <sqlMap
>> >> >>
>> >> >>
>> >>
>> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/CARTES02_SqlMap.xml"
>> >> >> />
>> >> >>     <sqlMap
>> >> >>
>> >> >>
>> >>
>> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/CARTES03_SqlMap.xml"
>> >> >> />
>> >> >>     <sqlMap
>> >> >>
>> >> >>
>> >>
>> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/CARTES05_SqlMap.xml"
>> >> >> />
>> >> >>     <sqlMap
>> >> >>
>> >> >>
>> >>
>> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/CARTES20_SqlMap.xml"
>> >> >> />
>> >> >>     <sqlMap
>> >> >>
>> >> >>
>> >>
>> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/CARTES21_SqlMap.xml"
>> >> >> />
>> >> >>     <sqlMap
>> >> >>
>> >> >>
>> >>
>> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/CARTES22_SqlMap.xml"
>> >> >> />
>> >> >>     <sqlMap
>> >> >>
>> >> >>
>> >>
>> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/CARTES4N_SqlMap.xml"
>> >> >> />
>> >> >>     <sqlMap
>> >> >>
>> >> >>
>> >>
>> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/CARTES9C_SqlMap.xml"
>> >> >> />
>> >> >>     <sqlMap
>> >> >>
>> >> >>
>> >>
>> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/CARTES9G_SqlMap.xml"
>> >> >> />
>> >> >>     <sqlMap
>> >> >>
>> >> >>
>> >>
>> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/INDEMNITES_SqlMap.xml"
>> >> >> />
>> >> >>     <sqlMap
>> >> >>
>> >> >>
>> >>
>> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/ECHELONS_SqlMap.xml"
>> >> >> />
>> >> >>     <sqlMap
>> >> >>
>> >> >>
>> >>
>> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/GRADES_SqlMap.xml"
>> >> >> />
>> >> >>     <sqlMap
>> >> >>
>> >> >>
>> >>
>> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/DIVISION_SqlMap.xml"
>> >> >> />
>> >> >>     <sqlMap
>> >> >>
>> >> >>
>> >>
>> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/UTILISATEURS_SqlMap.xml"
>> >> >> />
>> >> >>     <sqlMap
>> >> >>
>> >> >>
>> >>
>> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/HABILITATIONS_SqlMap.xml"
>> >> >> />
>> >> >>     <sqlMap
>> >> >>
>> >> >>
>> >>
>> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/GESTIONNAIRES_SqlMap.xml"
>> >> >> />
>> >> >>     <sqlMap
>> >> >>
>> >> >>
>> >>
>> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/LIBELLES_SqlMap.xml"
>> >> >> />
>> >> >>     <sqlMap
>> >> >>
>> >> >>
>> >>
>> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/POSTES_SqlMap.xml"
>> >> >> />
>> >> >>     <sqlMap
>> >> >>
>> >> >>
>> >>
>> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/MEMOMODIFS_SqlMap.xml"
>> >> >> />
>> >> >>     <sqlMap
>> >> >>
>> >> >>
>> >>
>> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/BATCHS_SqlMap.xml"
>> >> >> />
>> >> >> </sqlMapConfig>
>> >> >>
>> >> >>
>> >> >> ===============
>> >> >>
>> >> >> and there, the dao.xml file..
>> >> >> <!DOCTYPE daoConfig
>> >> >> PUBLIC "-//ibatis.apache.org//DTD DAO Configuration 2.0//EN"
>> >> >> "http://localhost:8888/oci/dao-2.dtd">
>> >> >> <daoConfig>
>> >> >>     <context>
>> >> >>         <transactionManager type="SQLMAP">
>> >> >>             <property name="SqlMapConfigResource"
>> >> >>                 value="conf/SqlMapConfig.xml" />
>> >> >>         </transactionManager>
>> >> >>
>> >> >>                                          <!-- DOSSIERS-->
>> >> >>         <dao
>> >> >>
>> >> >>
>> >>
>> interface="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.DossiersDAO
>> >> >> "
>> >> >>
>> >> >>
>> >>
>> implementation="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.DossiersDAOImpl"
>> >> >> />
>> >> >>
>> >> >>                                         <!-- AGENTS -->
>> >> >>
>> >> >>         <dao
>> >> >>
>> >> >>
>> >>
>> interface="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.AgentsDAO"
>> >> >>
>> >> >>
>> >>
>> implementation="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.AgentsDAOImpl
>> >> >> " />
>> >> >>
>> >> >>                                         <!-- CARTES -->
>> >> >>         <dao
>> >> >>
>> >> >>
>> >>
>> interface="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes01DAO
>> >> >> "
>> >> >>
>> >> >>
>> >>
>> implementation="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes01DAOImpl"
>> >> >> />
>> >> >>         <dao
>> >> >>
>> >> >>
>> >>
>> interface="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes02DAO
>> >> >> "
>> >> >>
>> >> >>
>> >>
>> implementation="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes02DAOImpl"
>> >> >> />
>> >> >>         <dao
>> >> >>
>> >> >>
>> >>
>> interface="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes03DAO
>> >> >> "
>> >> >>
>> >> >>
>> >>
>> implementation="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes03DAOImpl"
>> >> >> />
>> >> >>         <dao
>> >> >>
>> >> >>
>> >>
>> interface="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes05DAO
>> >> >> "
>> >> >>
>> >> >>
>> >>
>> implementation="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes05DAOImpl"
>> >> >> />
>> >> >>         <dao
>> >> >>
>> >> >>
>> >>
>> interface="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes20DAO
>> >> >> "
>> >> >>
>> >> >>
>> >>
>> implementation="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes20DAOImpl"
>> >> >> />
>> >> >>         <dao
>> >> >>
>> >> >>
>> >>
>> interface="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes21DAO
>> >> >> "
>> >> >>
>> >> >>
>> >>
>> implementation="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes21DAOImpl"
>> >> >> />
>> >> >>         <dao
>> >> >>
>> >> >>
>> >>
>> interface="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes22DAO
>> >> >> "
>> >> >>
>> >> >>
>> >>
>> implementation="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes22DAOImpl"
>> >> >> />
>> >> >>         <dao
>> >> >>
>> >> >>
>> >>
>> interface="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes4nDAO
>> >> >> "
>> >> >>
>> >> >>
>> >>
>> implementation="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes4nDAOImpl"
>> >> >> />
>> >> >>         <dao
>> >> >>
>> >> >>
>> >>
>> interface="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes9cDAO
>> >> >> "
>> >> >>
>> >> >>
>> >>
>> implementation="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes9cDAOImpl"
>> >> >> />
>> >> >>         <dao
>> >> >>
>> >> >>
>> >>
>> interface="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes9gDAO
>> >> >> "
>> >> >>
>> >> >>
>> >>
>> implementation="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes9gDAOImpl"
>> >> >> />
>> >> >>
>> >> >>                                     <!-- INDEMNITES -->
>> >> >>         <dao
>> >> >>
>> >> >>
>> >>
>> interface="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.IndemnitesDAO"
>> >> >>
>> >> >>
>> >>
>> implementation="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.IndemnitesDAOImpl
>> >> >> " />
>> >> >>
>> >> >>                                     <!-- ECHELONS -->
>> >> >>         <dao
>> >> >>
>> >> >>
>> >>
>> interface="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.EchelonsDAO"
>> >> >>
>> >> >>
>> >>
>> implementation="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.EchelonsDAOImpl"
>> >> >> />
>> >> >>
>> >> >>                                     <!-- GRADES -->
>> >> >>         <dao
>> >> >>
>> >> >>
>> >>
>> interface="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.GradesDAO"
>> >> >>
>> >> >>
>> >>
>> implementation="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.GradesDAOImpl"
>> >> >> />
>> >> >>
>> >> >>                                     <!-- DIVISION -->
>> >> >>         <dao
>> >> >>
>> >> >>
>> >>
>> interface="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.DivisionDAO"
>> >> >>
>> >> >>
>> >>
>> implementation="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.DivisionDAOImpl"
>> >> >> />
>> >> >>
>> >> >>                                     <!-- UTILISATEURS -->
>> >> >>         <dao
>> >> >>
>> >> >>
>> >>
>> interface="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.UtilisateursDAO"
>> >> >>
>> >> >>
>> >>
>> implementation="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.UtilisateursDAOImpl
>> >> >> " />
>> >> >>
>> >> >>                                     <!-- HABILITATIONS -->
>> >> >>         <dao
>> >> >>
>> >> >>
>> >>
>> interface="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.HabilitationsDAO
>> >> >> "
>> >> >>
>> >> >>
>> >>
>> implementation="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.HabilitationsDAOImpl"
>> >> >> />
>> >> >>
>> >> >>                                         <!-- GESTIONNAIRES  -->
>> >> >>         <dao
>> >> >>
>> >> >>
>> >>
>> interface="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.GestionnairesDAO"
>> >> >>
>> >> >>
>> >>
>> implementation="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.GestionnairesDAOImpl
>> >> >> " />
>> >> >>
>> >> >>                                         <!-- LIBELLES   -->
>> >> >>         <dao
>> >> >>
>> >> >>
>> >>
>> interface="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.LibellesDAO
>> >> >> "
>> >> >>
>> >> >>
>> >>
>> implementation="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.LibellesDAOImpl"
>> >> >> />
>> >> >>                                         <!-- POSTES    -->
>> >> >>         <dao
>> >> >>
>> >> >>
>> >>
>> interface="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.PostesDAO"
>> >> >>
>> >> >>
>> >>
>> implementation="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.PostesDAOImpl"
>> >> >> />
>> >> >>                                         <!-- MEMOMODIFS    -->
>> >> >>         <dao
>> >> >>
>> >> >>
>> >>
>> interface="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.MemoModifsDAO"
>> >> >>             implementation="
>> >> >>
>> >>
>> fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.MemoModifsDAOImpl"
>> >> >> />
>> >> >>                                         <!-- BATCHS -->
>> >> >>         <dao
>> >> >>
>> >> >>
>> >>
>> interface="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.BatchsDAO
>> >> >> "
>> >> >>
>> >> >>
>> >>
>> implementation="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.BatchsDAOImpl"
>> >> >> />
>> >> >>     </context>
>> >> >> </daoConfig>
>> >> >>
>> >> >>
>> >> >>
>> >> >>
>> >> >>
>> >> >> Leucht, Axel wrote:
>> >> >> >
>> >> >> > Looks like a syntax error to mw in one of you're XML files. Could
>> >> you
>> >> >> post
>> >> >> > them here, especially your dao.xml?
>> >> >> >
>> >> >> > I often verify the syntax by opening it with Internet Explorer.
>> >> Perhaps
>> >> >> > there is a simple typo in it?
>> >> >> >
>> >> >> > /Axel
>> >> >> >
>> >> >> >
>> >> >>
>> >> >> --
>> >> >> View this message in context:
>> >> >>
>> >>
>> http://www.nabble.com/unexpected-ExceptionInInitializerError-tf4771224.html#a13649180
>> >> >>
>> >> >> Sent from the iBATIS - User - Java mailing list archive at
>> Nabble.com.
>> >> >>
>> >> >>
>> >> >
>> >> >
>> >>
>> >> --
>> >> View this message in context:
>> >>
>> http://www.nabble.com/unexpected-ExceptionInInitializerError-tf4771224.html#a13649924
>> >>
>> >> Sent from the iBATIS - User - Java mailing list archive at Nabble.com.
>> >>
>> >>
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/unexpected-ExceptionInInitializerError-tf4771224.html#a13650247
>>
>> Sent from the iBATIS - User - Java mailing list archive at Nabble.com.
>>
>>
> 
> 

-- 
View this message in context: http://www.nabble.com/unexpected-ExceptionInInitializerError-tf4771224.html#a13662642
Sent from the iBATIS - User - Java mailing list archive at Nabble.com.


Re: AW: unexpected ExceptionInInitializerError

Posted by Larry Meadors <lm...@apache.org>.
Yeah, sorry w/o == without.

What does your JDK or app server use to read / manage XML data?

Larry


On Nov 8, 2007 9:17 AM, Jeremy Jardin <je...@gmail.com> 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 <je...@gmail.com> 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:
> >> >
> >> > What's with that DTD?
> >> >
> >> > Your server won't be up when that request is made, and if you use the
> >> > ibatis.apache.org DTD, it'll be resolved from the JAR, not over the
> >> > net.
> >> >
> >> > Larry
> >> >
> >> >
> >> > On Nov 8, 2007 8:34 AM, Jeremy Jardin <je...@gmail.com> wrote:
> >> >>
> >> >>
> >> >> so, the sql map config :
> >> >>
> >> >> <?xml version="1.0" encoding="utf-8" ?>
> >> >> <!DOCTYPE sqlMapConfig
> >> >>   PUBLIC "-//iBATIS.com//DTD SQL Map Config 2.0//EN"
> >> >>   " http://localhost:8888/oci/sql-map-config-2.dtd">
> >> >>
> >> >> <sqlMapConfig>
> >> >>     <properties resource="conf/oci.properties" />
> >> >>     <settings cacheModelsEnabled="true" enhancementEnabled="true"
> >> >>         lazyLoadingEnabled="true" maxRequests="32" maxSessions="10"
> >> >>         maxTransactions="5" useStatementNamespaces="true" />
> >> >>     <typeAlias alias="order" type=" testdomain.Order" />
> >> >>
> >> >>     <transactionManager type="JDBC">
> >> >>         <dataSource type="SIMPLE">
> >> >>             <property name="JDBC.Driver" value="${driver}"/>
> >> >>             <property name="JDBC.ConnectionURL" value="${url}"/>
> >> >>             <property name="JDBC.Username" value="${username}"/>
> >> >>             <property name=" JDBC.Password" value="${password}"/>
> >> >>             <property name="JDBC.DefaultAutoCommit" value="true" />
> >> >>         </dataSource>
> >> >>     </transactionManager>
> >> >>
> >> >>     <sqlMap
> >> >>
> >> >>
> >> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/DOSSIERS_SqlMap.xml"
> >> >> />
> >> >>     <sqlMap
> >> >>
> >> >>
> >> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/AGENTS_SqlMap.xml"
> >> >> />
> >> >>     <sqlMap
> >> >>
> >> >>
> >> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/CARTES01_SqlMap.xml"
> >> >> />
> >> >>     <sqlMap
> >> >>
> >> >>
> >> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/CARTES02_SqlMap.xml"
> >> >> />
> >> >>     <sqlMap
> >> >>
> >> >>
> >> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/CARTES03_SqlMap.xml"
> >> >> />
> >> >>     <sqlMap
> >> >>
> >> >>
> >> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/CARTES05_SqlMap.xml"
> >> >> />
> >> >>     <sqlMap
> >> >>
> >> >>
> >> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/CARTES20_SqlMap.xml"
> >> >> />
> >> >>     <sqlMap
> >> >>
> >> >>
> >> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/CARTES21_SqlMap.xml"
> >> >> />
> >> >>     <sqlMap
> >> >>
> >> >>
> >> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/CARTES22_SqlMap.xml"
> >> >> />
> >> >>     <sqlMap
> >> >>
> >> >>
> >> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/CARTES4N_SqlMap.xml"
> >> >> />
> >> >>     <sqlMap
> >> >>
> >> >>
> >> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/CARTES9C_SqlMap.xml"
> >> >> />
> >> >>     <sqlMap
> >> >>
> >> >>
> >> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/CARTES9G_SqlMap.xml"
> >> >> />
> >> >>     <sqlMap
> >> >>
> >> >>
> >> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/INDEMNITES_SqlMap.xml"
> >> >> />
> >> >>     <sqlMap
> >> >>
> >> >>
> >> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/ECHELONS_SqlMap.xml"
> >> >> />
> >> >>     <sqlMap
> >> >>
> >> >>
> >> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/GRADES_SqlMap.xml"
> >> >> />
> >> >>     <sqlMap
> >> >>
> >> >>
> >> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/DIVISION_SqlMap.xml"
> >> >> />
> >> >>     <sqlMap
> >> >>
> >> >>
> >> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/UTILISATEURS_SqlMap.xml"
> >> >> />
> >> >>     <sqlMap
> >> >>
> >> >>
> >> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/HABILITATIONS_SqlMap.xml"
> >> >> />
> >> >>     <sqlMap
> >> >>
> >> >>
> >> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/GESTIONNAIRES_SqlMap.xml"
> >> >> />
> >> >>     <sqlMap
> >> >>
> >> >>
> >> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/LIBELLES_SqlMap.xml"
> >> >> />
> >> >>     <sqlMap
> >> >>
> >> >>
> >> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/POSTES_SqlMap.xml"
> >> >> />
> >> >>     <sqlMap
> >> >>
> >> >>
> >> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/MEMOMODIFS_SqlMap.xml"
> >> >> />
> >> >>     <sqlMap
> >> >>
> >> >>
> >> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/BATCHS_SqlMap.xml"
> >> >> />
> >> >> </sqlMapConfig>
> >> >>
> >> >>
> >> >> ===============
> >> >>
> >> >> and there, the dao.xml file..
> >> >> <!DOCTYPE daoConfig
> >> >> PUBLIC "-//ibatis.apache.org//DTD DAO Configuration 2.0//EN"
> >> >> "http://localhost:8888/oci/dao-2.dtd">
> >> >> <daoConfig>
> >> >>     <context>
> >> >>         <transactionManager type="SQLMAP">
> >> >>             <property name="SqlMapConfigResource"
> >> >>                 value="conf/SqlMapConfig.xml" />
> >> >>         </transactionManager>
> >> >>
> >> >>                                          <!-- DOSSIERS-->
> >> >>         <dao
> >> >>
> >> >>
> >> interface="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.DossiersDAO
> >> >> "
> >> >>
> >> >>
> >> implementation="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.DossiersDAOImpl"
> >> >> />
> >> >>
> >> >>                                         <!-- AGENTS -->
> >> >>
> >> >>         <dao
> >> >>
> >> >>
> >> interface="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.AgentsDAO"
> >> >>
> >> >>
> >> implementation="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.AgentsDAOImpl
> >> >> " />
> >> >>
> >> >>                                         <!-- CARTES -->
> >> >>         <dao
> >> >>
> >> >>
> >> interface="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes01DAO
> >> >> "
> >> >>
> >> >>
> >> implementation="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes01DAOImpl"
> >> >> />
> >> >>         <dao
> >> >>
> >> >>
> >> interface="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes02DAO
> >> >> "
> >> >>
> >> >>
> >> implementation="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes02DAOImpl"
> >> >> />
> >> >>         <dao
> >> >>
> >> >>
> >> interface="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes03DAO
> >> >> "
> >> >>
> >> >>
> >> implementation="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes03DAOImpl"
> >> >> />
> >> >>         <dao
> >> >>
> >> >>
> >> interface="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes05DAO
> >> >> "
> >> >>
> >> >>
> >> implementation="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes05DAOImpl"
> >> >> />
> >> >>         <dao
> >> >>
> >> >>
> >> interface="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes20DAO
> >> >> "
> >> >>
> >> >>
> >> implementation="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes20DAOImpl"
> >> >> />
> >> >>         <dao
> >> >>
> >> >>
> >> interface="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes21DAO
> >> >> "
> >> >>
> >> >>
> >> implementation="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes21DAOImpl"
> >> >> />
> >> >>         <dao
> >> >>
> >> >>
> >> interface="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes22DAO
> >> >> "
> >> >>
> >> >>
> >> implementation="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes22DAOImpl"
> >> >> />
> >> >>         <dao
> >> >>
> >> >>
> >> interface="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes4nDAO
> >> >> "
> >> >>
> >> >>
> >> implementation="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes4nDAOImpl"
> >> >> />
> >> >>         <dao
> >> >>
> >> >>
> >> interface="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes9cDAO
> >> >> "
> >> >>
> >> >>
> >> implementation="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes9cDAOImpl"
> >> >> />
> >> >>         <dao
> >> >>
> >> >>
> >> interface="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes9gDAO
> >> >> "
> >> >>
> >> >>
> >> implementation="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes9gDAOImpl"
> >> >> />
> >> >>
> >> >>                                     <!-- INDEMNITES -->
> >> >>         <dao
> >> >>
> >> >>
> >> interface="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.IndemnitesDAO"
> >> >>
> >> >>
> >> implementation="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.IndemnitesDAOImpl
> >> >> " />
> >> >>
> >> >>                                     <!-- ECHELONS -->
> >> >>         <dao
> >> >>
> >> >>
> >> interface="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.EchelonsDAO"
> >> >>
> >> >>
> >> implementation="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.EchelonsDAOImpl"
> >> >> />
> >> >>
> >> >>                                     <!-- GRADES -->
> >> >>         <dao
> >> >>
> >> >>
> >> interface="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.GradesDAO"
> >> >>
> >> >>
> >> implementation="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.GradesDAOImpl"
> >> >> />
> >> >>
> >> >>                                     <!-- DIVISION -->
> >> >>         <dao
> >> >>
> >> >>
> >> interface="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.DivisionDAO"
> >> >>
> >> >>
> >> implementation="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.DivisionDAOImpl"
> >> >> />
> >> >>
> >> >>                                     <!-- UTILISATEURS -->
> >> >>         <dao
> >> >>
> >> >>
> >> interface="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.UtilisateursDAO"
> >> >>
> >> >>
> >> implementation="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.UtilisateursDAOImpl
> >> >> " />
> >> >>
> >> >>                                     <!-- HABILITATIONS -->
> >> >>         <dao
> >> >>
> >> >>
> >> interface="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.HabilitationsDAO
> >> >> "
> >> >>
> >> >>
> >> implementation="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.HabilitationsDAOImpl"
> >> >> />
> >> >>
> >> >>                                         <!-- GESTIONNAIRES  -->
> >> >>         <dao
> >> >>
> >> >>
> >> interface="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.GestionnairesDAO"
> >> >>
> >> >>
> >> implementation="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.GestionnairesDAOImpl
> >> >> " />
> >> >>
> >> >>                                         <!-- LIBELLES   -->
> >> >>         <dao
> >> >>
> >> >>
> >> interface="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.LibellesDAO
> >> >> "
> >> >>
> >> >>
> >> implementation="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.LibellesDAOImpl"
> >> >> />
> >> >>                                         <!-- POSTES    -->
> >> >>         <dao
> >> >>
> >> >>
> >> interface="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.PostesDAO"
> >> >>
> >> >>
> >> implementation="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.PostesDAOImpl"
> >> >> />
> >> >>                                         <!-- MEMOMODIFS    -->
> >> >>         <dao
> >> >>
> >> >>
> >> interface="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.MemoModifsDAO"
> >> >>             implementation="
> >> >>
> >> fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.MemoModifsDAOImpl"
> >> >> />
> >> >>                                         <!-- BATCHS -->
> >> >>         <dao
> >> >>
> >> >>
> >> interface="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.BatchsDAO
> >> >> "
> >> >>
> >> >>
> >> implementation="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.BatchsDAOImpl"
> >> >> />
> >> >>     </context>
> >> >> </daoConfig>
> >> >>
> >> >>
> >> >>
> >> >>
> >> >>
> >> >> Leucht, Axel wrote:
> >> >> >
> >> >> > Looks like a syntax error to mw in one of you're XML files. Could
> >> you
> >> >> post
> >> >> > them here, especially your dao.xml?
> >> >> >
> >> >> > I often verify the syntax by opening it with Internet Explorer.
> >> Perhaps
> >> >> > there is a simple typo in it?
> >> >> >
> >> >> > /Axel
> >> >> >
> >> >> >
> >> >>
> >> >> --
> >> >> View this message in context:
> >> >>
> >> http://www.nabble.com/unexpected-ExceptionInInitializerError-tf4771224.html#a13649180
> >> >>
> >> >> Sent from the iBATIS - User - Java mailing list archive at Nabble.com.
> >> >>
> >> >>
> >> >
> >> >
> >>
> >> --
> >> View this message in context:
> >> http://www.nabble.com/unexpected-ExceptionInInitializerError-tf4771224.html#a13649924
> >>
> >> Sent from the iBATIS - User - Java mailing list archive at Nabble.com.
> >>
> >>
> >
> >
>
> --
> View this message in context: http://www.nabble.com/unexpected-ExceptionInInitializerError-tf4771224.html#a13650247
>
> Sent from the iBATIS - User - Java mailing list archive at Nabble.com.
>
>

Re: AW: unexpected ExceptionInInitializerError

Posted by Jeremy Jardin <je...@gmail.com>.
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 <je...@gmail.com> 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:
>> >
>> > What's with that DTD?
>> >
>> > Your server won't be up when that request is made, and if you use the
>> > ibatis.apache.org DTD, it'll be resolved from the JAR, not over the
>> > net.
>> >
>> > Larry
>> >
>> >
>> > On Nov 8, 2007 8:34 AM, Jeremy Jardin <je...@gmail.com> wrote:
>> >>
>> >>
>> >> so, the sql map config :
>> >>
>> >> <?xml version="1.0" encoding="utf-8" ?>
>> >> <!DOCTYPE sqlMapConfig
>> >>   PUBLIC "-//iBATIS.com//DTD SQL Map Config 2.0//EN"
>> >>   " http://localhost:8888/oci/sql-map-config-2.dtd">
>> >>
>> >> <sqlMapConfig>
>> >>     <properties resource="conf/oci.properties" />
>> >>     <settings cacheModelsEnabled="true" enhancementEnabled="true"
>> >>         lazyLoadingEnabled="true" maxRequests="32" maxSessions="10"
>> >>         maxTransactions="5" useStatementNamespaces="true" />
>> >>     <typeAlias alias="order" type=" testdomain.Order" />
>> >>
>> >>     <transactionManager type="JDBC">
>> >>         <dataSource type="SIMPLE">
>> >>             <property name="JDBC.Driver" value="${driver}"/>
>> >>             <property name="JDBC.ConnectionURL" value="${url}"/>
>> >>             <property name="JDBC.Username" value="${username}"/>
>> >>             <property name=" JDBC.Password" value="${password}"/>
>> >>             <property name="JDBC.DefaultAutoCommit" value="true" />
>> >>         </dataSource>
>> >>     </transactionManager>
>> >>
>> >>     <sqlMap
>> >>
>> >>
>> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/DOSSIERS_SqlMap.xml"
>> >> />
>> >>     <sqlMap
>> >>
>> >>
>> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/AGENTS_SqlMap.xml"
>> >> />
>> >>     <sqlMap
>> >>
>> >>
>> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/CARTES01_SqlMap.xml"
>> >> />
>> >>     <sqlMap
>> >>
>> >>
>> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/CARTES02_SqlMap.xml"
>> >> />
>> >>     <sqlMap
>> >>
>> >>
>> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/CARTES03_SqlMap.xml"
>> >> />
>> >>     <sqlMap
>> >>
>> >>
>> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/CARTES05_SqlMap.xml"
>> >> />
>> >>     <sqlMap
>> >>
>> >>
>> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/CARTES20_SqlMap.xml"
>> >> />
>> >>     <sqlMap
>> >>
>> >>
>> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/CARTES21_SqlMap.xml"
>> >> />
>> >>     <sqlMap
>> >>
>> >>
>> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/CARTES22_SqlMap.xml"
>> >> />
>> >>     <sqlMap
>> >>
>> >>
>> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/CARTES4N_SqlMap.xml"
>> >> />
>> >>     <sqlMap
>> >>
>> >>
>> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/CARTES9C_SqlMap.xml"
>> >> />
>> >>     <sqlMap
>> >>
>> >>
>> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/CARTES9G_SqlMap.xml"
>> >> />
>> >>     <sqlMap
>> >>
>> >>
>> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/INDEMNITES_SqlMap.xml"
>> >> />
>> >>     <sqlMap
>> >>
>> >>
>> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/ECHELONS_SqlMap.xml"
>> >> />
>> >>     <sqlMap
>> >>
>> >>
>> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/GRADES_SqlMap.xml"
>> >> />
>> >>     <sqlMap
>> >>
>> >>
>> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/DIVISION_SqlMap.xml"
>> >> />
>> >>     <sqlMap
>> >>
>> >>
>> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/UTILISATEURS_SqlMap.xml"
>> >> />
>> >>     <sqlMap
>> >>
>> >>
>> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/HABILITATIONS_SqlMap.xml"
>> >> />
>> >>     <sqlMap
>> >>
>> >>
>> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/GESTIONNAIRES_SqlMap.xml"
>> >> />
>> >>     <sqlMap
>> >>
>> >>
>> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/LIBELLES_SqlMap.xml"
>> >> />
>> >>     <sqlMap
>> >>
>> >>
>> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/POSTES_SqlMap.xml"
>> >> />
>> >>     <sqlMap
>> >>
>> >>
>> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/MEMOMODIFS_SqlMap.xml"
>> >> />
>> >>     <sqlMap
>> >>
>> >>
>> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/BATCHS_SqlMap.xml"
>> >> />
>> >> </sqlMapConfig>
>> >>
>> >>
>> >> ===============
>> >>
>> >> and there, the dao.xml file..
>> >> <!DOCTYPE daoConfig
>> >> PUBLIC "-//ibatis.apache.org//DTD DAO Configuration 2.0//EN"
>> >> "http://localhost:8888/oci/dao-2.dtd">
>> >> <daoConfig>
>> >>     <context>
>> >>         <transactionManager type="SQLMAP">
>> >>             <property name="SqlMapConfigResource"
>> >>                 value="conf/SqlMapConfig.xml" />
>> >>         </transactionManager>
>> >>
>> >>                                          <!-- DOSSIERS-->
>> >>         <dao
>> >>
>> >>
>> interface="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.DossiersDAO
>> >> "
>> >>
>> >>
>> implementation="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.DossiersDAOImpl"
>> >> />
>> >>
>> >>                                         <!-- AGENTS -->
>> >>
>> >>         <dao
>> >>
>> >>
>> interface="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.AgentsDAO"
>> >>
>> >>
>> implementation="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.AgentsDAOImpl
>> >> " />
>> >>
>> >>                                         <!-- CARTES -->
>> >>         <dao
>> >>
>> >>
>> interface="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes01DAO
>> >> "
>> >>
>> >>
>> implementation="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes01DAOImpl"
>> >> />
>> >>         <dao
>> >>
>> >>
>> interface="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes02DAO
>> >> "
>> >>
>> >>
>> implementation="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes02DAOImpl"
>> >> />
>> >>         <dao
>> >>
>> >>
>> interface="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes03DAO
>> >> "
>> >>
>> >>
>> implementation="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes03DAOImpl"
>> >> />
>> >>         <dao
>> >>
>> >>
>> interface="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes05DAO
>> >> "
>> >>
>> >>
>> implementation="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes05DAOImpl"
>> >> />
>> >>         <dao
>> >>
>> >>
>> interface="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes20DAO
>> >> "
>> >>
>> >>
>> implementation="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes20DAOImpl"
>> >> />
>> >>         <dao
>> >>
>> >>
>> interface="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes21DAO
>> >> "
>> >>
>> >>
>> implementation="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes21DAOImpl"
>> >> />
>> >>         <dao
>> >>
>> >>
>> interface="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes22DAO
>> >> "
>> >>
>> >>
>> implementation="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes22DAOImpl"
>> >> />
>> >>         <dao
>> >>
>> >>
>> interface="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes4nDAO
>> >> "
>> >>
>> >>
>> implementation="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes4nDAOImpl"
>> >> />
>> >>         <dao
>> >>
>> >>
>> interface="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes9cDAO
>> >> "
>> >>
>> >>
>> implementation="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes9cDAOImpl"
>> >> />
>> >>         <dao
>> >>
>> >>
>> interface="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes9gDAO
>> >> "
>> >>
>> >>
>> implementation="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes9gDAOImpl"
>> >> />
>> >>
>> >>                                     <!-- INDEMNITES -->
>> >>         <dao
>> >>
>> >>
>> interface="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.IndemnitesDAO"
>> >>
>> >>
>> implementation="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.IndemnitesDAOImpl
>> >> " />
>> >>
>> >>                                     <!-- ECHELONS -->
>> >>         <dao
>> >>
>> >>
>> interface="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.EchelonsDAO"
>> >>
>> >>
>> implementation="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.EchelonsDAOImpl"
>> >> />
>> >>
>> >>                                     <!-- GRADES -->
>> >>         <dao
>> >>
>> >>
>> interface="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.GradesDAO"
>> >>
>> >>
>> implementation="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.GradesDAOImpl"
>> >> />
>> >>
>> >>                                     <!-- DIVISION -->
>> >>         <dao
>> >>
>> >>
>> interface="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.DivisionDAO"
>> >>
>> >>
>> implementation="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.DivisionDAOImpl"
>> >> />
>> >>
>> >>                                     <!-- UTILISATEURS -->
>> >>         <dao
>> >>
>> >>
>> interface="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.UtilisateursDAO"
>> >>
>> >>
>> implementation="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.UtilisateursDAOImpl
>> >> " />
>> >>
>> >>                                     <!-- HABILITATIONS -->
>> >>         <dao
>> >>
>> >>
>> interface="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.HabilitationsDAO
>> >> "
>> >>
>> >>
>> implementation="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.HabilitationsDAOImpl"
>> >> />
>> >>
>> >>                                         <!-- GESTIONNAIRES  -->
>> >>         <dao
>> >>
>> >>
>> interface="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.GestionnairesDAO"
>> >>
>> >>
>> implementation="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.GestionnairesDAOImpl
>> >> " />
>> >>
>> >>                                         <!-- LIBELLES   -->
>> >>         <dao
>> >>
>> >>
>> interface="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.LibellesDAO
>> >> "
>> >>
>> >>
>> implementation="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.LibellesDAOImpl"
>> >> />
>> >>                                         <!-- POSTES    -->
>> >>         <dao
>> >>
>> >>
>> interface="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.PostesDAO"
>> >>
>> >>
>> implementation="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.PostesDAOImpl"
>> >> />
>> >>                                         <!-- MEMOMODIFS    -->
>> >>         <dao
>> >>
>> >>
>> interface="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.MemoModifsDAO"
>> >>             implementation="
>> >>
>> fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.MemoModifsDAOImpl"
>> >> />
>> >>                                         <!-- BATCHS -->
>> >>         <dao
>> >>
>> >>
>> interface="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.BatchsDAO
>> >> "
>> >>
>> >>
>> implementation="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.BatchsDAOImpl"
>> >> />
>> >>     </context>
>> >> </daoConfig>
>> >>
>> >>
>> >>
>> >>
>> >>
>> >> Leucht, Axel wrote:
>> >> >
>> >> > Looks like a syntax error to mw in one of you're XML files. Could
>> you
>> >> post
>> >> > them here, especially your dao.xml?
>> >> >
>> >> > I often verify the syntax by opening it with Internet Explorer.
>> Perhaps
>> >> > there is a simple typo in it?
>> >> >
>> >> > /Axel
>> >> >
>> >> >
>> >>
>> >> --
>> >> View this message in context:
>> >>
>> http://www.nabble.com/unexpected-ExceptionInInitializerError-tf4771224.html#a13649180
>> >>
>> >> Sent from the iBATIS - User - Java mailing list archive at Nabble.com.
>> >>
>> >>
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/unexpected-ExceptionInInitializerError-tf4771224.html#a13649924
>>
>> Sent from the iBATIS - User - Java mailing list archive at Nabble.com.
>>
>>
> 
> 

-- 
View this message in context: http://www.nabble.com/unexpected-ExceptionInInitializerError-tf4771224.html#a13650247
Sent from the iBATIS - User - Java mailing list archive at Nabble.com.


Re: AW: unexpected ExceptionInInitializerError

Posted by Larry Meadors <lm...@apache.org>.
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 <je...@gmail.com> 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:
> >
> > What's with that DTD?
> >
> > Your server won't be up when that request is made, and if you use the
> > ibatis.apache.org DTD, it'll be resolved from the JAR, not over the
> > net.
> >
> > Larry
> >
> >
> > On Nov 8, 2007 8:34 AM, Jeremy Jardin <je...@gmail.com> wrote:
> >>
> >>
> >> so, the sql map config :
> >>
> >> <?xml version="1.0" encoding="utf-8" ?>
> >> <!DOCTYPE sqlMapConfig
> >>   PUBLIC "-//iBATIS.com//DTD SQL Map Config 2.0//EN"
> >>   " http://localhost:8888/oci/sql-map-config-2.dtd">
> >>
> >> <sqlMapConfig>
> >>     <properties resource="conf/oci.properties" />
> >>     <settings cacheModelsEnabled="true" enhancementEnabled="true"
> >>         lazyLoadingEnabled="true" maxRequests="32" maxSessions="10"
> >>         maxTransactions="5" useStatementNamespaces="true" />
> >>     <typeAlias alias="order" type=" testdomain.Order" />
> >>
> >>     <transactionManager type="JDBC">
> >>         <dataSource type="SIMPLE">
> >>             <property name="JDBC.Driver" value="${driver}"/>
> >>             <property name="JDBC.ConnectionURL" value="${url}"/>
> >>             <property name="JDBC.Username" value="${username}"/>
> >>             <property name=" JDBC.Password" value="${password}"/>
> >>             <property name="JDBC.DefaultAutoCommit" value="true" />
> >>         </dataSource>
> >>     </transactionManager>
> >>
> >>     <sqlMap
> >>
> >> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/DOSSIERS_SqlMap.xml"
> >> />
> >>     <sqlMap
> >>
> >> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/AGENTS_SqlMap.xml"
> >> />
> >>     <sqlMap
> >>
> >> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/CARTES01_SqlMap.xml"
> >> />
> >>     <sqlMap
> >>
> >> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/CARTES02_SqlMap.xml"
> >> />
> >>     <sqlMap
> >>
> >> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/CARTES03_SqlMap.xml"
> >> />
> >>     <sqlMap
> >>
> >> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/CARTES05_SqlMap.xml"
> >> />
> >>     <sqlMap
> >>
> >> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/CARTES20_SqlMap.xml"
> >> />
> >>     <sqlMap
> >>
> >> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/CARTES21_SqlMap.xml"
> >> />
> >>     <sqlMap
> >>
> >> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/CARTES22_SqlMap.xml"
> >> />
> >>     <sqlMap
> >>
> >> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/CARTES4N_SqlMap.xml"
> >> />
> >>     <sqlMap
> >>
> >> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/CARTES9C_SqlMap.xml"
> >> />
> >>     <sqlMap
> >>
> >> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/CARTES9G_SqlMap.xml"
> >> />
> >>     <sqlMap
> >>
> >> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/INDEMNITES_SqlMap.xml"
> >> />
> >>     <sqlMap
> >>
> >> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/ECHELONS_SqlMap.xml"
> >> />
> >>     <sqlMap
> >>
> >> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/GRADES_SqlMap.xml"
> >> />
> >>     <sqlMap
> >>
> >> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/DIVISION_SqlMap.xml"
> >> />
> >>     <sqlMap
> >>
> >> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/UTILISATEURS_SqlMap.xml"
> >> />
> >>     <sqlMap
> >>
> >> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/HABILITATIONS_SqlMap.xml"
> >> />
> >>     <sqlMap
> >>
> >> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/GESTIONNAIRES_SqlMap.xml"
> >> />
> >>     <sqlMap
> >>
> >> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/LIBELLES_SqlMap.xml"
> >> />
> >>     <sqlMap
> >>
> >> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/POSTES_SqlMap.xml"
> >> />
> >>     <sqlMap
> >>
> >> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/MEMOMODIFS_SqlMap.xml"
> >> />
> >>     <sqlMap
> >>
> >> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/BATCHS_SqlMap.xml"
> >> />
> >> </sqlMapConfig>
> >>
> >>
> >> ===============
> >>
> >> and there, the dao.xml file..
> >> <!DOCTYPE daoConfig
> >> PUBLIC "-//ibatis.apache.org//DTD DAO Configuration 2.0//EN"
> >> "http://localhost:8888/oci/dao-2.dtd">
> >> <daoConfig>
> >>     <context>
> >>         <transactionManager type="SQLMAP">
> >>             <property name="SqlMapConfigResource"
> >>                 value="conf/SqlMapConfig.xml" />
> >>         </transactionManager>
> >>
> >>                                          <!-- DOSSIERS-->
> >>         <dao
> >>
> >> interface="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.DossiersDAO
> >> "
> >>
> >> implementation="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.DossiersDAOImpl"
> >> />
> >>
> >>                                         <!-- AGENTS -->
> >>
> >>         <dao
> >>
> >> interface="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.AgentsDAO"
> >>
> >> implementation="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.AgentsDAOImpl
> >> " />
> >>
> >>                                         <!-- CARTES -->
> >>         <dao
> >>
> >> interface="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes01DAO
> >> "
> >>
> >> implementation="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes01DAOImpl"
> >> />
> >>         <dao
> >>
> >> interface="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes02DAO
> >> "
> >>
> >> implementation="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes02DAOImpl"
> >> />
> >>         <dao
> >>
> >> interface="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes03DAO
> >> "
> >>
> >> implementation="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes03DAOImpl"
> >> />
> >>         <dao
> >>
> >> interface="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes05DAO
> >> "
> >>
> >> implementation="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes05DAOImpl"
> >> />
> >>         <dao
> >>
> >> interface="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes20DAO
> >> "
> >>
> >> implementation="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes20DAOImpl"
> >> />
> >>         <dao
> >>
> >> interface="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes21DAO
> >> "
> >>
> >> implementation="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes21DAOImpl"
> >> />
> >>         <dao
> >>
> >> interface="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes22DAO
> >> "
> >>
> >> implementation="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes22DAOImpl"
> >> />
> >>         <dao
> >>
> >> interface="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes4nDAO
> >> "
> >>
> >> implementation="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes4nDAOImpl"
> >> />
> >>         <dao
> >>
> >> interface="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes9cDAO
> >> "
> >>
> >> implementation="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes9cDAOImpl"
> >> />
> >>         <dao
> >>
> >> interface="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes9gDAO
> >> "
> >>
> >> implementation="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes9gDAOImpl"
> >> />
> >>
> >>                                     <!-- INDEMNITES -->
> >>         <dao
> >>
> >> interface="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.IndemnitesDAO"
> >>
> >> implementation="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.IndemnitesDAOImpl
> >> " />
> >>
> >>                                     <!-- ECHELONS -->
> >>         <dao
> >>
> >> interface="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.EchelonsDAO"
> >>
> >> implementation="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.EchelonsDAOImpl"
> >> />
> >>
> >>                                     <!-- GRADES -->
> >>         <dao
> >>
> >> interface="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.GradesDAO"
> >>
> >> implementation="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.GradesDAOImpl"
> >> />
> >>
> >>                                     <!-- DIVISION -->
> >>         <dao
> >>
> >> interface="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.DivisionDAO"
> >>
> >> implementation="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.DivisionDAOImpl"
> >> />
> >>
> >>                                     <!-- UTILISATEURS -->
> >>         <dao
> >>
> >> interface="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.UtilisateursDAO"
> >>
> >> implementation="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.UtilisateursDAOImpl
> >> " />
> >>
> >>                                     <!-- HABILITATIONS -->
> >>         <dao
> >>
> >> interface="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.HabilitationsDAO
> >> "
> >>
> >> implementation="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.HabilitationsDAOImpl"
> >> />
> >>
> >>                                         <!-- GESTIONNAIRES  -->
> >>         <dao
> >>
> >> interface="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.GestionnairesDAO"
> >>
> >> implementation="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.GestionnairesDAOImpl
> >> " />
> >>
> >>                                         <!-- LIBELLES   -->
> >>         <dao
> >>
> >> interface="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.LibellesDAO
> >> "
> >>
> >> implementation="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.LibellesDAOImpl"
> >> />
> >>                                         <!-- POSTES    -->
> >>         <dao
> >>
> >> interface="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.PostesDAO"
> >>
> >> implementation="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.PostesDAOImpl"
> >> />
> >>                                         <!-- MEMOMODIFS    -->
> >>         <dao
> >>
> >> interface="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.MemoModifsDAO"
> >>             implementation="
> >> fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.MemoModifsDAOImpl"
> >> />
> >>                                         <!-- BATCHS -->
> >>         <dao
> >>
> >> interface="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.BatchsDAO
> >> "
> >>
> >> implementation="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.BatchsDAOImpl"
> >> />
> >>     </context>
> >> </daoConfig>
> >>
> >>
> >>
> >>
> >>
> >> Leucht, Axel wrote:
> >> >
> >> > Looks like a syntax error to mw in one of you're XML files. Could you
> >> post
> >> > them here, especially your dao.xml?
> >> >
> >> > I often verify the syntax by opening it with Internet Explorer. Perhaps
> >> > there is a simple typo in it?
> >> >
> >> > /Axel
> >> >
> >> >
> >>
> >> --
> >> View this message in context:
> >> http://www.nabble.com/unexpected-ExceptionInInitializerError-tf4771224.html#a13649180
> >>
> >> Sent from the iBATIS - User - Java mailing list archive at Nabble.com.
> >>
> >>
> >
> >
>
> --
> View this message in context: http://www.nabble.com/unexpected-ExceptionInInitializerError-tf4771224.html#a13649924
>
> Sent from the iBATIS - User - Java mailing list archive at Nabble.com.
>
>

Re: AW: unexpected ExceptionInInitializerError

Posted by Jeremy Jardin <je...@gmail.com>.
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:
> 
> What's with that DTD?
> 
> Your server won't be up when that request is made, and if you use the
> ibatis.apache.org DTD, it'll be resolved from the JAR, not over the
> net.
> 
> Larry
> 
> 
> On Nov 8, 2007 8:34 AM, Jeremy Jardin <je...@gmail.com> wrote:
>>
>>
>> so, the sql map config :
>>
>> <?xml version="1.0" encoding="utf-8" ?>
>> <!DOCTYPE sqlMapConfig
>>   PUBLIC "-//iBATIS.com//DTD SQL Map Config 2.0//EN"
>>   " http://localhost:8888/oci/sql-map-config-2.dtd">
>>
>> <sqlMapConfig>
>>     <properties resource="conf/oci.properties" />
>>     <settings cacheModelsEnabled="true" enhancementEnabled="true"
>>         lazyLoadingEnabled="true" maxRequests="32" maxSessions="10"
>>         maxTransactions="5" useStatementNamespaces="true" />
>>     <typeAlias alias="order" type=" testdomain.Order" />
>>
>>     <transactionManager type="JDBC">
>>         <dataSource type="SIMPLE">
>>             <property name="JDBC.Driver" value="${driver}"/>
>>             <property name="JDBC.ConnectionURL" value="${url}"/>
>>             <property name="JDBC.Username" value="${username}"/>
>>             <property name=" JDBC.Password" value="${password}"/>
>>             <property name="JDBC.DefaultAutoCommit" value="true" />
>>         </dataSource>
>>     </transactionManager>
>>
>>     <sqlMap
>>
>> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/DOSSIERS_SqlMap.xml"
>> />
>>     <sqlMap
>>
>> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/AGENTS_SqlMap.xml"
>> />
>>     <sqlMap
>>
>> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/CARTES01_SqlMap.xml"
>> />
>>     <sqlMap
>>
>> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/CARTES02_SqlMap.xml"
>> />
>>     <sqlMap
>>
>> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/CARTES03_SqlMap.xml"
>> />
>>     <sqlMap
>>
>> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/CARTES05_SqlMap.xml"
>> />
>>     <sqlMap
>>
>> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/CARTES20_SqlMap.xml"
>> />
>>     <sqlMap
>>
>> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/CARTES21_SqlMap.xml"
>> />
>>     <sqlMap
>>
>> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/CARTES22_SqlMap.xml"
>> />
>>     <sqlMap
>>
>> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/CARTES4N_SqlMap.xml"
>> />
>>     <sqlMap
>>
>> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/CARTES9C_SqlMap.xml"
>> />
>>     <sqlMap
>>
>> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/CARTES9G_SqlMap.xml"
>> />
>>     <sqlMap
>>
>> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/INDEMNITES_SqlMap.xml"
>> />
>>     <sqlMap
>>
>> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/ECHELONS_SqlMap.xml"
>> />
>>     <sqlMap
>>
>> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/GRADES_SqlMap.xml"
>> />
>>     <sqlMap
>>
>> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/DIVISION_SqlMap.xml"
>> />
>>     <sqlMap
>>
>> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/UTILISATEURS_SqlMap.xml"
>> />
>>     <sqlMap
>>
>> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/HABILITATIONS_SqlMap.xml"
>> />
>>     <sqlMap
>>
>> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/GESTIONNAIRES_SqlMap.xml"
>> />
>>     <sqlMap
>>
>> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/LIBELLES_SqlMap.xml"
>> />
>>     <sqlMap
>>
>> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/POSTES_SqlMap.xml"
>> />
>>     <sqlMap
>>
>> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/MEMOMODIFS_SqlMap.xml"
>> />
>>     <sqlMap
>>
>> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/BATCHS_SqlMap.xml"
>> />
>> </sqlMapConfig>
>>
>>
>> ===============
>>
>> and there, the dao.xml file..
>> <!DOCTYPE daoConfig
>> PUBLIC "-//ibatis.apache.org//DTD DAO Configuration 2.0//EN"
>> "http://localhost:8888/oci/dao-2.dtd">
>> <daoConfig>
>>     <context>
>>         <transactionManager type="SQLMAP">
>>             <property name="SqlMapConfigResource"
>>                 value="conf/SqlMapConfig.xml" />
>>         </transactionManager>
>>
>>                                          <!-- DOSSIERS-->
>>         <dao
>>
>> interface="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.DossiersDAO
>> "
>>
>> implementation="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.DossiersDAOImpl"
>> />
>>
>>                                         <!-- AGENTS -->
>>
>>         <dao
>>
>> interface="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.AgentsDAO"
>>
>> implementation="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.AgentsDAOImpl
>> " />
>>
>>                                         <!-- CARTES -->
>>         <dao
>>
>> interface="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes01DAO
>> "
>>
>> implementation="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes01DAOImpl"
>> />
>>         <dao
>>
>> interface="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes02DAO
>> "
>>
>> implementation="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes02DAOImpl"
>> />
>>         <dao
>>
>> interface="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes03DAO
>> "
>>
>> implementation="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes03DAOImpl"
>> />
>>         <dao
>>
>> interface="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes05DAO
>> "
>>
>> implementation="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes05DAOImpl"
>> />
>>         <dao
>>
>> interface="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes20DAO
>> "
>>
>> implementation="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes20DAOImpl"
>> />
>>         <dao
>>
>> interface="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes21DAO
>> "
>>
>> implementation="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes21DAOImpl"
>> />
>>         <dao
>>
>> interface="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes22DAO
>> "
>>
>> implementation="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes22DAOImpl"
>> />
>>         <dao
>>
>> interface="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes4nDAO
>> "
>>
>> implementation="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes4nDAOImpl"
>> />
>>         <dao
>>
>> interface="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes9cDAO
>> "
>>
>> implementation="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes9cDAOImpl"
>> />
>>         <dao
>>
>> interface="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes9gDAO
>> "
>>
>> implementation="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes9gDAOImpl"
>> />
>>
>>                                     <!-- INDEMNITES -->
>>         <dao
>>
>> interface="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.IndemnitesDAO"
>>
>> implementation="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.IndemnitesDAOImpl
>> " />
>>
>>                                     <!-- ECHELONS -->
>>         <dao
>>
>> interface="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.EchelonsDAO"
>>
>> implementation="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.EchelonsDAOImpl"
>> />
>>
>>                                     <!-- GRADES -->
>>         <dao
>>
>> interface="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.GradesDAO"
>>
>> implementation="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.GradesDAOImpl"
>> />
>>
>>                                     <!-- DIVISION -->
>>         <dao
>>
>> interface="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.DivisionDAO"
>>
>> implementation="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.DivisionDAOImpl"
>> />
>>
>>                                     <!-- UTILISATEURS -->
>>         <dao
>>
>> interface="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.UtilisateursDAO"
>>
>> implementation="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.UtilisateursDAOImpl
>> " />
>>
>>                                     <!-- HABILITATIONS -->
>>         <dao
>>
>> interface="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.HabilitationsDAO
>> "
>>
>> implementation="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.HabilitationsDAOImpl"
>> />
>>
>>                                         <!-- GESTIONNAIRES  -->
>>         <dao
>>
>> interface="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.GestionnairesDAO"
>>
>> implementation="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.GestionnairesDAOImpl
>> " />
>>
>>                                         <!-- LIBELLES   -->
>>         <dao
>>
>> interface="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.LibellesDAO
>> "
>>
>> implementation="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.LibellesDAOImpl"
>> />
>>                                         <!-- POSTES    -->
>>         <dao
>>
>> interface="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.PostesDAO"
>>
>> implementation="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.PostesDAOImpl"
>> />
>>                                         <!-- MEMOMODIFS    -->
>>         <dao
>>
>> interface="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.MemoModifsDAO"
>>             implementation="
>> fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.MemoModifsDAOImpl"
>> />
>>                                         <!-- BATCHS -->
>>         <dao
>>
>> interface="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.BatchsDAO
>> "
>>
>> implementation="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.BatchsDAOImpl"
>> />
>>     </context>
>> </daoConfig>
>>
>>
>>
>>
>>
>> Leucht, Axel wrote:
>> >
>> > Looks like a syntax error to mw in one of you're XML files. Could you
>> post
>> > them here, especially your dao.xml?
>> >
>> > I often verify the syntax by opening it with Internet Explorer. Perhaps
>> > there is a simple typo in it?
>> >
>> > /Axel
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/unexpected-ExceptionInInitializerError-tf4771224.html#a13649180
>>
>> Sent from the iBATIS - User - Java mailing list archive at Nabble.com.
>>
>>
> 
> 

-- 
View this message in context: http://www.nabble.com/unexpected-ExceptionInInitializerError-tf4771224.html#a13649924
Sent from the iBATIS - User - Java mailing list archive at Nabble.com.


Re: AW: unexpected ExceptionInInitializerError

Posted by Larry Meadors <lm...@apache.org>.
What's with that DTD?

Your server won't be up when that request is made, and if you use the
ibatis.apache.org DTD, it'll be resolved from the JAR, not over the
net.

Larry


On Nov 8, 2007 8:34 AM, Jeremy Jardin <je...@gmail.com> wrote:
>
>
> so, the sql map config :
>
> <?xml version="1.0" encoding="utf-8" ?>
> <!DOCTYPE sqlMapConfig
>   PUBLIC "-//iBATIS.com//DTD SQL Map Config 2.0//EN"
>   " http://localhost:8888/oci/sql-map-config-2.dtd">
>
> <sqlMapConfig>
>     <properties resource="conf/oci.properties" />
>     <settings cacheModelsEnabled="true" enhancementEnabled="true"
>         lazyLoadingEnabled="true" maxRequests="32" maxSessions="10"
>         maxTransactions="5" useStatementNamespaces="true" />
>     <typeAlias alias="order" type=" testdomain.Order" />
>
>     <transactionManager type="JDBC">
>         <dataSource type="SIMPLE">
>             <property name="JDBC.Driver" value="${driver}"/>
>             <property name="JDBC.ConnectionURL" value="${url}"/>
>             <property name="JDBC.Username" value="${username}"/>
>             <property name=" JDBC.Password" value="${password}"/>
>             <property name="JDBC.DefaultAutoCommit" value="true" />
>         </dataSource>
>     </transactionManager>
>
>     <sqlMap
>
> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/DOSSIERS_SqlMap.xml"
> />
>     <sqlMap
>
> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/AGENTS_SqlMap.xml"
> />
>     <sqlMap
>
> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/CARTES01_SqlMap.xml"
> />
>     <sqlMap
>
> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/CARTES02_SqlMap.xml"
> />
>     <sqlMap
>
> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/CARTES03_SqlMap.xml"
> />
>     <sqlMap
>
> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/CARTES05_SqlMap.xml"
> />
>     <sqlMap
>
> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/CARTES20_SqlMap.xml"
> />
>     <sqlMap
>
> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/CARTES21_SqlMap.xml"
> />
>     <sqlMap
>
> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/CARTES22_SqlMap.xml"
> />
>     <sqlMap
>
> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/CARTES4N_SqlMap.xml"
> />
>     <sqlMap
>
> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/CARTES9C_SqlMap.xml"
> />
>     <sqlMap
>
> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/CARTES9G_SqlMap.xml"
> />
>     <sqlMap
>
> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/INDEMNITES_SqlMap.xml"
> />
>     <sqlMap
>
> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/ECHELONS_SqlMap.xml"
> />
>     <sqlMap
>
> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/GRADES_SqlMap.xml"
> />
>     <sqlMap
>
> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/DIVISION_SqlMap.xml"
> />
>     <sqlMap
>
> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/UTILISATEURS_SqlMap.xml"
> />
>     <sqlMap
>
> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/HABILITATIONS_SqlMap.xml"
> />
>     <sqlMap
>
> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/GESTIONNAIRES_SqlMap.xml"
> />
>     <sqlMap
>
> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/LIBELLES_SqlMap.xml"
> />
>     <sqlMap
>
> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/POSTES_SqlMap.xml"
> />
>     <sqlMap
>
> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/MEMOMODIFS_SqlMap.xml"
> />
>     <sqlMap
>
> resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/BATCHS_SqlMap.xml"
> />
> </sqlMapConfig>
>
>
> ===============
>
> and there, the dao.xml file..
> <!DOCTYPE daoConfig
> PUBLIC "-//ibatis.apache.org//DTD DAO Configuration 2.0//EN"
> "http://localhost:8888/oci/dao-2.dtd">
> <daoConfig>
>     <context>
>         <transactionManager type="SQLMAP">
>             <property name="SqlMapConfigResource"
>                 value="conf/SqlMapConfig.xml" />
>         </transactionManager>
>
>                                          <!-- DOSSIERS-->
>         <dao
>
> interface="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.DossiersDAO
> "
>
> implementation="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.DossiersDAOImpl"
> />
>
>                                         <!-- AGENTS -->
>
>         <dao
>
> interface="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.AgentsDAO"
>
> implementation="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.AgentsDAOImpl
> " />
>
>                                         <!-- CARTES -->
>         <dao
>
> interface="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes01DAO
> "
>
> implementation="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes01DAOImpl"
> />
>         <dao
>
> interface="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes02DAO
> "
>
> implementation="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes02DAOImpl"
> />
>         <dao
>
> interface="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes03DAO
> "
>
> implementation="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes03DAOImpl"
> />
>         <dao
>
> interface="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes05DAO
> "
>
> implementation="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes05DAOImpl"
> />
>         <dao
>
> interface="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes20DAO
> "
>
> implementation="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes20DAOImpl"
> />
>         <dao
>
> interface="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes21DAO
> "
>
> implementation="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes21DAOImpl"
> />
>         <dao
>
> interface="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes22DAO
> "
>
> implementation="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes22DAOImpl"
> />
>         <dao
>
> interface="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes4nDAO
> "
>
> implementation="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes4nDAOImpl"
> />
>         <dao
>
> interface="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes9cDAO
> "
>
> implementation="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes9cDAOImpl"
> />
>         <dao
>
> interface="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes9gDAO
> "
>
> implementation="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes9gDAOImpl"
> />
>
>                                     <!-- INDEMNITES -->
>         <dao
>
> interface="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.IndemnitesDAO"
>
> implementation="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.IndemnitesDAOImpl
> " />
>
>                                     <!-- ECHELONS -->
>         <dao
>
> interface="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.EchelonsDAO"
>
> implementation="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.EchelonsDAOImpl"
> />
>
>                                     <!-- GRADES -->
>         <dao
>
> interface="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.GradesDAO"
>
> implementation="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.GradesDAOImpl"
> />
>
>                                     <!-- DIVISION -->
>         <dao
>
> interface="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.DivisionDAO"
>
> implementation="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.DivisionDAOImpl"
> />
>
>                                     <!-- UTILISATEURS -->
>         <dao
>
> interface="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.UtilisateursDAO"
>
> implementation="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.UtilisateursDAOImpl
> " />
>
>                                     <!-- HABILITATIONS -->
>         <dao
>
> interface="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.HabilitationsDAO
> "
>
> implementation="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.HabilitationsDAOImpl"
> />
>
>                                         <!-- GESTIONNAIRES  -->
>         <dao
>
> interface="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.GestionnairesDAO"
>
> implementation="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.GestionnairesDAOImpl
> " />
>
>                                         <!-- LIBELLES   -->
>         <dao
>
> interface="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.LibellesDAO
> "
>
> implementation="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.LibellesDAOImpl"
> />
>                                         <!-- POSTES    -->
>         <dao
>
> interface="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.PostesDAO"
>
> implementation="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.PostesDAOImpl"
> />
>                                         <!-- MEMOMODIFS    -->
>         <dao
>
> interface="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.MemoModifsDAO"
>             implementation="
> fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.MemoModifsDAOImpl" />
>                                         <!-- BATCHS -->
>         <dao
>
> interface="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.BatchsDAO "
>
> implementation="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.BatchsDAOImpl"
> />
>     </context>
> </daoConfig>
>
>
>
>
>
> Leucht, Axel wrote:
> >
> > Looks like a syntax error to mw in one of you're XML files. Could you post
> > them here, especially your dao.xml?
> >
> > I often verify the syntax by opening it with Internet Explorer. Perhaps
> > there is a simple typo in it?
> >
> > /Axel
> >
> >
>
> --
> View this message in context: http://www.nabble.com/unexpected-ExceptionInInitializerError-tf4771224.html#a13649180
>
> Sent from the iBATIS - User - Java mailing list archive at Nabble.com.
>
>

Re: AW: unexpected ExceptionInInitializerError

Posted by Jeremy Jardin <je...@gmail.com>.

so, the sql map config :

<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE sqlMapConfig
  PUBLIC "-//iBATIS.com//DTD SQL Map Config 2.0//EN"
  " http://localhost:8888/oci/sql-map-config-2.dtd">

<sqlMapConfig>
    <properties resource="conf/oci.properties" />
    <settings cacheModelsEnabled="true" enhancementEnabled="true"
        lazyLoadingEnabled="true" maxRequests="32" maxSessions="10"
        maxTransactions="5" useStatementNamespaces="true" />
    <typeAlias alias="order" type=" testdomain.Order" />
 
    <transactionManager type="JDBC">
        <dataSource type="SIMPLE">       
            <property name="JDBC.Driver" value="${driver}"/>
            <property name="JDBC.ConnectionURL" value="${url}"/>
            <property name="JDBC.Username" value="${username}"/>
            <property name=" JDBC.Password" value="${password}"/>
            <property name="JDBC.DefaultAutoCommit" value="true" />       
        </dataSource>
    </transactionManager>
    
    <sqlMap
       
resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/DOSSIERS_SqlMap.xml"
/>                 
    <sqlMap
       
resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/AGENTS_SqlMap.xml"
/>
    <sqlMap
       
resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/CARTES01_SqlMap.xml"
/>
    <sqlMap
       
resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/CARTES02_SqlMap.xml"
/>
    <sqlMap
       
resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/CARTES03_SqlMap.xml"
/>
    <sqlMap
       
resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/CARTES05_SqlMap.xml"
/>
    <sqlMap
       
resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/CARTES20_SqlMap.xml"
/>
    <sqlMap
       
resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/CARTES21_SqlMap.xml"
/>
    <sqlMap
       
resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/CARTES22_SqlMap.xml"
/>
    <sqlMap
       
resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/CARTES4N_SqlMap.xml"
/>
    <sqlMap
       
resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/CARTES9C_SqlMap.xml"
/>
    <sqlMap
       
resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/CARTES9G_SqlMap.xml"
/>
    <sqlMap
       
resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/INDEMNITES_SqlMap.xml"
/>
    <sqlMap
       
resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/ECHELONS_SqlMap.xml"
/>
    <sqlMap
       
resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/GRADES_SqlMap.xml"
/>
    <sqlMap
       
resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/DIVISION_SqlMap.xml"
/>
    <sqlMap
       
resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/UTILISATEURS_SqlMap.xml"
/>
    <sqlMap
       
resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/HABILITATIONS_SqlMap.xml"
/>
    <sqlMap
       
resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/GESTIONNAIRES_SqlMap.xml"
/>
    <sqlMap
       
resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/LIBELLES_SqlMap.xml"
/>
    <sqlMap
       
resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/POSTES_SqlMap.xml"
/>
    <sqlMap
       
resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/MEMOMODIFS_SqlMap.xml"
/>
    <sqlMap
       
resource="fr/gouv/finances/douane/dnsce/oci/business/ibatis/sql/BATCHS_SqlMap.xml"
/>
</sqlMapConfig>


===============

and there, the dao.xml file..
<!DOCTYPE daoConfig
PUBLIC "-//ibatis.apache.org//DTD DAO Configuration 2.0//EN"
"http://localhost:8888/oci/dao-2.dtd">
<daoConfig>
    <context>   
        <transactionManager type="SQLMAP">       
            <property name="SqlMapConfigResource"
                value="conf/SqlMapConfig.xml" />
        </transactionManager>       
                                
                                         <!-- DOSSIERS-->
        <dao
           
interface="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.DossiersDAO
"
           
implementation="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.DossiersDAOImpl"
/>
           
                                        <!-- AGENTS -->
                                       
        <dao
           
interface="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.AgentsDAO"
           
implementation="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.AgentsDAOImpl
" />
                                       
                                        <!-- CARTES -->
        <dao
           
interface="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes01DAO
"
           
implementation="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes01DAOImpl"
/>
        <dao
           
interface="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes02DAO
"
           
implementation="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes02DAOImpl"
/>
        <dao
           
interface="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes03DAO
"
           
implementation="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes03DAOImpl"
/>
        <dao
           
interface="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes05DAO
"
           
implementation="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes05DAOImpl"
/>
        <dao
           
interface="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes20DAO
"
           
implementation="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes20DAOImpl"
/>
        <dao
           
interface="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes21DAO
"
           
implementation="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes21DAOImpl"
/>
        <dao
           
interface="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes22DAO
"
           
implementation="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes22DAOImpl"
/>
        <dao
           
interface="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes4nDAO
"
           
implementation="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes4nDAOImpl"
/>
        <dao
           
interface="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes9cDAO
"
           
implementation="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes9cDAOImpl"
/>
        <dao
           
interface="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes9gDAO
"
           
implementation="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.Cartes9gDAOImpl"
/>
                           
                                    <!-- INDEMNITES -->
        <dao
           
interface="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.IndemnitesDAO"
           
implementation="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.IndemnitesDAOImpl
" />           
           
                                    <!-- ECHELONS -->
        <dao
           
interface="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.EchelonsDAO"
           
implementation="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.EchelonsDAOImpl"
/>           
           
                                    <!-- GRADES -->
        <dao
           
interface="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.GradesDAO"
           
implementation="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.GradesDAOImpl"
/>           
                                   
                                    <!-- DIVISION -->
        <dao
           
interface="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.DivisionDAO"
           
implementation="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.DivisionDAOImpl"
/>           
                                   
                                    <!-- UTILISATEURS -->
        <dao
           
interface="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.UtilisateursDAO"
           
implementation="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.UtilisateursDAOImpl
" />           
                                   
                                    <!-- HABILITATIONS -->
        <dao
           
interface="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.HabilitationsDAO
"
           
implementation="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.HabilitationsDAOImpl"
/>       
           
                                        <!-- GESTIONNAIRES  -->
        <dao
           
interface="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.GestionnairesDAO"
           
implementation="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.GestionnairesDAOImpl
" />               
           
                                        <!-- LIBELLES   -->
        <dao
           
interface="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.LibellesDAO
"
           
implementation="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.LibellesDAOImpl"
/>               
                                        <!-- POSTES    -->
        <dao
           
interface="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.PostesDAO"
           
implementation="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.PostesDAOImpl"
/>               
                                        <!-- MEMOMODIFS    -->
        <dao
           
interface="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.MemoModifsDAO"
            implementation="
fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.MemoModifsDAOImpl" />               
                                        <!-- BATCHS -->
        <dao
           
interface="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.BatchsDAO "
           
implementation="fr.gouv.finances.douane.dnsce.oci.business.ibatis.dao.BatchsDAOImpl"
/>
    </context>   
</daoConfig>




Leucht, Axel wrote:
> 
> Looks like a syntax error to mw in one of you're XML files. Could you post
> them here, especially your dao.xml?
> 
> I often verify the syntax by opening it with Internet Explorer. Perhaps
> there is a simple typo in it?
> 
> /Axel
> 
> 

-- 
View this message in context: http://www.nabble.com/unexpected-ExceptionInInitializerError-tf4771224.html#a13649180
Sent from the iBATIS - User - Java mailing list archive at Nabble.com.


Re: AW: unexpected ExceptionInInitializerError

Posted by Graeme J Sweeney <ib...@gjsweeney.com>.
On Fri, 9 Nov 2007, Jeremy Jardin wrote:

>
> 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 !! :-(

<snip/>

Sounds more like an eclipse issue and not being an eclipse user ......

Would this help http://classpathhelper.sourceforge.net/ ?

-- 
Graeme -

Re: AW: unexpected ExceptionInInitializerError

Posted by Jeremy Jardin <je...@gmail.com>.
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:
> 
> 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
> 
> ----- Mensaje original ----
> De: Jeremy Jardin <je...@gmail.com>
> Para: user-java@ibatis.apache.org
> Enviado: viernes, 9 de noviembre, 2007 9:17:38
> Asunto: Re: AW: unexpected ExceptionInInitializerError
> 
> 
> anyone ?
> 
> :-(
> 
> 
> 
> Jeremy Jardin wrote:
>> 
>> Of course, I have that lib.. That was the first thing I made sur before
>> posting :)
>> 
>> I really don't understand !
>> maybe conflicts between common-logging and log4j ?
>> 
>> heeelp
>> 
>> 
>> charlie bird wrote:
>>> 
>>> 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.
>>> 
>>> Charlie 
>>> 
>>> --- Jeremy Jardin <je...@gmail.com> wrote:
>>> 
>>>> 
>>>> Hey, I've got something more..
>>>> I think a library is missing ... 
>>>> 
>>>> I caught the Throwable exception et logged the cause
>>>> :
>>>> 
>>>> Caused by: java.lang.RuntimeException: Error
>>>> creating logger for class class
>>>> com.ibatis.sqlmap.engine.impl.SqlMapClientImpl. 
>>>> Cause:
>>>> java.lang.reflect.InvocationTargetException
>>>>    at com.ibatis.common.logging.LogFactory.getLog
>>>> (LogFactory.java:33)
>>>>    at
>>>>
>>> com.ibatis.sqlmap.engine.impl.SqlMapClientImpl.<clinit>(SqlMapClientImpl.java:41)
>>>>    ... 51 more
>>>> Caused by:
>>>> java.lang.reflect.InvocationTargetException
>>>>    at
>>>>
>>> sun.reflect.NativeConstructorAccessorImpl.newInstance0
>>>> (Native
>>>> Method)
>>>>    at
>>>>
>>> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
>>>>    at
>>>>
>>> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.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.<init>(JakartaCommonsLoggingImpl.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. 
>>>> Cause:
>>>> java.lang.reflect.InvocationTargetException
>>>>  WARN [http-8888-Processor24]
>>>> (RequestProcessor.java:528) - Unhandled
>>>> Exception thrown: class
>>>>
>>> fr.gouv.finances.douane.dnsce.oci..business.exception.DAOConfLoadingException
>>>> ERROR [http-8888-Processor24]
>>>> (ApplicationDispatcher.java:723) -
>>>> "Servlet.service()" pour la servlet action a lancé
>>>> une exception
>>>> 
>>>> 
>>>> 
>>>> Jeremy Jardin wrote:
>>>> > 
>>>> > 
>>>> > This is my doctype :
>>>> > <!DOCTYPE sqlMap PUBLIC "-//ibatis.apache.org//DTD
>>>> SQL Map 2.0//EN"
>>>> > "http://ibatis.apache.org/dtd/sql-map-2.dtd">
>>>> > 
>>>> > And the application is running with Tomcat
>>>> 5.5.23..
>>>> > 
>>>> > 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... 
>>>> > 
>>>> > ...
>>>> > 
>>>> > 
>>>> > 
>>>> > nmaves wrote:
>>>> >> 
>>>> >> hmmm please ensure that you have the following
>>>> >> 
>>>> >> <!DOCTYPE sqlMapConfig PUBLIC "-//iBATIS.com//DTD
>>>> SQL Map Config 2.0//EN"
>>>> >> "
>>>> >>
>>>> http://ibatis.apache.org/dtd/sql-map-config-2.dtd">
>>>> >> 
>>>> >> 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.
>>>> >> 
>>>> >> So please find out what version of tomcat you are
>>>> using?
>>>> >> 
>>>> >> 
>>>> >> Nathan
>>>> >> 
>>>> >> On Nov 9, 2007 12:41 AM, Jeremy Jardin
>>>> <je...@gmail.com> wrote:
>>>> >> 
>>>> >>>
>>>> >>> 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 
>>>> not work..
>>>> >>>
>>>> >>>
>>>> >>>
>>>> >>> Larry Meadors-2 wrote:
>>>> >>> >
>>>> >>> > Yeah, sorry w/o == without.
>>>> >>> >
>>>> >>> > What does your JDK or app server use to read /
>>>> manage XML data?
>>>> >>> >
>>>> >>> > Larry
>>>> >>> >
>>>> >>> >
>>>> >>> > On Nov 8, 2007 9:17 AM, Jeremy Jardin
>>>> <je...@gmail.com> 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
>>>> <je...@gmail.com>
>>>> >>> 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:
>>>> 
>>> === message truncated ===
>>> 
>>> 
>>> 
>>>      ___________________________________________________________
>>> Yahoo! Answers - Got a question? Someone out there knows the answer. Try
>>> it
>>> now.
>>> http://uk.answers.yahoo.com/ 
>>> 
>>> 
>> 
>> 
> 
> -- 
> View this message in context:
> http://www.nabble.com/unexpected-ExceptionInInitializerError-tf4771224.html#a13668746
> Sent from the iBATIS - User - Java mailing list archive at Nabble..com.
> 
> 
>       Comparte video en la ventana de tus mensajes (y también tus fotos de
> Flickr). Usa el nuevo Yahoo! Messenger versión Beta.
> http://e1.beta.messenger.yahoo.com/
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/unexpected-ExceptionInInitializerError-tf4771224.html#a13669981
Sent from the iBATIS - User - Java mailing list archive at Nabble.com.