You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by Scott JK <do...@hotmail.com> on 2011/07/20 08:16:04 UTC

ERROR - JmsComponent - java.lang.IllegalStateException: BeanFactory not initialized or already closed - call 'refresh' before accessing beans via the ApplicationContext

Hi,

I'm trying to run this example: 

http://servicemix.apache.org/33-adding-a-jms-su.html

when i build and deploy the SA into Servicemix 3.3.2, i get the following
error:

ERROR - JmsComponent                   - java.lang.IllegalStateException:
BeanFactory not initialized or already closed - call 'refresh' before
accessing beans via the ApplicationContext
INFO  - DeploymentService              - UnDeployed ServiceUnit
tutorial-camel-su from Component: servicemix-camel
ERROR - AutoDeploymentService          - Failed to update Service Assembly:
tutorial-camel-sa

what is going wrong???? 

--
scott

--
View this message in context: http://servicemix.396122.n5.nabble.com/ERROR-JmsComponent-java-lang-IllegalStateException-BeanFactory-not-initialized-or-already-closed-calt-tp4614831p4614831.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Re: ERROR - JmsComponent - java.lang.IllegalStateException: BeanFactory not initialized or already closed - call 'refresh' before accessing beans via the ApplicationContext

Posted by Jon Anstey <ja...@gmail.com>.
Try deploying the bridge example in examples/bridge to see if that works. It
uses a JMS SU as well. Maybe there is something wrong with the tutorial..
not sure.

Also, if you can using the latest 4.x version is preferable and would most
likely work better :)

On Wed, Jul 20, 2011 at 3:46 AM, Scott JK <do...@hotmail.com> wrote:

> Hi,
>
> I'm trying to run this example:
>
> http://servicemix.apache.org/33-adding-a-jms-su.html
>
> when i build and deploy the SA into Servicemix 3.3.2, i get the following
> error:
>
> ERROR - JmsComponent                   - java.lang.IllegalStateException:
> BeanFactory not initialized or already closed - call 'refresh' before
> accessing beans via the ApplicationContext
> INFO  - DeploymentService              - UnDeployed ServiceUnit
> tutorial-camel-su from Component: servicemix-camel
> ERROR - AutoDeploymentService          - Failed to update Service Assembly:
> tutorial-camel-sa
>
> what is going wrong????
>
> --
> scott
>
> --
> View this message in context:
> http://servicemix.396122.n5.nabble.com/ERROR-JmsComponent-java-lang-IllegalStateException-BeanFactory-not-initialized-or-already-closed-calt-tp4614831p4614831.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>



-- 
Cheers,
Jon
---------------
FuseSource
Email: jon@fusesource.com
Web: fusesource.com
Twitter: jon_anstey
Blog: http://janstey.blogspot.com
Author of Camel in Action: http://manning.com/ibsen