- This topic has 3 replies, 2 voices, and was last updated 12 years, 11 months ago by joehuangathome.
-
AuthorPosts
-
joehuangathomeMemberI 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 filesfor example
XXX.java /repriceServerInterfaces/src/main/java/com/hns/claims/util line 1 Java ProblemWhen 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
Brian FernandesModeratorJoe,
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.
joehuangathomeMemberBrian,
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>
joehuangathomeMemberThis compile error appears in ME10 and 9 but not 8.6.
Joe
-
AuthorPosts