myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mike Kienenberger <mkien...@gmail.com>
Subject Re: Issue with running myfaces-example-simple-1_1_9_war on websphere 6.1
Date Fri, 12 Mar 2010 20:26:28 GMT
No tld listener support seems to be the case for Websphere 6.0,
according to this issue:

http://jira.icefaces.org/browse/ICE-1403

On Fri, Mar 12, 2010 at 2:50 PM, Jakob Korherr <jakob.korherr@gmail.com> wrote:
> Hi,
>
> Maybe your websphere 6.1 is one of the few containers that does not support
> adding listeners via TLD. Try adding the following to your web.xml:
>
> <listener>
>  <listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
> </listener>
>
> Regards,
> Jakob
>
>
> 2010/3/12 Ashish Kulkarni <ashish.kulkarni13@gmail.com>
>
>> Hi
>> I recently downloaded and installed myfaces-example-simple-1_1_9_war   on
>> websphere 6.1 (6.1.0.23) and  changed class loaded order to Classed loaded
>> with application class loaded first, and then restarted the application and
>> i got following error
>>
>> What am i missing
>> *
>> *
>>
>> *java.lang.IllegalStateException: No Factories configured for this
>> Application. This happens if the faces-initialization does not work at
>> all - make sure that you properly include all configuration settings
>> necessary for a basic faces application and that all the necessary
>> libs are included.
>>
>>  Make sure that the JSF-API (myfaces-api-xxx.jar) is not included
>> twice on the classpath - if not, the factories might be configured in
>> the wrong class instance.
>>
>> If you use Tomcat, it might also pay off to clear your
>> /[tomcat-installation]/work/ directory - Tomcat sometimes stumbles
>> over its own tld-cache stored there, and doesn't load the
>> StartupServletContextListener.
>>
>> Also check the logging output of your web application and your
>> container for any exceptions!
>> If you did that and find nothing, the mistake might be due to the fact
>> that you use one of the very few web-containers which do not support
>> registering context-listeners via TLD files and a context listener is
>> not setup in your web.xml.
>>
>> Add the following lines to your web.xml file to work around this issue :
>>
>> <listener>
>>
>>  <listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
>> </listener>
>>        at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:110)
>>        at javax.faces.webapp.FacesServlet.init(FacesServlet.java:99)
>>        at
>> com.ibm.ws.webcontainer.servlet.ServletWrapper.init(ServletWrapper.java:226)
>>        at
>> com.ibm.ws.wswebcontainer.servlet.ServletWrapper.init(ServletWrapper.java:320)
>>        at
>> com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:434)
>>        at
>> com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:481)
>>        at
>> com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3453)
>>        at
>> com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:267)
>>        at
>> com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:815)
>>        at
>> com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1466)
>>        at
>> com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:119)
>>        at
>> com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:458)
>>        at
>> com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:387)
>>        at
>> com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:102)
>>        at
>> com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)
>>        at
>> com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
>>        at
>> com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
>>        at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:136)
>>        at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:196)
>>        at
>> com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:751)
>>        at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:881)
>>        at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1473)*
>>
>>
>> --
>> Ashish
>> www.ayurwellness.com
>> www.mysoftwareneeds.com
>>
>

Mime
View raw message