cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tcs <tah...@hotmail.com>
Subject Re: Aegis Binding - Hello World example fails with SchemaFactoryFinder$ConfigurationError
Date Thu, 13 Dec 2007 20:56:26 GMT

I set the following system property:
-Djavax.xml.validation.SchemaFactory:http://www.w3.org/2001/XMLSchema=com.sun.org.apache.xerces.internal.jaxp.validation.xs.SchemaFactoryImpl

And was able to start the server.  Shouldn't it default to this?  Why does
it default to:
http\://www.w3.org/2001/XMLSchema=com.sun.org.apache.xerces.internal.jaxp.validation.xs.SchemaFactoryImpl

thanks


tcs wrote:
> 
> I'm trying to write a simple web service using Aegis but am running into
> some issues. When I try to start the server, I get the following
> exception:
> 
> INFO: Creating Service {http://demo/}HelloWorld from class demo.HelloWorld
> JAXP: find
> factoryId=javax.xml.validation.SchemaFactory:http://www.w3.org/2001/XMLSchema
> Exception in thread "main"
> javax.xml.validation.SchemaFactoryFinder$ConfigurationError: Provider
> http\://www.w3.org/2001/XMLSchema=com.sun.org.apache.xerces.internal.jaxp.validation.xs.SchemaFactoryImpl
> not found
> 	at javax.xml.validation.SchemaFactoryFinder.newInstance(Unknown Source)
> 	at
> javax.xml.validation.SchemaFactoryFinder.findJarServiceProvider(Unknown
> Source)
> 	at javax.xml.validation.SchemaFactoryFinder.find(Unknown Source)
> 	at javax.xml.validation.SchemaFactory.newInstance(Unknown Source)
> 	at
> org.apache.cxf.aegis.type.XMLTypeCreator.<clinit>(XMLTypeCreator.java:115)
> 	at java.lang.J9VMInternals.initializeImpl(Native Method)
> 	at java.lang.J9VMInternals.initialize(J9VMInternals.java:177)
> 	at
> org.apache.cxf.aegis.type.DefaultTypeMappingRegistry.createRootTypeCreator(DefaultTypeMappingRegistry.java:244)
> 	at
> org.apache.cxf.aegis.type.DefaultTypeMappingRegistry.createTypeCreator(DefaultTypeMappingRegistry.java:228)
> 	at
> org.apache.cxf.aegis.type.DefaultTypeMappingRegistry.createTypeMapping(DefaultTypeMappingRegistry.java:209)
> 	at
> org.apache.cxf.aegis.type.DefaultTypeMappingRegistry.createTypeMapping(DefaultTypeMappingRegistry.java:202)
> 	at
> org.apache.cxf.aegis.databinding.AegisDatabinding.initialize(AegisDatabinding.java:144)
> 	at
> org.apache.cxf.service.factory.ReflectionServiceFactoryBean.buildServiceFromClass(ReflectionServiceFactoryBean.java:293)
> 	at
> org.apache.cxf.service.factory.ReflectionServiceFactoryBean.initializeServiceModel(ReflectionServiceFactoryBean.java:333)
> 	at
> org.apache.cxf.service.factory.ReflectionServiceFactoryBean.create(ReflectionServiceFactoryBean.java:151)
> 	at
> org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpoint(AbstractWSDLBasedEndpointFactory.java:74)
> 	at
> org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:108)
> 	at test.StartServer.usingAegis(StartServer.java:48)
> 	at test.StartServer.main(StartServer.java:18)
> 
> I'm trying to start the server as follows:
> 		HelloWorldImpl bean= new HelloWorldImpl ();
> 		ServerFactoryBean svrFactory = new ServerFactoryBean();
> 		svrFactory.setServiceClass(HelloWorldImpl.class);
> 		svrFactory.setAddress(url);
> 		svrFactory.setServiceBean(bean);
> 		svrFactory.setDataBinding(new AegisDatabinding());
> 		svrFactory.create();
> 
> 

-- 
View this message in context: http://www.nabble.com/Aegis-Binding---Hello-World-example-fails-with-SchemaFactoryFinder%24ConfigurationError-tp14324396p14324666.html
Sent from the cxf-user mailing list archive at Nabble.com.


Mime
View raw message