-
Notifications
You must be signed in to change notification settings - Fork 604
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DRAFT: Set Servlet Version From Bundle Wiring Capability Attribute #18326
DRAFT: Set Servlet Version From Bundle Wiring Capability Attribute #18326
Conversation
Code analysis and actionsDO NOT DELETE THIS COMMENT.
|
#build |
Your personal build request is at https://wasrtc.hursley.ibm.com:9443/jazz/resource/itemOid/com.ibm.team.build.BuildResult/_MC3oMAYJEeyB1uNHimT5CA Target locations of links might be accessible only to IBM employees. |
Your Open Liberty build results are ready for viewing.
|
The build volosied-18326-20210825-1908 For help analyzing your personal build, go to https://cognitive.hursley.ibm.com/buildAnalysis.html?uuid=_MC3oMAYJEeyB1uNHimT5CA |
Closing as we went with #17952 instead. We can reopen this PR if the need arises. |
#build |
Your personal build request is at https://wasrtc.hursley.ibm.com:9443/jazz/resource/itemOid/com.ibm.team.build.BuildResult/_71ahkH06EeykJKbDLxYjRw Target locations of links might be accessible only to IBM employees. |
The build volosied-18326-20220124-1048 For help analyzing your personal build, go to https://cognitive.hursley.ibm.com/buildAnalysis.html?uuid=_71ahkH06EeykJKbDLxYjRw |
Potential fix #2 for #17952
This is needs a bit more work, however.
Comments & Questions
open-liberty/dev/com.ibm.ws.webcontainer.servlet.3.1.factories/bnd.bnd
Lines 57 to 61 in 2fd4a88
Causes
[ERROR ] CWWKZ0002E: An exception occurred while starting the application TestEL3.0. The exception message was: java.lang.IllegalStateException: com.ibm.wsspi.adaptable.module.UnableToAdaptException: com.ibm.ws.javaee.ddmodel.DDParser$ParseException: CWWKC2262E: The server is unable to process the 3.1 version and the http://xmlns.jcp.org/xml/ns/javaee namespace in the /WEB-INF/web.xml deployment descriptor on line 16.
This is because no maxVersion is actually set and the default (WebApp.VERSION_3_0) is selected instead :
open-liberty/dev/com.ibm.ws.javaee.ddmodel/src/com/ibm/ws/javaee/ddmodel/web/WebAppEntryAdapter.java
Lines 32 to 44 in 2fd4a88
Change servlet Versions 2.7, 2.8, etc to appropriate levels? Or vice versa? (Change the spec level variables)?
open-liberty/dev/com.ibm.websphere.javaee.servlet.3.0/bnd.bnd
Line 17 in 7476e58
setVersion
is public for the WC unit tests. I'm conflicted since I think this method shouldn't really exist or it shouldn't be public.Since some unit tests for the version were removed, we should add tests in the FATs to ensure the versions are set.