You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Jean-Baptiste Onofré (JIRA)" <ji...@apache.org> on 2014/07/16 07:41:04 UTC

[jira] [Commented] (KARAF-3122) Blueprint bean loaded multiple times

    [ https://issues.apache.org/jira/browse/KARAF-3122?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14063179#comment-14063179 ] 

Jean-Baptiste Onofré commented on KARAF-3122:
---------------------------------------------

Some users complained about a similar issue affecting Cellar: dropping a blueprint XML in the deploy folder causes a lot of start/stop. I didn't test yet if it's Cellar related but it looks similar to what you see.

> 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)