facebook

The type javax.ejb.EJBHome cannot be resolved

  1. MyEclipse IDE
  2.  > 
  3. Spring Development
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #322031 Reply

    I have a java Project established using ‘mvn eclipse:eclipse’ command. Such establishment of projects in MyEclipse usually works fine in the past for me and everybody in my team.

    Now with MyEclipse10.0, I often get a compile error that states:
    The type javax.ejb.EJBHome cannot be resolved. It is indirectly referenced from required .class files

    for example
    XXX.java /repriceServerInterfaces/src/main/java/com/hns/claims/util line 1 Java Problem

    When I double clicked to the error area, there really is no code there except for a / comment. This project I know for sure has no EJB code at all whatsoever.

    Joe

    #322041 Reply

    Brian Fernandes
    Moderator

    Joe,

    I assume your project has a Maven dependencies container – if you look at it in the Package Explorer. Can you list out the JARs that are part of this container; consequently, does your pom.xml file contain the right JEE dependencies? Could you paste the pom.xml here and/or compare it with the pom.xml generated by the earlier version of MyEclipse?

    I’m guessing something is missing from the pom.xml file resulting in a missing project dependency; though cannot be sure with the info we have now.

    #322376 Reply

    Brian,

    These are my third party dependencies. It builds fine with ‘mvn compile’ command.

    <!– Third Party Dependencies –>
    <dependency>
    <groupId>jakarta-regexp</groupId>
    <artifactId>jakarta-regexp</artifactId>
    <version>1.4</version>
    <optional>true</optional>
    </dependency>
    <dependency>
    <groupId>junit</groupId>
    <artifactId>junit</artifactId>
    <version>3.8.2</version>
    <optional>true</optional>
    <scope>test</scope>
    </dependency>
    <!–dependency>
    <groupId>org.springframework</groupId>
    <artifactId>spring</artifactId>
    <version>2.5.6.SEC01</version>
    <optional>true</optional>
    </dependency–>
    <dependency>
    <groupId>org.springframework</groupId>
    <artifactId>spring-beans</artifactId>
    <version>2.5.5</version>
    <optional>true</optional>
    </dependency>
    <dependency>
    <groupId>org.springframework</groupId>
    <artifactId>spring-context</artifactId>
    <version>2.5.5</version>
    <optional>true</optional>
    </dependency>
    <dependency>
    <groupId>vbjorb</groupId>
    <artifactId>vbjorb</artifactId>
    <version>2.0</version>
    <optional>true</optional>
    </dependency>

    #322407 Reply

    This compile error appears in ME10 and 9 but not 8.6.

    Joe

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: The type javax.ejb.EJBHome cannot be resolved

You must be logged in to post in the forum log in