[jboss-user] [JBossWS] - Cannot get URL for schema (because of extra slash)

roger.powell do-not-reply at jboss.com
Tue Oct 9 12:41:59 EDT 2007


Hi,

I have Glassfish v2 experience but I am currently evaluating JBoss. The following problem does not occur in glassfish.

I have a WSDL containing a schema that imports another schema.

  | <xs:import namespace="http://www.ggf.org/namespaces/ws-agreement"
  |                 schemaLocation="agreement_types.xsd"/>

I am developing some web services. The following is the implementation class of an SEI:@Stateless
  | @WebContext(contextRoot="/qos")
  | @WebService(serviceName = "PRService",
  | portName = "PerformanceRepository",
  | endpointInterface = "org.gridcc.qos._20070730._3.QoS",
  | targetNamespace = "http://www.gridcc.org/qos/20070730/3", 
  | wsdlLocation = "META-INF/wsdl/PRService/QoS-WS-v2-RC3a.wsdl")
  | public class PRService implements org.gridcc.qos._20070730._3.QoS {
Notice the wsdlLocation (only one slash between "wsdl" and "PRService").

Clean and build no problem. Deploy into JBoss 4.2.1 and I get the following error:Caused by: java.io.IOException: Cannot get URL for: META-INF/wsdl//PRService/agreement_types.xsd
  |  Note that there are two slashes. I assume that's why the schema can't be found.

Can anyone help me? I would be very grateful.

Thx.

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

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



More information about the jboss-user mailing list