Sun AS + Myfaces is a huge problem
as of JEE5 the default implementation of the
jsf implementation is not overridable anymore within the WEB-INF/lib dir.

I don't think that this is really a problem. It is convenience for the users!
Like JSP- or Servlet-JARs not JSF jars needed for *deployment*

switching inside of the container should be possible (and documented by vendors)

-Matthias

Most of us were not aware of those issues until recently.



Romanowski, Tim schrieb:
> After reading [1], I was still unable to get myfaces working on Netbeans
> and am wondering if any users on this list are currently using NetBeans
> 5.5 with myfaces.  I'd like to update the wiki so I'll try to be thorough:
>
> I created a default JSF web application, then ran it.  Worked fine.  I
> then followed the instructions in [1], but my JSF pages are throwing a
> "java.lang.UnsupportedOperationException" in the browser when I try to
> go from the welcome page (which is pure HTML) to a JSF page.  Looking at
> the Sun AS 9 server logs, the exception came from
> javax.faces.context.FacesContext.getELContext(FacesContext.java:138).
> The IDE reports an error (I love red squiggly lines) when viewing the
> JSF source page--it can't resolve the taglibs for
> "_http://java.sun.com/jsf/core_"; nor "_http://java.sun.com/jsf/html_";.
> So I looked at the META-INF directory and verified that the
> myfaces_core.tld and myfaces_html.dtd are there…and they are.  It looks
> like my issue is a dependency conflict, but I'm not sure what else
> NetBeans loads that is causing this problem.
>
> I've added the tomahawk 1.1.3 and myfaces 1.1.4 jars, as well as the
> following:
>
> Commons-logging 1.0.4
> Commons-fileupload 1.0
> Commons-collections 3.1
> Commons-digester 1.6
> Commons-beanutils 1.7.0
> Commons-codec 1.3
> Commons-validator
> Commons-el
> Jakarta-oro
> Log4j 1.2.8
>
>
> In the "Project Configuration" section of [1], it states:
> "1. Open the context menu of the project in NetBeans and choose
> "Properties". Select "Libraries" and add a reference to the "MyFaces"
> library you just created. Because* myfaces-all.jar* contains a complete
> JSF implementation you need to* uncheck* the* JSF 1.1* library . In
> principle it should be possible to use the tomahawk.jar file in
> combination with the JSF 1.1 library in Netbeans but I could not get it
> to work."
>
> In NetBeans 5.5, there doesn't appear to be a "checkbox" for
> de-selecting the JSF 1.1 Library, but I did follow other notes on the
> web and deleted "jsf-impl.jar" from the Sun Application Server lib
> directory.
>
> What is the bare minimum that must be done to convert the default JSF
> webapp in netbeans to use myfaces?
>
>
> [1]
> _http://wiki.apache.org/myfaces/Getting_started_with_Netbeans_and_MyFaces_
>
> *_____________________________________*
> Tim******
>




--
Matthias Wessendorf
Aechterhoek 18
48282 Emsdetten
http://jroller.com/page/mwessendorf
mwessendorf-at-gmail-dot-com

Reply via email to