| Summary: | Web Service Wizard: Error Template has not been defined | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [WebTools] WTP Webservices | Reporter: | Mark Hutchinson <mahutch> | ||||
| Component: | jst.ws | Assignee: | Mark Hutchinson <mahutch> | ||||
| Status: | RESOLVED FIXED | QA Contact: | Keith Chong <keith.chong.ca> | ||||
| Severity: | major | ||||||
| Priority: | P3 | CC: | david_williams | ||||
| Version: | 3.2.2 | Flags: | david_williams:
pmc_approved+
keith.chong.ca: pmc_approved? (raghunathan.srinivasan) keith.chong.ca: pmc_approved? (naci.dai) keith.chong.ca: pmc_approved? (deboer) keith.chong.ca: pmc_approved? (neil.hauge) keith.chong.ca: pmc_approved? (kaloyan) keith.chong.ca: review+ |
||||
| Target Milestone: | 3.2.3 | ||||||
| Hardware: | PC | ||||||
| OS: | Windows XP | ||||||
| Whiteboard: | PMC_approved | ||||||
| Bug Depends on: | |||||||
| Bug Blocks: | 334811 | ||||||
| Attachments: |
|
||||||
Created attachment 187047 [details]
proposed patch
* Explain why you believe this is a stop-ship defect. Or, if it is a "hotbug" (requested by an adopter) please document it as such.
If certain projects are in the workspace the Web Services wizard will not launch. Users are blocked from creating web services.
* Is there a work-around? If so, why do you believe the work-around is insufficient?
Users can rename the project called "WebServiceProjectClient" to something different.
* How has the fix been tested? Is there a test case attached to the bugzilla record? Has a JUnit Test been added?
This has been manually tested.
* Give a brief technical overview. Who has reviewed this fix?
We were passing in the name of the service project into WebServiceRuntimeExtensionUtils2.getClientRuntimeId instead of the client project.
Keith will review the fix.
* What is the risk associated with this fix?
Very low.
Looks good Mark. Thanks. PMC, please review/approve. Checked into R3_2_maintenance |
To reproduce: 1. Create an EJB Project named "WebServiceProjectClient" 2. Add a WSDL file to this EJB project. 3. Right click on the WSDL and select "Web Services > Generate Java Bean Skeleton" Notice this excpetion IWAB0234E An internal error occurred. Details: Template has not been defined. java.lang.IllegalArgumentException: Template has not been defined. at org.eclipse.wst.common.project.facet.core.internal.FacetedProjectFrameworkImpl.getTemplate(FacetedProjectFrameworkImpl.java:569) at org.eclipse.wst.common.project.facet.core.ProjectFacetsManager.getTemplate(ProjectFacetsManager.java:268) at org.eclipse.jst.ws.internal.consumption.ui.wsrt.WebServiceRuntimeExtensionUtils2.doesClientRuntimeSupportTemplate(WebServiceRuntimeExtensionUtils2.java:1832) at org.eclipse.jst.ws.internal.consumption.ui.wsrt.WebServiceRuntimeExtensionUtils2.getClientRuntimeId(WebServiceRuntimeExtensionUtils2.java:1349) at org.eclipse.jst.ws.internal.consumption.ui.widgets.runtime.ClientRuntimeSelectionWidgetDefaultingCommand.defaultClientSideFromServiceSide(ClientRuntimeSelectionWidgetDefaultingCommand.java:1317) at org.eclipse.jst.ws.internal.creation.ui.widgets.runtime.ServerRuntimeSelectionWidgetDefaultingCommand.defaultClientSide(ServerRuntimeSelectionWidgetDefaultingCommand.java:248) at org.eclipse.jst.ws.internal.creation.ui.widgets.runtime.ServerRuntimeSelectionWidgetDefaultingCommand.execute(ServerRuntimeSelectionWidgetDefaultingCommand.java:216) at org.eclipse.wst.command.internal.env.core.fragment.CommandFragmentEngine.runCommand(CommandFragmentEngine.java:419) at org.eclipse.wst.command.internal.env.core.fragment.CommandFragmentEngine.visitTop(CommandFragmentEngine.java:359) at org.eclipse.wst.command.internal.env.core.fragment.CommandFragmentEngine.moveForwardToNextStop(CommandFragmentEngine.java:254)