Migrate Web application components from WAS V 5.x


 

+

Search Tips   |   Advanced Search

 

Migration of Web apps deployed in previous versions of WAS is usually not necessary. WAS v7 supports...

Servlet migration might be a concern if the app:

JSP migration might be a concern if the application references JSP page implementation classes in unnamed packages, or if we install WAS V4.x EAR files (deployed in V4.x with the JSP Precompile option), in V 5.x. we need to recompile all JSP pages when migrating from WAS V5.x.

Follow these steps if migration issues apply to your Web application:

  1. IBM internal servlets are used to enable special behavior such as file serving and serving servlets by class name. If a migrated application references internal servlets, the best practice is to enable or disable the functionality through the IBM WebSphere extensions XMI file, ibm-web-ext.xmi, located in each Web module WEB-INF directory or by using an assembly tool.

  2. If using these configuration options are not viable, then verify that the package names for the following internal servlets match what is used in the version 7 Web deployment descriptor.

    Feature Configuration Option Servlet Class
    Directory browsing directoryBrowsingEnabled="true" com.ibm.ws.webcontainer.servlet.DirectoryBrowsingServlet
    Auto mapping of servlet paths serveServletsByClassnameEnabled="true: com.ibm.ws.webcontainer.servlet.SimpleFileServlet
    File serving fileServingEnabled="true" com.ibm.ws.webcontainer.servlet.FilterProxyServlet

  3. Add the Web container custom property...

    com.ibm.ws.webcontainer.contenttypecompatibility

    ...with a value of V4, V5, V6, V7. The value is determined by the version that the application is dependant on.

    Because this property is a global setting, consider the effect on other applications.

 

Related tasks

Hot deployment and dynamic reloading
Migrate to Java Platform, Standard Edition (Java SE) 6
Assembly tools

 

Related

Web applications: Resources for learning
Set JVM sendRedirect calls to use context root

 

Related information


Rational Application Developer documentation