-----Original Message----- > > 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? > Yes it is, I indeed did it once to test things... Also myfaces does it as well.
You however have to follow the guidelines regarding component packs from the sun jsf homepage. (There also is a wiki entry in the myfaces wiki regardung this) -----/Original Message----- You say you get a class not found exception. This means at least that your TLD-file has been regognized. You seem to have a "normal" classpath problem. Just for testing: add a normal managed bean to the same jar-file and access it from a standard-component (without your own custom components). Check whether this class can then be accessed... Depending on the appserver it can also be a problem of multiple classloaders... hth Alexander

