Setting the JDK version and compiler in JBoss for JSP pages

Setting the JDK version and compiler in JBoss for JSP pages

If you need to run Java 1.5 in your JSP’s in JBoss 4.0.5.GA you can do so by editing a small setting in an XML file in your server directory:

\jboss\server\[SERVER NAME]\deploy\jbossweb-tomcat55.sar\conf\web.xml

You can then change the compiler version by un-commenting the code below which you will find in the web.xml.

      <!-- Uncomment to use jdk1.5 features in jsp pages
      <init-param>
         <param-name>compilerSourceVM</param-name>
         <param-value>1.5</param-value>
      </init-param>
      -->

Changing this will then allow for a different JDK to be used in your JSP’s.

This content is published under the Attribution-Noncommercial-Share Alike 3.0 Unported license.

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • StumbleUpon
  • Reddit
  • TwitThis
  • Facebook
  • Google Bookmarks
  • MySpace
  • Technorati
  1. Running multiple instances of Jboss on one server.
  2. Adding and changing Mod JK JVM route, URI encoding and thread settings for JBoss
  3. Setting Database Connections in JBoss/ ATG
  4. Creating XML from PHP/ MySQL for use with SPRY
  5. Google Maps API part 1: Accurate Geocoding for UK Postcodes
  6. Using Javascript/ AJAX to post HTML form data
  7. How to Setup Debugging in Eclipse for JBoss
  8. Hot Deploy Java code/ ATG components on JBoss
  9. Changing the HTTP port Oracle uses