Setting the context path and httpContexts property

After migrating a Web application to EAServer 6.0, you may have to set the context path to the application’s home page, and set the httpContexts property to “none.” For example, in the sybase.com application in EAServer 5.x, modify the EASDefault context path and set the sybase.com context path to “/”, so when you enter the URL http://<hostname>:8080/, the application’s home page appears.

Set the context path using sybase-webapp-config.xml in the EAServer 6.0 WEB-INF directory. For example:

<project name="webapp-sybase_com-user" default="configure-user">
<import file="ant-config-tasks.xml"/>
<property name="web.contextPath" value="/"/>
</project>

For information about setting the server’s httpContexts property to “none, ” see Chapter 3, “Creating and Configuring Servers” in the EAServer System Administration Guide.