Tomcat crashes after Xvfb shutdown


 
Thread Tools Search this Thread
Top Forums Programming Tomcat crashes after Xvfb shutdown
# 1  
Old 03-04-2010
Tomcat crashes after Xvfb shutdown

Hello,
I'm running tomcat on linux and using Xvfb as a X server for creating the pdf's (gui components).
I'm running the Xvfb in a different proccess than the tomcat.
If the Xvfb is shutdown and no pdf was yet created then everything is ok.
but if i create a pdf and then shutdown the Xvfb then the tomcat crashes,i think its because the open connection the between the Xvfb and the tomcat.
i only receive this message in the tomcat log:
"X connection to :50 host broken (explicit kill or server shutdown)"
I tried to close all the connection but it stills crashes.
I raise the Xvfb like so:
Xvfb -ac :50 -screen 0 1280x1024x8

Thanks,
Omer C
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. AIX

XVFB Source package for AIX

Please send me link for XVFB Source package for AIX (3 Replies)
Discussion started by: prathap.g
3 Replies

2. UNIX for Dummies Questions & Answers

How to set DPI as 90x90 for XVFB Display?

when i am connecting to AIX machine from Windows XP through Xmanager am getting dots per inch problem and here we are connecting to AIX machine using X Server virtual frame buffer . Please set 90x90 dots per inch to X Server virtual frame buffer. (10 Replies)
Discussion started by: prathap.g
10 Replies

3. Solaris

Tomcat..Unable to deploy application remotely in tomcat

Hi, We have upgrade tomcat from 5.0.20 to 7.0.33 and made changes to server.xml file according to newer version.. how ever the upgrade went fine and now i am unable to deploy application remotely.. it is giving 403 access denied error.. we have seperate appbase directory mentioned in server.xml..... (0 Replies)
Discussion started by: phani4u
0 Replies

4. Shell Programming and Scripting

Automatic shutdown and startup of Tomcat in Solaris

Dear Experts , I want to stop and Start tomcat at the time of shutdown and startup of our server . I was trying to stop tomcat with following command # su - dm -c "/export/home/Finder/FinderWeb/jakarta-tomcat-3.3.1a/bin/shutdown.sh" but i am getting following error. Please suggest .... (1 Reply)
Discussion started by: Amit.saini333
1 Replies

5. Shell Programming and Scripting

not able to start xvfb service via rc script

Hi , I am having this start script to start xvfb under rc3.d but it fails during system startup saying unable to open display. also manually if i try to execute the script , it does not work. But if i execute what ever is there in the script line by line on my SHELL , it starts well. ... (2 Replies)
Discussion started by: chidori
2 Replies

6. Solaris

Execution Problems with Xvfb on Solaris 10

Hello : We are in the process of upgrading our Solaris 8 to Solaris 10 We have the following set up on Solaris 8 for starting Xvfb which works very well without any issues $ /usr/openwin/bin/Xvfb :2 -ac -screen 0 6x6x8 -pn -fp /usr/openwin/lib/X11/fonts/misc ON SOLARIS 10 . the above... (2 Replies)
Discussion started by: tsbiju
2 Replies

7. UNIX for Advanced & Expert Users

Execution Problems with Xvfb on Solaris 10

Hello : We are in the process of upgrading our Solaris 8 to Solaris 10 We have the following set up on Solaris 8 for starting Xvfb which works very well without any issues $ /usr/openwin/bin/Xvfb :2 -ac -screen 0 6x6x8 -pn -fp /usr/openwin/lib/X11/fonts/misc ON SOLARIS 10 . the... (1 Reply)
Discussion started by: tsbiju
1 Replies

8. Web Development

Tomcat shutdown error

not sure if this is the right forum but im having problem with tomcat restart. i have a regular user that when he login it will go directly to a menu options (a. stop tomcat, start tomcat,). if he selects start it would should show that tomcat has been restarted. if the user press X, he will... (2 Replies)
Discussion started by: lhareigh890
2 Replies

9. UNIX for Dummies Questions & Answers

Script to force Oracle database shutdown when shutdown immediate does not work

I have Oracle 9i R2 on AIX 5.2. My Database is running in shared server mode (MTS). Sometimes when I shutdown the database it shutsdown cleanly in 4-5 mints and sometimes it takes good 15-20 minutes and then I get some ora-600 errors and only way to shutdown is by opening another session and... (7 Replies)
Discussion started by: aixhp
7 Replies

10. Solaris

Problem with Xvfb.

Hi, I installed Xvfb on Solaris 10 :confused:but unfortunately it won't work for me. My install instructions and error messages are below. I really need to get this working so any help would be greatly appreciated. #mkdir -p /usr/X11R6 #mv X11R6_bin.tar.gz /opt/X11R6/ #gunzip... (1 Reply)
Discussion started by: sparcman
1 Replies
Login or Register to Ask a Question
XVFB(1) 						      General Commands Manual							   XVFB(1)

NAME
Xvfb - virtual framebuffer X server for X Version 11 SYNOPSIS
Xvfb [ option ] ... DESCRIPTION
Xvfb is an X server that can run on machines with no display hardware and no physical input devices. It emulates a dumb framebuffer using virtual memory. The primary use of this server was intended to be server testing. The fb code for any depth can be exercised with this server without the need for real hardware that supports the desired depths. The X community has found many other novel uses for Xvfb, including testing clients against unusual depths and screen configurations, doing batch processing with Xvfb as a background rendering engine, load testing, as an aid to porting the X server to a new platform, and providing an unobtrusive way to run applications that don't really need an X server but insist on having one anyway. OPTIONS
In addition to the normal server options described in the Xserver(1) manual page, Xvfb accepts the following command line switches: -screen screennum WxHxD This option creates screen screennum and sets its width, height, and depth to W, H, and D respectively. By default, only screen 0 exists and has the dimensions 1280x1024x8. -pixdepths list-of-depths This option specifies a list of pixmap depths that the server should support in addition to the depths implied by the supported screens. list-of-depths is a space-separated list of integers that can have values from 1 to 32. -fbdir framebuffer-directory This option specifies the directory in which the memory mapped files containing the framebuffer memory should be created. See FILES. This option only exists on machines that have the mmap and msync system calls. -shmem This option specifies that the framebuffer should be put in shared memory. The shared memory ID for each screen will be printed by the server. The shared memory is in xwd format. This option only exists on machines that support the System V shared memory interface. If neither -shmem nor -fbdir is specified, the framebuffer memory will be allocated with malloc(). -linebias n This option specifies how to adjust the pixelization of thin lines. The value n is a bitmask of octants in which to prefer an axial step when the Bresenham error term is exactly zero. See the file Xserver/mi/miline.h for more information. This option is probably only useful to server developers to experiment with the range of line pixelization possible with the fb code. -blackpixel pixel-value, -whitepixel pixel-value These options specify the black and white pixel values the server should use. FILES
The following files are created if the -fbdir option is given. framebuffer-directory/Xvfb_screen<n> Memory mapped file containing screen n's framebuffer memory, one file per screen. The file is in xwd format. Thus, taking a full- screen snapshot can be done with a file copy command, and the resulting snapshot will even contain the cursor image. EXAMPLES
Xvfb :1 -screen 0 1600x1200x32 The server will listen for connections as server number 1, and screen 0 will be depth 32 1600x1200. Xvfb :1 -screen 1 1600x1200x16 The server will listen for connections as server number 1, will have the default screen configuration (one screen, 1280x1024x8), and screen 1 will be depth 16 1600x1200. Xvfb -pixdepths 3 27 -fbdir /var/tmp The server will listen for connections as server number 0, will have the default screen configuration (one screen, 1280x1024x8), will also support pixmap depths of 3 and 27, and will use memory mapped files in /var/tmp for the framebuffer. xwud -in /var/tmp/Xvfb_screen0 Displays screen 0 of the server started by the preceding example. SEE ALSO
X(7), Xserver(1), xwd(1), xwud(1), XWDFile.h AUTHORS
David P. Wiggins, The Open Group, Inc. X Version 11 xorg-server 1.8.0 XVFB(1)