cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sergey Beryozkin (Updated) (JIRA)" <>
Subject [jira] [Updated] (DOSGI-111) DOSGi bundle attempts to load WSDL using wrong bundle in WSDL-first configuration
Date Tue, 13 Mar 2012 17:26:47 GMT


Sergey Beryozkin updated DOSGI-111:

    Fix Version/s: 1.3.1
> DOSGi bundle attempts to load WSDL using wrong bundle in WSDL-first configuration 
> ----------------------------------------------------------------------------------
>                 Key: DOSGI-111
>                 URL:
>             Project: CXF Distributed OSGi
>          Issue Type: Bug
>          Components: DSW
>    Affects Versions: 1.3
>         Environment: JRE6 (1.6.0_24)
> Felix 4.0.2
> CXF DOSGi 1.3 single bundle
>            Reporter: Adam Crossley
>             Fix For: 1.3.1
> I'm using a WSDL-first approach to expose a web service. My supplied WSDL file which
is in my service bundle is not found during registration of the web service.
> I have the following code in my activator:
>             props = new Hashtable<String, String>();
>             props.put("service.exported.interfaces", "*");
>             props.put("service.exported.configs", "wsdl");
>             props.put("", "http://localhost:8080/WebService");
>             props.put("osgi.remote.configuration.wsdl.service.ns", "");
>             props.put("", "Trade");
>             props.put("", "TradeSoap");
>             props.put("osgi.remote.configuration.wsdl.location", "trade.wsdl");
>             tradeRegistration = ctx.registerService(TradeWebService.class.getName(),
new TradeWebServiceImpl(), props);
> The trade.wsdl file is in the root of my service bundle and is accessible by classes
within my bundle.
> When the registerService() method is called I get this error:
> NullPointerException: (
> I debugged through the dsw code and found the problem appears to be this line:
>         URL wsdlURL = dswContext.getBundle().getResource(location);
> The WSDL resource is being loaded in the context of the DOSGi bundle, instead of from
my service bundle, thus the file is not found and the registration fails.
> If I package my WDSL file into the DOSGi bundle, then it works and the web service registers
properly and publishes my supplied WSDL.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


View raw message