Announcement Announcement Module
Collapse
No announcement yet.
locally resolving XSD files on startup -- eclipse application with buddy plugin Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • locally resolving XSD files on startup -- eclipse application with buddy plugin

    I am using Spring in an eclipse application. I find that when I am not connected to the internet, the application context cannot be read properly. When I am connected to the internet, my eclipse application that uses spring starts fine. Here's the error when I am disconnected. I am assuming that this is because the xsd files cannot be resolved locally. After searching the forums and other internet searches I cannot find an answer to my issue easily.

    I have been unable to find how to force an eclipse application to find the xsd files correctly at runtime when the spring.jar file is in another plugin and buddy registered to the main plugin that holds my application.

    Thoughts? A quick link to get me pointed in the right direction would be great.



    Caused by: org.springframework.beans.factory.BeanDefinitionSt oreException: Line 13 in XML document from class path resource [etc/AppObjects.xml] is invalid; nested exception is org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration of element 'beans'.
    at org.springframework.beans.factory.xml.XmlBeanDefin itionReader.doLoadBeanDefinitions(XmlBeanDefinitio nReader.java:393)
    at org.springframework.beans.factory.xml.XmlBeanDefin itionReader.loadBeanDefinitions(XmlBeanDefinitionR eader.java:340)
    at org.springframework.beans.factory.xml.XmlBeanDefin itionReader.loadBeanDefinitions(XmlBeanDefinitionR eader.java:315)
    at org.springframework.beans.factory.support.Abstract BeanDefinitionReader.loadBeanDefinitions(AbstractB eanDefinitionReader.java:126)
    at org.springframework.beans.factory.support.Abstract BeanDefinitionReader.loadBeanDefinitions(AbstractB eanDefinitionReader.java:142)
    at org.springframework.beans.factory.support.Abstract BeanDefinitionReader.loadBeanDefinitions(AbstractB eanDefinitionReader.java:168)

    The top part of application context file:

    <?xml version="1.0" encoding="UTF-8"?>
    <beans xmlns="http://www.springframework.org/schema/beans"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:aop="http://www.springframework.org/schema/aop"
    xmlns:lang="http://www.springframework.org/schema/lang"
    xmlns:tx="http://www.springframework.org/schema/tx"
    xmlns:util="http://www.springframework.org/schema/util"
    xsi:schemaLocation="
    http://www.springframework.org/schema/beans http://www.springframework.org/schem...-beans-2.0.xsd
    http://www.springframework.org/schema/tx http://www.springframework.org/schem...ing-tx-2.0.xsd
    http://www.springframework.org/schema/aop http://www.springframework.org/schem...ng-aop-2.0.xsd
    http://www.springframework.org/schema/lang http://www.springframework.org/schem...g-lang-2.0.xsd
    http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-2.0.xsd">
Working...
X