here is the log :

{  javax.servlet.ServletException
        at ImageServlet.doGet(ImageServlet.java:52)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:715)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:840)
        at com.livesoftware.jrun.JRun.runServlet(JRun.java:321)
        at com.livesoftware.jrun.JRunGeneric.handleConnection(JRunGeneric.java:1
16)
        at com.livesoftware.jrun.JRunGeneric.handleProxyConnection(JRunGeneric.j
ava:78)
        at com.livesoftware.jrun.service.proxy.JRunProxyServiceHandler.handleReq
uest(JRunProxyServiceHandler.java:102)
        at com.livesoftware.jrun.service.ThreadConfigHandler.run(ThreadConfigHan
dler.java:96)
 }
 

well ... there is the code :
 

/*
 * ImageServlet
 *
 * Copyright (c) 2000 Ken McCrary, All Rights Reserved.
 *
 * Permission to use, copy, modify, and distribute this software
 * and its documentation for NON-COMMERCIAL purposes and without
 * fee is hereby granted provided that this copyright notice
 * appears in all copies.
 *
 * KEN MCCRARY MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE
 * SUITABILITY OF THE SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING
 * BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT. KEN MCCRARY
 * SHALL NOT BE LIABLE FOR ANY DAMAGES SUFFERED BY LICENSEE AS A RESULT
 * OF USING, MODIFYING OR DISTRIBUTING THIS SOFTWARE OR ITS DERIVATIVES.
 */
 
import java.io.*;
import java.io.StringWriter;
import javax.servlet.http.*;
import javax.servlet.*;

import com.sun.image.codec.jpeg.JPEGCodec;
import com.sun.image.codec.jpeg.JPEGImageEncoder;
import java.io.FileOutputStream;
import java.awt.image.BufferedImage;
import java.awt.Graphics2D;
import java.awt.Color;

import ImageProducer;

/**
 *  Simple servlet to use with Image I/O producer
 *  QueryString should be the name of a class
 *  implementing ImageProducer
 */
public class ImageServlet extends HttpServlet
{
  public void doGet(HttpServletRequest request, HttpServletResponse response)
    throws IOException, ServletException
  {
     try
     {
       ImageProducer imageProducer =
           (ImageProducer) Class.forName(request.getQueryString()).newInstance();
       String type = imageProducer.createImage(response.getOutputStream());
       response.setContentType(type);
     }
     catch (Exception e)
     {
       throw new ServletException(e);
     }
  }
}
 
 
 

Mike Hogarth wrote:

Antoine:

>
>500 Internal Server Error
>
>ImageServlet:
>
>javax.servlet.ServletException
>
>and that is suppose to be the example from javaworld ....

Does the jrun error log file have an exception entry? Could help point to what Jrun is having a problem with. Probably has to do with not being able to find a class.

------------------------------------------------------------------------------
Archives: http://www.egroups.com/group/jrun-interest/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/jrun_talk
or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

--
----------------------------------------------
Antoine Oberlaender
[EMAIL PROTECTED]

 Capella Technologies
 4208 St-Denis
 Montreal (Quebec)
 H2J 2K8

tel: (514) 849-1494
fax: (514) 849-9873
http://www.capella.org
 

Reply via email to