* Jean-Claude Moissinac: > Thank you for this help. > Now, I will try to understand where I have to put the > > -Djava.awt.headless=true > option. > > I'm not using Tomcat, but the basic direct way to install Cocoon 2.1.7.
Hello Jean-Claude, You're right until now there was no way to change the java options with the Cocoon port on FreeBSD. Could you please save the attached path and try this: # cd /usr/ports/www/cocoon # patch < cocoonctl-patch # make clean all deinstall install If you would like to avoid reinstallation, just apply the patch by hand against /usr/local/sbin/cocoonctl directly Then edit /etc/rc.conf and set: cocoon_flags="-Djava.awt.headless=true" Then start Cocoon: # env - /usr/local/etc/rc.d/cocoon.sh start If everything is okay, you should have: $ COLUMNS=10000 ps aux | grep cocoon www 66494 2.9 3.8 255740 58464 p9 R 16:57 0:10.40 /usr/local/jdk1.4.2/bin/java -Djava.awt.headless=true -cp /usr/local/cocoon/tools/loader -Djava.endorsed.dirs=/usr/local/cocoon/lib/endorsed -Dorg.xml.sax.parser=org.apache.xerces.parsers.SAXParser -Djetty.port=8888 -Dloader.jar.repositories=/usr/local/cocoon/tools/jetty/lib:/usr/local/cocoon/lib/endorsed -Dwebapp=/usr/local/cocoon/webapp -Dhome=/usr/local/cocoon -Dloader.main.class=org.mortbay.jetty.Server Loader /usr/local/cocoon/tools/jetty/conf/main.xml Notice the -Djava.awt.headless=true in the command line. If that works for you, I will submit a PR to FreeBSD. Best regards, -- Jean-Baptiste Quenot Systèmes d'Information ANYWARE TECHNOLOGIES Tel : +33 (0)5 61 00 52 90 Fax : +33 (0)5 61 00 51 46 http://www.anyware-tech.com/
Index: files/cocoonctl =================================================================== --- files/cocoonctl (revision 338) +++ files/cocoonctl (working copy) @@ -141,19 +141,20 @@ APP_HOME = "%%APP_HOME%%" PID_FILE = "%%PID_FILE%%" COMMAND = "%%PREFIX%%/sbin/%%APP_NAME%%.sh" + os.environ["JAVA_OPTIONS"] = " ".join(sys.argv[1:-1]) ARGS = [COMMAND, "servlet"] - if len(sys.argv) != 2: + if len(sys.argv) < 2: usage() sys.exit(1) - if sys.argv[1] == "start": + if sys.argv[-1] == "start": start() - elif sys.argv[1] == "stop": + elif sys.argv[-1] == "stop": stop() - elif sys.argv[1] == "restart": + elif sys.argv[-1] == "restart": stop() start()
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]