我使用了最新的2.0.2并没有什么问题呀!
你使用其它版本的JDK试试!

解决方案 »

  1.   

    2.0.1好像跟Tomcat403与jdk14有不少问题,见Mailing List中HOWTO: jdk1.4和Correction: [SOLUTION] Cocoon with the Tomcat 4.0.3。List:     xml-cocoon-users
    Subject:  HOWTO: jdk1.4
    From:     "Matt Williams" <[email protected]>
    Date:     2002-03-05 5:14:44
    [Download message RAW]Hi,
    Sorry I havent introduce myself, I will do so when im not so tired ;-)
     
    Those wanting to use cocoon2 on windows with jdk1.4 do the following:
    - Download Tomcat Binary(LE) and "install"
    - Download Cocoon Binary and copy cocoon.war to $CATALINA_HOME/webapps
    - Launch Tomcat
    - When the WAR has been extracted Shut Tomcat Down
    - make a directory 'endorsed' in $JAVA_HOME/jre/lib
    - copy xerces,xalan,xml-apis from
    $CATALINA_HOME/webapps/cocoon/WEB-INF/libs to the endorsed directory
    - copy batik-libs,xerces,xalan,xml-apis from
    $CATALINA_HOME/webapps/cocoon/WEB-INF/libs to $CATALINA_HOME/common/libs
    - remove javac from $CATALINA_HOME/webapps/cocoon/WEB-INF/libs
    - copy $JAVA_HOME/lib/tools.jar to
    $CATALINA_HOME/webapps/cocoon/WEB-INF/libs
    - clear out everything under $CATALINA_HOME/work/localhost
    - start tomcat
    - buy me a beer
     
    Those wanting to use cocoon2 on *nix with jdk1.4 do the following:
    - Do the same as the windows guys are doing
    - edit catalina.sh in the $CATALINA_HOME/bin directory and add a line
    CATALINA_OPTS='-Djava.awt.headless=true'
    - start tomcat
    - buy me 2 beers
     
     
    Can someone with commit access to the cvs add that headless stuff
     
     
    Thanks,
     
    Matt
     
    Oh yeah, this works on the latest releases of cocoon and tomcat (2.0.1
    and 4.0.3 atm). that java.awt.headless=true thing is really important
    for *nix users, so someone please add it to the INSTALL text.
    I recommend using the light edition of tomcat, because its less to worry
    about. if you use the full version then you will need to screw around
    with extra JARs
      

  2.   

    List:     xml-cocoon-users
    Subject:  HOWTO: jdk1.4
    From:     "Matt Williams" <[email protected]>
    Date:     2002-03-05 5:14:44
    [Download message RAW]Hi,
    Sorry I havent introduce myself, I will do so when im not so tired ;-)
     
    Those wanting to use cocoon2 on windows with jdk1.4 do the following:
    - Download Tomcat Binary(LE) and "install"
    - Download Cocoon Binary and copy cocoon.war to $CATALINA_HOME/webapps
    - Launch Tomcat
    - When the WAR has been extracted Shut Tomcat Down
    - make a directory 'endorsed' in $JAVA_HOME/jre/lib
    - copy xerces,xalan,xml-apis from
    $CATALINA_HOME/webapps/cocoon/WEB-INF/libs to the endorsed directory
    - copy batik-libs,xerces,xalan,xml-apis from
    $CATALINA_HOME/webapps/cocoon/WEB-INF/libs to $CATALINA_HOME/common/libs
    - remove javac from $CATALINA_HOME/webapps/cocoon/WEB-INF/libs
    - copy $JAVA_HOME/lib/tools.jar to
    $CATALINA_HOME/webapps/cocoon/WEB-INF/libs
    - clear out everything under $CATALINA_HOME/work/localhost
    - start tomcat
    - buy me a beer
     
    Those wanting to use cocoon2 on *nix with jdk1.4 do the following:
    - Do the same as the windows guys are doing
    - edit catalina.sh in the $CATALINA_HOME/bin directory and add a line
    CATALINA_OPTS='-Djava.awt.headless=true'
    - start tomcat
    - buy me 2 beers
     
     
    Can someone with commit access to the cvs add that headless stuff
     
     
    Thanks,
     
    Matt
     
    Oh yeah, this works on the latest releases of cocoon and tomcat (2.0.1
    and 4.0.3 atm). that java.awt.headless=true thing is really important
    for *nix users, so someone please add it to the INSTALL text.
    I recommend using the light edition of tomcat, because its less to worry
    about. if you use the full version then you will need to screw around
    with extra JARs
      

  3.   

    在install说明里面看jdk1.4和tomcat4.03都需要特别配置!
    推荐用jdk131+tmocat4.01+cocoon2.03(据说修正了xsp中文问题)有空一起研究啊
    楼上的宝宝猫:
    cocoon很多tag的属性没有说明, 要到哪里找?
    在xsp里面用esql:xxx和esql x'fmr两种方案, 各有什么优缺点? 谢谢!