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:

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

I receive the following error:

ka...@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.

Reply via email to