Unable to deploy Hosted app into Firefox OS marketplace from Tomcat

I'm trying to deploy a hosted app into firefox marketplace. I'm using tomcat as server. When i'm submitting my manifest.webapp file, its showing me an error

"Manifests must be served with the HTTP header "Content-Type: application/x-web-app-manifest+json".

I created .htaccess file as specified in the developer site by placing this line -> "AddType application/x-web-app-manifest+json .webapp". still, getting the same error.

Is it possible to serve manifest.webapp file through tomcat server? How to work around that error.? Thanks in advance


Theoretically this should not be a problem, you might want to check if you have not disabled override features in your .htaccess. If this is your server, you might want to add the content type declaration above in the main config, instead of the .htaccess file.

Alternatively, if you do not have access to the server configuration, you might try a dynamic approach: serving the manifest-file by specifying Content-Type on the fly using the contentType directive in the first line of your manifest code.

链接地址: http://www.djcxy.com/p/79740.html

上一篇: 在移动网络应用上呈现城市地图

下一篇: 无法将Hosted应用程序从Tomcat部署到Firefox OS市场