The workaround would be

either use a different app server (you can use a plain tomcat in
Netbeans 5.5, or a JBoss) or try to replace the jsf jars of the sun app
server with myfaces (this should be possible, but I am guessing here).
I am not sure but as of now nothing in the admin console uses JSF so
far. This might change in the future but at that point MyFaces will be
on 1.2 level.




Romanowski, Tim schrieb:
> Is there a workaround?  Copy myfaces jars into the application server
> lib directory?  Edit DTDs?  I haven't seen anything on the netbeans
> lists.
> 
> Thanks,
> Tim 
> 
> -----Original Message-----
> From: news [mailto:[EMAIL PROTECTED] On Behalf Of Werner Punz
> Sent: Wednesday, May 24, 2006 11:24 AM
> To: [email protected]
> Subject: Re: [OT] Netbeans integration with MyFaces
> 
> 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.
> 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_MyFa
>> ces_
>>
>> *_____________________________________*
>> Tim******
>>
> 
> 
> 

Reply via email to