Apache Geronimo > Discussion Forums  User List | Dev List | Wiki | Issue Tracker  

[jira] Created: (GERONIMO-4711) Geronimo Blueprint throws org.osgi.service.blueprint.container.ComponentDefinitionException: Cound not create component instance

View: New views
7 Messages — Rating Filter:   Alert me  

[jira] Created: (GERONIMO-4711) Geronimo Blueprint throws org.osgi.service.blueprint.container.ComponentDefinitionException: Cound not create component instance

by JIRA jira@apache.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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


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?

<?xml version="1.0" encoding="UTF-8"?>
<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0">

    <command-bundle xmlns="http://felix.apache.org/karaf/xmlns/gshell/v1.0.0">
        <command name="ou/show">
            <action factory-bean="qi4jApp" factory-method="createShowState">
                <property name="bundleContext" ref="blueprintBundleContext"/>
                <property name="project" ref="theProject" />
            </action>
        </command>
    </command-bundle>

        <bean id="qi4jApp" class="com.openubiquity.caterpillar.Qi4jApp">
        </bean>
       
        <bean id="theProject" class="com.openubiquity.caterpillar.SpringProject">
    <property name="name" value="Caterpillar" />
    <property name="contextFiles">
    <list>
    <value>bundle-context-osgi.xml</value>
    <value>bundle-context.xml</value>
    </list>
    </property>
        </bean>
       
</blueprint>

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.


[jira] Updated: (GERONIMO-4711) Geronimo Blueprint throws org.osgi.service.blueprint.container.ComponentDefinitionException: Cound not create component instance

by JIRA jira@apache.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


     [ https://issues.apache.org/jira/browse/GERONIMO-4711?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Hendy Irawan updated GERONIMO-4711:
-----------------------------------

    Attachment: caterpillar-blueprint-bug-sampler.tar.bz2

Sample project to illustrate the problem.

Deploy the bundle on Felix Karaf.

> 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
>
>
> 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?
> <?xml version="1.0" encoding="UTF-8"?>
> <blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0">
>     <command-bundle xmlns="http://felix.apache.org/karaf/xmlns/gshell/v1.0.0">
>         <command name="ou/show">
>             <action factory-bean="qi4jApp" factory-method="createShowState">
>                 <property name="bundleContext" ref="blueprintBundleContext"/>
>                 <property name="project" ref="theProject" />
>             </action>
>         </command>
>     </command-bundle>
> <bean id="qi4jApp" class="com.openubiquity.caterpillar.Qi4jApp">
> </bean>
>
> <bean id="theProject" class="com.openubiquity.caterpillar.SpringProject">
>     <property name="name" value="Caterpillar" />
>     <property name="contextFiles">
>     <list>
>     <value>bundle-context-osgi.xml</value>
>     <value>bundle-context.xml</value>
>     </list>
>     </property>
> </bean>
>
> </blueprint>
> 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.


[jira] Commented: (GERONIMO-4711) Geronimo Blueprint throws org.osgi.service.blueprint.container.ComponentDefinitionException: Cound not create component instance

by JIRA jira@apache.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


    [ https://issues.apache.org/jira/browse/GERONIMO-4711?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12724135#action_12724135 ]

Jarek Gawor commented on GERONIMO-4711:
---------------------------------------

Right now, you can find the blueprint.xsd either in the blueprint-bundle.jar or you can access it directly from svn:

http://svn.apache.org/viewvc/geronimo/sandbox/blueprint/blueprint-core/src/main/resources/org/apache/geronimo/blueprint/blueprint.xsd?view=co

Also, please attach a full stack trace of the exception you are seeing.


> 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
>
>
> 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?
> <?xml version="1.0" encoding="UTF-8"?>
> <blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0">
>     <command-bundle xmlns="http://felix.apache.org/karaf/xmlns/gshell/v1.0.0">
>         <command name="ou/show">
>             <action factory-bean="qi4jApp" factory-method="createShowState">
>                 <property name="bundleContext" ref="blueprintBundleContext"/>
>                 <property name="project" ref="theProject" />
>             </action>
>         </command>
>     </command-bundle>
> <bean id="qi4jApp" class="com.openubiquity.caterpillar.Qi4jApp">
> </bean>
>
> <bean id="theProject" class="com.openubiquity.caterpillar.SpringProject">
>     <property name="name" value="Caterpillar" />
>     <property name="contextFiles">
>     <list>
>     <value>bundle-context-osgi.xml</value>
>     <value>bundle-context.xml</value>
>     </list>
>     </property>
> </bean>
>
> </blueprint>
> 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.


[jira] Updated: (GERONIMO-4711) Geronimo Blueprint throws org.osgi.service.blueprint.container.ComponentDefinitionException: Cound not create component instance

by JIRA jira@apache.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


     [ https://issues.apache.org/jira/browse/GERONIMO-4711?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Hendy Irawan updated GERONIMO-4711:
-----------------------------------

    Attachment: caterpillar-blueprint-stacktrace.txt

Thank you.

Attached relevant log and stack trace info.

Snippet stack trace:

org.apache.geronimo.gshell.commandline.CommandLineExecutionFailed: org.osgi.service.blueprint.container.ComponentDefinitionException: Cound not create component instance for gshell-160
        at org.apache.geronimo.gshell.parser.visitor.ExecutingVisitor.executePiped(ExecutingVisitor.java:246)
        at org.apache.geronimo.gshell.parser.visitor.ExecutingVisitor.visit(ExecutingVisitor.java:107)
        at org.apache.geronimo.gshell.parser.ASTExpression.jjtAccept(ASTExpression.java:17)
        at org.apache.geronimo.gshell.parser.SimpleNode.childrenAccept(SimpleNode.java:61)
        at org.apache.geronimo.gshell.parser.visitor.ExecutingVisitor.visit(ExecutingVisitor.java:90)
        at org.apache.geronimo.gshell.parser.ASTCommandLine.jjtAccept(ASTCommandLine.java:17)
        at org.apache.geronimo.gshell.wisdom.shell.CommandLineBuilderImpl$1.execute(CommandLineBuilderImpl.java:96)
        at org.apache.geronimo.gshell.wisdom.shell.CommandLineExecutorImpl.execute(CommandLineExecutorImpl.java:71)
        at org.apache.geronimo.gshell.wisdom.shell.ShellImpl.execute(ShellImpl.java:172)
        at org.apache.geronimo.gshell.wisdom.shell.ShellImpl$2.execute(ShellImpl.java:208)
        at org.apache.geronimo.gshell.console.Console.work(Console.java:194)
        at org.apache.geronimo.gshell.console.Console.run(Console.java:128)
        at org.apache.geronimo.gshell.wisdom.shell.ShellImpl.run(ShellImpl.java:252)
        at org.apache.felix.karaf.gshell.core.ShellWrapper.run(ShellWrapper.java:81)
        at org.apache.felix.karaf.gshell.core.LocalConsole.run(LocalConsole.java:119)
        at java.lang.Thread.run(Thread.java:619)
Caused by: org.osgi.service.blueprint.container.ComponentDefinitionException: Cound not create component instance for gshell-160
        at org.apache.geronimo.blueprint.container.BlueprintContainerImpl.getComponentInstance(BlueprintContainerImpl.java:576)
        at org.apache.felix.karaf.gshell.core.BeanContainerWrapper.getBean(BeanContainerWrapper.java:71)
        at org.apache.geronimo.gshell.wisdom.command.StatefulCommand.createAction(StatefulCommand.java:82)
        at org.apache.geronimo.gshell.wisdom.command.StatefulCommand.getAction(StatefulCommand.java:62)
        at org.apache.geronimo.gshell.wisdom.command.CommandSupport.prepareAction(CommandSupport.java:225)
        at org.apache.geronimo.gshell.wisdom.command.CommandSupport.execute(CommandSupport.java:191)
        at org.apache.geronimo.gshell.command.Command$$EnhancerByCGLIB$$4e5c2a77.execute(<generated>)
        at org.apache.geronimo.gshell.wisdom.shell.CommandLineExecutorImpl.doExecute(CommandLineExecutorImpl.java:127)
        at org.apache.geronimo.gshell.wisdom.shell.CommandLineExecutorImpl.execute(CommandLineExecutorImpl.java:106)
        at org.apache.geronimo.gshell.parser.visitor.ExecutingVisitor$1.run(ExecutingVisitor.java:208)
        at org.apache.geronimo.gshell.parser.visitor.ExecutingVisitor.executePiped(ExecutingVisitor.java:231)
        ... 15 more
Caused by: java.lang.StringIndexOutOfBoundsException: String index out of range: 0
        at java.lang.String.charAt(String.java:687)
        at org.apache.felix.framework.ModuleImpl.getClassByDelegation(ModuleImpl.java:558)
        at org.apache.felix.framework.Felix.loadBundleClass(Felix.java:1389)
        at org.apache.felix.framework.BundleImpl.loadClass(BundleImpl.java:792)
        at org.apache.geronimo.blueprint.container.BlueprintContainerImpl.loadClass(BlueprintContainerImpl.java:148)
        at org.apache.geronimo.blueprint.container.BlueprintRepository.loadClass(BlueprintRepository.java:328)
        at org.apache.geronimo.blueprint.utils.TypeUtils.parseJavaType(TypeUtils.java:205)
        at org.apache.geronimo.blueprint.di.AbstractRecipe.loadType(AbstractRecipe.java:106)
        at org.apache.geronimo.blueprint.container.BeanRecipe.loadClass(BeanRecipe.java:163)
        at org.apache.geronimo.blueprint.container.BeanRecipe.getType(BeanRecipe.java:554)
        at org.apache.geronimo.blueprint.container.BeanRecipe.getInstance(BeanRecipe.java:224)
        at org.apache.geronimo.blueprint.container.BeanRecipe.internalCreate(BeanRecipe.java:482)
        at org.apache.geronimo.blueprint.di.AbstractRecipe.create(AbstractRecipe.java:66)
        at org.apache.geronimo.blueprint.container.BlueprintRepository.createInstance(BlueprintRepository.java:211)
        at org.apache.geronimo.blueprint.container.BlueprintRepository.createAll(BlueprintRepository.java:148)
        at org.apache.geronimo.blueprint.container.BlueprintRepository.create(BlueprintRepository.java:135)
        at org.apache.geronimo.blueprint.container.BlueprintContainerImpl.getComponentInstance(BlueprintContainerImpl.java:572)
        ... 25 more


> 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?
> <?xml version="1.0" encoding="UTF-8"?>
> <blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0">
>     <command-bundle xmlns="http://felix.apache.org/karaf/xmlns/gshell/v1.0.0">
>         <command name="ou/show">
>             <action factory-bean="qi4jApp" factory-method="createShowState">
>                 <property name="bundleContext" ref="blueprintBundleContext"/>
>                 <property name="project" ref="theProject" />
>             </action>
>         </command>
>     </command-bundle>
> <bean id="qi4jApp" class="com.openubiquity.caterpillar.Qi4jApp">
> </bean>
>
> <bean id="theProject" class="com.openubiquity.caterpillar.SpringProject">
>     <property name="name" value="Caterpillar" />
>     <property name="contextFiles">
>     <list>
>     <value>bundle-context-osgi.xml</value>
>     <value>bundle-context.xml</value>
>     </list>
>     </property>
> </bean>
>
> </blueprint>
> 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.


[jira] Commented: (GERONIMO-4711) Geronimo Blueprint throws org.osgi.service.blueprint.container.ComponentDefinitionException: Cound not create component instance

by JIRA jira@apache.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


    [ https://issues.apache.org/jira/browse/GERONIMO-4711?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12724211#action_12724211 ]

Lin Sun commented on GERONIMO-4711:
-----------------------------------

Where is the component definition for this "gshell-160"?  I don't see it in the blueprint.xml file of the attached archive.

> 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?
> <?xml version="1.0" encoding="UTF-8"?>
> <blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0">
>     <command-bundle xmlns="http://felix.apache.org/karaf/xmlns/gshell/v1.0.0">
>         <command name="ou/show">
>             <action factory-bean="qi4jApp" factory-method="createShowState">
>                 <property name="bundleContext" ref="blueprintBundleContext"/>
>                 <property name="project" ref="theProject" />
>             </action>
>         </command>
>     </command-bundle>
> <bean id="qi4jApp" class="com.openubiquity.caterpillar.Qi4jApp">
> </bean>
>
> <bean id="theProject" class="com.openubiquity.caterpillar.SpringProject">
>     <property name="name" value="Caterpillar" />
>     <property name="contextFiles">
>     <list>
>     <value>bundle-context-osgi.xml</value>
>     <value>bundle-context.xml</value>
>     </list>
>     </property>
> </bean>
>
> </blueprint>
> 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.


[jira] Commented: (GERONIMO-4711) Geronimo Blueprint throws org.osgi.service.blueprint.container.ComponentDefinitionException: Cound not create component instance

by JIRA jira@apache.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


    [ 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.

<?xml version="1.0" encoding="UTF-8"?>
<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="http://www.osgi.org/xmlns/blueprint/v1.0.0 http://svn.apache.org/repos/asf/geronimo/sandbox/blueprint/blueprint-core/src/main/resources/org/apache/geronimo/blueprint/blueprint.xsd
        http://felix.apache.org/karaf/xmlns/gshell/v1.0.0 http://svn.apache.org/repos/asf/felix/trunk/karaf/gshell/gshell-core/src/main/resources/org/apache/felix/karaf/gshell/core/karaf-gshell.xsd">

    <command-bundle xmlns="http://felix.apache.org/karaf/xmlns/gshell/v1.0.0">
        <command name="ou/hello">
            <action class="com.openubiquity.caterpillar.HelloAction">
                <property name="bundleContext" ref="blueprintBundleContext"/>                
            </action>
        </command>
        <command name="ou/iam">
            <action class="com.openubiquity.caterpillar.IamAction">
                <property name="bundleContext" ref="blueprintBundleContext"/>
            </action>
        </command>
        <command name="ou/show">
            <action factory-bean="qi4jApp" factory-method="createShowState">
                <property name="bundleContext" ref="blueprintBundleContext"/>
                <property name="project" ref="theProject" />
            </action>
        </command>
        <command name="ou/save">
            <action class="com.openubiquity.caterpillar.SaveState">
                <property name="bundleContext" ref="blueprintBundleContext"/>
                <property name="project" ref="theProject" />
            </action>
        </command>
    </command-bundle>
   
        <bean id="helloCreator" class="com.openubiquity.caterpillar.HelloCreator">
                <property name="bundleContext" ref="blueprintBundleContext"/>
        </bean>
        <bean id="hello2Action" factory-ref="helloCreator" factory-method="createHello" />
    <bean id="hello2Command" class="org.apache.geronimo.gshell.wisdom.command.StatelessCommand">
    <property name="beanContainer">
    <bean class="org.apache.felix.karaf.gshell.core.BeanContainerWrapper">
    <argument ref="blueprintContainer" />
    </bean>
    </property>
    <property name="action" ref="hello2Action" />
    <property name="location">
    <bean class="org.apache.geronimo.gshell.wisdom.registry.CommandLocationImpl">
    <argument value="ou/hello2" />
    </bean>
    </property>
    </bean>
    <service id="hello2CommandSvc" ref="hello2Command">
    <interfaces>
    <value>org.apache.geronimo.gshell.command.Command</value>
    </interfaces>
    </service>

    <bean id="show2Command" class="org.apache.geronimo.gshell.wisdom.command.StatelessCommand">
    <property name="beanContainer">
    <bean class="org.apache.felix.karaf.gshell.core.BeanContainerWrapper">
    <argument ref="blueprintContainer" />
    </bean>
    </property>
    <property name="action">
            <bean factory-ref="qi4jApp" factory-method="createShowState">
                <property name="bundleContext" ref="blueprintBundleContext"/>
                <property name="project" ref="theProject" />
            </bean>
    </property>
    <property name="location">
    <bean class="org.apache.geronimo.gshell.wisdom.registry.CommandLocationImpl">
    <argument value="ou/show2" />
    </bean>
    </property>
    </bean>
    <service id="show2CommandSvc" ref="show2Command">
    <interfaces>
    <value>org.apache.geronimo.gshell.command.Command</value>
    </interfaces>
    </service>

        <bean id="qi4jApp" class="com.openubiquity.caterpillar.Qi4jApp" />
       
        <bean id="theProject" class="com.openubiquity.caterpillar.SpringProject">
    <property name="name" value="Caterpillar" />
    <property name="contextFiles">
    <list>
    <value>bundle-context-osgi.xml</value>
    <value>bundle-context.xml</value>
    </list>
    </property>
        </bean>
       
</blueprint>

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?
> <?xml version="1.0" encoding="UTF-8"?>
> <blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0">
>     <command-bundle xmlns="http://felix.apache.org/karaf/xmlns/gshell/v1.0.0">
>         <command name="ou/show">
>             <action factory-bean="qi4jApp" factory-method="createShowState">
>                 <property name="bundleContext" ref="blueprintBundleContext"/>
>                 <property name="project" ref="theProject" />
>             </action>
>         </command>
>     </command-bundle>
> <bean id="qi4jApp" class="com.openubiquity.caterpillar.Qi4jApp">
> </bean>
>
> <bean id="theProject" class="com.openubiquity.caterpillar.SpringProject">
>     <property name="name" value="Caterpillar" />
>     <property name="contextFiles">
>     <list>
>     <value>bundle-context-osgi.xml</value>
>     <value>bundle-context.xml</value>
>     </list>
>     </property>
> </bean>
>
> </blueprint>
> 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.


[jira] Resolved: (GERONIMO-4711) Geronimo Blueprint throws org.osgi.service.blueprint.container.ComponentDefinitionException: Cound not create component instance

by JIRA jira@apache.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


     [ https://issues.apache.org/jira/browse/GERONIMO-4711?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jarek Gawor resolved GERONIMO-4711.
-----------------------------------

    Resolution: Invalid

Closing as it sounds like this was an issue with Gshell's namespace handler.


> 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?
> <?xml version="1.0" encoding="UTF-8"?>
> <blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0">
>     <command-bundle xmlns="http://felix.apache.org/karaf/xmlns/gshell/v1.0.0">
>         <command name="ou/show">
>             <action factory-bean="qi4jApp" factory-method="createShowState">
>                 <property name="bundleContext" ref="blueprintBundleContext"/>
>                 <property name="project" ref="theProject" />
>             </action>
>         </command>
>     </command-bundle>
> <bean id="qi4jApp" class="com.openubiquity.caterpillar.Qi4jApp">
> </bean>
>
> <bean id="theProject" class="com.openubiquity.caterpillar.SpringProject">
>     <property name="name" value="Caterpillar" />
>     <property name="contextFiles">
>     <list>
>     <value>bundle-context-osgi.xml</value>
>     <value>bundle-context.xml</value>
>     </list>
>     </property>
> </bean>
>
> </blueprint>
> 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.