maven-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brett Porter <br...@apache.org>
Subject Re: Adding my own Jelly Library to Maven
Date Fri, 03 Dec 2004 23:13:23 GMT
You need something like this instead:

  xmlns:patch="jelly:jelly.patch.PatchTagLibrary"

- Brett

Andreas Schaefer wrote:

>Hi Geeks
> 
>I tried for quit a long time to add my very own jelly library into Maven
>and still fail. Unfortunately I could not find the answer in Jelly or
>Maven so I was wondering if someone could give me a pointer where to
>look further.
> 
>My PatchTagLibrary class looks like this:
> 
>-----------------------------------------------
>package jelly.patch;
>import org.apache.commons.jelly.TagLibrary;
>public class PatchTagLibrary extends TagLibrary {
>    public PatchTagLibrary() {
>        registerTag("patch", jelly.patch.PatchTag.class);
>        registerTag("getStatic", jelly.patch.GetStaticTag.class);
>    }
>}
>-----------------------------------------------
> 
>-----------------------------------------------
><project default="test:test"
>         xmlns:patch="jelly:patch"
>         xmlns:j="jelly:core">
> 
>    <goal name="build-test-deployments">
>        
>        <patch:getStatic var="from.server.directory"
>className="com.stc.test.connector.common.Constants"
>field="FROM_SERVER_DIRECTORY"/> ...
>-----------------------------------------------
> 
>But I get this exception:
> 
>Underlying exception: java.lang.ClassNotFoundException: patch
>java.lang.ClassNotFoundException: patch
>        at java.net.URLClassLoader$1.run(URLClassLoader.java:199)
>        at java.security.AccessController.doPrivileged(Native Method)
>        at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
>        at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
>        at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
>        at
>org.apache.commons.jelly.parser.XMLParser.createTag(XMLParser.java:10
> 
>I would appreciate any help, thanx.
> 
>Andreas Schaefer
>Senior Software Engineer
> 
><a href="http://www.lajug.org/events.html#meeting">Upcoming Maven
>Presentation @ LA-JUG 12/7/04</a>
> 
> 
> 
>
>  
>



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


Mime
View raw message