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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T16:28:35+00:00 2026-06-12T16:28:35+00:00

Scenario I have a situation where spring is finding two versions of a class.

  • 0

Scenario

I have a situation where spring is finding two versions of a class.

org.springframework.beans.factory.NoSuchBeanDefinitionException: No unique bean of type [org.springframework.scheduling.quartz.SchedulerFactoryBean] is defined: expected single matching bean but found 2:

My problem is finding where the duplicate class is coming from.

Usually, I’d just use jdgui to open/de-compile all jars in the web-inf/lib and tomcat/lib folders and do a type search for the duplicate class.

The trick is that I am using sysdeo plugin with eclipse, and maven, and several war projects, so things are a little more complex than that.

My Question
Is there any GUI or open source library that I can use to find the location of jars for a particular class that works with Tomcat6.

In the past, I have used a very nice tool with IBM Websphere’s administration console that allows me to browse the classloader tree.

Failing advice from my peers, I guess I’ll need to write something myself.

  • 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-12T16:28:36+00:00Added an answer on June 12, 2026 at 4:28 pm

    Thanks to the help in comments, I was able to come up with the following solution.

    The module with my spring config is being compiled into to the war’s lib folder (i.e. /target/xxxx-war/WEB-INF/lib/myspringmodule.jar)

    Sysdeo tomcat folder is configured to add the /myspringmodule/target/classes to the classpath, thus allowing me to simply re-compile in eclipse. This was effectively adding two duplicate spring configs on the class path triggering annotation scanning twice, and thus two objects.

    My solution is to create a maven profile for local builds in eclipse that I use to exclude the two jars.

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

Sidebar

Related Questions

I have a scenario where I need to bind two properties from one class
Scenario I have an TWO datbase tables of exactly the SAME STRUCTURE. The difference
I just encountered the following situation. I have an Android app with a scenario
Suppose I have the following situation: 9 class Program 10 { 11 public static
I am using Spring 3.1 on standalone env. I have scenario where I am
Beginner level question Scenario: Have simple string cocantation tool, that I might expand later
SCENARIO I have to access a web service with a .NET client. The service
Scenario: I have a console application that needs to access a network share with
Scenario: I have an outline where I have links for my menu. Each link
Scenario I have recently graduated from university with a degree in Computer Science. My

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.