maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jason van Zyl <ja...@zenplex.com>
Subject Re: exception using velocity in maven.xml
Date Thu, 27 Feb 2003 18:50:04 GMT
On Thu, 2003-02-27 at 12:51, Frey, John (MED) wrote:
> I get the following exception upon trying to use Velocity tags in my
> maven.xml file. I'm following the Apache DB-Site example provided in the
> user guide. What gives?

Put a velocity dependency in your project.xml file. I posted a message
to the user list a while ago mentioning the fact that I removed Velocity
from the core as it was vestigal and that people might have to modify
their POMs to account for a dependency on Velocity.

> >From maven.xml ....
> 
> <project
>   default="site"
>  
> xmlns:velocity="jelly:org.apache.commons.jelly.tags.velocity.VelocityTag
> Library">
> </project>
> 
> Maven output ...
>  __  __
> |  \/  |__ Jakarta _ ___
> | |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
> |_|  |_\__,_|\_/\___|_||_|   v. 1.0-beta-8
> 
> 
> Attempting to download commons-jelly-tags-velocity-SNAPSHOT.jar.
> java.lang.reflect.InvocationTargetException:
> java.lang.NoClassDefFoundError: org
> /apache/velocity/exception/MethodInvocationException
>         at java.lang.Class.forName0(Native Method)
>         at java.lang.Class.forName(Class.java:120)
>         at
> org.apache.commons.jelly.tags.velocity.VelocityTagLibrary.class$(Velo
> cityTagLibrary.java:67)
>         at
> org.apache.commons.jelly.tags.velocity.VelocityTagLibrary.<init>(Velo
> cityTagLibrary.java:71)
>         at java.lang.Class.newInstance0(Native Method)
>         at java.lang.Class.newInstance(Class.java:237)
>         at
> org.apache.commons.jelly.parser.XMLParser.createTag(XMLParser.java:10
> 40)
>         at
> org.apache.commons.jelly.parser.XMLParser.startElement(XMLParser.java
> :647)
>         at
> org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Sour
> ce)
>         at
> org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unkn
> own Source)
>         at
> org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unkn
> own Source)
>         at
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContent
> Dispatcher.dispatch(Unknown Source)
>         at
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Un
> known Source)
>         at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown
> Source)
>         at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown
> Source)
>         at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
>         at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown
> Source)
>         at
> org.apache.commons.jelly.parser.XMLParser.parse(XMLParser.java:320)
>         at
> org.apache.maven.jelly.JellyUtils.compileScript(JellyUtils.java:207)
>         at
> org.apache.maven.jelly.JellyUtils.compileScript(JellyUtils.java:174)
>         at
> org.apache.maven.jelly.JellyUtils.runScript(JellyUtils.java:111)
>         at
> org.apache.maven.jelly.JellyUtils.runScript(JellyUtils.java:139)
>         at
> org.apache.maven.plugin.PluginManager.loadJellyScript(PluginManager.j
> ava:426)
>         at
> org.apache.maven.plugin.PluginManager.attainGoals(PluginManager.java:
> 343)
>         at
> org.apache.maven.MavenSession.attainGoals(MavenSession.java:360)
>         at org.apache.maven.cli.App.doMain(App.java:518)
>         at org.apache.maven.cli.App.main(App.java:1074)
>         at java.lang.reflect.Method.invoke(Native Method)
>         at com.werken.forehead.Forehead.run(Forehead.java:543)
>         at com.werken.forehead.Forehead.main(Forehead.java:573)
> 
> GE  Medical Systems 
> ______________________________________________________ 
> John E. Frey 
> Lead Software Developer, iCenter
> Global Service Technology 
> Phone: (262) 896-2800  Fx: (262) 896-2790 
> email: John.Frey@med.ge.com 
> http://www.gemedicalsystems.com
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: turbine-maven-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: turbine-maven-user-help@jakarta.apache.org
-- 
jvz.

Jason van Zyl
jason@zenplex.com
http://tambora.zenplex.org

In short, man creates for himself a new religion of a rational
and technical order to justify his work and to be justified in it.
  
  -- Jacques Ellul, The Technological Society


Mime
View raw message