11 07 2017
SimpleCaptcha(캡차)의 Unix,Linux에서 sun.awt.X11GraphicsEnvironment 에러
윈도우에서 잘돌아 가는 SimpleCaptcha가 Unix/Linux 서버에서 에러가 날 경우
이 경우
Tomcat의 경우
catalina.sh 파일 제일위에 -Djava.awt.headless=true
제우스 같은 경우는
config 디렉토리 디벼보면 JEUSMain.xml 파일이 있는데 요걸 바로 수정해 주거나 아니면 webadmin 을 이용해서 수정해 주면 된다.
1.3.3 – Configuring options and paths for Tomcat
Configure the setenv.sh file to achieve a high-performance system.
To configure options and paths for Tomcat:
-
In the <Tomcat home>/bin directory, create a file called setenv.sh owned by the user <otuser> and the group <otgroup> (if not present already).
-
Configure the following settings in the setenv.sh file as indicated per operating system in Tomcat options per OS.
-
Set the maximum Java heap size to at least 2 GB (-Xmx2048m).
-
Set Abstract Window Toolkit to be used “headless” (-Djava.awt.headless=true; required by the included XML parser).
-
Set the SHARED_LIB_PATH variable to the lib directory of Archive Center.
<OT install AC> is the path to the directory into which you plan to install Archive Center.
Tomcat options per OS
- AIX
-
On AIX, several special settings are required. See Configuring Tomcat settings for IBM AIX.
- Linux
- HP-UX
- Solaris
If a cloud storage system is used (Amazon S3, Windows Azure), also add the following lines:
-
Oracle DDL문 생성및관리 SimpleCaptcha 예제