Announcement Announcement Module
Collapse
No announcement yet.
How to build off line ? My xml definition requires an internet connection.. Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to build off line ? My xml definition requires an internet connection..

    Hello,

    I can build fine when being on line with an internet connection.

    But I get the following message when building off line:

    org.xml.sax.SAXParseException: schema_reference.4: Failed to read schema document 'http://www.springframework.org/schema/beans/spring-beans-3.0.xsd', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not <xsd:schema>.
    Here is my code:

    Code:
    <?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:tx="http://www.springframework.org/schema/tx"
    	xsi:schemaLocation="
           http://www.springframework.org/schema/beans 
           http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
           http://www.springframework.org/schema/tx 
           http://www.springframework.org/schema/tx/spring-tx-3.0.xsd
           http://www.springframework.org/schema/aop 
           http://www.springframework.org/schema/aop/spring-aop-3.0.xsd">
    Any clue ?

    Stephane

  • #2
    I think you have of spring jars (versions that are before 3.x) in your application class path.

    I say this because, You don't really need internet connection to read the schema, If you open the (spring-beans.jar) and look under META-INF directory you will find a file (spring.schemas), It maps spring schema to a local (schema) file that is packaged in the jar itself.

    Comment


    • #3
      Hello,

      I can see the spring.schemas file with its mapping entries.

      What should I do with this ?

      Stephane

      Comment

      Working...
      X