You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Kunle Ola <ku...@curatiotech.com> on 2007/12/26 23:27:06 UTC

Setting up MyFaces to work with RichFaces and Facelets

Hi,

I am attempting to add Tomahawk schedule component to a working  richfaces
implementation using JSF 1.2.

My setup:

myfaces-1.2.0

Tomcat 6.0.14

Windows Server 2003

java 1.6.0_03-b05

tomahawk 1.1.6

richfaces 3.1.3-GA


I am getting the following errors on startup, I was wondering if anyone has
experienced this problem, any assistance is much appreciated.


Dec 26, 2007 4:20:41 PM org.apache.catalina.core.StandardContextlistenerStart
SEVERE: Exception sending context initialized event to listener instance of
class com.sun.faces.config.ConfigureListener
com.sun.faces.config.ConfigurationException: CONFIGURATION FAILED! null
        at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java
:212)
        at com.sun.faces.config.ConfigureListener.contextInitialized(
ConfigureListener.java:174)
        at org.apache.catalina.core.StandardContext.listenerStart(
StandardContext.java:3830)
        at org.apache.catalina.core.StandardContext.start(
StandardContext.java:4337)
        at org.apache.catalina.core.ContainerBase.addChildInternal(
ContainerBase.java:791)
        at org.apache.catalina.core.ContainerBase.addChild(
ContainerBase.java:771)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java
:525)
        at org.apache.catalina.startup.HostConfig.deployDescriptor(
HostConfig.java:626)
        at org.apache.catalina.startup.HostConfig.deployDescriptors(
HostConfig.java:553)
        at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java
:488)
        at org.apache.catalina.startup.HostConfig.start(HostConfig.java
:1138)
        at org.apache.catalina.startup.HostConfig.lifecycleEvent(
HostConfig.java:311)
        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(
LifecycleSupport.java:117)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java
:1053)
        at org.apache.catalina.core.StandardHost.start(StandardHost.java
:719)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java
:1045)
        at org.apache.catalina.core.StandardEngine.start(StandardEngine.java
:443)
        at org.apache.catalina.core.StandardService.start(
StandardService.java:516)
        at org.apache.catalina.core.StandardServer.start(StandardServer.java
:710)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:566)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(
NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Caused by: java.lang.NullPointerException
        at
com.sun.faces.config.processor.ApplicationConfigProcessor.addResouceBundle(
ApplicationConfigProcessor.java:578)
        at com.sun.faces.config.processor.ApplicationConfigProcessor.process
(ApplicationConfigProcessor.java:245)
        at com.sun.faces.config.processor.AbstractConfigProcessor.invokeNext
(AbstractConfigProcessor.java:94)
        at com.sun.faces.config.processor.LifecycleConfigProcessor.process(
LifecycleConfigProcessor.java:119)
        at com.sun.faces.config.processor.AbstractConfigProcessor.invokeNext
(AbstractConfigProcessor.java:94)
        at com.sun.faces.config.processor.FactoryConfigProcessor.process(
FactoryConfigProcessor.java:132)
        at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java
:202)
        ... 25 more
Dec 26, 2007 4:20:41 PM org.apache.catalina.core.ApplicationContext log
INFO: Initializing Spring root WebApplicationContext
Dec 26, 2007 4:20:46 PM org.apache.catalina.core.ApplicationContext log
INFO: Closing Spring root WebApplicationContext
Dec 26, 2007 4:20:54 PM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextInitialized()
Dec 26, 2007 4:20:54 PM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextInitialized()

Re: Setting up MyFaces to work with RichFaces and Facelets

Posted by "simon.kitching@chello.at" <si...@chello.at>.
If you're using JSF1.2 (and you should) then this listener is not 
needed. Both the Sun and Apache JSF1.2 implementations will 
automatically initialise themselves.

In fact, if you add this listener when using MyFaces 1.2.x then you will 
see a warning in the logfiles.

The listener is needed only for the old JSF1.1 releases.

Regards,
Simon

radhesh schrieb:
> It is straightforward...just switch to MyFaces listener as shown below
>
> <listener>
>  
> <listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
> </listener>
>
> Regards,
> Radhesh
> http://thoughtsillustrated.blogspot.com
> http://thoughtsillustrated.blogspot.com/ 
>
>
> abchilla wrote:
>   
>> Hi,
>>
>> thanks for that fix. I am new to this types aswell. I had the same issue.
>> I wanted to use MyFaces for my project, but now i just kicked those jars
>> out, so i did not get this error. 
>>
>> I want to know 2 things:
>>
>> Where can i read about what this listener ConfigureListener is for?
>>
>> how do i bind myfaces into it instead of sun faces. in my web.xml there is
>> the listener for sun.faces
>> how do i exchange it with a listener for myfaces.
>>
>> <listener>
>>
>>        
>> <listener-class>com.sun.faces.config.ConfigureListener</listener-class>
>>
>>     </listener>
>>
>>
>> thanks
>>
>> Kunle Ola wrote:
>>     
>>> David,
>>>
>>> Thanks for the advice, this is my first experience with JSF.Your advice
>>> fixed my issue.
>>>
>>> Thanks
>>>
>>> Kunle
>>>
>>> On Dec 27, 2007 12:36 PM, david delbecq <de...@oma.be> wrote:
>>>
>>>       
>>>> Kunle Ola a écrit :
>>>>         
>>>>> Hi,
>>>>>
>>>>> My setup:
>>>>>
>>>>> myfaces-1.2.0
>>>>>
>>>>> ....
>>>>>
>>>>> com.sun.faces.config.ConfigurationException : CONFIGURATION FAILED!
>>>>>           
>>>> null
>>>>         
>>>>>         at
>>>>> com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:212)
>>>>>         at
>>>>> com.sun.faces.config.ConfigureListener.contextInitialized(
>>>>>           
>>>> ConfigureListener.java:174)
>>>>         
>>>> Don't mix sun implementation of jsf and myfaces implementation! If you
>>>> use myfaces-1.2.0, remove sun's jsf from your webapp!
>>>>
>>>>         
>>>       
>>     
>
>   


Re: Setting up MyFaces to work with RichFaces and Facelets

Posted by radhesh <ra...@gmail.com>.
It is straightforward...just switch to MyFaces listener as shown below

<listener>
 
<listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
</listener>

Regards,
Radhesh
http://thoughtsillustrated.blogspot.com
http://thoughtsillustrated.blogspot.com/ 


abchilla wrote:
> 
> Hi,
> 
> thanks for that fix. I am new to this types aswell. I had the same issue.
> I wanted to use MyFaces for my project, but now i just kicked those jars
> out, so i did not get this error. 
> 
> I want to know 2 things:
> 
> Where can i read about what this listener ConfigureListener is for?
> 
> how do i bind myfaces into it instead of sun faces. in my web.xml there is
> the listener for sun.faces
> how do i exchange it with a listener for myfaces.
> 
> <listener>
> 
>        
> <listener-class>com.sun.faces.config.ConfigureListener</listener-class>
> 
>     </listener>
> 
> 
> thanks
> 
> Kunle Ola wrote:
>> 
>> David,
>> 
>> Thanks for the advice, this is my first experience with JSF.Your advice
>> fixed my issue.
>> 
>> Thanks
>> 
>> Kunle
>> 
>> On Dec 27, 2007 12:36 PM, david delbecq <de...@oma.be> wrote:
>> 
>>> Kunle Ola a écrit :
>>> > Hi,
>>> >
>>> > My setup:
>>> >
>>> > myfaces-1.2.0
>>> >
>>> > ....
>>> >
>>> > com.sun.faces.config.ConfigurationException : CONFIGURATION FAILED!
>>> null
>>> >         at
>>> > com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:212)
>>> >         at
>>> > com.sun.faces.config.ConfigureListener.contextInitialized(
>>> ConfigureListener.java:174)
>>> >
>>> Don't mix sun implementation of jsf and myfaces implementation! If you
>>> use myfaces-1.2.0, remove sun's jsf from your webapp!
>>>
>> 
>> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Setting-up-MyFaces-to-work-with-RichFaces-and-Facelets-tp14507192p18127645.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.


Re: Setting up MyFaces to work with RichFaces and Facelets

Posted by abchilla <ab...@hotmail.com>.
Hi,

thanks for that fix. I am new to this types aswell. I had the same issue. I
wanted to use MyFaces for my project, but now i just kicked those jars out,
so i did not get this error. 

I want to know 2 things:

Where can i read about what this listener ConfigureListener is for?

how do i bind myfaces into it instead of sun faces. in my web.xml there is
the listener for sun.faces
how do i exchange it with a listener for myfaces.

<listener>

       
<listener-class>com.sun.faces.config.ConfigureListener</listener-class>

    </listener>


thanks

Kunle Ola wrote:
> 
> David,
> 
> Thanks for the advice, this is my first experience with JSF.Your advice
> fixed my issue.
> 
> Thanks
> 
> Kunle
> 
> On Dec 27, 2007 12:36 PM, david delbecq <de...@oma.be> wrote:
> 
>> Kunle Ola a écrit :
>> > Hi,
>> >
>> > My setup:
>> >
>> > myfaces-1.2.0
>> >
>> > ....
>> >
>> > com.sun.faces.config.ConfigurationException : CONFIGURATION FAILED!
>> null
>> >         at
>> > com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:212)
>> >         at
>> > com.sun.faces.config.ConfigureListener.contextInitialized(
>> ConfigureListener.java:174)
>> >
>> Don't mix sun implementation of jsf and myfaces implementation! If you
>> use myfaces-1.2.0, remove sun's jsf from your webapp!
>>
> 
> 

-- 
View this message in context: http://www.nabble.com/Setting-up-MyFaces-to-work-with-RichFaces-and-Facelets-tp14507192p16024694.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.


Re: Setting up MyFaces to work with RichFaces and Facelets

Posted by Kunle Ola <ku...@curatiotech.com>.
David,

Thanks for the advice, this is my first experience with JSF.Your advice
fixed my issue.

Thanks

Kunle

On Dec 27, 2007 12:36 PM, david delbecq <de...@oma.be> wrote:

> Kunle Ola a écrit :
> > Hi,
> >
> > My setup:
> >
> > myfaces-1.2.0
> >
> > ....
> >
> > com.sun.faces.config.ConfigurationException : CONFIGURATION FAILED! null
> >         at
> > com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:212)
> >         at
> > com.sun.faces.config.ConfigureListener.contextInitialized(
> ConfigureListener.java:174)
> >
> Don't mix sun implementation of jsf and myfaces implementation! If you
> use myfaces-1.2.0, remove sun's jsf from your webapp!
>

Re: Setting up MyFaces to work with RichFaces and Facelets

Posted by david delbecq <de...@oma.be>.
Kunle Ola a écrit :
> Hi,
>
> My setup:
>
> myfaces-1.2.0
>
> ....
>
> com.sun.faces.config.ConfigurationException : CONFIGURATION FAILED! null
>         at 
> com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:212)
>         at 
> com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:174)
>
Don't mix sun implementation of jsf and myfaces implementation! If you 
use myfaces-1.2.0, remove sun's jsf from your webapp!