Hello devlist, Well, today I ran into the same issue. I am migrating WIAB to a new mmbase release and changed the backend to use the latest editwizards and servlets. I started on the frontend today to get it running on mmbase 1.6. The frontend of WIAB has no idea what a mmbase taglib is. Everything is in java and has hardcoded urls to img.db. Rebuilding the frontend or the backend again will take to much time for this project at the moment. So, I made a servlet which redirects the old urls to the new image servlet. It is not really well tested, but it works.
<!-- Servlet to move ols requests to new image servlet -->
<servlet>
<servlet-name>imagesMoved</servlet-name>
<description>Servlet to move ols requests to new image
servlet</description>
<servlet-class>org.mmbase.servlet.ImageMovedServlet</servlet-class>
<load-on-startup>2</load-on-startup>
</servlet>
<!-- The MMBase image serving servlet. -->
<servlet>
<servlet-name>images</servlet-name>
<description>To extract images from MMBase</description>
<servlet-class>org.mmbase.servlet.ImageServlet</servlet-class>
<init-param>
<!-- Expire time of original images. Cached images never expire. -->
<param-name>expire</param-name>
<!-- 10 minutes (default is one hour)-->
<param-value>600</param-value>
</init-param>
<load-on-startup>2</load-on-startup>
</servlet>
<!-- mapping for image-requests -->
<servlet-mapping>
<servlet-name>imagesMoved</servlet-name>
<url-pattern>/img.db</url-pattern>
</servlet-mapping>
<!-- mapping for image-requests -->
<servlet-mapping>
<servlet-name>images</servlet-name>
<url-pattern>/imgnew.db</url-pattern>
</servlet-mapping>
Nico Klasens
Finalist IT Group
Java Specialists
-----Oorspronkelijk bericht-----
Van: Ploeg, Karen van der (Fin) [mailto:[EMAIL PROTECTED]
Verzonden: vrijdag 18 juli 2003 16:41
Aan: '[EMAIL PROTECTED]'
Onderwerp: RE: servdb problem returns
Thanx ever so much, this completely solved my problem. No more exceptions
and my images also work.
Karen.
-----Oorspronkelijk bericht-----
Van: Michiel Meeuwissen [mailto:[EMAIL PROTECTED]
Verzonden: vrijdag 18 juli 2003 15:27
Aan: [EMAIL PROTECTED]
Onderwerp: Re: servdb problem returns
"Ploeg, Karen van der (Fin)" <[EMAIL PROTECTED]> wrote:
> happy with all the response from you people. I will wait for the next
build
> this weekend and deploy that monday, and see what happens to my images
after
> that.
There's one available already right now.
http://www.mmbase.org/download/builds/stable/2003-07-18/
I triggered one, also because the one of last week didn't work.
Michiel
--
Michiel Meeuwissen
Mediapark C101 Hilversum
+31 (0)35 6772979
nl_NL, eo, en_US
mihxil'
[]()
ImageMovedServlet.java
Description: Binary data
