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

The Archive Base Latest Questions

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

I am facing some issues integrating Eclipse RCP and Spring IOC. Below is my

  • 0

I am facing some issues integrating Eclipse RCP and Spring IOC.

Below is my approach to the process.

Steps I’ve done

  1. Created a Bundle (Using plug-in from exisitng archives project type) which has all Spring jars.
  2. Created a Simple Hello RCP application with a view.
  3. Added the Bundle as a dependency to the RCP project(step2)

Created a simple class in my RCP project whose object has to instantiated through applicationContext.xml.

public class Triangle {
            public void draw(){
                System.out.println("Traingle drawn");
            }
       }

My applicationContext.xml code

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN 2.0//EN" "http://www.springframework.org/dtd/spring-beans-2.0.dtd">
<beans>
   <bean id="JGID" class="st.Triangle"/>
</beans>

A code snippet part of My view where I’m fetching applicationContext.xml is as below

ApplicationContext applicationContext = new FileSystemXmlApplicationContext("D:/applicationContext.xml");
Triangle triangle = (Triangle) applicationContext.getBean("JGID");
triangle.draw();

this throws error

Cannot find class [st.Triangle] for bean with name ‘JGID’ defined in
file [D:\applicationContext.xml]; nested exception is
java.lang.ClassNotFoundException: st.Triangle

How do I resolve this error ?

As a workaround I tried the other way, also I failed as in below i.e.., using ClassPathXmlApplicationContext

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

Below is the error

!MESSAGE Unable to create view ID st.view: IOException parsing XML document from class path resource [applicationContext.xml]; nested exception is java.io.FileNotFoundException: class path resource
[applicationContext.xml] cannot be opened because it does not exist
!STACK 0 java.io.FileNotFoundException: class path resource [applicationContext.xml] cannot be opened

The above code line in my Eclipse RCP applcication, where does it check or look for the xml file.

I tried the following ways.

  • Placed applicationContext.xml in src folder.
  • At the project folder.
  • Inisde the package.

In all the 3 cases, it says FileNotFoundException. Where should I place the applicationContext.xml file to make the applicationContext reference to find it?

  • 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-12T08:27:19+00:00Added an answer on June 12, 2026 at 8:27 am

    are you sure that Triangle is in “ctx” classpath?

    can you instantinate another simple bean for example

    <bean id="str" class="java.lang.String" value="Hello World">

    and then call

    String str= (String) ctx.getBean("str");

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

Sidebar

Related Questions

I am facing some issues in eclipse rcp for setting the dropdown for a
I am facing some issues in Spring JPA. I successfully configured the Spring JPA
I Have created one UnitTesting Project in C# and facing some issues. Firstly, I
I am facing some issues in loading a CSV file through SQL Loader. Here
I am facing some issues while serializing objects (I am using JBoss Drools, and
Well, since I am facing some issues with OAuth implementation, I decided to go
I'm working using scriptaculous library. However I'm facing some issues with inclusion of the
i am using Spring.net 1.2 with NHibernate 2.0.1. Within my project i'am facing some
I'm facing some issues with Apache mod_proxy_balancer regarding sticky sessions. We've developped a restful
I have been facing some serious issues while executing this particular JSP page. CODE

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.