Return-Path: Delivered-To: apmail-geronimo-dev-archive@www.apache.org Received: (qmail 35937 invoked from network); 26 Jun 2009 08:41:27 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 26 Jun 2009 08:41:27 -0000 Received: (qmail 45981 invoked by uid 500); 26 Jun 2009 08:41:38 -0000 Delivered-To: apmail-geronimo-dev-archive@geronimo.apache.org Received: (qmail 45878 invoked by uid 500); 26 Jun 2009 08:41:38 -0000 Mailing-List: contact dev-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@geronimo.apache.org List-Id: Delivered-To: mailing list dev@geronimo.apache.org Received: (qmail 45867 invoked by uid 99); 26 Jun 2009 08:41:38 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 26 Jun 2009 08:41:38 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 26 Jun 2009 08:41:27 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 66D03234C044 for ; Fri, 26 Jun 2009 01:41:07 -0700 (PDT) Message-ID: <1168971505.1246005667420.JavaMail.jira@brutus> Date: Fri, 26 Jun 2009 01:41:07 -0700 (PDT) From: "Hendy Irawan (JIRA)" To: dev@geronimo.apache.org Subject: [jira] Commented: (GERONIMO-4711) Geronimo Blueprint throws org.osgi.service.blueprint.container.ComponentDefinitionException: Cound not create component instance In-Reply-To: <1547916560.1245905467520.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/GERONIMO-4711?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12724430#action_12724430 ] Hendy Irawan commented on GERONIMO-4711: ---------------------------------------- I've diagnosed the issue and after crawling through Karaf, Gshell, and Geronimo Blueprint sources, I've decided that the problem in that Gshell's namespace handler for Blueprint doesn't provide means to do what I'm trying to do, namely creating a CommandAction using factory. However, factory creation is supported by Blueprint. So I'm "blaming" this on Gshell's inadequate support for XML-based configuration at the moment hehe. For now, in order to workaround the problem, I have to create the bean structure manually and export it as OSGi service using Blueprint, i.e. not using GShell namespace at all. I'll make sure to discuss this with GShell guys in order to support factory pattern inside Blueprint XML, as I think this is essential feature. I'm attaching my current (working) Blueprint XML below, for future reference. In addition, I'm also adding XML Schema locations here so IDE support for XML editing is enabled. I find it hard to find documentation on XML syntax for both Blueprint and GShell, and unfortunately all samples I've found never mentioned the XSD location considering it is very useful to remove guesswork. IMHO, A reference to XSD in SVN is still better than no XSD at all. org.apache.geronimo.gshell.command.Command org.apache.geronimo.gshell.command.Command bundle-context-osgi.xml bundle-context.xml I vote to close this bug. Thank you. > Geronimo Blueprint throws org.osgi.service.blueprint.container.ComponentDefinitionException: Cound not create component instance > -------------------------------------------------------------------------------------------------------------------------------- > > Key: GERONIMO-4711 > URL: https://issues.apache.org/jira/browse/GERONIMO-4711 > Project: Geronimo > Issue Type: Bug > Security Level: public(Regular issues) > Environment: Ubuntu 9.04, Sun JDK 6u10, Felix 1.8.0, Karaf SNAPSHOT, Blueprint SNAPSHOT > Reporter: Hendy Irawan > Attachments: caterpillar-blueprint-bug-sampler.tar.bz2, caterpillar-blueprint-stacktrace.txt > > > Component should be Geronimo Blueprint, but I can't find it in the list. > Relevant context of my Blueprint XML is as below. Do I write the XML correctly? > > > > > > > > > > > > > > > > > > bundle-context-osgi.xml > bundle-context.xml > > > > > > BTW, what is the URL of Blueprint XSD ? -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.