´ÙÀ½ ÀÌÀü Â÷·Ê

8. ±¸¼º ÆÄÀÏ

ApacheJServ »ç¿ëÇÏ·Á¸é ´ÙÀ½°ú °°Àº ±¸¼º ÆÄÀϵéÀÌ ÇÊ¿äÇÏ´Ù.

8.1 jserv.conf ±¸¼º ÆÄÀÏ

jserv.conf ±¸¼º ÆÄÀÏÀº ¾ÆÆÄÄ¡ À¥ ¼­¹ö¿¡ ApacheJServ ¼­ºí¸´ ¿£ÁøÀ» °áÇÕÇϱâ À§ÇÑ ¼³Á¤ »çÇ×À» Ãß°¡ÇÑ´Ù.

GNUJSP ÆÐÅ°Áö°¡ Ãß°¡ÇÏ´Â ºÎºÐÀº ´ÙÀ½°ú °°´Ù.

+----------------------------------------------------------------------------------+
|  ApJServProperties /etc/httpd/conf/jserv/jserv.properties                        |
|      :                                                                           |
|  # Mount point for Servlet zones                                                 |
|  ApJServMount /wsj /wsjzone                                                      |
|  ApJServMount /servlets /root                                                    |
|  ApJServMount /servlet /root                                                     |
|      :                                                                           |
|  # Executes a servlet passing filename with proper extension in PATH_TRANSLATED  |
|  # property of servlet request.                                                  |
|  ApJServAction .jsp /wsj/gnujsp                                                  |
|      :                                                                           |
+----------------------------------------------------------------------------------+

8.2 jserv.properties ±¸¼º ÆÄÀÏ

jserv.properties ±¸¼º ÆÄÀÏÀº ApacheJServ ¼­ºí¸´ ¿£ÁøÀ» À§ÇÑ ½ÇÇà ȯ°æ À» ¼³Á¤ÇÑ´Ù.

´«¿©°Ü º¸¾Æ¾ß ÇÒ ºÎºÐÀº ´ÙÀ½°ú °°´Ù. JDK 1.1.8À» »ç¿ëÇÏ´Â °æ¿ìÀÌ´Ù.

+------------------------------------------------------------------+
|  # Execution parameters                                          |                       
|  wrapper.bin=/usr/local/java/bin/java                            |
|      :                                                           |
|  # CLASSPATH environment value passed to the JVM                 |
|  wrapper.classpath=/usr/local/java/lib/classes.zip               |
|  wrapper.classpath=/etc/httpd/modules/ApacheJServ.jar            |
|  wrapper.classpath=/home/httpd/classes/servlet-2.0.jar           |
|  wrapper.classpath=/usr/lib/gnujsp/servlet-2.0-plus.jar          |
|      :                                                           |
|  # Servlet Zones parameters                                      |
|  zones=root,wsjzone                                              |
|  root.properties=/etc/httpd/conf/jserv/zone.properties           |
|  wsjzone.properties=/etc/httpd/conf/jserv/wsjzone.properties     |
|      :                                                           |
+------------------------------------------------------------------+

¶ÇÇÑ, Java 2 SDK 1.3À» »ç¿ëÇÏ´Â °æ¿ì¿¡´Â ´ÙÀ½°ú °°´Ù.

+------------------------------------------------------------------+
|  # Execution parameters                                          |                       
|  wrapper.bin=/usr/local/java2/bin/java                           |
|      :                                                           |
|  # CLASSPATH environment value passed to the JVM                 |
|  wrapper.classpath=/usr/local/java2/lib/tools.zip                |
|  wrapper.classpath=/etc/httpd/modules/ApacheJServ.jar            |
|  wrapper.classpath=/home/httpd/classes/servlet-2.0.jar           |
|  wrapper.classpath=/usr/lib/gnujsp/servlet-2.0-plus.jar          |
|      :                                                           |
|  # Servlet Zones parameters                                      |
|  zones=root,wsjzone                                              |
|  root.properties=/etc/httpd/conf/jserv/zone.properties           |
|  wsjzone.properties=/etc/httpd/conf/jserv/wsjzone.properties     |
|      :                                                           |
+------------------------------------------------------------------+

8.3 wsjzone.properties ±¸¼º ÆÄÀÏ

wsjzone.properties ±¸¼º ÆÄÀÏÀº JSP¸¦ À§ÇÑ ½ÇÇà ȯ°æÀ» ¼³Á¤ÇÑ´Ù. ApacheJServ¿Í ÇÔ²² ¹èÆ÷µÇ´Â ¼­ºí¸´ Á¸ ±¸¼ºÆÄÀÏÀÎ zone.propertiesÀ» Åä´ë·Î ¸¸µé¾îÁø´Ù.

ÁÖ¿ä ºÎºÐÀº ´ÙÀ½°ú °°´Ù.

+--------------------------------------------------------------------------------+ | # List of Repositories | | ####################### | | | | # The list of servlet repositories controlled by this servlet zone | | # Syntax: repositories=[repository],[repository]... | | # Default: NONE | | # Note: The classes you want to be reloaded upon modification should be put | | # here. | | repositories=/usr/lib/gnujsp/gnujsp10.jar | | repositories=/usr/lib/gnujsp/sax2.jar | | repositories=/usr/lib/gnujsp/openxml-1.2-w3c.jar | | repositories=/usr/lib/gnujsp/aelfred.jar | | #repositories=/home/httpd/servlets | | : | | | | # Servlet Aliases | | ################## | | | | # This defines aliases from which servlets can be invoked. | | # Each alias give a new instance of the servlet. This means that if a servlet | | # is invoked both by class name and by alias name, it will result in _TWO_ | | # instances of the servlet being created. | | # Syntax: servlet.[alias].code=[classname] (String) | | # Default: NONE | | # servlet.snoop.code=SnoopServlet | | # servlet.hello.code=org.fool.Dummy | | servlet.gnujsp.code=org.gjt.jsp.JspServlet | | : | | | | # Aliased Servlet Init Parameters | | ################################## | | | | # These properties define init parameters for each servlet that is invoked | | # by its alias. | | # Syntax: servlet.[alias].initArgs=[name]=[value],[name]=[value],... | | # Default: NONE | | # servlet.snoop.initArgs=message=I'm a snoop servlet | | # servlet.hello.initArgs=message=I say hello world to everyone | | | | # give me debug output in the logs (time and space consuming) | | servlet.gnujsp.initArgs=debug=true | | # I want detailed path output in the logs (lot of stuff) | | # servlet.gnujsp.initArgs=pathdebug=true | | # where to put created java source and class files (www server needs write access!) | servlet.gnujsp.initArgs=scratchdir=/var/tmp/gnujsp | | # created java classes use packages instead of long file names | | servlet.gnujsp.initArgs=usepackages=true | | # remove comment if you want german messages :-) | | # servlet.gnujsp.initArgs=language=de,country=de | | # checkclass: is set to true: check for changes to jsp pages and recompile | | # checkdependancies: keep track of included files and check for changes | | servlet.gnujsp.initArgs=checkdependancies=true,checkclass=true | | # Do not remove java source files after compilation. (helpful for debugging) | | servlet.gnujsp.initArgs=keepJava=true | | # which sax parser to use for xml files (experimental!) | | # servlet.gnujsp.initArgs=xmlparser=com.microstar.xml.SAXDriver | | # builtin-java: use the java compiler classes from JDK | | servlet.gnujsp.initArgs=compiler=builtin-javac -classpath %classpath%:%scratch| |dir%:/usr/lib/gnujsp/gnujsp10.jar -d %scratchdir% -deprecation %source% | +--------------------------------------------------------------------------------+


´ÙÀ½ ÀÌÀü Â÷·Ê