xml-apis.jar
xercesImpl.jar

Remember, my application works just fine with all jar files.

-Henry

[EMAIL PROTECTED] wrote:


what about XML?

 Cause:
> org.xml.sax.SAXParseException: Attribute "namespace" is not declared for
> element "sqlMap".
> Caused by: org.xml.sax.SAXParseException: Attribute "namespace" is not
> declared for element "sqlMap".

!!!
Attribute "namespace" is not declared for
> element "sqlMap".

 C  уважением,
Алексей. mobile: +375-029-708-2168 email: [EMAIL PROTECTED]

*Henry Lu <[EMAIL PROTECTED]>*

23.01.2006 17:12
Please respond to
user-java@ibatis.apache.org


        
To
        user-java@ibatis.apache.org
cc
        
Subject
        Re: junit test



        





All correct version. Because it works for the application.

ibatis-common-2.jar
ibatis-dao-2.jar
ibatis-sqlmap-2.jar
and spring  1.2.6

[EMAIL PROTECTED] wrote:

>
> Check that you use the correct libraries for spring and ibatis.
>
>
> Also check your XML:
>
> Cause:
> org.xml.sax.SAXParseException: Attribute "namespace" is not declared for
> element "sqlMap".
> Caused by: org.xml.sax.SAXParseException: Attribute "namespace" is not
> declared for element "sqlMap".
>
>  C  уважением,
> Алексей. > > mobile: +375-029-708-2168 > email: [EMAIL PROTECTED] >
>
> *Henry Lu <[EMAIL PROTECTED]>*
>
> 23.01.2006 16:59
> Please respond to
> user-java@ibatis.apache.org
>
>
> > To
>                  user-java@ibatis.apache.org
> cc
> > Subject
>                  junit test
>
>
>
> >
>
>
>
>
> I go the following error when I did JUnit test:
>
> setUp()----------
> org.springframework.beans.factory.BeanCreationException: Error creating
> bean with name 'sqlMapClient' defined in file
> [C:\devel\webapps\coreyp\WEB-INF\app_beans.xml]: Initialization of bean
> failed; nested exception is
> com.ibatis.common.exception.NestedRuntimeException: Error occurred. > Cause: com.ibatis.common.xml.NodeletException: Error parsing XML. > Cause: com.ibatis.common.exception.NestedRuntimeException: Error parsing
> XPath '/sqlMapConfig/sqlMap'.  Cause:
> com.ibatis.common.xml.NodeletException: Error parsing XML.  Cause:
> org.xml.sax.SAXParseException: Attribute "namespace" is not declared for
> element "sqlMap".
> Caused by: org.xml.sax.SAXParseException: Attribute "namespace" is not
> declared for element "sqlMap".
>
> However, it works when I run the application.
>
> Here is code for JUNit test:
>
>        org.springframework.context.ApplicationContext ctx = null;
>        String[] paths = { "/WEB-INF/test/datasource_beans_test.xml",
>            "/WEB-INF/authorize-spring.xml",
>            "/WEB-INF/spring-auth.xml",
>            "/WEB-INF/app_beans.xml"};
>        ctx = new FileSystemXmlApplicationContext(paths);
>
> How to make JUnit works?
>
> -Henry
>

Reply via email to