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

Bug 335246

Summary: Web Service Client Wizard should not publish JPA projects to the server
Product: [WebTools] WTP Webservices Reporter: Mark Hutchinson <mahutch>
Component: jst.wsAssignee: Mark Hutchinson <mahutch>
Status: RESOLVED FIXED QA Contact: Keith Chong <keith.chong.ca>
Severity: normal    
Priority: P3    
Version: 3.2.2   
Target Milestone: 3.2.4   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Bug Depends on:    
Bug Blocks: 339273    
Attachments:
Description Flags
proposed patch none

Description Mark Hutchinson CLA 2011-01-24 16:02:41 EST
To reproduce this problem, generate an axis web service client into a "JPA Project" with the slider set to "start". The wizard will try to add the project to the server.  

JPA Projects have the Utility Module facet.  There is no web or ejb module so there is nothing that can be "run" on the server.


In the org.eclipse.jst.ws.internal.consumption.command.common.AddModuleToServerCommand class we have a check like below:
  if (!J2EEUtils.isJavaComponent(iproject))

The intention is to not add utility modules to the server.   The problem is that if the module is associated with an EAR project this command is doing the isJavaComponent check on the EAR project so it always returns "false".
Comment 1 Mark Hutchinson CLA 2011-01-25 09:46:09 EST
Created attachment 187519 [details]
proposed patch
Comment 2 Mark Hutchinson CLA 2011-03-08 14:24:23 EST
committed to R3_2_maintenance for WTP 3.2.4
Comment 3 Keith Chong CLA 2011-03-08 15:29:20 EST
Released for 3.2.4