Hi all.

I follow this entry of Senaka [1] to import some xsd and wsdl inside the
Greg, but nothing happen after I upload the .GWA file in the registry. I
don´t see an error, but also I don´t see the wsdl and xsd that I want to
import.

My scenario is this:
• I have a WSDL, test1.wsdl,  that import an XSD from the file system,
schema1.xsd.
• The XSD file, schema1.xsd,  import two XSD more.

Before I see [1] I try to go to Add/Schema and import the two XSD,
schema2.xsd and schema3.xsd, and this work fine. But when I go to import the
schema1.xsd that import schema2.xsd  I receive an error [2].

So I follow the step in [1] and I create a .gwa file, load it to the Greg,
but  I don´t see the wsdl and xsd in the list menu.

In another scenario I create a WSDL that import an XSD from filesystem,
based in this tutorial[3]. When I load the WSDL using the Add/Schema
functionality  I have an error that say :

[2010-12-18 00:17:10,098] ERROR -  File upload failed. Failed to add
resource /test_proxy_1.wsdl. Could not evaluate WSDL Definition. This WSDL
contains imports that were not resolved.
{org.wso2.carbon.registry.resource.ui.processors.AddResourceProcessor}

[2010-12-18 00:27:13,082] ERROR -  Could not evaluate WSDL Definition. This
WSDL contains imports that were not resolved.
{org.wso2.carbon.registry.extensions.handlers.utils.WSDLProcessor}
javax.wsdl.WSDLException: WSDLException (at
/wsdl:definitions/wsdl:types/xs:schema): faultCode=OTHER_ERROR: An error
occurred trying to resolve schema referenced at
'schemas/http/services/samples/xsd/test_proxy_1.xsd', relative to
'file:/D:/DESARR~2/REGIST~1/WSO2GR~1.1/bin/../tmp/wsdl1418147425094687053.ws
dl'.: java.io.FileNotFoundException: This file was not found:
file:/D:/DESARR~2/REGIST~1/WSO2GR~1.1/tmp/schemas/http/services/samples/xsd/
test_proxy_1.xsd

So I put the test_proxy_1.xsd in the D:/DESARR~2/REGIST~1/WSO2GR~1.1/tmp/
folder and then I can load the wsdl to the Greg. This is the normal
behavior???!!!!

Thanks,
                Jorge. 


[1]
http://wso2.org/library/knowledge-base/uploading-schemas-imports-local-files
ystem-wso2-governance-registry
[2] The error:

[2010-12-17 16:36:08,827] ERROR -  Failed to add resource /schema1.xsd. An
exception occurred while executing handler chain
{org.wso2.carbon.registry.resource.services.utils.AddResourceUtil}
org.wso2.carbon.registry.core.exceptions.RegistryException: An exception
occurred while executing handler chain
Caused by: java.lang.RuntimeException:
org.apache.ws.commons.schema.XmlSchemaException:
/opt/wso2greg-3.5.1/schema2.xsd (No such file or directory)
Caused by: org.apache.ws.commons.schema.XmlSchemaException:
/opt/wso2greg-3.5.1/schema2.xsd (No such file or directory)
       at
org.apache.ws.commons.schema.XmlSchemaCollection.read(XmlSchemaCollection.ja
va:386)
       at
org.apache.ws.commons.schema.SchemaBuilder.resolveXmlSchema(SchemaBuilder.ja
va:1901)
       ... 47 more
[2010-12-17 16:36:08,831] ERROR -  Failed to add resource /schema1.xsd. An
exception occurred while executing handler chain
{org.apache.axis2.rpc.receivers.RPCInOnlyMessageReceiver}
org.wso2.carbon.registry.core.exceptions.RegistryException: Failed to add
resource /schema1.xsd. An exception occurred while executing handler chain
       at
org.wso2.carbon.registry.resource.services.utils.AddResourceUtil.addResource
(AddResourceUtil.java:59)
       at
org.wso2.carbon.registry.resource.services.ResourceService.addResource(Resou
rceService.java:215)
Caused by: org.wso2.carbon.registry.core.exceptions.RegistryException: An
exception occurred while executing handler chain
Caused by: java.lang.RuntimeException:
org.apache.ws.commons.schema.XmlSchemaException:
/opt/wso2greg-3.5.1/schema2.xsd (No such file or directory)
Caused by: org.apache.ws.commons.schema.XmlSchemaException:
/opt/wso2greg-3.5.1/schema2.xsd (No such file or directory)
       at
org.apache.ws.commons.schema.XmlSchemaCollection.read(XmlSchemaCollection.ja
va:386)
       at
org.apache.ws.commons.schema.SchemaBuilder.resolveXmlSchema(SchemaBuilder.ja
va:1901)
       ... 47 more
[2010-12-17 16:36:08,831] ERROR -  Failed to add resource /schema1.xsd. An
exception occurred while executing handler chain
{org.apache.axis2.rpc.receivers.RPCInOnlyMessageReceiver}
org.wso2.carbon.registry.core.exceptions.RegistryException: Failed to add
resource /schema1.xsd. An exception occurred while executing handler chain
Caused by: org.wso2.carbon.registry.core.exceptions.RegistryException: An
exception occurred while executing handler chain
Caused by: java.lang.RuntimeException:
org.apache.ws.commons.schema.XmlSchemaException:
/opt/wso2greg-3.5.1/schema2.xsd (No such file or directory)
Caused by: org.apache.ws.commons.schema.XmlSchemaException:
/opt/wso2greg-3.5.1/schema2.xsd (No such file or directory)
       at
org.apache.ws.commons.schema.XmlSchemaCollection.read(XmlSchemaCollection.ja
va:386)
       at
org.apache.ws.commons.schema.SchemaBuilder.resolveXmlSchema(SchemaBuilder.ja
va:1901)
       ... 47 more
[2010-12-17 16:36:08,869] ERROR -  Failed to add resource /schema1.xsd.
Failed to add resource /schema1.xsd. An exception occurred while executing
handler chain
{org.wso2.carbon.registry.resource.ui.clients.ResourceServiceClient}
org.apache.axis2.AxisFault: Failed to add resource /schema1.xsd. An
exception occurred while executing handler chain
 [2010-12-17 16:36:08,884] ERROR -  File upload failed. Failed to add
resource /schema1.xsd. An exception occurred while executing handler chain
{org.wso2.carbon.registry.resource.ui.processors.AddResourceProcessor}

[3]
http://ysb33r.tumblr.com/post/999945288/referenced-resources-in-wso2-esb-pro
xy-services

_______________________________________________
Carbon-dev mailing list
[email protected]
https://wso2.org/cgi-bin/mailman/listinfo/carbon-dev

Reply via email to