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

  • Home
  • SEARCH
  • 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 6336961
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T19:09:37+00:00 2026-05-24T19:09:37+00:00

I am new to Maven and Spring. I’m using Netbeans 7 as my IDE,

  • 0

I am new to Maven and Spring. I’m using Netbeans 7 as my IDE, and setting up a Spring 3 project using Maven.

Everything seemed to set up smoothly, and I began running through the Spring User Guide. However, I’m getting a file not found exception when trying to load my context.xml file.

I have an App class located at com.myproject and the context.xml file is located at com.myproject.conf

I’m using the following line of code in App.java to try and load the context.xml file:

ApplicationContext context = new ClassPathXmlApplicationContext("context.xml");

But when I run the application, it results in:

Exception in thread "main" org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from class path resource [context.xml]; nested exception is java.io.FileNotFoundException: class path resource [context.xml] cannot be opened because it does not exist

Looking at the NetBeans output, it also looks like it’s not picking up the log4j.properties file which is also located in com.myproject.conf

I looked at the jar that the build process created, and the entire com.myproject.conf package is missing, meaning the .xml and .properties are missing as well. I’ve tried moving these config files to the com.myproject package as well as just putting them at the root of the project which don’t yield any different results.

So I’m making the assumption that my maven project isn’t set up entirely correctly, or maybe a setting isn’t correct within NetBeans.

  • 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-24T19:09:38+00:00Added an answer on May 24, 2026 at 7:09 pm

    It seems like you need to learn about resources in Maven projects (such as XML, bitmaps, etc…). These are stored in separate directories. See here.

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

Sidebar

Related Questions

I have produced a new Maven Project from gae-archetype-gwt from within IntelliJ, and everything
I have a project setup using Spring 3, Apache Tiles 2 and Maven. Before
I've just setup my first Spring MVC 3 project with Hibernate 3 using Maven.
I'm using Maven JPA(hibernate) and Spring3 in my project. I'm having a new problem
So I created a new maven pom based webapp using intelliJ 11. Now I
Im trying to create application from scratch. In new maven project i add a
I am new to maven, while using mvn install I've got this error, any
I'm new in Maven,Java and Eclipse. I just download a project that uses Maven.
Hi I'm starting a new web development project with my team using Hibernate and
I am creating a sample project with maven for spring and hibernate. I am

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.