I am not sure how to change it with the Admin console - but it should be
similar. Be sure to change it in both - the EAR and the WAR.
Did you see this article?
http://wiki.apache.org/myfaces/Websphere_Installation

On Thu, Nov 3, 2011 at 4:07 PM, Georg Füchsle <giofy...@googlemail.com>wrote:

> Hallo Toby,
>
> I don't use RAD. Therefore I set the Classloader's settings in the WAS
> admin console.
>
> If I set the Class Loader of the Web-Module to PARENT_LAST, the
> Web-App cannot be started.
>
> I get the following output:
> [03.11.11 14:40:21:366 CET] 0000001c WebExtensionP W   Servlet Faces
> Servlet is currently unavailable: SRVE0201E: Das Servlet
> [javax.faces.webapp.FacesServlet] ist keine Servlet-Klasse.
>
> In the WAS6.1 admin console I changed the class loader for the ear to
> PARENT_LAST, the other class loader were not touched.
> I always thought I would use JSF 1.2 as I use sucessfully tags like
> <f:setPropertyActionListener
> But when I output the Jsf-Version I see it is the WAS-internal
> version:
> C:/IBM/WebSphere/AppServer/plugins/com.ibm.ws.webcontainer_2.0.0.jar
>
>
> Any idea why I cannot switch the class loader for the Web-Module?
>
> Thanks!
>
> Georg
>
>
>
> 2011/11/3 Tobias Eisentrager <teisentrae...@googlemail.com>:
> > Hy Georg,
> >
> > You will nee to overwrite the JSF Version which ships with WAS 6.1 - i
> > think it is IBM's implementation of JSF 1.1 - no myfaces here.
> > - Add a current myfaces version to the war's classpath.
> > - In your EAR File you will need to set the class load to PARENT_LAST (To
> > do that open the application.xml with RAD and go the the Deployment Tab.
> > here in the Application section select the EAR an set classloader mode to
> > PRENT_LAST. Then click on the war file and do the same.)
> >
> > Let me know if that helped,
> >
> > Toby
> >
> > On Thu, Nov 3, 2011 at 11:30 AM, Georg Füchsle <giofy...@googlemail.com
> >wrote:
> >
> >> Hallo!
> >>
> >> To recognize the user’s browser version I examine the HttpHeader in a
> >> request scoped managed bean:
> >>
> >>        FacesContext ctx = FacesContext.getCurrentInstance();
> >>        ExternalContext extctx = ctx.getExternalContext();
> >>        Map<String, String[]> map = extctx.getRequestHeaderValuesMap();
> >>        String arBrowser = map.get("User-Agent");
> >>        String headBrowser = arBrowser[0];
> >>        ....
> >>
> >> This works well on WAS7 and JBoss.
> >> But on WAS6.1 the map returns empty and then I get a ClassCastException:
> >>        java.util.Vector$1 incompatible with [Ljava.lang.String;]
> >>
> >> On the other AppServers the headBrowser returns the right value to
> >> recognize the user’s browser.
> >>
> >> I don’t know the reason why WAS6 behaves different. The differences I
> know
> >> are:
> >> 1.      WAS6.1 uses a (to me unknown) jsf-Version shipped with WAS6.1;
> the
> >> other AppServers use jsf 1.2_15b02
> >> 2.      WAS6.1 runs with java 1.5; WAS7 and JBoss6 run with java 1.6
> >>
> >> Can anyone tell me the reason why there are differences and can anyone
> >> help me to make this function run also on WAS6.1?
> >>
> >> Thanks,
> >> Georg
> >>
> >
>

Reply via email to