Community
Participate
Working Groups
This problem is related to bug 155439. The scenario is similar: The user generates a web service client with JSP test and uses an older version of the webservicesutils.jar. They then export the project and import it to WTP 1.5 and the re-generate the client with JSP test. There will be a compile error in the sample jsp because the webserviceutils.jar is an older version and the package name is different.
Andrew, thanks, would you please propose a patch?
Created attachment 49953 [details] check for webserviceutils.jar size before copy This patch will check the file size of the webserviceutils.jar. We will copy the jar into the project only if the existing version's size is different from the size of the jar we intend to copy into the project.
Ready for review/commit, thanks!
Thanks Andrew. The only catch is that myURL.toURI() is new as of Java 5, and we need to keep ourselves compatible with Java 1.4. How about "new URI(myURL.toString())"?
Created attachment 49973 [details] check webserviceutils.jar size Thanks for the suggestion Chris. I have fixed the patch and re-tested it.
Andrew, thanks for the revised patch. Reviewed, and looks good. PMC, requesting approval to commit this to WTP 1.5.1. The "Sample JSP" test facility generated by the Web service wizards consists of four JSP files and a utility jar the JSPs depend upon named webserviceutils.jar. Though rare, changes are occasionally made to the generated JSPs and the jar which, if not generated together into a target project, will result in JSP compilation failures at tool and/or app server runtime. Without the attached fix, the Web service wizards will generate the JSPs, but will not update webserviceutils.jar. The attached fix insures that when the JSPs are written, webserviceutils.jar is also updated if necessary. The fix is simple and well tested.
+1
Patch committed and released under tag v200609132055 for tonight's M-build based on David's vote. No other votes have been posted in the last 24 hours. We can revert the changes if anyone objects.
verified in 1.5.1 HEAD.