Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 320118

Summary: Missing reference from EJB client to EJB project
Product: [WebTools] WTP Java EE Tools Reporter: Stefan Dimov <stefan.dimov>
Component: jst.j2eeAssignee: jst.j2ee <jst.j2ee-inbox>
Status: RESOLVED WORKSFORME QA Contact: Chuck Bridgham <cbridgha>
Severity: major    
Priority: P3 CC: cbridgha, ccc, david_williams, dimitar.giormov, jsholl, vladislav.iliev
Version: 3.2   
Target Milestone: 3.2.1   
Hardware: PC   
OS: All   
Whiteboard:
Attachments:
Description Flags
Movie reproducing the problem none

Description Stefan Dimov CLA 2010-07-16 11:35:39 EDT
1. Create EJB 3.1 project with client jar
2. Create session bean TestBean in it with local interface

Will get a validation error in the TestBean class:
'TestBeanLocal cannot be resolved to a type'

Possible reason - missing reference from EJB to EJB client project
Comment 1 Chuck Bridgham CLA 2010-07-16 13:54:20 EDT
I can't reproduce this with the latest available build (M-3.2.1-20100716070539)

Is there any more detail you can provide?

Did you make sure you picked up the build after the latest respin?
Comment 2 Chuck Bridgham CLA 2010-07-19 10:15:19 EDT
Stefan.. Can you reply or verify it is working with the latest declared build?
Comment 3 Stefan Dimov CLA 2010-07-19 10:24:54 EDT
Give me an hour, please ...
Comment 4 Stefan Dimov CLA 2010-07-19 10:55:44 EDT
I'm reproducing the problem with the build M-3.2.1-20100716070539.

I'm using GlassFish v3 version as runtime. I'm creating EAR along with the EJB project (the checkbox 'Add project to an EAR'). When creating a session bean I leave the default values except checking the 'Local' (interface) checkbox on the first page of the wizard.
Comment 5 Stefan Dimov CLA 2010-07-19 11:16:18 EDT
Created attachment 174631 [details]
Movie reproducing the problem
Comment 6 Vladislav Iliev CLA 2010-07-22 15:48:26 EDT
Hello guys,

I'm experiencing the same problem with the latest build :
"M-3.2.1-20100722005724"
Comment 7 Dimitar Giormov CLA 2010-07-23 11:00:22 EDT
I cannot reproduce the issue at all.
We tried it on Vladislav PC again and we could not reproduce it as well.
Comment 8 David Williams CLA 2010-07-27 13:18:46 EDT
I'm changing target to Helios SR1 (WTP 3.2.2) just as a matter of bookkeeping, since 3.2.1 is done, though sounds like maybe should be closed as "worksforme" ... or, some method found to reproduce it? Guess it depends on your intuition of if it feels like a tricky "threading" issue that sometimes produces incorrect results, or perhaps simply executed back level version of WTP during testing?
Comment 9 Dimitar Giormov CLA 2010-08-03 04:21:31 EDT
Stefan can you try to reproduce it with latest 3.2.1 release of WTP?
Comment 10 Stefan Dimov CLA 2010-08-04 10:35:12 EDT
(In reply to comment #9)
> Stefan can you try to reproduce it with latest 3.2.1 release of WTP?

I wasn't able to reproduce it with the latest available build:
R3.2.1-M: R-3.2.1-20100730021206
Comment 11 Carl Anderson CLA 2010-09-01 08:49:47 EDT
This appears to have been fixed by the time WTP 3.2.1 was released.  Please reopen if this problem reoccurs.