Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 335246 - Web Service Client Wizard should not publish JPA projects to the server
Summary: Web Service Client Wizard should not publish JPA projects to the server
Status: RESOLVED FIXED
Alias: None
Product: WTP Webservices
Classification: WebTools
Component: jst.ws (show other bugs)
Version: 3.2.2   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.2.4   Edit
Assignee: Mark Hutchinson CLA
QA Contact: Keith Chong CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 339273
  Show dependency tree
 
Reported: 2011-01-24 16:02 EST by Mark Hutchinson CLA
Modified: 2011-03-08 15:29 EST (History)
0 users

See Also:


Attachments
proposed patch (9.98 KB, patch)
2011-01-25 09:46 EST, Mark Hutchinson CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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