[jbossws-issues] [JBoss JIRA] Created: (JBWS-2221) FileNotFound when targetNamespace has parameters "?"

Amancio D■az (JIRA) jira-events at lists.jboss.org
Wed Jun 11 08:45:18 EDT 2008


FileNotFound when targetNamespace has parameters "?"
----------------------------------------------------

                 Key: JBWS-2221
                 URL: http://jira.jboss.com/jira/browse/JBWS-2221
             Project: JBoss Web Services
          Issue Type: Bug
      Security Level: Public (Everyone can see)
          Components: jbossws-native
    Affects Versions: jbossws-native-3.0.1
         Environment: Linux 2.6.24-18-generic #1 SMP Wed May 28 20:27:26 UTC 2008 i686 GNU/Linux
Release ID: JBoss [Trinity] 4.2.2.GA (build: SVNTag=JBoss_4_2_2_GA date=200710221139)
[org.jboss.wsf.stack.jbws.NativeServerConfig] JBoss Web Services - Native
[org.jboss.wsf.stack.jbws.NativeServerConfig] jbossws-3.0.1-native-2.0.4.GA (build=200803312044)
Java version: 1.5.0_15,Sun Microsystems Inc
Java VM: Java HotSpot(TM) Server VM 1.5.0_15-b04,Sun Microsystems Inc.

            Reporter: Amancio D■az


Developing a client of a web service that has a target namespace defined as follows:

targetNamespace="http://metropolis.caixagalicia.es/ConectorWS/services/SN555167?wsdl"

When creating the Service an exception is thrown. 

2008-06-11 14:09:06,706 DEBUG [org.jboss.ws.tools.JavaToXSD] Load schema: http://metropolis.caixagalicia.es/ConectorWS/services/SN555167?wsdl=file:/opt/jboss/jboss-4.2.2.GA/server/default/tmp/jbossws/JBossWS_metropolis.caixagalicia.es_ConectorWS_services_SN555167?wsdl7760.xsd
2008-06-11 14:09:06,706 DEBUG [org.jboss.ws.core.utils.JBossWSEntityResolver] resolveEntity: [pub=null,sysid=file:/opt/jboss/jboss-4.2.2.GA/server/default/tmp/jbossws/JBossWS_metropolis.caixagalicia.es_ConectorWS_services_SN555167?wsdl7760.xsd]
2008-06-11 14:09:06,709 TRACE [org.jboss.ws.core.utils.JBossWSEntityResolver] resolveIDAsResourceURL, id=file:/opt/jboss/jboss-4.2.2.GA/server/default/tmp/jbossws/JBossWS_metropolis.caixagalicia.es_ConectorWS_services_SN555167?wsdl7760.xsd
2008-06-11 14:09:06,709 TRACE [org.jboss.ws.core.utils.JBossWSEntityResolver] Trying to resolve id as a URL
2008-06-11 14:09:06,710 TRACE [org.jboss.ws.core.utils.JBossWSEntityResolver] Failed to obtain URL.InputStream from id: file:/opt/jboss/jboss-4.2.2.GA/server/default/tmp/jbossws/JBossWS_metropolis.caixagalicia.es_ConectorWS_services_SN555167?wsdl7760.xsd
java.io.FileNotFoundException: /opt/jboss/jboss-4.2.2.GA/server/default/tmp/jbossws/JBossWS_metropolis.caixagalicia.es_ConectorWS_services_SN555167
	at org.jboss.net.protocol.file.FileURLConnection.connect(FileURLConnection.java:94)
	at org.jboss.net.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:103)
	at java.net.URL.openStream(URL.java:1007)
	at org.jboss.ws.core.utils.ResourceURL.openStream(ResourceURL.java:57)
	at org.jboss.ws.core.utils.JBossWSEntityResolver.resolveSystemIDAsURL(JBossWSEntityResolver.java:98)
	at org.jboss.ws.core.utils.JBossWSEntityResolver.resolveEntity(JBossWSEntityResolver.java:68)
	at org.jboss.ws.tools.JavaToXSD.parseSchema(JavaToXSD.java:178)
	at org.jboss.ws.tools.wsdl.WSDL11Reader.processTypes(WSDL11Reader.java:401)
	at org.jboss.ws.tools.wsdl.WSDL11Reader.processDefinition(WSDL11Reader.java:178)
	at org.jboss.ws.tools.wsdl.WSDLDefinitionsFactory.parse(WSDLDefinitionsFactory.java:128)
	at org.jboss.ws.metadata.umdm.ServiceMetaData.getWsdlDefinitions(ServiceMetaData.java:295)
	at org.jboss.ws.metadata.builder.jaxws.JAXWSClientMetaDataBuilder.buildMetaData(JAXWSClientMetaDataBuilder.java:86)
	at org.jboss.ws.core.jaxws.spi.ServiceDelegateImpl.<init>(ServiceDelegateImpl.java:140)
	at org.jboss.ws.core.jaxws.spi.ProviderImpl.createServiceDelegate(ProviderImpl.java:64)
	at javax.xml.ws.Service.<init>(Service.java:81)
....

2008-06-11 14:09:06,713 DEBUG [org.jboss.ws.core.utils.JBossWSEntityResolver] Cannot resolve entity: [pub=null,sysid=file:/opt/jboss/jboss-4.2.2.GA/server/default/tmp/jbossws/JBossWS_metropolis.caixagalicia.es_ConectorWS_services_SN555167?wsdl7760.xsd]
2008-06-11 14:09:06,714 WARN  [net.caixagaliciamoviles.pruebas.metropolis.PruebasServicioWebJMX] Error en URL 
java.lang.NullPointerException
	at org.jboss.ws.tools.JavaToXSD.parseSchema(JavaToXSD.java:179)
	at org.jboss.ws.tools.wsdl.WSDL11Reader.processTypes(WSDL11Reader.java:401)

The file 

[/opt/jboss/jboss-4.2.2.GA/server/default/tmp/jbossws/JBossWS_metropolis.caixagalicia.es_ConectorWS_services_SN555167?wsdl7760.xsd]

exists, but jboss searchs for 
[/opt/jboss/jboss-4.2.2.GA/server/default/tmp/jbossws/JBossWS_metropolis.caixagalicia.es_ConectorWS_services_SN555167]

which does not exists.

If I hand copy the file to the new name then the service works ok. (this has to be done by hand after deploy in the JBOSS_HOME/server/default/tmp/jbossws/ directory.

The class org.jboss.net.protocol.file.FileURLConnection cuts all the content after the "?". 

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

       




More information about the jbossws-issues mailing list