[jbossws-users] [JBossWS] - Cannot extract schema definition?

bsheward do-not-reply at jboss.com
Wed Apr 16 01:09:44 EDT 2008


Hi,

I developed a very simple web service, using wsconsume against a URL for WSDL to create a set of objects, and then the following code:


  |    public void runQuery( String username, String password, String query) {
  | 	      RemoteService service = new RemoteService ();
  | 	      RemotePortType rem= service.getRemotePort();
  | 	      System.out.println("Server said: " + rem.getRemoteResult( query, username, password));
  | 	   }
  | 

I get an Exception when instantiating the RemoteService:


  | Caused by: org.jboss.ws.metadata.wsdl.WSDLException: javax.wsdl.WSDLException: WSDLException: faultCode=OTHER_ERROR: Cannot extract schema definition: java.io.IOException: The file
  | name, directory name, or volume label syntax is incorrect
  |         at org.jboss.ws.tools.wsdl.WSDLDefinitionsFactory.parse(WSDLDefinitionsFactory.java:154)
  |         at org.jboss.ws.metadata.umdm.ServiceMetaData.getWsdlDefinitions(ServiceMetaData.java:321)
  |         at org.jboss.ws.metadata.builder.jaxws.JAXWSClientMetaDataBuilder.buildMetaData(JAXWSClientMetaDataBuilder.java:85)
  |         at org.jboss.ws.core.jaxws.spi.ServiceDelegateImpl.<init>(ServiceDelegateImpl.java:131)
  |         at org.jboss.ws.core.jaxws.spi.ProviderImpl.createServiceDelegate(ProviderImpl.java:61)
  |         at javax.xml.ws.Service.<init>(Service.java:83)
  |         at com.mycom.platforms.bf.webclient.RemoteService.<init>(RelevanceService.java:40)
  |         at com.mycom.platforms.bf.BFRemoteServiceClient.runQuery(BigFixRelevanceServiceClient.java:27)
  |         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  |         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  |         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  |         at java.lang.reflect.Method.invoke(Method.java:597)
  |         at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:112)
  |         at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:166)
  |         at org.jboss.ejb3.interceptor.EJB3InterceptorsInterceptor.invoke(EJB3InterceptorsInterceptor.java:63)
  |         at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  |         at org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor.invoke(TransactionScopedEntityManagerInterceptor.java:54)
  |         at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  |         at org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterceptor.java:47)
  |         at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  |         at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:79)
  |         ... 39 more
  | Caused by: javax.wsdl.WSDLException: WSDLException: faultCode=OTHER_ERROR: Cannot extract schema definition: java.io.IOException: The filename, directory name, or volume label synt
  | ax is incorrect
  |         at org.jboss.ws.tools.wsdl.WSDL11Reader.processTypes(WSDL11Reader.java:384)
  |         at org.jboss.ws.tools.wsdl.WSDL11Reader.processDefinition(WSDL11Reader.java:172)
  |         at org.jboss.ws.tools.wsdl.WSDLDefinitionsFactory.parse(WSDLDefinitionsFactory.java:128)
  |         ... 59 more
  | Caused by: java.io.IOException: The filename, directory name, or volume label syntax is incorrect
  |         at java.io.WinNTFileSystem.createFileExclusively(Native Method)
  |         at java.io.File.checkAndCreate(File.java:1704)
  |         at java.io.File.createTempFile(File.java:1793)
  |         at org.jboss.ws.metadata.wsdl.xsd.SchemaUtils.getSchemaTempFile(SchemaUtils.java:535)
  |         at org.jboss.ws.tools.wsdl.WSDL11Reader.processSchemaInclude(WSDL11Reader.java:529)
  |         at org.jboss.ws.tools.wsdl.WSDL11Reader.processTypes(WSDL11Reader.java:375)
  |         ... 61 more
  | 

One potential issue I can think of is that I am calling this web service while in a Session Bean exposed as a web service.

Could anyone give me any other pointers?

Thanks,

Barry


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4144373#4144373

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4144373



More information about the jbossws-users mailing list