Jump to content
JasperReports Library 7.0 is now available ×

Headless Tomcat?


Recommended Posts

By: amit das - amitdas91

Headless Tomcat?

2003-08-08 20:58

The subject says it all.

My standalone JasperReports work fine with the java parameter -Djava.awt.headless=true on HP-UX

 

With no luck on tomcat!

I tried setting and exporting before starting tomcat:

JAVA_OPTS=-Djava.awt.headless=true

and

inserted

System.setProperty("java.awt.headless", "true");

on the first line of the pdf.jsp demo file

 

Still the demo does not work!!

 

----------------------------------------------

I get the following error statement and Tomcat CRASHES and dumps core:

An unexpected exception has been detected in native code outside the VM.

Unexpected Signal : 11 occurred at PC=0xC353CFB8

Function=XGetFontPath

Library=/usr/lib/libX11.3

 

Current Java thread:

"Thread-6" daemon prio=5 tid=0x004a95a8 nid=21 lwp_id=1954 runnable [0x5d0fa000.

.0x5d0f8500]

at sun.awt.font.NativeFontWrapper.getFontPath(Native Method)

- locked <0x5e2c2300> (a java.lang.Class)

at sun.java2d.SunGraphicsEnvironment.getPlatformFontPath(SunGraphicsEnvi

ronment.java:203)

at sun.java2d.SunGraphicsEnvironment$1.run(SunGraphicsEnvironment.java:1

24)

at java.security.AccessController.doPrivileged(Native Method)

at sun.java2d.SunGraphicsEnvironment.<init>(SunGraphicsEnvironment.java:

78)

at sun.awt.X11GraphicsEnvironment.<init>(X11GraphicsEnvironment.java:150

)

at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruc....

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...