Uploaded image for project: 'JBoss Web Services'
  1. JBoss Web Services
  2. JBWS-1969

Cannot publish wsdl with imported schema files, using bottom up approach

XMLWordPrintable

      When you create a Bottom up webservice and you normally want the existing wsdl to be used by the deployed service.
      On JBoss [Trinity] 4.2.2.GA (build: SVNTag=JBoss_4_2_2_GA date=200710221139) combined withjbossws-native-2.0.1.GA or jbossws-native-2.0.2.GA the deploy of a EJB webservice endpoint with an wsdlLocation fails with the following error:

      org.jboss.ws.WSException: Cannot publish wsdl to: C:\<masked>\jbossxxx-node1\data\wsdl\echo.ear\echo-service.jar\echo\EchoService.wsdl
      ...
      Caused by: java.io.IOException: Cannot get URL for: META-INF/wsdl//echo/EchoService.xsd
      at org.jboss.wsf.common.URLLoaderAdapter.findChild(URLLoaderAdapter.java:106)
      at org.jboss.wsf.framework.deployment.ArchiveDeploymentImpl.getMetaDataFileURL(ArchiveDeploymentImpl.java:99)

      If you don't use the hand written wsdl and let jboss generate it everything works just fine.
      The META-INF directory contains the following files:
      META-INF/
      wsdl/echo/
      EchoService.wsdl
      EchoService.xsd

      When you place the Wsdl and xsd directly in the wsdl directory everything works fine. However this is not an option because the real usecase is much more complicated with lots of other schema files to import.

      Sample code will be attached.

        1. console.log
          13 kB
        2. echo.ear
          7 kB
        3. src.zip
          10 kB

              mageshbk_jira Magesh Bojan (Inactive)
              memoens Maarten Moens (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 6 hours
                  6h