hey thanx for the tip guys. I'll try it tonight... Also I am curious
what exactly does this headless option for awt have to do with batik?
Does everyone who uses tomcat and batik do this the 1st time or
special cases (i just installed the server last month so it hasn't
seen much action other than batik)?

thanks,
Arian

On 5/2/05, M�ns Rullg�rd <[EMAIL PROTECTED]> wrote:
> 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]
> 
>

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

Reply via email to