Thomas DeWeese <[EMAIL PROTECTED]> writes:

> Hi Arian,
>
> Arian Hojat wrote:
>
>> I was wondering am i doing something screwy here?
>
>     I don't think so, but it looks like the tomcat
> JVM might be a little confused/corrupt.  What version
> of java is it using?
>
> Are you running tomcat with '-Djava.awt.headless=true'?
>
>     Normally you get a can't start AWT message but since
> this is the first time AWT is accessed it might be
> related.  Or was someone using the headless AWT replacement
> at one time?  I think that set a property that was supposed
> to replace the Sun Graphics engine.  Perhaps those classes
> weren't copied over?

I always get that exact error with fresh installs of Sun JDK and
Tomcat if -Djava.awt.headless=true is missing.  It took me a few
moments to figure it out the first time.

>> here is a stack trace on tomcat if anyone wants a look:
>> java.lang.NoClassDefFoundError
>>      java.lang.Class.forName0(Native Method)
>>      java.lang.Class.forName(Class.java:141)
>>      
>> java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:62)
>>      java.awt.image.BufferedImage.createGraphics(BufferedImage.java:1041)
>>      org.apache.batik.ext.awt.image.GraphicsUtil.createGraphics(Unknown 
>> Source)
>>      org.apache.batik.gvt.filter.GraphicsNodeRed8Bit.genRect(Unknown Source)

-- 
M�ns Rullg�rd
[EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to