cocoon-docs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@cocoon.apache.org
Subject [Cocoon Wiki] Updated: FAQs
Date Fri, 09 Jul 2004 08:10:02 GMT
   Date: 2004-07-09T01:10:02
   Editor: DavidCrossley <crossley@apache.org>
   Wiki: Cocoon Wiki
   Page: FAQs
   URL: http://wiki.apache.org/cocoon/FAQs

   delete junk attachments

Change Log:

------------------------------------------------------------------------------
@@ -118,11 +118,11 @@
 ==  General Problems ==
 
 === I'm getting the following error message: ===
-{{{message The processing instruction target 
-           matching "[xX][mM][lL]" is not allowed.
-
-description org.xml.sax.SAXParseException: 
-The processing instruction target matching 
+{{{message The processing instruction target 
+           matching "[xX][mM][lL]" is not allowed.
+
+description org.xml.sax.SAXParseException: 
+The processing instruction target matching 
 "[xX][mM][lL]" is not allowed.}}}
 
 You've got spaces before your <?xml declaration. Check your sitemap, your XML files, and
your XSLT files.
@@ -196,8 +196,8 @@
 === Q: I get an error when trying to call the delete() method in flowscript ===
 
 The workaround for using javascript keywords (like delete) as property names is to use the
[] notation instead of ".", i.e.:
-{{{
-myClass["delete"](objectToDelete);
+{{{
+myClass["delete"](objectToDelete);
 }}}
 (Thanks to Christopher Oliver)
 
@@ -209,13 +209,13 @@
 
 === Q: What does the following error message mean? I cannot figure out... ===
 
-{{{__Cocoon 2 - Internal servlet error__\\
-__type__ fatal\\
-__message__ Cocoon was not initialized.\\
-__description__ Cocoon was not initialized. Cannot proceed request.\\
-__sender__ org.apache.cocoon.servlet.CocoonServlet\\
-__source__ Cocoon servlet\\
-__request-uri__\\
+{{{__Cocoon 2 - Internal servlet error__\\
+__type__ fatal\\
+__message__ Cocoon was not initialized.\\
+__description__ Cocoon was not initialized. Cannot proceed request.\\
+__sender__ org.apache.cocoon.servlet.CocoonServlet\\
+__source__ Cocoon servlet\\
+__request-uri__\\
 /cocoon/mypage/}}}[[BR]]
 The problem appeared after a change in a different sub-sitemap but affects the whole Cocoon
servlet. Restarting Tomcat had no effect. Neither did a reboot (which ruined my uptime!).[[BR]]
 [[BR]]
@@ -225,33 +225,33 @@
 
 === Q: I have defined module variables in cocoon.xconf (eg defaultsmetamodule), how do I
access these from java code? ===
 
-{{{
-<input-modules>
-.....
-  <component-instance class="org....input.DefaultsMetaModule" name="defaults">
-	 <values>
-		<skin>defaultSkin</skin>
-		<base-url>http://localhost:8080/cocoon</base-url>
-		<MYVAR>myvalue</MYVAR>
-	 </values>
-  </component-instance>
-.....
+{{{
+<input-modules>
+.....
+  <component-instance class="org....input.DefaultsMetaModule" name="defaults">
+	 <values>
+		<skin>defaultSkin</skin>
+		<base-url>http://localhost:8080/cocoon</base-url>
+		<MYVAR>myvalue</MYVAR>
+	 </values>
+  </component-instance>
+.....
 }}}
 
 
 A: Use the following snippet (same principle for any other module)
 
-{{{
-//modulename below refers to the name defined in cocoon.xconf
-String modulename = "defaults";
-ComponentSelector selector = 
-        (ComponentSelector)this.manager.lookup(InputModule.ROLE + "Selector");
-InputModule module = (InputModule)selector.select(modulename);
-Iterator it = module.getAttributeNames(null, objectModel);
-while (it.hasNext()) {
-        String name = (String)it.next();
-	logger.debug(name + "->" + module.getAttribute(name, null, null));
-}
+{{{
+//modulename below refers to the name defined in cocoon.xconf
+String modulename = "defaults";
+ComponentSelector selector = 
+        (ComponentSelector)this.manager.lookup(InputModule.ROLE + "Selector");
+InputModule module = (InputModule)selector.select(modulename);
+Iterator it = module.getAttributeNames(null, objectModel);
+while (it.hasNext()) {
+        String name = (String)it.next();
+	logger.debug(name + "->" + module.getAttribute(name, null, null));
+}
 }}}
 
 In Cocoon 2.1 similar code is implemented in {{{org.apache.cocoon.components.treeprocessor.variables.PreparedVariableResolver}}}.
@@ -263,13 +263,13 @@
 A: This might be caused by an attribute @enctype on your form set to "multipart/form-data".
Cocoon only reads the request parameters then if the upload is enabled. Vadim explained it
[http://marc.theaimsgroup.com/?t=105723737100004&r=1&w=4 in this thread]. Of course,
if you do not an upload in your form, you can also remove the enctype attribute.
 
 === Q: Downloaded 2.1.4, tried to build and got ''"source release 1.4 requires target release
1.4"'' message. ===
-{{{
-init-tasks:
-Compiling 2 source files to /home/dale/cocoon-2.1.4/tools/anttasks
-javac: source release 1.4 requires target release 1.4
-\\
-BUILD FAILED
-/home/dale/cocoon-2.1.4/tools/targets/init-build.xml:132: Compile failed; see the compiler
error output for details.
+{{{
+init-tasks:
+Compiling 2 source files to /home/dale/cocoon-2.1.4/tools/anttasks
+javac: source release 1.4 requires target release 1.4
+\\
+BUILD FAILED
+/home/dale/cocoon-2.1.4/tools/targets/init-build.xml:132: Compile failed; see the compiler
error output for details.
 }}}[[BR]]
 [[BR]]
 I am using Linux Fedora 1 and Sun JDK 1.5.0. Can I use 1.5 or do I need to use 1.4?
@@ -285,7 +285,4 @@
 I tried it with all available examples, always the same. Does anybody know about that ?
 
 A: Do you serialize it to JPG or PNG? Otherwise this error can not occur. But if, it's of
course no longer SVG. The reason for the error is then invalid SVG code or even invalid XML.
The conversion to JPG or PNG fails. More details should be found in the logs.
-[[BR]]
-[[BR]]
-'''Attachment:''' attachment:unable+to+compile.txt [[BR]]
-'''Attachment:''' attachment:Problemas-Integrating+eXist+into+an+existing+Cocoon+2.doc [[BR]]
+

Mime
View raw message