Hi,
I am new to enhydra and very new to barracuda.
To try HelloWorld1 example, I did the followings:
1. Created a web application, using appwizard.
2. Copied HelloWorld1.html to ../src/firstbarracuda/resources
3. Copied HelloWorld1.java to ../src/firstbarracuda/presentation
4. barracuda.jar, and barracuda-core.jar are exported to CLASSPATH
When I ran ant, I got the following error messages:
home/damar/barracuda/firstBarracuda/src/firstbarracuda/presentation/HelloWorld1.java:10:
package org.enhydra.barracuda.core.comp does not exist
[javac] import org.enhydra.barracuda.core.comp.*;
[javac] ^
[javac]
/home/damar/barracuda/firstBarracuda/src/firstbarracuda/presentation/HelloWorld1.java:11:
package org.enhydra.barracuda.core.comp.helper does not exist
[javac] import org.enhydra.barracuda.core.comp.helper.*;
[javac] ^
[javac]
/home/damar/barracuda/firstBarracuda/src/firstbarracuda/presentation/HelloWorld1.java:12:
package org.enhydra.barracuda.tutorials.xmlc does not exist
[javac] import org.enhydra.barracuda.tutorials.xmlc.*;
[javac] ^
[javac]
/home/damar/barracuda/firstBarracuda/src/firstbarracuda/presentation/HelloWorld1.java:18:
cannot resolve symbol
[javac] symbol : class ComponentGateway
[javac] location: class HelloWorld1
[javac] public class HelloWorld1 extends ComponentGateway {
[javac] ^
[javac]
/home/damar/barracuda/firstBarracuda/src/firstbarracuda/presentation/HelloWorld1.java:27:
cannot resolve symbol
[javac] symbol : class BComponent
[javac] location: class HelloWorld1
[javac] public Document handleDefault (BComponent root,
ViewContext vc,
HttpServletRequest req, HttpServletResponse resp) {
[javac] ^
[javac]
/home/damar/barracuda/firstBarracuda/src/firstbarracuda/presentation/HelloWorld1.java:27:
cannot resolve symbol
[javac] symbol : class ViewContext
[javac] location: class HelloWorld1
[javac] public Document handleDefault (BComponent root,
ViewContext vc,
HttpServletRequest req, HttpServletResponse resp) {
[javac] ^
[javac]
/home/damar/barracuda/firstBarracuda/src/firstbarracuda/presentation/HelloWorld1.java:50:
cannot resolve symbol
[javac] symbol : class AbstractTemplateModel
[javac] location: class HelloWorld1.HelloWorldModel
[javac] class HelloWorldModel extends AbstractTemplateModel {
[javac] ^
[javac]
/home/damar/barracuda/firstBarracuda/src/firstbarracuda/presentation/HelloWorld1.java:29:
cannot resolve symbol
[javac] symbol : method getClass ()
[javac] location: class HelloWorld1
[javac] if (xmlcFactory==null) xmlcFactory = new
XMLCStdFactory(this.getClass().getClassLoader(), new StreamXMLCLogger());
[javac]
^
[javac]
/home/damar/barracuda/firstBarracuda/src/firstbarracuda/presentation/HelloWorld1.java:30:
cannot resolve symbol
[javac] symbol : class HelloWorld1HTML
[javac] location: class HelloWorld1
[javac] XMLObject page =
xmlcFactory.create(HelloWorld1HTML.class);
[javac] ^
[javac]
/home/damar/barracuda/firstBarracuda/src/firstbarracuda/presentation/HelloWorld1.java:34:
cannot resolve symbol
[javac] symbol : class TemplateView
[javac] location: class HelloWorld1
[javac] TemplateView tv = new DefaultTemplateView(node);
[javac] ^
[javac]
/home/damar/barracuda/firstBarracuda/src/firstbarracuda/presentation/HelloWorld1.java:34:
cannot resolve symbol
[javac] symbol : class DefaultTemplateView
[javac] location: class HelloWorld1
[javac] TemplateView tv = new DefaultTemplateView(node);
[javac] ^
[javac]
/home/damar/barracuda/firstBarracuda/src/firstbarracuda/presentation/HelloWorld1.java:35:
cannot resolve symbol
[javac] symbol : class TemplateModel
[javac] location: class HelloWorld1
[javac] TemplateModel tm = new HelloWorldModel();
[javac] ^
[javac]
/home/damar/barracuda/firstBarracuda/src/firstbarracuda/presentation/HelloWorld1.java:36:
cannot resolve symbol
[javac] symbol : class BTemplate
[javac] location: class HelloWorld1
[javac] BTemplate templateComp = new BTemplate(tm);
[javac] ^
[javac]
/home/damar/barracuda/firstBarracuda/src/firstbarracuda/presentation/HelloWorld1.java:36:
cannot resolve symbol
[javac] symbol : class BTemplate
[javac] location: class HelloWorld1
[javac] BTemplate templateComp = new BTemplate(tm);
[javac] ^
[javac]
/home/damar/barracuda/firstBarracuda/src/firstbarracuda/presentation/HelloWorld1.java:58:
cannot resolve symbol
[javac] symbol : class ViewContext
[javac] location: class HelloWorld1.HelloWorldModel
[javac] ViewContext vc = getViewContext();
[javac] ^
[javac]
/home/damar/barracuda/firstBarracuda/src/firstbarracuda/presentation/HelloWorld1.java:58:
cannot resolve symbol
[javac] symbol : method getViewContext ()
[javac] location: class HelloWorld1.HelloWorldModel
[javac] ViewContext vc = getViewContext();
[javac] ^
[javac]
/home/damar/barracuda/firstBarracuda/src/firstbarracuda/presentation/HelloWorld1.java:62:
cannot resolve symbol
[javac] symbol : variable super
[javac] location: class HelloWorld1.HelloWorldModel
[javac] else return super.getItem(key);
[javac] ^
[javac] 17 errors
What I have missed here? Am I following the right procedure? Any pointers
would be highly appreciated.
My apology, if this has been asked in the past.
Damar
_______________________________________________
Barracuda mailing list
[email protected]
http://www.enhydra.org/mailman/listinfo.cgi/barracuda
FAQ - http://www.jguru.com/faq/Barracuda
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.