You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@velocity.apache.org by Vladimir Bossicard <vl...@bossicard.com> on 2002/01/11 18:34:22 UTC

Problem when using Anakia

Hi all,

I use Anakia to generate a website but surprisingly have problems 
installing the same environment on a different PC (on the first PC it 
works fine...).  Both w2k, Ant 1.4.1 and same version of the 
Velocity.jar and jdom.jar archives (placed in the 'lib' directory).  I 
have tried to search the archives, faq and web but without finding the 
solution to my problem.

The problem is that Anakia generates '[Element: <p/>]' or 
'$value.getContent()' text instead of the one defined in the xml files.

I use the Jakarta stylesheets (modified version but doesn't work with a 
fresh version either).

The Ant file looks like:

     <path id="classpath">
         <fileset dir="${lib.src}">
             <include name="**/*.jar"/>
         </fileset>
     </path>

     <target name="anakia-task" depends="anakia-check" 
if="AnakiaTask.present">
         <taskdef name="anakia" 
classname="org.apache.velocity.anakia.AnakiaTask">
             <classpath>
                 <path refid="classpath"/>
             </classpath>
         </taskdef>
     </target>

     <target name="generate" depends="anakia-task" if="AnakiaTask.present">
         <anakia
             basedir="${xdocs.src}/user-guide/"
             destdir="${docs.dest}/user-guide/"
             extension=".html"
             style="site.vsl"
             projectFile="project.xml"
             excludes="**/stylesheets/** project.xml empty.xml"
             includes="**/*.xml"
             lastModifiedCheck="true"
             templatePath="${xdocs.src}/stylesheets" />

The Velocity.log file contains the following lines:

[error] ResourceManager : unable to find resource 'VM_global_library.vm' 
in any resource loader. 

[info] Velocimacro : error using  VM library template 
VM_global_library.vm : 
org.apache.velocity.exception.ResourceNotFoundException: Unable to find 
resource 'VM_global_library.vm'
[...]
[info] Velocity successfully started. 
 

[warn] Velocimacro : VM addition rejected : table : inline not allowed 
to replace existing VM 

[warn] Velocimacro : VM addition rejected : tr : inline not allowed to 
replace existing VM 

[warn] Velocimacro : VM addition rejected : td : inline not allowed to 
replace existing VM 

[...]
[warn] org.apache.velocity.runtime.exception.ReferenceException: 
reference : template = site.vsl [line 10,column 15] : 
$value.getContent() is not a valid reference.
[...]

Thank you for your help,

-Vladimir

-- 
Vladimir Bossicard
www.bossicard.com


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>