gwt-plugins / gwt-plugins/gwt-eclipse-plugin

Run GWT/GXT in Debug Mode while Deployed on WebSphere

Đang mở
#334 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Java
Star
117
Fork
49
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

I have setup a Code Server via GWT Eclipse Plugin (V3 - updated to the latest) in order to debug the front-end (GWT/GXT - 2.7/4.0) code while it's been deployed on WebSphere Application Server (8.5). I am running this in Eclipse EE Mars 2. WAS runs with 1.7.1 JDK and Eclipse default compiler is also JDK 1.7.

My WebSphere server in Eclipse has been configured not to publish automatically and Run server with resources on the server. (A side note, it seems like when WAS is run to use Eclipse workspace to deploy resources, it doesn't deploy anything under .plugin/ like Tomcat, and only creates configuration files on the actual WAS server. Hence the reason I went with that server Runtime option).

I can start WebSphere server from Eclipse in Debugging mode, and the application is published (installed and started) with no error -- it is a same default application created in the video. Mind you that at this point, I have not run GWT compiler on the project as I assume we want the CodeServer to trigger compilation when the page is accessed.

Finally, in order to supply -launcherDir flag in Debug Configuration of CodeServer, I use the following file system directory:

C:\Program Files (x86)\IBM\WebSphere\AppServer\profiles\AppSrv01\installedApps\\WebAppSampleEAR.ear\WebAppSample.war

When I launch GWT debugger and go to the (application server URL + Context Root), e.g. http://localhost:9080/WebAppSample, I see that the code server compiles GWT code and "webappsample\" appears in above directory with JavaScripts. I can see the CodeServer item in Eclipse Debugger listed with all the threads as well. I can also access the CodeServer, e.g. http://localhost:9876, and view the latest compilation items for the project.

However, when I place the breakpoints in that simple application, it only catches breakpoints on the RPC service side of the application, and no breakpoint is caught on the GWT side, e.g. on any of the registered handlers.

The thing is that I am still able to modify GWT code, e.g. change button display name, and reload the page, e.g. http://localhost:9080/WebAppSample, which triggers recompilation and I can see the changes. But as I said, no breakpoint happens on the GWT side, e.g. onModuleLoad(). Is there something I am missing here?

P.S. I am running everything as an Administrator.

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Hướng nghiên cứu

Bắt đầu bằng cách tái hiện thiết lập được mô tả: Eclipse Mars, GWT/GXT, WebSphere 8.5, CodeServer với launcherDir của nó và một breakpoint phía client, chẳng hạn tại onModuleLoad(). So sánh đường dẫn debug phía client với breakpoint RPC đang hoạt động; được xem là hoàn tất khi xác định được cấu hình còn thiếu hoặc ghi lại rằng các breakpoint phía client không thể liên kết trong triển khai này.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
java
Lĩnh vực
devtools
Loại issue
Lỗi
Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Cần làm rõ
Mức phù hợp với người mới
25/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.