-
1. Re: Setting KML / KMZ Mime Types in JBoss 5.0
peterj Apr 30, 2009 6:18 PM (in response to mduffy)Look near the end of the file server/xxx/deployers/jbossweb.deployer/web.xml
-
2. Re: Setting KML / KMZ Mime Types in JBoss 5.0
mduffy Apr 30, 2009 8:09 PM (in response to mduffy)Thx Peter.
This worked perfectly.
I added the following to the web.xml in /opt/jboss-5.0.0.GA/server/default/deployers/jbossweb.deployer
<mime-mapping>
kml
<mime-type>application/vnd.google-earth.kml+xml</mime-type>
</mime-mapping>
<mime-mapping>
kmz
<mime-type>application/vnd.google-earth.kmz kmz</mime-type>
</mime-mapping>
As a suggestion, I think this should be added to future releases of JBoss.
Mike -
3. Re: Setting KML / KMZ Mime Types in JBoss 5.0
aeroju Jun 17, 2009 10:02 AM (in response to mduffy)Hi, Mike,
I also meet this problem, and after I add following:
<mime-mapping>
kml
<mime-type>application/vnd.google-earth.kml+xml</mime-type>
</mime-mapping>
both google map and google earth could not open the KML file on my server, and after I change it to:
<mime-mapping>
kml
<mime-type>text/plain</mime-type>
</mime-mapping>
google earth could open it, but google map could not, is there any other setup required?
Thanks,