Summary: | UnsupportedClassVersionError when run Axis1 Web service in Java 5 or Java 6 project on Tomcat 5.0 | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Product: | [WebTools] WTP Webservices | Reporter: | Kathy Chan <kathy> | ||||||||
Component: | jst.ws | Assignee: | Gilbert Andrews <gilberta> | ||||||||
Status: | CLOSED FIXED | QA Contact: | Kathy Chan <kathy> | ||||||||
Severity: | normal | ||||||||||
Priority: | P3 | CC: | deboer, hjzhang | ||||||||
Version: | unspecified | Keywords: | PII | ||||||||
Target Milestone: | 3.0 M7 | Flags: | kathy:
pmc_approved?
(david_williams) kathy: pmc_approved? (raghunathan.srinivasan) kathy: pmc_approved? (naci.dai) deboer: pmc_approved+ neil.hauge: pmc_approved+ kathy: pmc_approved? (kaloyan) |
||||||||
Hardware: | PC | ||||||||||
OS: | Windows XP | ||||||||||
Whiteboard: | PMC | ||||||||||
Attachments: |
|
Description
Kathy Chan
2008-01-11 15:39:39 EST
In ValidationUtil, we need to check if the Java version in the Java project is compatible to the Web project that it will be added as J2EE module dependency. If it's not compatible, a validation error banner should be displayed. Deferring to WTP 3.0 M6. Created attachment 91698 [details]
addition to validation
Thanks for the patch, Gil. I have a few concerns with the code: 1. The newly added check in ValidationUtils expect serverInstanceId to always be set. That's not the case. There are cases when the server has not been created yet and we only have serverId (which is the server factory type Id). We need to be able to tell if that server factory type Id can support the facet or not. 2. The code would have problem handling the case when initial project is not set. Such as the case when nothing in the workspace is set when creating client or skeleton. 3. I assume by !javaProjectName.equals("projectName") you mean !javaProjectName.equals(projectName) 4. Only need the check to check for whether the Java project can be added as J2EE project dependency to Web project. We don't need this to run when we start off with one project and choose another project to create the Web service or Web service client in. Please revise your patch. Deferring out from M6. Please try to have the fix early next week as this is affecting some adoptors as well. Created attachment 96325 [details]
this replaces and fixes the problems mentioned by Kathy
Created attachment 96342 [details]
Updated patch
Updated patch that moves the check in ValidationUtil earlier (before runtimeChecker is called).
Patch committed and released to HEAD as v200804162107. I forgot to get PMC approval before dropping one new error message for this fix: The {0} server does not support the Java project {1}. Verified on 05/23 WTP 3.0 driver. |