You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Susan Javurek (JIRA)" <ji...@apache.org> on 2010/12/06 17:24:11 UTC

[jira] Created: (KARAF-311) Deploying a sample application in the User's Guide is missing a command

Deploying a sample application in the User's Guide is missing a command
-----------------------------------------------------------------------

                 Key: KARAF-311
                 URL: https://issues.apache.org/jira/browse/KARAF-311
             Project: Karaf
          Issue Type: Bug
          Components: documentation
            Reporter: Susan Javurek
            Priority: Minor


The "Apache Karaf Users' Guide"  details deploying a sample application on page 8 and page 9.  The same information is also available from the following URL:

	http://karaf.apache.org/2-quick-start.html#2.QuickStart-Deployasampleapplication

The documentation denotes to run a  list of commands. After running the last command:

karaf@root> osgi:install -s mvn:org.apache.camel/camel-example-osgi/1.4.0
Bundle ID: 195

I receive the following error:

karaf@root> osgi:list |grep exampleException in thread "SpringOsgiExtenderThread-9" java.lang.IllegalStateException: BeanFactory not initialized or already closed - call 'refresh' before accessing beans via the ApplicationContext
        at org.springframework.context.support.AbstractRefreshableApplicationContext.getBeanFactory(AbstractRefreshableApplicationContext.java:171)
        at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.close(DependencyWaiterApplicationContextExecutor.java:345)
        at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.fail(DependencyWaiterApplicationContextExecutor.java:401)
        at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.stageOne(DependencyWaiterApplicationContextExecutor.java:287)
        at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.refresh(DependencyWaiterApplicationContextExecutor.java:175)
        at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.refresh(AbstractDelegatedExecutionApplicationContext.java:175)
        at org.springframework.osgi.extender.internal.activator.ContextLoaderListener$2.run(ContextLoaderListener.java:718)
        at java.lang.Thread.run(Thread.java:680)

An additional step is required:

	features:install examples-camel-osgi

After this command is executed, the demo works as expected.   

I'm new to Karaf but I also understand some of the other commands listed may not be required, e.g. "features:install spring-dm".  One of my colleagues thought this was old.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (KARAF-311) Deploying a sample application in the User's Guide is missing a command

Posted by "Jean-Baptiste Onofré (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/KARAF-311?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jean-Baptiste Onofré resolved KARAF-311.
----------------------------------------

       Resolution: Fixed
    Fix Version/s: 2.2.0

I've updated both wiki page and user guide (revision 1056262).



> Deploying a sample application in the User's Guide is missing a command
> -----------------------------------------------------------------------
>
>                 Key: KARAF-311
>                 URL: https://issues.apache.org/jira/browse/KARAF-311
>             Project: Karaf
>          Issue Type: Bug
>          Components: documentation
>            Reporter: Susan Javurek
>            Assignee: Jean-Baptiste Onofré
>            Priority: Minor
>             Fix For: 2.2.0
>
>
> The "Apache Karaf Users' Guide"  details deploying a sample application on page 8 and page 9.  The same information is also available from the following URL:
> 	http://karaf.apache.org/2-quick-start.html#2.QuickStart-Deployasampleapplication
> The documentation denotes to run a  list of commands. After running the last command:
> karaf@root> osgi:install -s mvn:org.apache.camel/camel-example-osgi/1.4.0
> Bundle ID: 195
> I receive the following error:
> karaf@root> osgi:list |grep exampleException in thread "SpringOsgiExtenderThread-9" java.lang.IllegalStateException: BeanFactory not initialized or already closed - call 'refresh' before accessing beans via the ApplicationContext
>         at org.springframework.context.support.AbstractRefreshableApplicationContext.getBeanFactory(AbstractRefreshableApplicationContext.java:171)
>         at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.close(DependencyWaiterApplicationContextExecutor.java:345)
>         at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.fail(DependencyWaiterApplicationContextExecutor.java:401)
>         at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.stageOne(DependencyWaiterApplicationContextExecutor.java:287)
>         at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.refresh(DependencyWaiterApplicationContextExecutor.java:175)
>         at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.refresh(AbstractDelegatedExecutionApplicationContext.java:175)
>         at org.springframework.osgi.extender.internal.activator.ContextLoaderListener$2.run(ContextLoaderListener.java:718)
>         at java.lang.Thread.run(Thread.java:680)
> An additional step is required:
> 	features:install examples-camel-osgi
> After this command is executed, the demo works as expected.   
> I'm new to Karaf but I also understand some of the other commands listed may not be required, e.g. "features:install spring-dm".  One of my colleagues thought this was old.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] [Commented] (KARAF-311) Deploying a sample application in the User's Guide is missing a command

Posted by "Susan Javurek (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/KARAF-311?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13144797#comment-13144797 ] 

Susan Javurek commented on KARAF-311:
-------------------------------------

Hi,

I will be out of the office until Thursday November 10, 2011.  If you
need immediate assistance please contact support@fusesource.com.
Otherwise, I will respond to you when I return.

Kindest regards,


-- 
Susan Javurek
FuseSource
Email:  sjavurek@fusesource.com
Web:    fusesource.com
Twitter: http://twitter.com/fusenews

                
> Deploying a sample application in the User's Guide is missing a command
> -----------------------------------------------------------------------
>
>                 Key: KARAF-311
>                 URL: https://issues.apache.org/jira/browse/KARAF-311
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf-documentation
>            Reporter: Susan Javurek
>            Assignee: Jean-Baptiste Onofré
>            Priority: Minor
>             Fix For: 2.2.0
>
>
> The "Apache Karaf Users' Guide"  details deploying a sample application on page 8 and page 9.  The same information is also available from the following URL:
> 	http://karaf.apache.org/2-quick-start.html#2.QuickStart-Deployasampleapplication
> The documentation denotes to run a  list of commands. After running the last command:
> karaf@root> osgi:install -s mvn:org.apache.camel/camel-example-osgi/1.4.0
> Bundle ID: 195
> I receive the following error:
> karaf@root> osgi:list |grep exampleException in thread "SpringOsgiExtenderThread-9" java.lang.IllegalStateException: BeanFactory not initialized or already closed - call 'refresh' before accessing beans via the ApplicationContext
>         at org.springframework.context.support.AbstractRefreshableApplicationContext.getBeanFactory(AbstractRefreshableApplicationContext.java:171)
>         at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.close(DependencyWaiterApplicationContextExecutor.java:345)
>         at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.fail(DependencyWaiterApplicationContextExecutor.java:401)
>         at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.stageOne(DependencyWaiterApplicationContextExecutor.java:287)
>         at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.refresh(DependencyWaiterApplicationContextExecutor.java:175)
>         at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.refresh(AbstractDelegatedExecutionApplicationContext.java:175)
>         at org.springframework.osgi.extender.internal.activator.ContextLoaderListener$2.run(ContextLoaderListener.java:718)
>         at java.lang.Thread.run(Thread.java:680)
> An additional step is required:
> 	features:install examples-camel-osgi
> After this command is executed, the demo works as expected.   
> I'm new to Karaf but I also understand some of the other commands listed may not be required, e.g. "features:install spring-dm".  One of my colleagues thought this was old.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Closed] (KARAF-311) Deploying a sample application in the User's Guide is missing a command

Posted by "Jamie goodyear (Closed) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/KARAF-311?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jamie goodyear closed KARAF-311.
--------------------------------

    
> Deploying a sample application in the User's Guide is missing a command
> -----------------------------------------------------------------------
>
>                 Key: KARAF-311
>                 URL: https://issues.apache.org/jira/browse/KARAF-311
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf-documentation
>            Reporter: Susan Javurek
>            Assignee: Jean-Baptiste Onofré
>            Priority: Minor
>             Fix For: 2.2.0
>
>
> The "Apache Karaf Users' Guide"  details deploying a sample application on page 8 and page 9.  The same information is also available from the following URL:
> 	http://karaf.apache.org/2-quick-start.html#2.QuickStart-Deployasampleapplication
> The documentation denotes to run a  list of commands. After running the last command:
> karaf@root> osgi:install -s mvn:org.apache.camel/camel-example-osgi/1.4.0
> Bundle ID: 195
> I receive the following error:
> karaf@root> osgi:list |grep exampleException in thread "SpringOsgiExtenderThread-9" java.lang.IllegalStateException: BeanFactory not initialized or already closed - call 'refresh' before accessing beans via the ApplicationContext
>         at org.springframework.context.support.AbstractRefreshableApplicationContext.getBeanFactory(AbstractRefreshableApplicationContext.java:171)
>         at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.close(DependencyWaiterApplicationContextExecutor.java:345)
>         at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.fail(DependencyWaiterApplicationContextExecutor.java:401)
>         at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.stageOne(DependencyWaiterApplicationContextExecutor.java:287)
>         at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.refresh(DependencyWaiterApplicationContextExecutor.java:175)
>         at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.refresh(AbstractDelegatedExecutionApplicationContext.java:175)
>         at org.springframework.osgi.extender.internal.activator.ContextLoaderListener$2.run(ContextLoaderListener.java:718)
>         at java.lang.Thread.run(Thread.java:680)
> An additional step is required:
> 	features:install examples-camel-osgi
> After this command is executed, the demo works as expected.   
> I'm new to Karaf but I also understand some of the other commands listed may not be required, e.g. "features:install spring-dm".  One of my colleagues thought this was old.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] Assigned: (KARAF-311) Deploying a sample application in the User's Guide is missing a command

Posted by "Jean-Baptiste Onofré (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/KARAF-311?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jean-Baptiste Onofré reassigned KARAF-311:
------------------------------------------

    Assignee: Jean-Baptiste Onofré

> Deploying a sample application in the User's Guide is missing a command
> -----------------------------------------------------------------------
>
>                 Key: KARAF-311
>                 URL: https://issues.apache.org/jira/browse/KARAF-311
>             Project: Karaf
>          Issue Type: Bug
>          Components: documentation
>            Reporter: Susan Javurek
>            Assignee: Jean-Baptiste Onofré
>            Priority: Minor
>
> The "Apache Karaf Users' Guide"  details deploying a sample application on page 8 and page 9.  The same information is also available from the following URL:
> 	http://karaf.apache.org/2-quick-start.html#2.QuickStart-Deployasampleapplication
> The documentation denotes to run a  list of commands. After running the last command:
> karaf@root> osgi:install -s mvn:org.apache.camel/camel-example-osgi/1.4.0
> Bundle ID: 195
> I receive the following error:
> karaf@root> osgi:list |grep exampleException in thread "SpringOsgiExtenderThread-9" java.lang.IllegalStateException: BeanFactory not initialized or already closed - call 'refresh' before accessing beans via the ApplicationContext
>         at org.springframework.context.support.AbstractRefreshableApplicationContext.getBeanFactory(AbstractRefreshableApplicationContext.java:171)
>         at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.close(DependencyWaiterApplicationContextExecutor.java:345)
>         at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.fail(DependencyWaiterApplicationContextExecutor.java:401)
>         at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.stageOne(DependencyWaiterApplicationContextExecutor.java:287)
>         at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.refresh(DependencyWaiterApplicationContextExecutor.java:175)
>         at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.refresh(AbstractDelegatedExecutionApplicationContext.java:175)
>         at org.springframework.osgi.extender.internal.activator.ContextLoaderListener$2.run(ContextLoaderListener.java:718)
>         at java.lang.Thread.run(Thread.java:680)
> An additional step is required:
> 	features:install examples-camel-osgi
> After this command is executed, the demo works as expected.   
> I'm new to Karaf but I also understand some of the other commands listed may not be required, e.g. "features:install spring-dm".  One of my colleagues thought this was old.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.