Was 6.1 JSP does not support generic solutions

Source: Internet
Author: User

Link: http://my.oschina.net/hunterli/blog/39767

Problem description:
By default, the JSP compiler uses the 1.3 specification to compile JSP files.
JSP, compilation will fail

Answer:

To ensure that your JSP is correctly compiled, add jdksourcelevel to the JSP attribute during packaging. The value is 15. This is the recommended method, if you cannot re-package and re-release the application, follow these steps:

Find the following two files:

<Was-Home>/profiles/export rv01/config/cells/<cellname>/applications/<appname>/deployments/<appname. War>/WEB-INF/ibm-web-ext.xmi

<Was-Home>/profiles/systrv01/installedapps/<nodename>/<appname. War>/WEB-INF/ibm-web-ext.xmi

Add the following line before </webappext: webappextension>:

<Jspattributes XMI: Id = "jspattribute_113" name = "jdksourcelevel" value = "15"/>

Save the file and restart the application. Delete the class file compiled by JSP at the same time:

<Was-Home>/profiles/program rv01/temp/<nodename>/<appname. War>/*. Class

For advanced version (6.1.0.15 or later), you can go to the was console Page Server> Application Server> [select the server to use]> Web Container Settings> Web Container> Custom properties to add configurations

com.ibm.ws.jsp.jdkSourceLevel = 13(default) or 14 or 15

Restart the was service.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.