##########################
# Cocoon1 + Resin ¼³Ä¡ #
##########################
ÀÛ¼ºÀÚ : ÀåÇüÈ(hhjang97@venus.uos.ac.kr)
Cocoon2 ´Â Cocoon1 ¼³Ä¡ ´ÙÀ½¿¡ ÀÖ´Ù.
########################
# Cocoon1 ¼³Ä¡Çϱâ
########################
[Cocoon ±¸Çϱâ]
http://xml.apache.org ¿¡¼ Cocoon À» ¹Þ´Â´Ù.
1.8 ¹öÀü : http://xml.apache.org/cocoon/dist/Cocoon-1.8.tar.gz
[Cocoon ¼³Ä¡Çϱâ]
/usr/local ¿¡ ¾ÐÃàÀ» Ǭ´Ù.
# cd /usr/local/
# tar -zxvf Cocoon-1.8.tar.gz
[Cocoon Ŭ·¡½º]
¾ÐÃàÀ» Ç®°í /usr/local/cocoon-1.8/lib µð·ºÅ丮¸¦ º¸¸é ´ÙÀ½°ú °°Àº ÆÄÀϵéÀÌ º¸ÀÏ°ÍÀÌ´Ù.
ÀÚÄ«¸£Å¸ Ant : ant_1_1.jar
¾ÆÆÄÄ¡ FOP : fop_0_13_0.jar
¼ºí¸´ API 2.2 : servlet_2_2.jar
¾ÆÆÄÄ¡ ½ºÅ¸ÀÏºÏ : stylebook-1.0-b2.jar
¾ÆÆÄÄ¡ Xalan : xalan_1_2_D02.jar
¾ÆÆÄÄ¡ Xerces : xerces_1_2.jar
1) /usr/local/cocoon-1.8/bin ¿¡ ÀÖ´Â cocoon.jar ¿Í
/usr/local/cocoon-1.8/lib ¿¡ ÀÖ´Â ¸ðµç *.jar ÆÄÀÏÀ»
/usr/local/resin/lib µð·ºÅ丮¿¡ º¹»çÇÑ´Ù.
# /usr/local/cocoon-1.8/bin/cocoon.jar /usr/local/resin/lib
# /usr/local/cocoon-1.8/lib/*.jar /usr/local/resin/lib
1. Cocoon ÆÄÀÏÀ» Resin ÀÌ Àоî¾ß ÇÑ´Ù.
2. Apache À¥¼¹ö°¡ Resin À» ¿äûÇÏ°Ô ÇÑ´Ù.
3. .xml ÆÄÀÏÀ» Cocoon ÀÌ ½ÇÇàÇÏ°Ô ÇÑ´Ù.
[±âº»ÀûÀº ¼³Á¤¹æ¹ý]
org.apache.cocoon.Cocoon
org.apache.cocoon.Cocoon
properties
/usr/local/cocoon/conf/cocoon.properties
[ÇüÈ ¼³Á¤]
org.apache.cocoon.Cocoon
org.apache.cocoon.Cocoon
properties
/cocoon.properties
app-dir À» ±âÁØÀ¸·Î Çؼ cocoon.properties ÆÄÀÏÀ» º¹»çÇÏ¸é µÈ´Ù.
########################
# Cocoon2 ¼³Ä¡Çϱâ
########################
¼³Ä¡ ¹®¼
http://xml.apache.org/cocoon/installing/index.html
¼³Ä¡½Ã ÇÊ¿äÇÑ ³»¿ë
Java 1.2 ÀÌ»ó
Servlet 2.2 À» Áö¿øÇÏ´Â servlet engine (Tomcat)
Download
http://xml.apache.org/dist/cocoon
cocoon-2.0 : http://xml.apache.org/dist/cocoon/cocoon-2.0-src.tar.gz
## Cocoon »ý¼ºÇϱâ
1. JAVA_HOME ȯ°æº¯¼ö ¼³Á¤Çϱâ
JDKÀÇ È¨µð·ºÅ丮¸¦ ¼³Á¤ÇØ ÁÖ¸é µÈ´Ù.
export JAVA_HOME=/path/to/java/
2. Cocoon WAR ÆÄÀÏ »ý¼ºÇϱâ
chmod 700 build.sh
./build.sh -Dinclude.webapp.libs=yes webapp
ÀÌ·¸°ÔÇϸé './build/cocoon'µð·ºÅ丮¿¡ cocoon.war ÆÄÀÏÀÌ »ý±ä´Ù.
## Cocoon2 + Resin 2.0.x ¼³Ä¡Çϱâ
1. servlet engine ¸¦ ¼³Ä¡ÇÑ´Ù. (Tomcat 3.X ÀÌ»ó)
resinÀÌ ¼³Ä¡µÈ µð·ºÅ丮 ±¸Á¶´Â ´ÙÀ½°ú °°´Ù.
[path]...
[path]/resin-2.0.x/lib
[path]/resin-2.0.x/webapps
[path]...
2. resin À» Á¤ÁöÇÑ´Ù.
3. resin-2.0.x/lib µð·ºÅ丮¿¡¼ ´ÙÀ½ ÆÄÀÏÀ» »èÁ¦ÇÑ´Ù.
(ÀÌ»óÇÏ°Ô dom.jar À̶û sax.jarÀ» Áö¿ì¸é ½ÇÇàÀÌ ¾ÈµÈ´Ù.. -.-;;)
jaxp.jar
dom.jar
sax.jar
4. xml-cocoon2/lib µð·ºÅ丮¿¡¼ xerces-XXX.jar ÆÄÀÏÀ»
resin-2.0.x/lib µð·ºÅ丮¿¡ º¹»çÇÑ´Ù.
cocoon-2.0]# cp lib/xerces-1.4.4.jar /usr/local/resin/lib/
5. xml-cocoon2/build/cocoon/cocoon.war ÆÄÀÏÀ»
resin-2.0.x/webapps µð·ºÅ丮¿¡ º¹»çÇÑ´Ù.
cocoon-2.0]# cp build/cocoon/cocoon.war /usr/local/resin/webapps/
6. resin À» ½ÇÇàÇÑ´Ù.
# /usr/local/resin/bin/httpd.sh start
7. Cocoon À¥ ÆäÀÌÁö¸¦ ¿¬´Ù. (http://localhost:8080/cocoon/)
Note: If you want to place Cocoon webapp in a directory different than
resin-2.0.x/webapps, you need to edit resin-2.0.x/conf/resin.conf file
and add a line somewhere in tag: