Win a copy of Rust Web Development this week in the Other Languages forum!

matthias maneck

Greenhorn
+ Follow
since Jun 28, 2004
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by matthias maneck

hi everybody,
i have a jsp, which visualise a picture and an image-map, the links ,on the imagemap refer to the same jsp. somtime the browser (mozilla) displays a 2000 at first and then only html-code like:

2000
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<meta http-equiv="expires" content="0">
<title>
resultMethod
</title>
<link href="/gelcali/styles/liststyle.css" rel="stylesheet" type="text/css" title="ss1" />
</head>
...

and at last a 0. the 2000 ocuurs also at other positions in the code.
what happened???

thanks
matthias
17 years ago
JSP
hi,
i create a buffered im age with the help of a servlet and show it on a jsp.

i have installed jdk 1.4.2 and tomcat 4.1 under windows...

if i run the web-application with the tomcat serven on my system everything is fine.

if i run it ou an external server tomcat 4.1 with jre 1.4.2_02 und er linux
the following error occurs when the image should appear:

java.lang.NoClassDefFoundError
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:141)
at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:62)
at java.awt.image.BufferedImage.createGraphics(BufferedImage.java:1041)
at gelcali.DrawGel.doGet(DrawGel.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

why???
is it not possible to run the server under linux with jre and show buffered images?

thanks
matthias

p.s.: i create the buffered image by the following way:

BufferedImage image = new BufferedImage(450, 450,
BufferedImage.TYPE_INT_RGB);

DrawGel line 70 --> Graphics2D graphic = image.createGraphics();
17 years ago