cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yingfang Tian <yingfang.t...@gmail.com>
Subject simple custom generator
Date Fri, 03 Dec 2004 03:59:05 GMT
Hi, I am new to Cocoon. I try to write a cusom generator and follow
the guide described in
http://cocoon.apache.org/2.1/tutorial/tutorial-generator.html#Simple+Example.
When I compile the HelloWorldGenerator.java, the following errors
showed up.Could you give me any suggestion? Thank you very much.

(HelloWorldGenerator.java is copied from the above website, I put
cocoon-2.0.4.jar and xml-apis.jar in the c:\cocopractice\lib.
My environment is : j2sdk1.4.2_06;  jakarta-tomcat-4.1.31;  cocoon-2.0.4)

C:\CoCoPractice\test>javac -classpath
c:\cocopractice\lib\cocoon-2.0.4.jar;c:\cocopractice\lib\xml-apis.jar
HelloWorldGenerator.java

HelloWorldGenerator.java:5: cannot access
org.apache.avalon.framework.component.Component
file org\apache\avalon\framework\component\Component.class not found
public class HelloWorldGenerator extends AbstractGenerator
         ^
HelloWorldGenerator.java:24: cannot resolve symbol
symbol  : variable contentHandler
location: class HelloWorldGenerator
     contentHandler.startDocument();
     ^
HelloWorldGenerator.java:26: cannot resolve symbol
symbol  : variable contentHandler
location: class HelloWorldGenerator
     contentHandler.startElement("", "example", "example", emptyAttr);
     ^
HelloWorldGenerator.java:28: cannot resolve symbol
symbol  : variable contentHandler
location: class HelloWorldGenerator
     contentHandler.characters("Hello World!".toCharArray(),0,
     ^
HelloWorldGenerator.java:31: cannot resolve symbol
symbol  : variable contentHandler
location: class HelloWorldGenerator
     contentHandler.endElement("","example", "example");
     ^
HelloWorldGenerator.java:33: cannot resolve symbol
symbol  : variable contentHandler
location: class HelloWorldGenerator
     contentHandler.endDocument();
     ^
6 errors

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message