cancel
Showing results for 
Search instead for 
Did you mean: 

ejbModule not building for my CAF project

Former Member
0 Kudos

Hi,

This is my first CAF project . I have created few entity services and than when I try to build it it gives me the following error :

ompile:

[javac] Compiling 36 source files to C:\Documents and Settings\i028301\.dtc\LocalDevelopment\t\33C495AB7713C24C69FE621695764F50\classes

C:\Documents and Settings\i028301\.dtc\LocalDevelopment\DCs\sap.com\kpcarpool\ejbmodule\_comp\ejbModule\com\sap\kpcarpool\besrv\car\CarServiceBean.java:178: cannot resolve symbol

symbol : method almostEqual (java.util.Date,java.util.Date)

location: class com.sap.kpcarpool.besrv.car.CarServiceBean

if (!almostEqual(oldBE.getLastChangedAt(), be.getLastChangedAt())) {

^

C:\Documents and Settings\i028301\.dtc\LocalDevelopment\DCs\sap.com\kpcarpool\ejbmodule\_comp\ejbModule\com\sap\kpcarpool\besrv\employee\EmployeeServiceBean.java:171: cannot resolve symbol

symbol : method almostEqual (java.util.Date,java.util.Date)

location: class com.sap.kpcarpool.besrv.employee.EmployeeServiceBean

if (!almostEqual(oldBE.getLastChangedAt(), be.getLastChangedAt())) {

^

C:\Documents and Settings\i028301\.dtc\LocalDevelopment\DCs\sap.com\kpcarpool\ejbmodule\_comp\ejbModule\com\sap\kpcarpool\besrv\travel\TravelServiceBean.java:171: cannot resolve symbol

symbol : method almostEqual (java.util.Date,java.util.Date)

location: class com.sap.kpcarpool.besrv.travel.TravelServiceBean

if (!almostEqual(oldBE.getLastChangedAt(), be.getLastChangedAt())) {

^

C:\Documents and Settings\i028301\.dtc\LocalDevelopment\DCs\sap.com\kpcarpool\ejbmodule\_comp\ejbModule\com\sap\kpcarpool\besrv\travellocation\TravelLocationServiceBean.java:171: cannot resolve symbol

symbol : method almostEqual (java.util.Date,java.util.Date)

location: class com.sap.kpcarpool.besrv.travellocation.TravelLocationServiceBean

if (!almostEqual(oldBE.getLastChangedAt(), be.getLastChangedAt())) {

^

4 errors

The errors is same almostEqual not found. I am clueless why this error is coming. Can somebody help me in this regard.

Accepted Solutions (0)

Answers (2)

Answers (2)

Austin
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello,

There is a bug in the IDE that causes code generation and compile errors when the directory structure for the source code is too deep. Try changing your Development Configuration root folder to something like "c:\.dtc" and then create a new project and build. Window->preferences->Java Development Infrastructure-> Development Configuration Pool. Now all new projects should be stored in this new directory.

If this does not work, you can also try moving your default workspace to "c:\ws". Windows->preferences->workbench->workspace. You must restart your IDE after you do this.

Regrards,

Austin.

Former Member
0 Kudos

That's strange error. Possible source of the problem is in incompatible versions of CAF Designer and caf build archives. What's the version you are using ?

Also check that your beans extend com.sap.caf.rt.bol.EntityServiceBase class.

Best regards,

Aliaksei