Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
Java-SCA-1.2
-
None
-
Windows XP
Description
Deploying implementation.widget to a Tomcat server instead of using the embedded server, the received id in org.apache.tuscany.sca.implementation.widget.provider.WidgetImplementationInvoker.invoke() is not formatted correctly, and and so cannot be recognized correctly.
So the xxx.js URL is not detected, instead an unknown file is searched and the implemention.widget cannot work properly.
I tried to solve this problem at the source by changing org.apache.tuscany.sca.binding.http.provider.HTTPGetListenerServlet.doGet():
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
// Get the request path
// String path = URLDecoder.decode(request.getRequestURI().substring(request.getServletPath().length()), "UTF-8");
//!!!!! Changed by Martin Wieser, FhG-IITB
String path = request.getPathInfo();
With this patch it works correctly, but i'm not shure if it is the correct position to avoid this bug.