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

Bug 352661

Summary: Migrate EGL REST RPC config file generation from RBD
Product: z_Archived Reporter: Joseph Vincens <jvincens>
Component: EDTAssignee: Yun Feng Ma <mayunf>
Status: CLOSED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: chenzhh
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: All   
Whiteboard:
Attachments:
Description Flags
Patch none

Description Joseph Vincens CLA 2011-07-20 15:06:47 EDT

    
Comment 1 Joseph Vincens CLA 2011-08-04 22:26:04 EDT
The output of this generation is a -uri.xml file. The generator from RBD can be migrated to EDT (see com.ibm.etools.egl.deploy.j2ee.internal.solution.generators.services.ServiceUriMappingGenerator).

This file will be used by the org.eclipse.edt.javart.services.servlet.rest.rpc.ServiceServlet. This servlet is registered in the web.xml and defines to the servlet the URI it is 'watching' and the service that URI maps to.
Comment 2 Joseph Vincens CLA 2011-08-19 16:30:57 EDT
ensure that the file name is <Context root>-uri.xml
the contents of the file are wrong

you are generating 
<uri httpmethod="POST">/servicesHelloWorld</uri>
<contextroot>/ABC/restservices</contextroot>
it should be
<uri httpmethod="POST">/HelloWorld</uri>
<contextroot>/RestRpcTest/restservices</contextroot>
Comment 3 Yun Feng Ma CLA 2011-08-21 23:40:29 EDT
Created attachment 201886 [details]
Patch

Fixed the issues reported by Joe in Comment #2. Thanks.
Comment 4 Tony Chen CLA 2011-08-22 07:01:36 EDT
code committed
Comment 5 Yun Feng Ma CLA 2011-09-01 04:41:52 EDT
Resolved.
Comment 6 Joseph Vincens CLA 2011-09-01 08:07:34 EDT
completed