- This topic has 7 replies, 3 voices, and was last updated 17 years, 7 months ago by
Riyad Kalla.
-
AuthorPosts
-
Ok, this is strange.
After doing JSF development using a separate Tomcat setup (Tomcat 4), now when I open a project under Tomcat 5 and start Tomcat from within MyEclipse, I’m getting JSF errors.
The projects starting up giving these JSF errors were never JSF projects (and still aren’t), so I don’t know why this is happening.
ONLY THE ONE NON-JSF project is open when these Tomcat startup errors (see below) happen. I’ve tried this Tomcat 5 startup with two separate non-JSF projects (each one was the only project open for each test) and got the same errors.
(If I go to the MyEclipse menu for these projects, “Add JSF Capabilities” is an option — meaning no JSF is in there now)
Any ideas?
Thansks.
— M
==========================
SEVERE: Exception sending context initialized event to listener instance of class com.sun.faces.config.ConfigureListener
javax.faces.FacesException: java.lang.ClassCastException: org.apache.myfaces.renderkit.html.ext.HtmlButtonRenderer
at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:336)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3669)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4104)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:894)
at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:857)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:475)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1102)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1020)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1012)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
at org.apache.catalina.core.StandardService.start(StandardService.java:450)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:683)
at org.apache.catalina.startup.Catalina.start(Catalina.java:537)
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:585)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:271)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:409)
Caused by: java.lang.ClassCastException: org.apache.myfaces.renderkit.html.ext.HtmlButtonRenderer
at com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:910)
at com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:961)
at com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:408)
at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:332)
… 24 more
Jan 14, 2006 10:14:16 AM org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart
Jan 14, 2006 10:14:16 AM org.apache.catalina.core.StandardContext start
SEVERE: Context [/JSFLoginDemo] startup failed due to previous errors
Jan 14, 2006 10:14:19 AM com.sun.faces.config.rules.ConverterRule end
WARNING: [ConverterRule]{faces-config/converter} Merge(null,java.math.BigDecimal)
Jan 14, 2006 10:14:19 AM com.sun.faces.config.rules.ConverterRule end
WARNING: [ConverterRule]{faces-config/converter} Merge(null,java.math.BigInteger)
Jan 14, 2006 10:14:19 AM com.sun.faces.config.rules.ManagedBeanRule end
WARNING: [ManagedBeanRule]{faces-config/managed-bean} Merge(user)
Jan 14, 2006 10:14:19 AM com.sun.faces.config.rules.NavigationRuleRule end
WARNING: [NavigationRuleRule]{faces-config/navigation-rule} Merge(/index.jsp)
Jan 14, 2006 10:14:20 AM org.apache.catalina.core.StandardContext listenerStart
SEVERE: Exception sending context initialized event to listener instance of class com.sun.faces.config.ConfigureListener
javax.faces.FacesException: java.lang.ClassCastException: org.apache.myfaces.renderkit.html.ext.HtmlButtonRenderer
at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:336)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3669)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4104)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:894)
at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:857)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:475)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1102)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1020)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1012)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
at org.apache.catalina.core.StandardService.start(StandardService.java:450)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:683)
at org.apache.catalina.startup.Catalina.start(Catalina.java:537)
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:585)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:271)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:409)
Caused by: java.lang.ClassCastException: org.apache.myfaces.renderkit.html.ext.HtmlButtonRenderer
at com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:910)
at com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:961)
at com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:408)
at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:332)
… 24 more
Riyad KallaMemberMork,
If you have ever deployed a project that uses JSF to your Tomcat 5 install regardless of what projects you have open or don’t have open, every time you run Tomcat 5, as it’s starting up, it may be causing that busted JSF project (could be unrealted to the ones you are working on) to keep blowing up on startup.Try navigating to your Tomcat5’s webapps directory, look at all the WARs and directories there, do you see any that don’t match the non-JSF projects you were working with in MyEclipse?
Thanks. I did find one problem. It was a WAR file that had some MyFaces stuff in it. I deleted that (it wasn’t a project in MyEclipse).
I still am getting two instances of start up errors in Tomcat 5. I don’t even have any projects open at the time when I start Tomcat 5. However, the “Faces” instances I found in my Tomcat 5 folder all now refer to the two test projects that are in MyEclipse.
Do you have any other suggestions?
Thanks again.
— M
Riyad KallaMemberMork,
The projects you have deployed in Tomcat and the projects that run when you start Tomcat have nothing to do with the projects you have open in MyEclipse.My suggestion is to follow the Tomcat startup log back far enough to see which app Tomcat was trying to start before the problem occurs, and then remove that app. Or just remove all the apps.
There weren’t any start up errors in the Tomcat log when starting Tomcat by itself. The erorrs only happend when starting Tomcat 5 from within MyEclipse. The errors appeared in the MyEclipse Console only.
I just deleted a few old “hello world” JSF applications (aren’t they all!? <g>) and that fixed it. Not sure why/how this problem came up, but I haven’t started Tomcat 5 from within MyEclipse recently so it could have crept in a while back.
Thanks very much for your replies!!!
Best,
— M
Riyad KallaMemberVery strange Mork, sometimes those stray projects get you. Glad it’s fixed now.
yindeeMemberThanks mates.. I use MyElipse 5.1.1GA follow a MyEclipse_JSF_QuickStart file which has been a very good guidness for me . Aslo I’ve got the same problem fixed by starting tomcat itself then it’s work now !!!
Riyad KallaMemberyindee,
Glad to hear it. -
AuthorPosts