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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T20:56:34+00:00 2026-05-14T20:56:34+00:00

In my team we work both in Eclipse and Idea. That works pretty good,

  • 0

In my team we work both in Eclipse and Idea.
That works pretty good, except for one minor issue that I can’t figure out how to solve.
When setting the ContextConfiguration location in our tests and running them inside Eclipse everything works like a charm:

@Test(groups = { "database" })
@ContextConfiguration(locations = {" file:src/main/webapp/WEB-INF/applicationContext.xml" })

But in my Idea env I get “could not find applicationContext” error. I need to
set the location like this(project name is services):

@Test(groups = { "database" })
@ContextConfiguration(locations = {" file:services/src/main/webapp/WEB-INF/applicationContext.xml" })

The project structure is like this:
parent.pom with two child poms: services.pom and other.pom. When running the test in the terminal from the service project like this:

mvn -Dtest=com.mytest.service.somepackage.TheTest test 

there are no issues. I guess that since my project structure is parent-with-two-children the need of /service is necessary(The project is created by pointing out the parent pom). Is there a way to fix this? Could you please help me with a solution.
thx

  • 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-14T20:56:35+00:00Added an answer on May 14, 2026 at 8:56 pm

    You use a path relative to the current working directory. Eclipse and Idea use different directories. Try to use a classpath location:

    @ContextConfiguration(locations = {" classpath:/WEB-INF/applicationContext.xml" })
    

    But I’m not sure about your classpath configuration. Typically the src/main/webapp will be copied to a target webapp directory. May be you need to configure it to contain the target webapp dir.

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

Sidebar

Related Questions

I work with a team that has a sharepoint site currently runnning and its
Team Foundation Server 2008 allows that every check-in is associated with a work item,
In Team Foundation Server is there a way to have work items in one
I have to work with another team that is developing in php, when I'm
I have a msdeploy in my nant script(Team City) that is working except it
We have up to several team members that does not work 100% on our
I am thinking about a platform for study application (it is team work). I
I would like to extend the team explorer work item editor with a custom
As we work in team today, and we use different OSes, is it possible
I work in the maintenance team of a big project (around 7k+ classes) and

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.