[infinispan-issues] [JBoss JIRA] (ISPN-1825) XML parser looking for schema in the wrong location
Pete Muir (JIRA)
jira-events at lists.jboss.org
Wed Feb 1 05:32:48 EST 2012
[ https://issues.jboss.org/browse/ISPN-1825?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12663311#comment-12663311 ]
Pete Muir commented on ISPN-1825:
---------------------------------
Can you provide more details on your project or setup? InfinispanConfiguration should not be used any more by the Infinispan parsing code.
> XML parser looking for schema in the wrong location
> ---------------------------------------------------
>
> Key: ISPN-1825
> URL: https://issues.jboss.org/browse/ISPN-1825
> Project: Infinispan
> Issue Type: Bug
> Components: Configuration
> Affects Versions: 5.1.0.FINAL
> Environment: infinispan 5.1.0.Final
> Reporter: Jeffrey Jia
> Assignee: Pete Muir
> Priority: Critical
> Fix For: 5.1.1.FINAL
>
>
> org.infinispan.config.InfinispanConfiguration
> line:369 --376
> {code}
> 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());
> }
> {code}
> the infinispan 4.2.x infinispan/core/pom.xml
> {code}
> <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>
> {code}
> infinispan 5.1.x infinispan/core/pom.xml
> {code}
> <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>
> {code}
> it always take 5s and my log is :
> {code}
> 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
> {code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the infinispan-issues
mailing list