You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by gr...@apache.org on 2001/01/10 22:25:12 UTC
cvs commit: xml-cocoon/samples index.xml
greenrd 01/01/10 13:25:12
Modified: src/org/apache/cocoon/processor/xsp XSPProcessor.java
samples index.xml
Log:
big hints for newbies
Revision Changes Path
1.37 +12 -4 xml-cocoon/src/org/apache/cocoon/processor/xsp/XSPProcessor.java
Index: XSPProcessor.java
===================================================================
RCS file: /home/cvs/xml-cocoon/src/org/apache/cocoon/processor/xsp/XSPProcessor.java,v
retrieving revision 1.36
retrieving revision 1.37
diff -u -r1.36 -r1.37
--- XSPProcessor.java 2001/01/09 18:30:36 1.36
+++ XSPProcessor.java 2001/01/10 21:25:12 1.37
@@ -1,4 +1,4 @@
-/*-- $Id: XSPProcessor.java,v 1.36 2001/01/09 18:30:36 greenrd Exp $ --
+/*-- $Id: XSPProcessor.java,v 1.37 2001/01/10 21:25:12 greenrd Exp $ --
============================================================================
The Apache Software License, Version 1.1
@@ -78,7 +78,7 @@
* This class implements the XSP engine.
*
* @author <a href="mailto:ricardo@apache.org">Ricardo Rocha</a>
- * @version $Revision: 1.36 $ $Date: 2001/01/09 18:30:36 $
+ * @version $Revision: 1.37 $ $Date: 2001/01/10 21:25:12 $
*/
public class XSPProcessor extends AbstractActor
implements Processor, Configurable, Status, Cacheable
@@ -116,6 +116,14 @@
public void init(Director director) {
super.init(director);
+ // Sanity check #1 - is xerces on the CLASSPATH correctly?
+ try {
+ Node.class.getMethod ("normalize", new Class[] {});
+ }
+ catch (NoSuchMethodException ex) {
+ throw new NoSuchMethodError ("See http://xml.apache.org/cocoon/faqs.html#faq-normalize");
+ }
+
// Initialize Cocoon factory
this.factory = (Factory) director.getActor("factory");
@@ -201,14 +209,14 @@
+ ". Make sure it's there or you have writing permissions.<br>"
+ "In case this path is relative we highly suggest you to"
+ " change this to an absolute path so you can control its location directly"
- + " and provide valid access rights." );
+ + " and provide valid access rights. See also the FAQ." );
}
}
if (!(this.repositoryFile.canRead() && this.repositoryFile.canWrite())) {
throw new RuntimeException("Can't access store repository: "
+ repositoryFile.getAbsolutePath()
- + ". Make sure you have writing permissions.");
+ + ". Make sure you have writing permissions. See also the FAQ.");
}
// Languages other than Java may also need to use the classpath to link to Java code
1.18 +2 -1 xml-cocoon/samples/index.xml
Index: index.xml
===================================================================
RCS file: /home/cvs/xml-cocoon/samples/index.xml,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -r1.17 -r1.18
--- index.xml 2000/11/07 19:58:58 1.17
+++ index.xml 2001/01/10 21:25:12 1.18
@@ -65,7 +65,8 @@
<group name="Dynamic content Generation">
<sample name="First XSP Page" url="xsp/page.xml?message=Hello%20World!">
This page shows the power of XSP technology with Java logic. In this page
- logic and content are mixed.
+ logic and content are mixed. IMPORTANT NOTE: If you get a message about a NoSuchMethodError,
+ the solution is in the <a href="http://xml.apache.org/cocoon/faqs.html#faq-normalize">FAQ</a>!
</sample>
<sample name="First XSP Page (pure content version)" url="xsp/clean-page.xml?message=Hello%20World!">