You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Krzysztof Sobkowiak (JIRA)" <ji...@apache.org> on 2014/07/16 00:29:04 UTC
[jira] [Updated] (KARAF-3122) Blueprint bean loaded multiple times
[ 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)