Andrew Le Quesne wrote:
thanks for your replies. Should you put endorsed folder for the xalan and
xerces jars go in Jetty or the cocoon web app and what would be the specific
path? Also, when I tried using
org.apache.cocoon.servlet.ParanoidCocoonServlet it kept saying it couldn't
find it.
anywhere you like. just remember to start your jetty instance with additional parameter java.endorsed.libs set.

this is my ant target for running and debugging jetty:

<target name="jetty:run" depends="jetty:init" description="run webapp on built-in 
jetty">
        <java classname="org.mortbay.jetty.Server" classpathref="jetty.cp" fork="true" 
dir="${build}">
                <jvmarg value="-Djava.endorsed.dirs=${lib.endorsed}"/>
                <jvmarg value="-Djetty.home=."/>
                <jvmarg value="-Dwebapp=webapp"/>
                <jvmarg 
value="-Dorg.xml.sax.parser=org.apache.xerces.parsers.SAXParser"/>
                <jvmarg 
value="-Dorg.apache.commons.logging.Log=org.apache.commons.logging.impl.SimpleLog"/>
                <jvmarg 
value="-Dorg.apache.commons.logging.simplelog.defaultlog=warn"/>
                <jvmarg 
value="-Dorg.apache.commons.logging.simplelog.log.org.mortbay=info"/>
                <jvmarg 
value="-Dorg.apache.commons.logging.simplelog.showlogname=false"/>
                <jvmarg 
value="-Dorg.apache.commons.logging.simplelog.showShortLogname=false"/>
                <arg value="etc/main.xml"/>
                <arg value="etc/admin.xml"/>
        </java>
</target>

<target name="jetty:debug" depends="jetty:init" description="run webapp on built-in 
jetty with DEBUG mode enabled">
        <java classname="org.mortbay.jetty.Server" classpathref="jetty.cp" fork="true" 
dir="${build}">
                <jvmarg value="-Xdebug"/>
                <jvmarg 
value="-Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n"/>
                <jvmarg value="-Djava.endorsed.dirs=${lib.endorsed}"/>
                <jvmarg value="-Djetty.home=."/>
                <jvmarg value="-Dwebapp=webapp"/>
                <jvmarg 
value="-Dorg.xml.sax.parser=org.apache.xerces.parsers.SAXParser"/>
                <jvmarg 
value="-Dorg.apache.commons.logging.Log=org.apache.commons.logging.impl.SimpleLog"/>
                <jvmarg 
value="-Dorg.apache.commons.logging.simplelog.defaultlog=warn"/>
                <jvmarg 
value="-Dorg.apache.commons.logging.simplelog.log.org.mortbay=info"/>
                <jvmarg 
value="-Dorg.apache.commons.logging.simplelog.showlogname=false"/>
                <jvmarg 
value="-Dorg.apache.commons.logging.simplelog.showShortLogname=false"/>
                <arg value="etc/main.xml"/>
                <arg value="etc/admin.xml"/>
        </java>
</target>

cheers

--
Leszek Gawron                                      [EMAIL PROTECTED]
IT Manager                                         MobileBox sp. z o.o.
+48 (61) 855 06 67                              http://www.mobilebox.pl
mobile: +48 (501) 720 812                       fax: +48 (61) 853 29 65

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to