dev@jsftemplating.java.net

Re: JSFTemplating: Run problem with new jars

From: Ken Paulsen <Ken.Paulsen_at_Sun.COM>
Date: Fri, 16 Feb 2007 16:48:57 -0800

Ed's Dynamic Faces .js file can only be loaded once or it blows up.

Both the Woodstock team and JSFtemplating use a different way of loading
the file. I do mark the flag the request, but Woodstock does not... and
I'm not sure I'm flagging it in a compatible way anyway. Woodstock does
not have a standard way to replace the resource resolution portion of
its code.... this needs to be worked out.

In the short term, you can remove the <jsfExt:scripts /> tag b/c
Woodstock will include the script on every page in your application
(that has the <sun:head /> tag). Hopefully soon Woodstock will be
compatible with the <jsfExt:scripts /> tag.

Ken

Karam Singh Badesha wrote:
> Ken,
> It was in the classpath. I removed it and it seems to be working fine
> now. Now I am getting a alert box popup on every page stating:
> DynaFaces already defined!
> How do I get rid of this alert box popping up on every page.
>
> Thanks
> Karam
>
> Ken Paulsen wrote:
>>
>> Are you sure the web/WEB-INF/lib/webui-jsf-dt.jar isn't in your
>> classpath? I added this .jar file to my WEB-INF/lib directory and
>> started getting the same error you reported. Without it, I have no
>> problems.
>>
>> Ken
>>
>> Karam Singh Badesha wrote:
>>> Hi,
>>> I just replaced woodstock jars, jsftemplating jars with the new ones
>>> from java.net. Now I can't get my application to run. What did I
>>> miss? Application compiles fine. Here is classpath:
>>>
>>> web/WEB-INF/lib/dataprovider.jar
>>> web/WEB-INF/lib/dojo-0.4.1-ajax.jar
>>> web/WEB-INF/lib/jsftemplating-dt.jar
>>> web/WEB-INF/lib/jsftemplating-dynafaces-0.1.jar
>>> web/WEB-INF/lib/jsftemplating.jar
>>> web/WEB-INF/lib/json.jar
>>> web/WEB-INF/lib/MultipleListDataProvider.jar
>>> web/WEB-INF/lib/ojdbc14.jar
>>> web/WEB-INF/lib/prototype-1.5.0.jar
>>> web/WEB-INF/lib/UsageTracking.jar
>>> web/WEB-INF/lib/webui-jsf-dt.jar
>>> web/WEB-INF/lib/webui-jsf-suntheme.jar
>>> web/WEB-INF/lib/webui-jsf.jar
>>> C:/SunAppServer/lib/javaee.jar
>>>
>>> Out of the above, jsftemplating-dt.jar, webui-jsf-dt.jar and
>>> javaee.jar are not part of the war file.
>>> Here is the error when the application is run:
>>>
>>> *exception*
>>>
>>> javax.servlet.ServletException:
>>> com/sun/rave/designtime/faces/FacetDescriptor
>>>
>>> *root cause*
>>>
>>> java.lang.NoClassDefFoundError:
>>> com/sun/rave/designtime/faces/FacetDescriptor
>>>
>>>
>>> -Karam