I've successfully built a component jar as well.
Here's the ant build.xml snippet.

    <target name="jar" depends="clean,compile,resources"
description="Build jar">
        <jar destfile="${project.jar.name}"
                basedir="${java.classes}">
                         <metainf dir="${java.METAINF}">
                                <include name="*.xml"/>
                                <include name="*.tld"/>
                         </metainf>
                     <manifest>
                      <attribute name="Built-By" value="${user.name}"/>
                                <section name="${project.distname}">
                                        <attribute name="Implementation-Title" 
value="${project.title}"/>
                                        <attribute name="Implementation-Version"
value="${project.version} (${TODAY})"/>
                                        <attribute name="Implementation-Vendor" 
value="${project.vendor}"/>
                                </section>
                     </manifest>
                </jar>        
    </target>


On 7/20/05, Bruno Aranda <[EMAIL PROTECTED]> wrote:
> Yes, it is possible. Actually this is how myfaces tomahawk and sandbox
> components work (take a glimpse to the sources if you want). Are your
> tld and faces-config.xml in the META-INF folder of the jar? The class
> not found, does really exist? Verify for typos...
> 
> Regards,
> 
> Bruno
> 
> 2005/7/20, Balaji Saranathan <[EMAIL PROTECTED]>:
> >
> >
> >
> > Hi,
> >
> > I have some custom components built that have been bundled as a jar file.
> > However, when I access them in my JSF page, I get ClassNotFoundException.
> > The environment doesn't seem to pick it up from the jar file. Can you
> > clarify if I can bundle my own components,the faces-config.xml and TLD file
> > in the jar itself. Is it possible?
> >
> > Thanks
> > Bala
> >
> >
> >  Confidentiality Notice
> >
> >  The information contained in this electronic message and any attachments to
> > this message are intended
> >  for the exclusive use of the addressee(s) and may contain confidential or
> > privileged information. If
> >  you are not the intended recipient, please notify the sender at Wipro or
> > [EMAIL PROTECTED] immediately
> >  and destroy all copies of this message and any attachments.
> >
>

Reply via email to