org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'restservice-context' defined in URL [zip:/opt/app/weblogic/user_projects/domains/cluster_domain/servers/managedServer14/tmp/_WL_user/ucontrol_portal/9rtorb/APP-INF/lib/rest-service.jar!/beanRefContext.xml]: Cannot resolve reference to bean 'servicelayer-context' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'servicelayer-context' defined in URL [zip:/opt/app/weblogic/user_projects/domains/cluster_domain/servers/managedServer14/tmp/_WL_user/ucontrol_portal/9rtorb/APP-INF/lib/service.jar!/beanRefContext.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.springframework.context.support.ClassPathXmlApplicationContext]: Constructor threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'emailQueueDestination' defined in class path resource [META-INF/applicationContext-service-jms.xml]: Invocation of init method failed; nested exception is javax.naming.NameNotFoundException: Unable to resolve 'queue.EmailQueue'. Resolved 'queue'; remaining name 'EmailQueue'

If you like a tip written by other Samebug users, mark is as helpful! Marks help our algorithm provide you better solutions and also help other users.
tip

Spring Security detects beans in the root context. Move the detection of the bean (or declare it explictly) in the root context.

tip

Mixed JpaTransactionManager with JTA transaction type in the beans.xml and persistence.xml

tip

Upgrade to Confluence 3.5.5 or install the patch as explained in the details.

tip

Your applicationcontext.xml has a transactionManager defined. Your would need to remove it or add an entity manager.

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

  • WLS error
    via by Yamraj,
  • How to capture the authentication events?
    via Stack Overflow by cid
    ,
  • Discussion list for users of GeoServer
    via by Unknown author,
    • org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'restservice-context' defined in URL [zip:/opt/app/weblogic/user_projects/domains/cluster_domain/servers/managedServer14/tmp/_WL_user/ucontrol_portal/9rtorb/APP-INF/lib/rest-service.jar!/beanRefContext.xml]: Cannot resolve reference to bean 'servicelayer-context' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'servicelayer-context' defined in URL [zip:/opt/app/weblogic/user_projects/domains/cluster_domain/servers/managedServer14/tmp/_WL_user/ucontrol_portal/9rtorb/APP-INF/lib/service.jar!/beanRefContext.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.springframework.context.support.ClassPathXmlApplicationContext]: Constructor threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'emailQueueDestination' defined in class path resource [META-INF/applicationContext-service-jms.xml]: Invocation of init method failed; nested exception is javax.naming.NameNotFoundException: Unable to resolve 'queue.EmailQueue'. Resolved 'queue'; remaining name 'EmailQueue' at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:336) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:108) at org.springframework.beans.factory.support.ConstructorResolver.resolveConstructorArguments(ConstructorResolver.java:650) at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:140)

    Users with the same issue

    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    linxiaolong
    linxiaolong1 times, last one,
    batwalrus76
    batwalrus761 times, last one,
    Unknown visitor1 times, last one,
    56 more bugmates