By the way: I've added new startup-logging which will now tell you if both the myfaces-implementation and the RI are on the classpath.
regards, Martin On 9/26/06, Cagatay Civici <[EMAIL PROTECTED]> wrote:
I suppose if you're using maven, profiles can be handy during packaging war. With different profiles, the resources will vary. For tld caching I remember a flag like cachingAllowed that is set in app's context.xml. On 9/26/06, Jefferson Parke <[EMAIL PROTECTED]> wrote: > Oh my goodness. I spent the last week configuring, searching, posting, and reconfiguring until you wrote the words I'd never seen before: "TLD cache". Deleting the tldCache.ser files under the work directory (eclipse\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\work directory for those of you using the Eclipse Tomcat plugin) fixed the problem. _Thank_ you! > > I'll just add, cause it was so painful for me, anyone getting PropertyNotFoundException's make sure you don't have both myfaces and RI jars in the classpath at the same time. And then if you're trying to remove one or the other, make sure you delete Tomcat's cached TLDs or you'll get ClassNotFoundException's. > > Thanks again, > Jeff > > > > On 9/26/06, Dennis Byrne < [EMAIL PROTECTED]> wrote: > > No way dude :) The TLD has got to be in the classpath somewhere. Try cleaning out the tomcat work dir, or double check the web.xml . > > > > BTW, if anyone knows anything about the TLD cache mechanism in tomcat, please put it in this thread. > > > > Dennis Byrne > > > > >-----Original Message----- > > >From: Jefferson Parke [mailto:[EMAIL PROTECTED] ] > > >Sent: Monday, September 25, 2006 10:39 PM > > >To: [email protected] > > >Subject: Switching between RI and MyFaces > > > > > >I'm trying to find an easy way to switch back and forth between RI and > > >MyFaces. As I understand it, it can be as easy as replacing jsf-api.jar and > > >jsf-impl.jar with myfaces-api.jar and myfaces-impl.jar and vice versa. For > > >me, when I try to switch from MyFaces back to RI (not for good mind you! :)) > > >I replace the jars as described and for some reason I get the following > > >exception: > > > > > >2006-09-25 20:31:04 StandardContext[/MyProject]Error configuring application > > >listener of class org.apache.myfaces.webapp.StartupServletContextListener > > >java.lang.ClassNotFoundException : > > >org.apache.myfaces.webapp.StartupServletContextListener > > > at org.apache.catalina.loader.WebappClassLoader.loadClass( > > >WebappClassLoader.java:1340) > > > at org.apache.catalina.loader.WebappClassLoader.loadClass ( > > >WebappClassLoader.java:1189) > > > at org.apache.catalina.core.StandardContext.listenerStart( > > >StandardContext.java:3775) > > > at org.apache.catalina.core.StandardContext.start(StandardContext.java > > >:4343) > > > at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083) > > > at org.apache.catalina.core.StandardHost.start(StandardHost.java:789) > > > at org.apache.catalina.core.ContainerBase.start (ContainerBase.java:1083) > > > at org.apache.catalina.core.StandardEngine.start(StandardEngine.java > > >:478) > > > at org.apache.catalina.core.StandardService.start(StandardService.java > > >:480) > > > at org.apache.catalina.core.StandardServer.start(StandardServer.java > > >:2313) > > > at org.apache.catalina.startup.Catalina.start(Catalina.java:556) > > > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > > > at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) > > > at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) > > > at java.lang.reflect.Method.invoke(Unknown Source) > > > at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:287) > > > at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425) > > > > > >I've checked web.xml and faces-config.xml and neither references MyFaces. > > >My understanding is that myfaces_core.tld in myfaces-impl.jar contains the > > >reference to StartupServletContextListener but clearly that tld is of no > > >consequence because myfaces-impl.jar is not in my classpath (otherwise it > > >would have also found StartupServletContextListener to begin with). > > > > > >Can anyone suggest other files that may reference MyFaces, and > > >StartupServletContextListener in particular? Is my understanding about how > > >to switch back and forth correct? > > > > > >Thanks for any help. > > > > > >- Jeff > > > > > > > > > > >
-- http://www.irian.at Your JSF powerhouse - JSF Consulting, Development and Courses in English and German Professional Support for Apache MyFaces

