As I had pointed out in my reply to Jason, there was a typo in my original post, I do 
indeed have
 
xmlns:mine="jelly:com.sas.mis.jelly.MisTagLibrary"
 
and not
 
xmlns:mine="com.sas.mis.jelly.MisTagLibrary"
 
That got me thinking.  I wondered what would happen if I actually had it without the 
"jelly:" as you had suspected.  Lo and behold, the exception went away! Now I am 
confused.  Looking at the XMLParser class, it seems like it is looking literally for a 
"jelly" prefix and then loads the class referred to six characters ahead.  I don't 
know why it is working without the "jelly:" prefix.
 
Now that I am past the exception, my tag doesn't seem to be getting invoked.  My 
simple unit test of the tag isn't producing the expected result.  More fundamentally, 
the doTag() method is profusely strewn with log.info() and none are seeing light of 
day.  All that I have in my tag library are:
 
- A TagLibrary class whose constructor registers the only tag in the library
- A Tag class that extends org.apache.commons.jelly.TagSupport
    - has public setters for all the attributes for the tag
    - implements the doTag() method
 
Isn't this the idiom to follow?  It seems like my extension of TagLibrary isn't even 
being invoked.
 
What now?
 
Sri
 
-----Original Message----- 
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Sat 10/11/2003 7:10 PM 
To: Maven Users List 
Cc: 
Subject: RE: Custom Tag library => ClassNotFoundException



        "Sri Sankaran" <[EMAIL PROTECTED]> wrote on 12/10/2003 12:02:05 AM:
        
        > I have tried root, root.maven & not stating it at all.
        >
        > Sri
        
        Try:
        
        <project xmlns:mine="jelly:com.sas.mis.jelly.MisTagLibrary">
          <goal name="foo-goal">
            <mine:someTag>
            ...
            </mine:someTag>
          </goal>
        </project>
        --
        dIon Gillard, Multitask Consulting
        Blog:      http://blogs.codehaus.org/people/dion/
        
        
        > -----Original Message-----
        > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
        > Sent: Saturday, October 11, 2003 6:05 AM
        > To: Maven Users List
        > Subject: Re: Custom Tag library => ClassNotFoundException
        >
        > Which classloader does the dependency state in its properties?
        > --
        > dIon Gillard, Multitask Consulting
        > Blog:      http://blogs.codehaus.org/people/dion/
        >
        >
        > "Sri Sankaran" <[EMAIL PROTECTED]> wrote on 11/10/2003 02:02:08 PM:
        >
        > > Using: Maven 1.0 rc1
        > >
        > > I am trying to use a custom tag library that I've written in a plug-
        > > in.  However, it fails with a ClassNotFoundException on the TagLibrary
        
        > class.
        > >
        > > Following are the relevant snippets:
        > >
        > > Plugin.jelly
        > >
        > > <project xmlns:mine="com.sas.mis.jelly.MisTagLibrary">
        > >   <goal name="foo-goal">
        > >     <mine:someTag>
        > >     ...
        > >     </mine:someTag>
        > >   </goal>
        > > </project>
        > >
        > > The plugin's project.xml specifies the appropriate jar file in its
        > > dependencies' section and this gets duly downloaded to the local
        > > repository.  However the goal does not execute because of a
        > > ClassNotFoundException com.sas.mis.jelly.MisTagLibrary
        > >
        > > What am I missing?
        > >
        > > Sri
        > >
        > > ---------------------------------------------------------------------
        > > To unsubscribe, e-mail: [EMAIL PROTECTED]
        > > For additional commands, e-mail: [EMAIL PROTECTED]
        > >
        >
        >
        > ---------------------------------------------------------------------
        > To unsubscribe, e-mail: [EMAIL PROTECTED]
        > For additional commands, e-mail: [EMAIL PROTECTED]
        >
        >
        > ---------------------------------------------------------------------
        > To unsubscribe, e-mail: [EMAIL PROTECTED]
        > For additional commands, e-mail: [EMAIL PROTECTED]
        >
        
        
        ---------------------------------------------------------------------
        To unsubscribe, e-mail: [EMAIL PROTECTED]
        For additional commands, e-mail: [EMAIL PROTECTED]
        
        

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to