Return-Path: X-Original-To: apmail-cxf-issues-archive@www.apache.org Delivered-To: apmail-cxf-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 79C8ADF05 for ; Fri, 24 May 2013 14:36:34 +0000 (UTC) Received: (qmail 55682 invoked by uid 500); 24 May 2013 14:36:34 -0000 Delivered-To: apmail-cxf-issues-archive@cxf.apache.org Received: (qmail 55640 invoked by uid 500); 24 May 2013 14:36:33 -0000 Mailing-List: contact issues-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list issues@cxf.apache.org Received: (qmail 55621 invoked by uid 99); 24 May 2013 14:36:33 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 24 May 2013 14:36:33 +0000 Date: Fri, 24 May 2013 14:36:33 +0000 (UTC) From: "Christian Schneider (JIRA)" To: issues@cxf.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Closed] (DOSGI-111) DOSGi bundle attempts to load WSDL using wrong bundle in WSDL-first configuration MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/DOSGI-111?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Christian Schneider closed DOSGI-111. ------------------------------------- > DOSGi bundle attempts to load WSDL using wrong bundle in WSDL-first configuration > ---------------------------------------------------------------------------------- > > Key: DOSGI-111 > URL: https://issues.apache.org/jira/browse/DOSGI-111 > 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 > Assignee: Sergey Beryozkin > Fix For: 1.4.0 > > > 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(); > props.put("service.exported.interfaces", "*"); > props.put("service.exported.configs", "wsdl"); > props.put("org.apache.cxf.ws.address", "http://localhost:8080/WebService"); > props.put("osgi.remote.configuration.wsdl.service.ns", "http://tradeservice.com/"); > props.put("osgi.remote.configuration.wsdl.service.name", "Trade"); > props.put("osgi.remote.configuration.wsdl.port.name", "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: (TopologyManager.java:333) > I debugged through the dsw code and found the problem appears to be this line: > WsdlConfigurationTypeHandler.java:120 > 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 For more information on JIRA, see: http://www.atlassian.com/software/jira