cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From xweber <xweber.a...@googlemail.com>
Subject feedback: starting examples in trunk
Date Sun, 24 Jun 2007 10:52:20 GMT

hi,

here some feedback to current examples startet from trunk as guessed in
README

On Startup:
ERROR [main] (ContextLoader.java:203) - Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'org.apache.cocoon.spring.configurator.BlockResourcesHolder':
Invocation of init method failed; nested exception is
java.io.FileNotFoundException:
/home/xweber/tmp/cocoon/cocoon-2.2/core/cocoon-webapp/target/work/blocks/cocoon-core-main-sample/hello-world/style/xsl/page2svg.xsl
(Too many open files)
Caused by:
java.io.FileNotFoundException:
/home/xweber/tmp/cocoon/cocoon-2.2/core/cocoon-webapp/target/work/blocks/cocoon-core-main-sample/hello-world/style/xsl/page2svg.xsl
(Too many open files)
        at java.io.FileOutputStream.open(Native Method)

i increased ulimit to 4096 to get it up.

======

all links in samples page "Back - to Cocoon Blocks Samples main page" point
to http://127.0.0.1:8888/blocks/ but it should be
http://127.0.0.1:8888/samples/

======

Wiki editor - In this example the parser is used to build an online editor,
which is based on the very popular syntax of Wiki. 
this link
http://127.0.0.1:8888/blocks/cocoon-chaperon-sample/view.do?page=index
causes Message: javax.xml.transform.TransformerException:
javax.xml.transform.TransformerException: Exception occured while copying
response from the service to the output stream

Description: javax.servlet.ServletException: Failed to process pipeline at
<map:serialize type="servletService"> -

======

same for
http://127.0.0.1:8888/blocks/cocoon-chaperon-sample/view.do?page=selftest

======

Syntax highlighting example

Example 1 - The parser can also be used to colorize some source code.
Example 2 - This example show a another view of a java class, similar to
javadoc. (The first use takes 2-3 minutes, for the parser table generation
process.) 

both are looking for a file:
http://svn.apache.org/viewvc/*checkout*/cocoon-2.1/src/java/org/apache/cocoon/Cocoon.java

which does not exist

======

http://127.0.0.1:8888/blocks/cocoon-fop-sample/misc/svgtest.pdf

says:
HTTP ERROR: 500

org.apache.batik.bridge.UnitProcessor.createContext(Lorg/apache/batik/bridge/BridgeContext;Lorg/w3c/dom/Element;)Lorg/apache/batik/util/UnitProcessor$Context;

RequestURI=/blocks/cocoon-fop-sample/misc/svgtest.pdf

======

http://127.0.0.1:8888/blocks/cocoon-imageop-sample/logo2.png/grayscale

says:

Message: Source or Destination ColorSpace is undefined

Description: javax.servlet.ServletException: Failed to process reader at
<map:read type="image-op-grayscale"> -
file:/home/xweber/tmp/cocoon/cocoon-2.2/core/cocoon-webapp/target/work/blocks/cocoon-imageop-sample/sitemap.xmap:72:57
at <map:match> -
file:/home/xweber/tmp/cocoon/cocoon-2.2/core/cocoon-webapp/target/work/blocks/cocoon-imageop-sample/sitemap.xmap:71:40

======

http://127.0.0.1:8888/blocks/cocoon-lucene-sample/findIt?queryString=lucene

says:

Problem in creating the Request

Message:
/home/xweber/tmp/cocoon/cocoon-2.2/core/cocoon-webapp/target/work/index not
a directory

Description: javax.servlet.ServletException: Failed to process pipeline at
<map:serialize>

same for Index2

======

http://127.0.0.1:8888/blocks/cocoon-bsf-sample/generator/hello.gy

says:

Message: org.codehaus.groovy.bsf.GroovyEngine

Description: javax.servlet.ServletException: BSFException in
ScriptGenerator.generate() at <map:serialize type="xml"
...
cause

java.lang.ClassNotFoundException: org.codehaus.groovy.bsf.GroovyEngine

======

http://127.0.0.1:8888/blocks/cocoon-javaflow-sample/

Message: org.apache.cocoon.samples.reloading.MyGenerator

Description: javax.servlet.ServletException: Unable to read Avalon
configuration from 'sitemap.xmap'.; nested exception is
org.apache.avalon.framework.configuration.ConfigurationException: Unable to
create class for component with role
org.apache.cocoon.generation.Generator/mygenerator with class:
org.apache.cocoon.samples.reloading.MyGenerator

======

http://127.0.0.1:8888/blocks/cocoon-validation-sample/report-rng-valid

says:

Message: line 203: Syntaxfehler in '*[text()][not(* or comment() or
processing-instruction())]'.
file:/home/xweber/tmp/cocoon/cocoon-2.2/core/cocoon-webapp/target/work/blocks/cocoon-samples-style-default/stylesheets/system/xml2html.xslt:
line 112: Fehler bei Syntaxanalyse des XPath-Ausdrucks '*[text()][not(* or
comment() or processing-instruction())]'.

same for all ValidationReportTransformer Samples

======

http://127.0.0.1:8888/blocks/cocoon-stx-sample/hello.html

says:

cause

javax.xml.transform.TransformerException: stylesheet erfordert das Attribut
version.

location

file:/home/xweber/tmp/cocoon/cocoon-2.2/core/cocoon-webapp/target/work/blocks/cocoon-stx-sample/page2html.stx

(translated: stylesheet requires attribute version)
Same fpr all STX samples

======

http://127.0.0.1:8888/blocks/cocoon-apples-sample/form2xml.flow

says:

org.apache.cocoon.ResourceNotFoundException: No pipeline matched request:
form2xml.flow

======

http://127.0.0.1:8888/blocks/cocoon-xsp-sample/java/upload

says:

cause

org.apache.cocoon.components.language.LanguageException: Error compiling
upload_xsp:
ERROR 1
(org/apache/cocoon/www/file_/home/xweber/tmp/cocoon/cocoon_2_2/core/cocoon_webapp/target/work/blocks/cocoon_xsp_sample/java/upload_xsp.java):
...
      
  File uploadDir = null;
  /** Contextualize this class */
  public void contextualize(Context context) throws ContextException {

// start error (lines 84-84) "Constants.CONTEXT_UPLOAD_DIR cannot be
resolved"
    uploadDir = (File) context.get(Constants.CONTEXT_UPLOAD_DIR);

// end error
  }

======

http://127.0.0.1:8888/blocks/cocoon-xsp-sample/python/hello

says:

Message: Component with role
'org.apache.cocoon.components.language.programming.ProgrammingLanguage/' and
key 'python' is not defined in this service selector.
(Key='AvalonServiceSelector')

======

this end part 1 - i am too hungry now ;-)

Alex
-- 
View this message in context: http://www.nabble.com/feedback%3A-starting-examples-in-trunk-tf3971847.html#a11273965
Sent from the Cocoon - Dev mailing list archive at Nabble.com.


Mime
View raw message