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 2011/01/07 11:28:46 UTC

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

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