2 Replies Latest reply on Sep 17, 2008 11:36 AM by Sergio Pizarro

    Problem with ¿MyFaces?

    Sergio Pizarro Newbie

      Hello,


      I´m trying to run a web application on tomcatv5.5 and getting the following error:



      INFO: Reading config /WEB-INF/faces-config.xml
      17-sep-2008 10:06:49 org.apache.myfaces.config.FacesConfigurator logMetaInf
      INFO: Starting up MyFaces-package : myfaces-api in version : 1.2.1-SNAPSHOT from path : file:/C:/Documents%20and%20Settings/sergiopizarro/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/RGP/WEB-INF/lib/myfaces-api-1.2.1-SNAPSHOT.jar
      17-sep-2008 10:06:49 org.apache.myfaces.config.FacesConfigurator logMetaInf
      INFO: Starting up MyFaces-package : myfaces-impl in version : 1.2.1-SNAPSHOT from path : file:/C:/Documents%20and%20Settings/sergiopizarro/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/RGP/WEB-INF/lib/myfaces-impl-1.2.1-SNAPSHOT.jar
      17-sep-2008 10:06:49 org.apache.myfaces.config.FacesConfigurator logMetaInf
      INFO: MyFaces-package : tomahawk-sandbox not found.
      17-sep-2008 10:06:49 org.apache.myfaces.config.FacesConfigurator logMetaInf
      INFO: MyFaces-package : tomahawk not found.
      17-sep-2008 10:06:49 org.apache.myfaces.config.FacesConfigurator getApplicationObject
      GRAVE: null
      java.lang.reflect.InvocationTargetException
              at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
              at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
              at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
              at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
              at org.apache.myfaces.config.FacesConfigurator.getApplicationObject(FacesConfigurator.java:733)
              at org.apache.myfaces.config.FacesConfigurator.configureApplication(FacesConfigurator.java:622)
              at org.apache.myfaces.config.FacesConfigurator.configure(FacesConfigurator.java:276)
              at org.apache.myfaces.webapp.AbstractFacesInitializer.buildConfiguration(AbstractFacesInitializer.java:131)
              at org.apache.myfaces.webapp.Jsp20FacesInitializer.initContainerIntegration(Jsp20FacesInitializer.java:116)
              at org.apache.myfaces.webapp.AbstractFacesInitializer.initFaces(AbstractFacesInitializer.java:83)
              at org.apache.myfaces.webapp.StartupServletContextListener.contextInitialized(StartupServletContextListener.java:58)
              at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3764)
              at org.apache.catalina.core.StandardContext.start(StandardContext.java:4216)
              at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
              at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
              at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
              at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
              at org.apache.catalina.core.StandardService.start(StandardService.java:448)
              at org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
              at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
              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:295)
              at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
      Caused by: java.lang.NoClassDefFoundError: org/apache/commons/collections/map/LazyMap
              at org.ajax4jsf.application.ComponentsLoaderImpl.<init>(ComponentsLoaderImpl.java:27)
              at org.ajax4jsf.application.AjaxStateManager.<init>(AjaxStateManager.java:116)
              ... 26 more
      17-sep-2008 10:06:49 org.apache.myfaces.webapp.AbstractFacesInitializer initFaces
      GRAVE: An error occured while initializing MyFaces: java.lang.reflect.InvocationTargetException
      javax.faces.FacesException: java.lang.reflect.InvocationTargetException
              at org.apache.myfaces.config.FacesConfigurator.getApplicationObject(FacesConfigurator.java:748)
              at org.apache.myfaces.config.FacesConfigurator.configureApplication(FacesConfigurator.java:622)
              at org.apache.myfaces.config.FacesConfigurator.configure(FacesConfigurator.java:276)
              at org.apache.myfaces.webapp.AbstractFacesInitializer.buildConfiguration(AbstractFacesInitializer.java:131)
              at org.apache.myfaces.webapp.Jsp20FacesInitializer.initContainerIntegration(Jsp20FacesInitializer.java:116)
              at org.apache.myfaces.webapp.AbstractFacesInitializer.initFaces(AbstractFacesInitializer.java:83)
              at org.apache.myfaces.webapp.StartupServletContextListener.contextInitialized(StartupServletContextListener.java:58)
              at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3764)
              at org.apache.catalina.core.StandardContext.start(StandardContext.java:4216)
              at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
              at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
              at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
              at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
              at org.apache.catalina.core.StandardService.start(StandardService.java:448)
              at org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
              at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
              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:295)
              at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
      Caused by: java.lang.reflect.InvocationTargetException
              at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
              at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
              at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
              at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
              at org.apache.myfaces.config.FacesConfigurator.getApplicationObject(FacesConfigurator.java:733)
              ... 21 more
      Caused by: java.lang.NoClassDefFoundError: org/apache/commons/collections/map/LazyMap
              at org.ajax4jsf.application.ComponentsLoaderImpl.<init>(ComponentsLoaderImpl.java:27)
              at org.ajax4jsf.application.AjaxStateManager.<init>(AjaxStateManager.java:116)
              ... 26 more
      17-sep-2008 10:06:49 org.jboss.seam.servlet.SeamListener contextInitialized
      INFO: Welcome to Seam 2.0.2.SP1




      (The stack is bigger, only the part with errors is shown here).


      Last time i tried to run the application everything was going right, i haven´t change anything since then so i´m really lost with this problem.
      I´d really appreciate any help, cause i have no backup of the project (the repository is broken)