A newbie question

2002-06-23 Thread Jack Dong



hi,
I am a newbie to use cocoon,and get a question.
I use cocoon 2.1 and tomcat 4.0.4 beta3.
when i type
http://localhost:8080/cocoon, it's 
right.
but when i copy the "hello world" sample 
from "$CATALINA_HOME/webapps/cocoon/sample/hello-world" 
to"$CATALINA_HOME/webapps/cocoon/hello-world" 
and type
http://localhost:8080/cocoon/hello-world/hello.html
it response a error page,that note"resource not found", why 
and what relation have between main sitemap and substitute sitemap?
 
 
by the way, what mean like "{1}.rdf ,{2}.rdf"?
 
thinks advance.
 
 


How to Set environment variable ?

2002-06-06 Thread Jack Dong



Hi, sirs
 
the instructions of installing cocoon to 
tomcat4.0.4 below , that provided by apache group.
 

  Build the Cocoon webapp 
  as described above. 
  Copy xml-cocoon2/build/cocoon/cocoon.war 
  into tomcat/webapps 
  directory. 
  Set 
  environment variable CATALINA_OPTS=-Djava.awt.headless=true 
  
  Start Tomcat: Go to the 
  tomcat/bin directory, and 
  run the startup script. 
  Open the Cocoon 
  welcome page: http://localhost:8080/cocoon/ 
  Congratulations! You 
  should see the Cocoon welcome page.
The third Step, I did not know how to do it and I 
use win2000 pro. Because it have three segments 
and in win2000 environment vairiable only has two 
segments, one is key and the other is value.
 
I did not do the third step, and I build cocoon 
has option target "installwar", and build sucessful.
But when I browser httP://localhost:8080/cocoon/ , I got 
message below:
 

type 
fatal
message 
SAX2 driver class org.apache.xerces.parsers.SAXParser does not implement 
XMLReader
description java.lang.ClassCastException: 
org.apache.xerces.parsers.StandardParserConfiguration
sender 
org.apache.cocoon.servlet.CocoonServlet
source 
Cocoon servlet
request-uri/cocoon/

path-info

stack-tracejava.lang.ClassCastException: org.apache.xerces.parsers.StandardParserConfiguration
	at org.xml.sax.helpers.XMLReaderFactory.createXMLReader(Unknown Source)
	at org.xml.sax.helpers.XMLReaderFactory.createXMLReader(Unknown Source)
	at org.apache.cocoon.components.language.markup.AbstractMarkupLanguage.generateCode(AbstractMarkupLanguage.java:377)
	at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.generateResource(ProgramGeneratorImpl.java:365)
	at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.createResource(ProgramGeneratorImpl.java:328)
	at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(ProgramGeneratorImpl.java:291)
	at org.apache.cocoon.sitemap.Handler.run(Handler.java:270)
	at java.lang.Thread.run(Thread.java:536)What wrong I did?cheersJack Dong 



could not build cocoon under jdk1.4.0 +ant 1.4.1

2002-06-06 Thread Jack Dong
 org.apache.cocoon.components.language.markup.xsp.EsqlConnectionCocoon2 
must be declared abstract. It does not define java.sql.Savepoint 
setSavepoint() from interface java.sql.Connection.    [javac] 
public class EsqlConnectionCocoon2 extends EsqlConnection 
{    
[javac]  
^    [javac] 
E:\cocoon-2.0.2\build\cocoon\src\org\apache\cocoon\components\language\markup\xsp\EsqlConnectionCocoon2.java:64: 
class org.apache.cocoon.components.language.markup.xsp.EsqlConnectionCocoon2 
must be declared abstract. It does not define java.sql.Savepoint 
setSavepoint(java.lang.String) from interface 
java.sql.Connection.    [javac] public class 
EsqlConnectionCocoon2 extends EsqlConnection {    
[javac]  
^    [javac] 24 errors
 
BUILD FAILED
 
 
Why and what can I do?
 
regards
 
Jack Dong
[EMAIL PROTECTED]