Skip to content
This repository has been archived by the owner on Jan 19, 2024. It is now read-only.

Unable to locate ETFrameworkFault.xsd file #45

Open
petermcstayhallolson opened this issue Apr 29, 2016 · 7 comments
Open

Unable to locate ETFrameworkFault.xsd file #45

petermcstayhallolson opened this issue Apr 29, 2016 · 7 comments

Comments

@petermcstayhallolson
Copy link

@amagar088

I've recently updated my project to use Java 8 and have since been running into issues with Fuel SDK.
Has there been any significant changes to how ET and Fuel SDK is to be implemented?
The following exception is thrown when I use either version 1.0.3 or 1.1.0 with CXF version 2.7.16 or 3.1.0.
I have also attempted to add the required file to my project's resource folder.

javax.xml.ws.WebServiceException: org.apache.cxf.service.factory.ServiceConstructionException: Failed to create service.
at org.apache.cxf.jaxws.ServiceImpl.getPort(ServiceImpl.java:347)
at org.apache.cxf.jaxws.ServiceImpl.getPort(ServiceImpl.java:336)
at javax.xml.ws.Service.getPort(Service.java:119)
at com.exacttarget.fuelsdk.internal.PartnerAPI.getSoap(PartnerAPI.java:63)
at com.exacttarget.fuelsdk.ETSoapConnection.(ETSoapConnection.java:89)
at com.exacttarget.fuelsdk.ETSoapConnection.(ETSoapConnection.java:178)
at com.exacttarget.fuelsdk.ETClient.(ETClient.java:158)
at com.olson.bostonpizza.service.messagequeue.exacttarget.ExactTargetSubscriberConsumer.registerNewUser(ExactTargetSubscriberConsumer.java:70)
at com.olson.bostonpizza.service.messagequeue.exacttarget.ExactTargetRegisterSubscriberConsumer.handleDelivery(ExactTargetRegisterSubscriberConsumer.java:128)
at com.rabbitmq.client.impl.ConsumerDispatcher$5.run(ConsumerDispatcher.java:144)
at com.rabbitmq.client.impl.ConsumerWorkService$WorkPoolRunnable.run(ConsumerWorkService.java:99)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: org.apache.cxf.service.factory.ServiceConstructionException: Failed to create service.
at org.apache.cxf.wsdl11.WSDLServiceFactory.create(WSDLServiceFactory.java:183)
at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.buildServiceFromWSDL(ReflectionServiceFactoryBean.java:428)
at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.initializeServiceModel(ReflectionServiceFactoryBean.java:548)
at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.create(ReflectionServiceFactoryBean.java:265)
at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.create(JaxWsServiceFactoryBean.java:215)
at org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpoint(AbstractWSDLBasedEndpointFactory.java:102)
at org.apache.cxf.frontend.ClientFactoryBean.create(ClientFactoryBean.java:91)
at org.apache.cxf.frontend.ClientProxyFactoryBean.create(ClientProxyFactoryBean.java:157)
at org.apache.cxf.jaxws.JaxWsProxyFactoryBean.create(JaxWsProxyFactoryBean.java:142)
at org.apache.cxf.jaxws.ServiceImpl.createPort(ServiceImpl.java:478)
at org.apache.cxf.jaxws.ServiceImpl.getPort(ServiceImpl.java:345)
... 13 more
Caused by: org.apache.ws.commons.schema.XmlSchemaException: Unable to locate imported document at 'https://webservice.exacttarget.com/ETFrameworkFault.xsd', relative to 'jar:file:/Users/37311/.m2/repository/com/exacttarget/fuelsdk/1.1.0/fuelsdk-1.1.0.jar!/etframework.wsdl#types1'.
at org.apache.cxf.catalog.CatalogXmlSchemaURIResolver.resolveEntity(CatalogXmlSchemaURIResolver.java:76)
at org.apache.ws.commons.schema.SchemaBuilder.resolveXmlSchema(SchemaBuilder.java:684)
at org.apache.ws.commons.schema.SchemaBuilder.handleImport(SchemaBuilder.java:538)
at org.apache.ws.commons.schema.SchemaBuilder.handleSchemaElementChild(SchemaBuilder.java:1513)
at org.apache.ws.commons.schema.SchemaBuilder.handleXmlSchemaElement(SchemaBuilder.java:659)
at org.apache.ws.commons.schema.XmlSchemaCollection.read(XmlSchemaCollection.java:540)
at org.apache.cxf.common.xmlschema.SchemaCollection.read(SchemaCollection.java:129)
at org.apache.cxf.wsdl11.SchemaUtil.extractSchema(SchemaUtil.java:140)
at org.apache.cxf.wsdl11.SchemaUtil.getSchemas(SchemaUtil.java:73)
at org.apache.cxf.wsdl11.SchemaUtil.getSchemas(SchemaUtil.java:65)
at org.apache.cxf.wsdl11.SchemaUtil.getSchemas(SchemaUtil.java:60)
at org.apache.cxf.wsdl11.WSDLServiceBuilder.getSchemas(WSDLServiceBuilder.java:372)
at org.apache.cxf.wsdl11.WSDLServiceBuilder.buildServices(WSDLServiceBuilder.java:339)
at org.apache.cxf.wsdl11.WSDLServiceBuilder.buildServices(WSDLServiceBuilder.java:203)
at org.apache.cxf.wsdl11.WSDLServiceFactory.create(WSDLServiceFactory.java:175)
... 23 more

@sud201449
Copy link

HI @petermcstayhallolson ,
I am getting same exception .. is there any work around for this?

@sharif26
Copy link
Contributor

Try to use our new version 1.2.2 as mentioned in readme file and let us know.
Thanks.

@subala-murthy
Copy link

subala-murthy commented Jan 30, 2018

Hi @sharif26 , I have been getting the same exception for the last 4 days(the code worked fine before) and I have updated the exacttarget version to 1.2.2 like you have suggested. still no use....
Any other help/suggestion will be much appreciated.

@subala-murthy
Copy link

It was my mistake that i added the code in powermock test, the PowerMockRunner breaks the javax.net.ssl.SSLContext and the exception is thrown.
Works fine when i run it in normal Junit runner rather than PowerMock's own.

@sud201449
Copy link

My issue was also related to SSL , i have added certificate for webservice.exacttarget.com in my jvm trust store to solve the issue

@shashishekhard
Copy link

I am also getting the same issue as above. I am using version 1.2.2. It worked for me for last 2 days but now I am getting the above exceptions. I added auth.exacttargetapis.com certificate. Do I need to add any other certificate?

@akshaymalik03
Copy link

Did anyone got the resolution to this ? Stuck and cannot create instance of ETCleint.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants