-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Sergio,
On 7/24/14, 6:50 AM, Sergio Fernández wrote: > Hi Christopher, > > On 10/07/14 16:45, Christopher Schultz wrote: >>> In our case we have a filter for serving static content from >>> modules (jars). Marmotta has a custom modules' architecture. >> >> - From the bug report: >> >> This is what I get >> >> $ curl -I >> http://localhost:8080/marmotta/core/public/style/blue/style.css >> HTTP/1.1 200 OK Server: Apache Marmotta/3.2.0 (build 0) Expires: >> Mon, 19 May 2014 15:55:53 GMT Content-Type: >> application/x-pointplus Content-Length: 6118 Date: Mon, 19 May >> 2014 14:55:53 GMT >> >> The "server" string indicates that something other than Tomcat >> is producing the response. This is likely to be a problem with >> Marmotta's configuration. >> >> Alvaro Graves says: >>> the web.xml shows text/css for mapping. However >>> ./apache-tomcat-7.0.39/webapps/marmotta/WEB-INF/lib/mime-util-2.1.3.jar >> >> >>> contains both text/css and application/x-pointplus for mimetypes > > Well, MARMOTTA-499 has provide us the perfect excuse to move out > from mime-utils. Now mimetypes are provide by Apache Tika, but the > issue still remains. > >> I'm fairly sure this has nothing to do with Tomcat. > > After some inquiries we have isolated the environmental > circumstance that causes the issue. And it is not at the OS level > (OSX), but with Java 8.x: > > https://issues.apache.org/jira/browse/MARMOTTA-499?focusedCommentId=14071564&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-14071564 > > > > Jetty (which is used for the integration tests) correctly serves > .css as text/css. That's why I initially discarded the issue was > located in our static resource handling. > > Therefore, is it possible there is an issue with Tomcat (embedded > via maven or not) and Java 8? I'm not really sure what to tell you, because Tomcat simply does not have a MIME mapping for "application/x-pointplus". Not at all. AFAIK, Tomcat's default servlet is the only thing that uses the MIME mappings, and all of them are specified in CATALINA_HOME/conf/web.xml. Your web application may add/override MIME mappings in its own web.xml, web fragments, etc. I'm sorry, but there is very little reason to think that Tomcat itself has anything at all to do with this problem. - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQIcBAEBCAAGBQJT0nNTAAoJEBzwKT+lPKRYmF8QAJq+iKXS1ESbioJbXCbWBURL ot1gvRdqpJXlGOQ2vjq6aipkXY8zdF5tBpWFhVHJh4HINIGT4CNF5uQmVhlisVHZ wwK2f8LQUYH4p9SyNo9WFPk+oPkGFQnIwb0FsqQ9+6Vgzya0LnIjmFbxvftEOZ6d AcctrJTJ3tjQksTlvTPn45ysTw788MXUTna9378bRYPVxxfXeKvj6hmAOnqQ+ZIQ cNOKpSAAzDi/PoA5oaIdUMWJXknjdZm8/GAwS9TqgaWUgNBKu+KSm4pjpolg2PZs d+DCYjptKUFSbM52ulHE5KneOht5jytxZE19OWJKzxJj0PzuhmJLTVL1LCUY+Pbx MrVUnL074xpX91iYEPLy5gbUJYaXve/sxcXgvlLzDf0IVB28318Yvua3xkdHayWB 16lDrkkp8x28sA7kAtvT6gJJv19+fCWJ7/qr9nM+Tx2iA2XbxWzPsFrjKWtrWXTF wC4X7fCExonzaOOTvtWJc6pzSmjJcEtg04fu8mdmNTeuIVIsWz7pcJAYL0SJNnlD YhfPKjCmwMOPMUHgZz5cTKQzlSid5KmhTomH9sbOPOBFpO2Dh2WC2Da/YrCQ6t/R LF+6+tXDi10GR3D99kAt8P3/ZDjuJxhGc81YszVZlv0HvY3YS7e9Ie2T88BKO+id O4TjF1SX7CSxOij01ln9 =544U -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org