Справочник Пользователя для BEA 7

Скачать
Страница из 146
Additional Porting and Deployment Considerations
BEA WebLogic Server 7.0 Upgrade Guide
2-35
Wireless Application Protocol Applications
To run a Wireless Application Protocol (WAP) application on WebLogic Server 7.0, 
you must now specify the MIME types associated with WAP in the 
web.xml
 file of 
the web application. In WebLogic Server 5.1, the default mime-type can be set using 
weblogic.httpd.defaultMimeType
 in 
weblogic.properties
 where  its default 
value is "text/plain". WebLogic Server 6.0, WebLogic Server 6.1, and WebLogic 
Server 7.0 do not have a default 
mime-type
.  You must explicitly specify 
mime-type
 
for each extension in the 
web.xml
 file.. For information on required MIME types see 
. For information on creating and 
editing a 
web.xml
 file, see 
Assembling and Configuring Web Applications
An example configuration of the 
mime-types
 in the 
web.xml
 file:
<web-app> 
  <mime-mapping>
    <extension>tiff</extension>
    <mime-type>image/tiff</extension>
  </mime-mapping>
  <mime-mapping>
    <extension>tif</extension>
    <mime-type>image/tiff</extension>
  </mime-mapping>
</web-app>
Writable config.xml File
WebLogic Server 7.0 automatically updates configuration information read from the 
6.x 
config.xml
 file to include version 7.0 information. In order for these changes to 
be retained between invocations of the server, the 
config.xml
 file must be writable. 
To allow the file to be writable, make a back-up copy of your 
config.xml
 file from 
your 6.x configuration and change the file attributes.