Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-1825

XML parser looking for schema in the wrong location

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Critical Critical
    • 5.1.1.FINAL
    • 5.1.0.FINAL
    • Configuration
    • None
    • Low

      org.infinispan.config.InfinispanConfiguration
      line:369 --376

               if (is != null) {
                  log.debugf("Using schema %s", localPathToSchema);
                  return is;
               }
               if (log.isDebugEnabled()) {
                  log.debugf("Could not find schema on path %s, resolving %s to %s",
                             localPathToSchema, SCHEMA_SYSTEM_PROPERTY, schemaPath());
               }
      

      the infinispan 4.2.x infinispan/core/pom.xml

       <plugin>
                  <groupId>org.codehaus.mojo</groupId>
                  <artifactId>exec-maven-plugin</artifactId>
                  <version>1.1</version>
                  <executions>
                     <execution>
                        <phase>process-classes</phase>
                        <goals>
                           <goal>java</goal>
                        </goals>
                     </execution>
                  </executions>
                  <configuration>
                     <mainClass>org.infinispan.util.JaxbSchemaGenerator</mainClass>
                     <arguments>
                        <argument>${basedir}/src/main/resources/schema</argument>
                     </arguments>
                  </configuration>
               </plugin>
      

      infinispan 5.1.x infinispan/core/pom.xml

      <plugin>
                  <groupId>org.codehaus.mojo</groupId>
                  <artifactId>exec-maven-plugin</artifactId>
                  <executions>
                     <execution>
                        <phase>process-resources</phase>
                        <goals>
                           <goal>java</goal>
                        </goals>
                     </execution>
                  </executions>
                  <configuration>
                     <mainClass>net.sf.xframe.xsddoc.Main</mainClass>
                     <arguments>
                        <argument>-q</argument>
                        <argument>-s</argument>
                        <argument>-t</argument>
                        <argument>"XML Schema for Infinispan"</argument>
                        <argument>-o</argument>
                        <argument>${project.build.directory}/xsd_doc</argument>
                        <argument>${basedir}/src/main/resources/infinispan-5.1.xsd</argument>
                     </arguments>
                  </configuration>
               </plugin>
      
      

      it always take 5s and my log is :

      2012-02-01 16:14:40,552 DEBUG [org.infinispan.config.InfinispanConfiguration] (main) Could not find schema on path schema/infinispan-config-5.1.xsd, resolving infinispan.config.schema to http://www.infinispan.org/schemas/infinispan-config-5.1.xsd
      2012-02-01 16:15:45,115 WARN  [org.infinispan.config.InfinispanConfiguration] (main) ISPN000139: Infinispan configuration schema could not be resolved locally nor fetched from URL. Local path=null, schema path=schema/infinispan-config-5.1.xsd, schema URL=http://www.infinispan.org/schemas/infinispan-config-5.1.xsd
      

              pmuiratbleepbleep Pete Muir (Inactive)
              jiajiefeng_jira Jeffrey Jia (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: