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 9132387
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T08:18:13+00:00 2026-06-17T08:18:13+00:00

I have a project where I need to bootstrap @Configuration java-config classes into the

  • 0

I have a project where I need to bootstrap @Configuration java-config classes into the XML configuration.

To do that, I’m reading that I also need to include the following bean definition (along with the bean definitions of the classes annotated with @Configuration).

<bean class="org.springframework.config.java.process.ConfigurationPostProcessor" />

But, I end up receiving the following error:

Caused by: java.lang.ClassNotFoundException: org.springframework.config.java.process.ConfigurationPostProcessor

I have to assume I’m missing a jar somewhere, but my various web searches hasn’t resulted in an answer yet. Any help would be greatly appreciated. Thanks.

EDIT: Evidently, I was reading old documentation, which is no longer current. Let me back up. My project contains older XML-based configuration. The newer code is all using ‘Java-config’. With that said, the contexts are apparently completely separate. I’d like to ‘import’ a java-config class into the XML configuration, so that both contexts have those particular beans. Does anyone know how I can do that?

  • 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-06-17T08:18:14+00:00Added an answer on June 17, 2026 at 8:18 am

    This actually ended up being fairly simple. To get a Java-config bean definition into the xml-config, simply define the Java-config class as a bean within the XML-config. There are no extra jars necessary.

    @Configuration
    public class SomeJavaConfig {
    
        @bean
        ... [bean definition]
    }
    

    inside the XML-config, you define this class as a bean.

    <!-- needed to pick up the annotated java-config -->
    <context:annotation-config />
    
    <!-- Importing java-config class, which are annotated with @Configuration -->
    <bean name="SomeJavaConfig" class="[fully qualified path].SomeJavaConfig" />
    

    The XML-config, which may be part of a different context, now has all the bean definitions defined within the JavaConfig class.

    UPDATED – to included Alan Franzoni’s comment below in the answer.

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

Sidebar

Related Questions

I have a project in Java and I need to make a code listing
I have a PHP project on Github that uses bootstrap... we want to submodule
I have a project that I need to create 2 Arrays, one to hold
I have a project where I need to select only the users that answered
i have project that I'm working on and i need to add search to
I have a project where I need to write text from a database into
I have a project that i need to compile number of cities in each
I have a project that I need help with. I want to be able
I have a project that I need to submit with a Ant build file.
I have a project that I need to upload to my svn server. There

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.