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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T09:20:37+00:00 2026-06-01T09:20:37+00:00

Eclipse is not recognising @Inject in my JSF-Apache Myfaces/Spring/Hibernate project. I am trying to

  • 0

Eclipse is not recognising @Inject in my JSF-Apache Myfaces/Spring/Hibernate project.

I am trying to use it on a setter method to inject a reference to a Class I’ve registered with the Spring container as a @Component, @SessionScoped.

What gives? I appear to have the latest version of Spring defined in my POM.

  • 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-01T09:20:38+00:00Added an answer on June 1, 2026 at 9:20 am

    @Inject is not a Spring annotation, but an annotation brought about by JSR-330. It is an annotation that Spring supports and it is synonymous with the @Autowired annotation.

    You have to make sure that you have the jar that contains @Inject, because it is not a part of the standard JDK. You can download the jar from here, or you can use this maven dependency:

    <dependency>
      <groupId>javax.inject</groupId>
      <artifactId>javax.inject</artifactId>
      <version>1</version>
    </dependency>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

As you all probably know, when you create a GWT project (I use Eclipse..not
Why does eclipse break with the error Could not write file: M:\workspaces\eclipse\project.project. M:\workspaces\eclipse\project.project (Access
I'm trying to use the binarySearch method documented at the Java API Specification but
Since yesterday, Eclipse is not updating the .class files of my project. For example
I am new to Android. I create a HelloAndroid Project using command-line(not Eclipse). /
I'm trying to create a Django project in Eclipse but it says I have
In my Java eclipse project, while I am remote debugging, eclipse does not step
I did at one time configure my Eclipse/Project not to include classes from java.awt
Is there any difference in between the two method definitions below? Eclipse does not
Eclipse does not highlight matching variables for me: I've already tried to change Mark

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.