Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 352661 - Migrate EGL REST RPC config file generation from RBD
Summary: Migrate EGL REST RPC config file generation from RBD
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: EDT (show other bugs)
Version: unspecified   Edit
Hardware: PC All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Yun Feng Ma CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-20 15:06 EDT by Joseph Vincens CLA
Modified: 2017-02-23 14:19 EST (History)
1 user (show)

See Also:


Attachments
Patch (12.36 KB, patch)
2011-08-21 23:40 EDT, Yun Feng Ma CLA
no flags Details | Diff

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