AnsweredAssumed Answered

Symbol not found - TemplateImageResolver, Template Node

Question asked by mrudmann on Dec 19, 2006
Latest reply on Dec 21, 2006 by mrudmann
When I try to build Alfresco using HEAD (with eclipse and ant) I get errors stating that the following symbols can't be found: TemplateImageResolver, TemplateNode, and Node

A more detailed error extract is below.

Can someone shed any light on the problem?

Thanks!
-Matt

— Console extract from eclipse —

   [javac] Compiling 1617 source files to C:\Rudmann\Alfresco\HEAD\root\projects\repository\build\classes
    [javac] C:\Rudmann\Alfresco\HEAD\root\projects\repository\source\java\org\alfresco\repo\search\impl\lucene\LuceneTest2.java:285: warning: unmappable character for encoding Cp1252
    [javac] mlText.addValue(new Locale("ja"), "ãƒ?ナナ");
    [javac] ^
    [javac] C:\Rudmann\Alfresco\HEAD\root\projects\repository\source\java\org\alfresco\repo\search\impl\lucene\LuceneTest2.java:2740: warning: unmappable character for encoding Cp1252
    [javac] sp.setQuery("@" + LuceneQueryParser.escape(mlQName.toString()) + ":ãƒ?ナナ");
    [javac] ^
    [javac] C:\Rudmann\Alfresco\HEAD\root\projects\repository\source\java\org\alfresco\repo\jscript\Node.java:130: cannot find symbol
    [javac] symbol  : class TemplateImageResolver
    [javac] location: class org.alfresco.repo.jscript.Node
    [javac] protected TemplateImageResolver imageResolver = null;
    [javac] ^
    [javac] C:\Rudmann\Alfresco\HEAD\root\projects\repository\source\java\org\alfresco\repo\jscript\Node.java:218: cannot find symbol
    [javac] symbol  : class TemplateImageResolver
    [javac] location: class org.alfresco.repo.jscript.Node
    [javac] public Node newInstance(NodeRef nodeRef, ServiceRegistry services, TemplateImageResolver resolver, Scriptable scope)
    [javac] ^
    [javac] C:\Rudmann\Alfresco\HEAD\root\projects\repository\source\java\org\alfresco\repo\search\impl\lucene\QueryParser.java:16: warning: [deprecation] org.apache.lucene.document.DateField in org.apache.lucene.document has been deprecated
    [javac] import org.apache.lucene.document.DateField;
    [javac] ^
    [javac] C:\Rudmann\Alfresco\HEAD\root\projects\repository\source\java\org\alfresco\repo\action\scheduled\FreeMarkerWithLuceneExtensionsModelFactory.java:107: cannot find symbol
    [javac] symbol  : constructor TemplateNode(org.alfresco.service.cmr.repository.NodeRef,org.alfresco.service.ServiceRegistry,<nulltype>)
    [javac] location: class org.alfresco.service.cmr.repository.TemplateNode
    [javac] TemplateNode companyRootNode = new TemplateNode(nodeRef, serviceRegistry, null);
    [javac] ^
    [javac] C:\Rudmann\Alfresco\HEAD\root\projects\repository\source\java\org\alfresco\repo\jscript\Node.java:220: internal error; cannot instantiate org.alfresco.repo.jscript.Node.<init> at org.alfresco.repo.jscript.Node to ()
    [javac] return new Node(nodeRef, services, resolver, scope);
    [javac] ^
    [javac] C:\Rudmann\Alfresco\HEAD\root\projects\repository\source\java\org\alfresco\repo\jscript\AVMNode.java:44: cannot find symbol
    [javac] symbol  : constructor Node(org.alfresco.service.cmr.repository.NodeRef,org.alfresco.service.ServiceRegistry,org.alfresco.service.cmr.repository.TemplateImageResolver)
    [javac] location: class org.alfresco.repo.jscript.Node
    [javac] super(nodeRef, services, resolver);
    [javac] ^
    [javac] C:\Rudmann\Alfresco\HEAD\root\projects\repository\source\java\org\alfresco\repo\jscript\AVMNode.java:58: cannot find symbol
    [javac] symbol  : constructor Node(org.alfresco.service.cmr.repository.NodeRef,org.alfresco.service.ServiceRegistry,org.alfresco.service.cmr.repository.TemplateImageResolver,org.mozilla.javascript.Scriptable)
    [javac] location: class org.alfresco.repo.jscript.Node
    [javac] super(nodeRef, services, resolver, scope);
    [javac] ^
    [javac] C:\Rudmann\Alfresco\HEAD\root\projects\repository\source\java\org\alfresco\service\cmr\repository\TemplateNode.java:139: cannot find symbol
    [javac] symbol  : variable imageResolver
    [javac] location: class org.alfresco.service.cmr.repository.TemplateNode
    [javac] return imageResolver;
    [javac] ^
    [javac] C:\Rudmann\Alfresco\HEAD\root\projects\repository\source\java\org\alfresco\repo\search\impl\lucene\QueryParser.java:448: warning: [deprecation] org.apache.lucene.document.DateField in org.apache.lucene.document has been deprecated
    [javac] part1 = DateField.dateToString(d1);
    [javac] ^
    [javac] C:\Rudmann\Alfresco\HEAD\root\projects\repository\source\java\org\alfresco\repo\search\impl\lucene\QueryParser.java:449: warning: [deprecation] org.apache.lucene.document.DateField in org.apache.lucene.document has been deprecated
    [javac] part2 = DateField.dateToString(d2);
    [javac] ^
    [javac] Note: Some input files use unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.
    [javac] 7 errors
    [javac] 5 warnings

BUILD FAILED

Outcomes