You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Shane Preater (JIRA)" <ji...@apache.org> on 2006/08/04 13:05:14 UTC

[jira] Commented: (AXIS2-623) (1.0 RC3) Unable to locate with a locator the schema referenced at 'xsd1.xsd' ...

    [ http://issues.apache.org/jira/browse/AXIS2-623?page=comments#action_12425723 ] 
            
Shane Preater commented on AXIS2-623:
-------------------------------------

Hi,

I am still getting this error in the standard 1.0 distrubution which I have downloaded from the axis2 site.

My particular issue is that I am including a shared XSD using the following markup in the WSDL:

<xs:schema
			targetNamespace="http://255.255.255.255/keywords/xsd">
			<xs:include
				schemaLocation="http://255.255.255.255/keywords/xsd" />
</xs:schema>

Note: IP address has been changed.

The problem we are getting is this:

        org.apache.axis2.AxisFault: WSDLException (at /wsdl:definitions/wsdl:types/xs:schema): faultCode=OTHER_ERROR: Unable to locate with a locator
the schema referenced at 'http://255.255.255.255/keywords/xsd' relative to document base ''; nested exception is:
        WSDLException (at /wsdl:definitions/wsdl:types/xs:schema): faultCode=OTHER_ERROR: Unable to locate with a locator the schema referenced at 'ht
tp://255.255.255.255/keywords/xsd' relative to document base '':
        at org.apache.axis2.deployment.repository.util.ArchiveReader.processWSDLs(ArchiveReader.java:273)
        at org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:604)
        at org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList.java:195)
        at org.apache.axis2.deployment.RepositoryListener.update(RepositoryListener.java:207)
        at org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryListener.java:155)
        at org.apache.axis2.deployment.DeploymentEngine.loadServices(DeploymentEngine.java:91)
        at org.apache.axis2.deployment.WarBasedAxisConfigurator.loadServices(WarBasedAxisConfigurator.java:142)
        at org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:42)
        at org.apache.axis2.transport.http.AxisServlet.initConfigContext(AxisServlet.java:213)
        at org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:182)
        at com.caucho.server.http.Application.createServlet(Application.java:3096)
        at com.caucho.server.http.Application.loadServlet(Application.java:3047)
        at com.caucho.server.http.Application.initServlets(Application.java:1910)
        at com.caucho.server.http.Application.init(Application.java:1828)
        at com.caucho.server.http.VirtualHost.initWars(VirtualHost.java:824)
        at com.caucho.server.http.VirtualHost.init(VirtualHost.java:687)
        at com.caucho.server.http.ServletServer.initHosts(ServletServer.java:846)
        at com.caucho.server.http.ServletServer.initInternal(ServletServer.java:691)
        at com.caucho.server.http.ServletServer.init(ServletServer.java:509)
        at com.caucho.server.http.ResinServer.init(ResinServer.java:375)
        at com.caucho.server.http.ResinServer.main(ResinServer.java:1131)
        at com.caucho.server.http.HttpServer.main(HttpServer.java:103)
Caused by: org.apache.axis2.deployment.DeploymentException: WSDLException (at /wsdl:definitions/wsdl:types/xs:schema): faultCode=OTHER_ERROR: Unable t
o locate with a locator the schema referenced at 'http://255.255.255.255/keywords/xsd' relative to document base ''; nested exception is:
        WSDLException (at /wsdl:definitions/wsdl:types/xs:schema): faultCode=OTHER_ERROR: Unable to locate with a locator the schema referenced at 'ht
tp://255.255.255.255/keywords/xsd' relative to document base '': ; nested exception is:
        org.apache.axis2.AxisFault: WSDLException (at /wsdl:definitions/wsdl:types/xs:schema): faultCode=OTHER_ERROR: Unable to locate with a locator
the schema referenced at 'http://255.255.255.255/keywords/xsd' relative to document base ''; nested exception is:
        WSDLException (at /wsdl:definitions/wsdl:types/xs:schema): faultCode=OTHER_ERROR: Unable to locate with a locator the schema referenced at 'ht
tp://255.255.255.255/keywords/xsd' relative to document base '':
        at org.apache.axis2.deployment.repository.util.ArchiveReader.processWSDLFile(ArchiveReader.java:194)
        at org.apache.axis2.deployment.repository.util.ArchiveReader.processWSDLs(ArchiveReader.java:261)
        ... 21 more

Now I have verified that going to http://255.255.255.255/keywords/xsd does return the correct XSD document.

Thanks,
Shane.

> (1.0 RC3) Unable to locate with a locator the schema referenced at 'xsd1.xsd' ...
> ---------------------------------------------------------------------------------
>
>                 Key: AXIS2-623
>                 URL: http://issues.apache.org/jira/browse/AXIS2-623
>             Project: Apache Axis 2.0 (Axis2)
>          Issue Type: Bug
>         Environment: Windows 2000 Professional, JDK 1.4, Axis2 1.0 RC3
>            Reporter: Ali Sadik Kumlali
>             Fix For: 1.0
>
>         Attachments: codegen.bat, wsdl.zip
>
>
> I'm getting the following error when deploying my service on to 1.0RC3
> Axis2.war. There was no such problem with 0.95 release. 
> I noticed that WSDL2Java generated xsd0.xsd, xsd1.xsd, xsd2.xsd and
> AccountServices.wsdl files into repository folder. I guess, this is a
> new feature, since those files were not generated in 0.95 release. By
> the way, these files are also resides in XBeans-packaged.jar.
> P.S.: I also tried it with SVN head..
> ----------------------------------------------
> - Deploying module : soapmonitor
> - Deploying module : addressing
> - Deploying module : security
> Retrieving document at ''.
> Retrieving schema at 'xsd1.xsd', relative to ''.
> - Invalid service  AccountServices.aar due to WSDLException (at
> /wsdl:definitions/wsdl:types/xs:schema[1]): faultCode=OTHER_ERROR:
> Unable to locate with a locator the schema referenced at 'xsd1.xsd'
> relative to document base ''; nested exception is: 
> 	WSDLException (at /wsdl:definitions/wsdl:types/xs:schema[1]):
> faultCode=OTHER_ERROR: Unable to locate with a locator the schema
> referenced at 'xsd1.xsd' relative to document base '': ; nested
> exception is: 
> 	org.apache.axis2.AxisFault: WSDLException (at
> /wsdl:definitions/wsdl:types/xs:schema[1]): faultCode=OTHER_ERROR:
> Unable to locate with a locator the schema referenced at 'xsd1.xsd'
> relative to document base ''; nested exception is: 
> 	WSDLException (at /wsdl:definitions/wsdl:types/xs:schema[1]):
> faultCode=OTHER_ERROR: Unable to locate with a locator the schema
> referenced at 'xsd1.xsd' relative to document base '': ; nested
> exception is: 
> 	org.apache.axis2.deployment.DeploymentException: WSDLException (at
> /wsdl:definitions/wsdl:types/xs:schema[1]): faultCode=OTHER_ERROR:
> Unable to locate with a locator the schema referenced at 'xsd1.xsd'
> relative to document base ''; nested exception is: 
> 	WSDLException (at /wsdl:definitions/wsdl:types/xs:schema[1]):
> faultCode=OTHER_ERROR: Unable to locate with a locator the schema
> referenced at 'xsd1.xsd' relative to document base '': ; nested
> exception is: 
> 	org.apache.axis2.AxisFault: WSDLException (at
> /wsdl:definitions/wsdl:types/xs:schema[1]): faultCode=OTHER_ERROR:
> Unable to locate with a locator the schema referenced at 'xsd1.xsd'
> relative to document base ''; nested exception is: 
> 	WSDLException (at /wsdl:definitions/wsdl:types/xs:schema[1]):
> faultCode=OTHER_ERROR: Unable to locate with a locator the schema
> referenced at 'xsd1.xsd' relative to document base '': 
> org.apache.axis2.deployment.DeploymentException: WSDLException (at
> /wsdl:definitions/wsdl:types/xs:schema[1]): faultCode=OTHER_ERROR:
> Unable to locate with a locator the schema referenced at 'xsd1.xsd'
> relative to document base ''; nested exception is: 
> 	WSDLException (at /wsdl:definitions/wsdl:types/xs:schema[1]):
> faultCode=OTHER_ERROR: Unable to locate with a locator the schema
> referenced at 'xsd1.xsd' relative to document base '': ; nested
> exception is: 
> 	org.apache.axis2.AxisFault: WSDLException (at
> /wsdl:definitions/wsdl:types/xs:schema[1]): faultCode=OTHER_ERROR:
> Unable to locate with a locator the schema referenced at 'xsd1.xsd'
> relative to document base ''; nested exception is: 
> 	WSDLException (at /wsdl:definitions/wsdl:types/xs:schema[1]):
> faultCode=OTHER_ERROR: Unable to locate with a locator the schema
> referenced at 'xsd1.xsd' relative to document base '': ; nested
> exception is: 
> 	org.apache.axis2.deployment.DeploymentException: WSDLException (at
> /wsdl:definitions/wsdl:types/xs:schema[1]): faultCode=OTHER_ERROR:
> Unable to locate with a locator the schema referenced at 'xsd1.xsd'
> relative to document base ''; nested exception is: 
> 	WSDLException (at /wsdl:definitions/wsdl:types/xs:schema[1]):
> faultCode=OTHER_ERROR: Unable to locate with a locator the schema
> referenced at 'xsd1.xsd' relative to document base '': ; nested
> exception is: 
> 	org.apache.axis2.AxisFault: WSDLException (at
> /wsdl:definitions/wsdl:types/xs:schema[1]): faultCode=OTHER_ERROR:
> Unable to locate with a locator the schema referenced at 'xsd1.xsd'
> relative to document base ''; nested exception is: 
> 	WSDLException (at /wsdl:definitions/wsdl:types/xs:schema[1]):
> faultCode=OTHER_ERROR: Unable to locate with a locator the schema
> referenced at 'xsd1.xsd' relative to document base '': 
> 	at
> org.apache.axis2.deployment.repository.util.ArchiveReader.processWSDLs(ArchiveReader.java:271)
> 	at
> org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:599)
> 	at
> org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList.java:195)
> 	at
> org.apache.axis2.deployment.RepositoryListener.update(RepositoryListener.java:207)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org