Announcement Announcement Module
Collapse
No announcement yet.
No validating DocumentBuilder implementation available? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • No validating DocumentBuilder implementation available?

    Hello,
    I am Bernard a novice at Android spring.
    I try to use a simple program that can print a "Hello world". in my android phone.
    However, the part of spring code work well on PC, but fail on the android environment.

    My code is so easy

    Code:
            ApplicationContext context = 
                new FileSystemXmlApplicationContext("beans-config.xml");
             
            HelloBean hello = 
                (HelloBean) context.getBean("helloBean"); 
            System.out.println(hello.getHelloWord());
    but, There are some Exception as below:


    Code:
    06-03 13:42:30.530: E/AndroidRuntime(3655): Caused by: javax.xml.parsers.ParserConfigurationException: No validating DocumentBuilder implementation available
    06-03 13:42:30.530: E/AndroidRuntime(3655):     at org.apache.harmony.xml.parsers.DocumentBuilderFactoryImpl.newDocumentBuilder(DocumentBuilderFactoryImpl.java:61)
    06-03 13:42:30.530: E/AndroidRuntime(3655):     at org.springframework.beans.factory.xml.DefaultDocumentLoader.createDocumentBuilder(DefaultDocumentLoader.java:130)
    06-03 13:42:30.530: E/AndroidRuntime(3655):     at org.springframework.beans.factory.xml.DefaultDocumentLoader.loadDocument(DefaultDocumentLoader.java:74)
    06-03 13:42:30.530: E/AndroidRuntime(3655):     at org.springframework.beans.factory.xml.XmlBeanDefinitionRead

    Do it imply that the JAVAX in android are distinct from Java platform?
    I use eclipse IDE and import the the android-spring jar
    Should me use Mavon to build my project,? Then, everything will all right, isn't it?
    Or,Could someone give me some advise?
    Thank you
Working...
X