Bug 778671 (SOA-1142)

Summary: support for schema import in EBWS WSDL
Product: [JBoss] JBoss Enterprise SOA Platform 4 Reporter: Taro Yasuma <tyasuma>
Component: JBossESBAssignee: Mark Little <mark.little>
Status: CLOSED NEXTRELEASE QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: 4.3 GACC: imamura.yousuke, minamoto
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
URL: http://jira.jboss.org/jira/browse/SOA-1142
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 778672 (view as bug list) Environment:
Last Closed: 2010-01-28 11:23:59 UTC Type: Feature Request
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 779163    
Attachments:
Description Flags
publish_as_webservice_import_NG.zip none

Description Taro Yasuma 2009-01-21 15:16:17 UTC
Date of First Response: 2010-01-28 06:23:59
Help Desk Ticket Reference: https://enterprise.redhat.com/issue-tracker/254594
project_key: SOA

When you set a schema file which imports another schema file in inXsd or/and outXsd, the deployment of the EBWS fails.

Example of importing schema file)

<xs:schema version="1.0" targetNamespace="http://www.jboss.org/sayHi" xmlns:x1="http://www.jboss.org/sayHi"  xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
<xs:import namespace="http://www.jboss.org/sayHi"
       schemaLocation="request_imp.xsd" />
  <xs:element name="sayHi" type="x1:sayHi"/>
</xs:schema>


HOW TO REPRODUCE:

1. Unzip the attached publish_as_webservice_import_NG.zip

2. $ant deploy

Then, you'll see the deployment failure of the wsdl and the service with the following:

Caused by: java.io.IOException: Cannot get URL for: WEB-INF/wsdl//ESBServiceSample/request_imp.xsd
	at org.jboss.wsf.common.URLLoaderAdapter.findChild(Unknown Source)
	at org.jboss.wsf.framework.deployment.ArchiveDeploymentImpl.getMetaDataFileURL(Unknown Source)
	at org.jboss.wsf.stack.jbws.WSDLFilePublisher.publishSchemaImports(WSDLFilePublisher.java:239)
	at org.jboss.wsf.stack.jbws.WSDLFilePublisher.publishSchemaImports(WSDLFilePublisher.java:260)
	at org.jboss.wsf.stack.jbws.WSDLFilePublisher.publishSchemaImports(WSDLFilePublisher.java:260)
	at org.jboss.wsf.stack.jbws.WSDLFilePublisher.publishWsdlFiles(WSDLFilePublisher.java:129)
	... 33 more

Comment 1 Taro Yasuma 2009-01-21 15:17:56 UTC
Link: Added: This issue depends JBESB-2283


Comment 2 Taro Yasuma 2009-01-21 15:18:32 UTC
Link: Added: This issue depends JBESB-2217


Comment 3 Taro Yasuma 2009-01-21 15:20:35 UTC
Added the sample application based on publish_as_webservice.

Comment 4 Taro Yasuma 2009-01-21 15:20:35 UTC
Attachment: Added: publish_as_webservice_import_NG.zip


Comment 5 Taro Yasuma 2009-01-21 15:25:31 UTC
Link: Added: This issue is related to SOA-1137


Comment 6 Kevin Conner 2009-05-21 09:29:30 UTC
Link: Removed: This issue depends JBESB-2217 


Comment 7 Kevin Conner 2009-05-21 09:29:48 UTC
Link: Added: This issue depends JBESB-2323


Comment 8 Kevin Conner 2009-05-21 09:30:40 UTC
Link: Removed: This issue depends JBESB-2283 


Comment 9 Len DiMaggio 2009-11-02 16:37:17 UTC
Link: Added: This issue is a dependency of SOA-1558


Comment 10 Martin Vecera 2010-01-28 11:23:59 UTC
Verified in ER7.