You cannot add a mime type for the request which has no extension.
for servlet you should be able to add this in url-pattern, something
like /myServlet.html
In any case this message "cannot find MIME type for extension
"magnolia/myServlet" is not an error but rather a warning to say that
client (browsers) might not understand content encoding.
Regards,
Sameer Charles
Magnolia International Ltd.
------------------------------------------------------------------------
---------
[EMAIL PROTECTED] http://www.magnolia.info
Magnolia® - Simple Enterprise Content Management
------------------------------------------------------------------------
---------
On Sep 20, 2006, at 12:55 PM, Bernd Brenner wrote:
Hi all,
I wrote a servlet, and the url to call it is
http://localhost:8080/magnoliaAuthor/.magnolia/myServlet
I made the following entries into web.xml:
<servlet>
<description>myServlet</description>
<display-name>myServlet</display-name>
<servlet-name>myServlet</servlet-name>
<servlet-class>de.myproj.myServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>myServlet</servlet-name>
<url-pattern>/.magnolia/myServlet</url-pattern>
</servlet-mapping>
The Problem now is every time I call the servlet, I get a magnolia
log error:
"cannot find MIME type for extension "magnolia/myServlet"
I see that I can define MIME types in AdminCentral/config/server/
MIMEmapping, but I do not have an extention to call the servlet, so
what can I do to register the MIME type?
Thanks in advance for any hint,
Bernd
----------------------------------------------------------------
for list details see
http://www.magnolia.info/en/magnolia/developer.html
----------------------------------------------------------------
----------------------------------------------------------------
for list details see
http://www.magnolia.info/en/magnolia/developer.html
----------------------------------------------------------------