| Summary: | EJB project mapped to WEB-INF/lib of web project is imported as utility project | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | [WebTools] WTP Java EE Tools | Reporter: | Salvador Zalapa <zalapa> | ||||||||
| Component: | jst.j2ee | Assignee: | Salvador Zalapa <zalapa> | ||||||||
| Status: | RESOLVED FIXED | QA Contact: | Chuck Bridgham <cbridgha> | ||||||||
| Severity: | normal | ||||||||||
| Priority: | P3 | CC: | ccc, shr31223 | ||||||||
| Version: | unspecified | Flags: | cbridgha:
review+
ccc: review+ |
||||||||
| Target Milestone: | 3.2.5 P | ||||||||||
| Hardware: | PC | ||||||||||
| OS: | Windows XP | ||||||||||
| Whiteboard: | |||||||||||
| Bug Depends on: | |||||||||||
| Bug Blocks: | 366644 | ||||||||||
| Attachments: |
|
||||||||||
|
Description
Salvador Zalapa
Created attachment 207805 [details]
EAR sample
Created attachment 207806 [details]
Patch
approved Chava, this works in the development environment, but will fail to compile in the build, since org.eclipse.jst.j2ee.web cannot prereq org.eclipse.jst.j2ee.ejb. Please replace the usage of EJBComponentImportDataModelProvider with something along the lines of:
if (EarModuleManager.hasEJBModuleExtension())
{
localModel = EarModuleManager.getEJBModuleExtension().createImportDataModel();
}
else // just treat it like a utility
{
localModel = DataModelFactory.createDataModel(new J2EEUtilityJarImportDataModelProvider());
}
That alleviates the need for the dependency on the EJB plugin.
Created attachment 208068 [details]
Second version patch
Attaching a new version patch. thanks looks better Code committed to R3_2_5_patches. Resolving bug |