In Linux, the verification code image of Tomcat is not supported in Xwindow.
Source: Internet
Author: User
In Linux, Xwindow is not installed, so Tomcat supports the verification code image-Linux Enterprise Application-Linux server application information. For more information, see the following. Generally, xNix-based web servers are not installed with X-Server. Running an unnecessary X-server is not a good network management method. For a Java Server, it is often necessary to process some graphic elements, such as adding watermark text to the image. If the Server does not have X-Server installed, this function cannot be implemented. Sun has added a headless server in JDK1.4. With this server, you only need to add Djava when the jre is started. awt. if headless is set to true, the result is the same as that of X-Server.
The following describes how tomcat and weblogic implement this small function. If it is tomcat, execute the following command:
Then start the service. For weblogic, modify the weblogic Startup File (for example, startWebLogic. sh or startmydomain. sh), drag to the second to the bottom to find-Dweblogic. name =$ {SERVER_NAME}, add-Djava to the file according to this. awt. headless = true. (The above settings are tested on Linux AS3, tomcat5.0, and JDK1.4)
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service