Return-Path: X-Original-To: apmail-karaf-issues-archive@minotaur.apache.org Delivered-To: apmail-karaf-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 56ABF11EE8 for ; Tue, 15 Jul 2014 22:29:05 +0000 (UTC) Received: (qmail 96384 invoked by uid 500); 15 Jul 2014 22:29:05 -0000 Delivered-To: apmail-karaf-issues-archive@karaf.apache.org Received: (qmail 96329 invoked by uid 500); 15 Jul 2014 22:29:05 -0000 Mailing-List: contact issues-help@karaf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@karaf.apache.org Delivered-To: mailing list issues@karaf.apache.org Received: (qmail 96094 invoked by uid 99); 15 Jul 2014 22:29:04 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Jul 2014 22:29:04 +0000 Date: Tue, 15 Jul 2014 22:29:04 +0000 (UTC) From: "Krzysztof Sobkowiak (JIRA)" To: issues@karaf.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (KARAF-3122) Blueprint bean loaded multiple times 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/KARAF-3122?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Krzysztof Sobkowiak updated KARAF-3122: --------------------------------------- Attachment: test.jar test.xml > Blueprint bean loaded multiple times > ------------------------------------ > > Key: KARAF-3122 > URL: https://issues.apache.org/jira/browse/KARAF-3122 > Project: Karaf > Issue Type: Bug > Affects Versions: 2.3.6 > Reporter: Krzysztof Sobkowiak > Attachments: test.jar, test.xml > > > The attached jar contains following class > {code} > package com; > public class Test { > public void init() throws Exception { System.out.println("Starting ..."); } > } > {code} > > The attached blueprint file initializes the bean using the {{init}} method. If the both files are deployed using hot deploy, the method {{init}} seems to be called twice after Karaf restart. > {code} > karaf@root> Starting ... > Warning: org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser: Property 'http://www.oracle.com/xml/jaxp/properties/entityExpansionLimit' is not recognized. > Compiler warnings: > WARNING: 'org.apache.xerces.jaxp.SAXParserImpl: Property 'http://javax.xml.XMLConstants/property/accessExternalDTD' is not recognized.' > Starting ... > {code} > After deleting the {{data}} directory before starting Karaf, the method is called once > {code} > karaf@root> Warning: org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser: Property 'http://www.oracle.com/xml/jaxp/properties/entityExpansionLimit' is not recognized. > Compiler warnings: > WARNING: 'org.apache.xerces.jaxp.SAXParserImpl: Property 'http://javax.xml.XMLConstants/property/accessExternalDTD' is not recognized.' > Starting ... > {code} > The bean is probably started once from the cached bundle and next is refreshed when it is detected in {{deploy}} directory. > This effect does not occur in Karaf {{2.x}}, {{3.0.x}} and {{master}} -- This message was sent by Atlassian JIRA (v6.2#6252)