axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From p.casen...@almerys.com
Subject [AXIS2 1.3RC2] Exception during schema creation
Date Fri, 27 Jul 2007 13:55:01 GMT
Hello,
I'm switching from AXIS2 1.2 to 1.3RC2 to check any regression and I have 
an issue with one of my modules which runs correctly with AXIS2 1.2:
I'm getting this exception:
[27/07/07 15:47:36:292 CEST] 00000031 ModuleDeploye E 
org.apache.commons.logging.impl.Jdk14Logger error The header_v2.mar 
module, which is not valid, caused 
org/apache/xerces/impl/xs/XMLSchemaLoader.loadGrammar([Lorg/apache/xerces/xni/parser/XMLInputSource;)V
                                 java.lang.NoSuchMethodError: 
org/apache/xerces/impl/xs/XMLSchemaLoader.loadGrammar([Lorg/apache/xerces/xni/parser/XMLInputSource;)V
        at 
org.apache.xerces.jaxp.validation.XMLSchemaFactory.newSchema(Unknown 
Source)
        at javax.xml.validation.SchemaFactory.newSchema(Unknown Source)
        at javax.xml.validation.SchemaFactory.newSchema(Unknown Source)
        at module.header.v2.HeaderV2Handler.init(HeaderV2Handler.java:76)
        at org.apache.axis2.deployment.util.Utils.addFlowHandlers(
Utils.java:100)

and here is the faulty code:

        public void init(HandlerDescription theArg0) {
                super.init(theArg0);
                SchemaFactory mySchemaFactory = 
SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA);

                URL myUrl = 
HeaderV2Handler.class.getResource("FSA_HEADER_0.0.1.0.17.xsd");
                try {
                        schema = mySchemaFactory.newSchema(myUrl);
                }
                catch (Exception e)
                {
                        [...]
                }

        }


XMLConstants.W3C_XML_SCHEMA is set to "http://www.w3.org/2001/XMLSchema"

I have noticed that in the RC2 release, the xerces version is 2.6.2 
instead of 2.8.1 in Axis2 1.2.
Does it have anything to do with that?

Thanks in advance,

Pierre
Mime
View raw message