Change WebSphere's default JDK to 1.5

Source: Internet
Author: User
Tags xmi file

Jdk5.0 is used in was6.1, but ifCodeNew features including jdk5.0 may cause errors during compilation. So the applicationProgramAfter was is deployed, you need to set the corresponding JSP engine configuration parameters as follows:

"Jdksourcelevel" is a JSP engine parameter introduced in wasv6.1 that supports the new features of JDK 5. The default value of this parameter is 13. The following are optional parameter values for "jdksourcelevel:
13 (default)-This value disables all new language feature components of JDK 1.4 and JDK 5.0.
14-this value enables the assertion tool and disables all new language feature parts of JDK 5.0.
15-this value enables the assertion tool and all new language feature parts of JDK 5.0.

This parameter needs to add the following code by editing the WEB-INF/ibm-web-ext.xmi file settings for the deployed application after deployment is complete:

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

 

The following is an example:

 

 

 <?  XML version = "1.0" encoding = "UTF-8"  ?>  
< Webappext: webappextension XMI: Version = "2.0" Xmlns: XMI = Http://www.omg.org/XMI
Xmlns: webappext = "Webappext. XMI" Xmlns: webapplication = "Webapplication. XMI" XMI: ID = "Webappextension_1"
Reloadinterval = "9" Reloadingenabled = "True" Defaulterrorpage = "Error. jsp" Additionalclasspath = ""
Fileservingenabled = "True" Directorybrowsingenabled = "False" Serveservletsbyclassnameenabled = "True"
Autorequestencoding = "True" Autoresponseencoding = "False"
<Webapp href = "WEB-INF/Web. xml # webapp_1" />
< Jspattributes XMI: ID = "Jspattribute_0" Name = "Jdksourcelevel" Value = "15" />
< Jspattributes XMI: ID = "Jspattribute_1" Name = "Usethreadtagpool" Value = "True" />
< Jspattributes XMI: ID = "Jspattribute_2" Name = "Verbose" Value = "False" />
< Jspattributes XMI: ID = "Jspattribute_3" Name = "Deprecation" Value = "False" />
< Jspattributes XMI: ID = "Jspattribute_4" Name = "Reloadenabled" Value = "True" />
< Jspattributes XMI: ID = "Jspattribute_5" Name = "Reloadinterval" Value = "5" />
< Jspattributes XMI: ID = "Jspattribute_6" Name = "Keepgenerated" Value = "True" />
<! -- <Jspattributes XMI: Id = "jspattribute_7" name = "trackdependencies" value = "true"/> -->

</ Webappext: webappextension >

 

 

Compile JSP into Java
<Jspattributes XMI: Id = "jspattribute_6" name = "keepgenerated" value = "true"/>

# Acegi Configuration
1) Start the WebSphere Console
2) In: Server -- Application Server -- select the application server you are using (server1 by default) -- Web Container settings -- Web Container -- Custom Attributes
3) create a new property: * Name: COM. IBM. ws. webcontainer. invokefilterscompatibility * value: true description: compatible with the acegi Filter
4) Save and restart the server

 

 


 

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.