Your web server has to apply the appropriate MIME type to both the JAD and the COD files.
- JAD = text/vnd.sun.j2me.app-descriptor
- COD = application/vnd.rim.cod
See your web server documentation on how to specify MIME types for served files. Quite often you can do this with a .htaccess file.