Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7521513
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T02:14:53+00:00 2026-05-30T02:14:53+00:00

I am trying to setup a simple restful web application, using tomcat 6.0.32, cxf

  • 0

I am trying to setup a simple restful web application, using tomcat 6.0.32, cxf 2.4.1. Anytime I issue any call, I get back an exception “No bean named ‘cxf’ is defined”, where cxf is my bus.

Looking at the application log, I can see the cxf instance is created, and cached.

================ APP LOG BEGIN======================

910 DEBUG – Creating shared instance of singleton bean ‘cxf’

910 DEBUG – Creating instance of bean ‘cxf’

1018 DEBUG – Eagerly caching bean ‘cxf’ to allow for resolving potential circular references

1031 DEBUG – Returning eagerly cached instance of singleton bean ‘cxf’ that is not fully initialized yet – a consequence of a circular reference

1034 DEBUG – Finished creating instance of bean ‘cxf’

1035 DEBUG – Returning cached instance of singleton bean ‘org.apache.cxf.bus.spring.BusWiringBeanFactoryPostProcessor’

1035 DEBUG – Returning cached instance of singleton bean ‘org.apache.cxf.bus.spring.Jsr250BeanPostProcessor’

1035 DEBUG – Returning cached instance of singleton bean ‘org.apache.cxf.bus.spring.BusExtensionPostProcessor’

1035 DEBUG – Creating shared instance of singleton bean ‘connection’

1035 DEBUG – Creating instance of bean ‘connection’

1035 DEBUG – Eagerly caching bean ‘connection’ to allow for resolving potential circular references

1052 DEBUG – Finished creating instance of bean ‘connection’

1052 DEBUG – Creating shared instance of singleton bean ‘connectionService’

1052 DEBUG – Creating instance of bean ‘connectionService’

1053 DEBUG – Eagerly caching bean ‘connectionService’ to allow for resolving potential circular references

1053 DEBUG – Returning cached instance of singleton bean ‘connection’

1053 DEBUG – Returning cached instance of singleton bean ‘cxf’

1121 DEBUG – Invoking init method ‘create’ on bean with name ‘connectionService’

1356 DEBUG – Finished creating instance of bean ‘connectionService’

1384 DEBUG fecycleProcessor with name ‘lifecycleProcessor’: using default [org.springframework.context.support.DefaultLifecycleProcessor@45d1c3cd]

1385 DEBUG – Returning cached instance of singleton bean ‘lifecycleProcessor’

1387 DEBUG – Returning cached instance of singleton bean ‘cxf’

1387 DEBUG – Returning cached instance of singleton bean ‘cxf’

1388 DEBUG – Invoking init method ‘create’ on bean with name ‘connectionService’

1391 DEBUG – Finished creating instance of bean ‘connectionService’

1391 DEBUG – Unable to locate LifecycleProcessor with name ‘lifecycleProcessor’: using default [org.springframework.context.support.DefaultLifecycleProcessor@2c3299f6]

1391 DEBUG – Returning cached instance of singleton bean ‘lifecycleProcessor’

1391 DEBUG – Published root WebApplicationContext as ServletContext attribute with name [org.springframework.web.context.WebApplicationContext.ROOT]

1391 INFO – Root WebApplicationContext: initialization completed in 1390 ms

================ APP LOG END======================

But when a request comes in, it always fails saying it can’t find the bean.

===================== Tomcat (localhost) Log Begin ==================

INFO: Initializing Spring root WebApplicationContext

Jul 14, 2011 8:57:03 AM org.apache.catalina.core.ApplicationContext log

SEVERE: StandardWrapper.Throwable

org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named ‘cxf’ is defined

at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanDefinition(DefaultListableBeanFactory.java:527)

at org.springframework.beans.factory.support.AbstractBeanFactory.getMergedLocalBeanDefinition(AbstractBeanFactory.java:1083)

at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:274)

at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)

at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1079)

at org.apache.cxf.transport.servlet.CXFServlet.loadBus(CXFServlet.java:58)

at org.apache.cxf.transport.servlet.CXFNonSpringServlet.init(CXFNonSpringServlet.java:54)

at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1173)

at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:809)

at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:129)

at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)

at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)

at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)

at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)

at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)

at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:864)

at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:579)

at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1665)

at java.lang.Thread.run(Thread.java:662)

===================== Tomcat (localhost) Log End ==================

The only thing I can think of is that the bean is inserted in one context, and is being retrieved from another, but can’t validate this or find a way around it. Any help would be greatly appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T02:14:54+00:00Added an answer on May 30, 2026 at 2:14 am

    From your error log, I assume you use Spring, if so, you will need to add following lines to your Spring Context XML:

    <import resource="classpath:META-INF/cxf/cxf.xml"/>
    <import resource="classpath:META-INF/cxf/cxf-extension-xml.xml"/>
    <import resource="classpath:META-INF/cxf/cxf-servlet.xml"/>
    

    Hope this helps.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to setup a simple timer that gets started from a Rails Application.
I'm using Spring 3, and trying to set up a simple web-app using annotations
I'm trying setup a subset of boost and get it properly compiled using bjam,
I am trying to setup a simple UDP client and server using Ruby. The
I am trying to setup a simple form using formtastic but running into a
I'm trying to develop simple RESTful api using FastCGI (and restcgi). When I tried
I am using eclipse, with maven2 plugin. I am trying to setup a simple
Trying to get a simple PHP/Zend Framework setup to create a SQLite databse and
Using Rails 3 and jquery, I'm trying to setup a simple 3 tab navigation
I'm trying to learn Flex, I setup a simple Air application with PHP server

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.