dims 01/07/17 14:34:24
Modified: xdocs faq.xml
Log:
Added faq on how to add your own .roles file.
Revision Changes Path
1.4 +47 -13 xml-cocoon2/xdocs/faq.xml
Index: faq.xml
===================================================================
RCS file: /home/cvs/xml-cocoon2/xdocs/faq.xml,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- faq.xml 2001/06/16 05:43:25 1.3
+++ faq.xml 2001/07/17 21:34:23 1.4
@@ -35,8 +35,8 @@
<answer>
<p>
Cocoon compiles sitemaps into java classes to increase runtime performance,
- this is done only at startup and only if the sitemap file is modified, for
- all the other requests the compiled sitemap is executed. See question #7
+ this is done only at startup and only if the sitemap file is modified, for
+ all the other requests the compiled sitemap is executed. See question #7
for information on how to pre-compile the sitemap and the XSP's.
</p>
</answer>
@@ -47,9 +47,9 @@
</question>
<answer>
<p>
- Cocoon.war includes all the libraries that it requires to run. They are
+ Cocoon.war includes all the libraries that it requires to run. They are
several megabytes of Java classes and it also includes the JDK javac compiler
- which must be present in the war file to allow page compilation without
+ which must be present in the war file to allow page compilation without
classloading problems.
</p>
</answer>
@@ -97,28 +97,32 @@
What are the steps to pre-compile the sitemap and XSP's?
</question>
<answer>
- <ol>
+ <ul>
<li>Set the "work-directory" parameter in web.xml as follows:
-<code>
+ </li>
+ </ul>
+<source>
<![CDATA[
<init-param>
<param-name>work-directory</param-name>
<param-value>WEB-INF/classes</param-value>
</init-param>
]]>
-</code>
- </li>
+</source>
+ <ul>
<li>Set the auto-reload to false in your sitemap.xmap as follows:
-<code>
+ </li>
+ </ul>
+<source>
<![CDATA[
<parameter name="auto-reload" value="false"/>
]]>
-</code>
- </li>
+</source>
+ <ul>
<li>Use "-Dcompile.xsp=yes" in your build command line when you are
building your WAR file.
</li>
- </ol>
+ </ul>
</answer>
</faq>
<faq>
@@ -140,7 +144,7 @@
</faq>
<faq>
<question>
- Cocoon still won't start, this time I get
+ Cocoon still won't start, this time I get
javax.xml.transform.TransformerConfigurationException: Namespace not supported by
SAXParser
in the Cocoon log file.
</question>
@@ -163,6 +167,36 @@
config.sys (and restart):
shell=c:\command.com /E:4096 /P
</p>
+ </answer>
+</faq>
+<faq>
+ <question>
+ How do i setup my own .roles file?
+ </question>
+ <answer>
+ <p>
+ In cocoon.xconf you can specify your my.roles file as follows:
+ </p>
+<source>
+ <![CDATA[
+ ...
+ <cocoon version="2.0" user-roles="WEB-INF/my.roles">
+ ...
+ ]]>
+</source>
+ <p>
+ And create a new file my.roles in WEB-INF directory with
+ </p>
+<source>
+ <![CDATA[
+ <?xml version="1.0"?>
+ <role-list>
+ <role name="org.apache.cocoon.components.jsp.JSPEngine"
+ shorthand="jsp-engine"
+ default-class="org.apache.cocoon.components.jsp.JSPEngineImplWLS"/>
+ </role-list>
+ ]]>
+</source>
</answer>
</faq>
</faqs>
----------------------------------------------------------------------
In case of troubles, e-mail: [EMAIL PROTECTED]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]