Re: Aegis Binding - Hello World example fails with SchemaFactoryFinder$ConfigurationError

2007-12-14 Thread Daniel Kulp

Sounds like a JDK bug or something.   I'm not really sure why.

Dan


On Thursday 13 December 2007, tcs wrote:
 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.j
axp.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(Unkn
 own 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.jav
 a:115) at java.lang.J9VMInternals.initializeImpl(Native Method)
  at java.lang.J9VMInternals.initialize(J9VMInternals.java:177)
  at
  org.apache.cxf.aegis.type.DefaultTypeMappingRegistry.createRootTypeC
 reator(DefaultTypeMappingRegistry.java:244) at
  org.apache.cxf.aegis.type.DefaultTypeMappingRegistry.createTypeCreat
 or(DefaultTypeMappingRegistry.java:228) at
  org.apache.cxf.aegis.type.DefaultTypeMappingRegistry.createTypeMappi
 ng(DefaultTypeMappingRegistry.java:209) at
  org.apache.cxf.aegis.type.DefaultTypeMappingRegistry.createTypeMappi
 ng(DefaultTypeMappingRegistry.java:202) at
  org.apache.cxf.aegis.databinding.AegisDatabinding.initialize(AegisDa
 tabinding.java:144) at
  org.apache.cxf.service.factory.ReflectionServiceFactoryBean.buildSer
 viceFromClass(ReflectionServiceFactoryBean.java:293) at
  org.apache.cxf.service.factory.ReflectionServiceFactoryBean.initiali
 zeServiceModel(ReflectionServiceFactoryBean.java:333) at
  org.apache.cxf.service.factory.ReflectionServiceFactoryBean.create(R
 eflectionServiceFactoryBean.java:151) at
  org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpo
 int(AbstractWSDLBasedEndpointFactory.java:74) at
  org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.j
 ava: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();



-- 
J. Daniel Kulp
Principal Engineer, IONA
[EMAIL PROTECTED]
http://www.dankulp.com/blog


Aegis Binding - Hello World example fails with SchemaFactoryFinder$ConfigurationError

2007-12-13 Thread tcs

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-tp14324396p14324396.html
Sent from the cxf-user mailing list archive at Nabble.com.