Return-Path: Delivered-To: apmail-myfaces-users-archive@www.apache.org Received: (qmail 96713 invoked from network); 14 Sep 2007 00:56:06 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 14 Sep 2007 00:56:06 -0000 Received: (qmail 3872 invoked by uid 500); 14 Sep 2007 00:55:57 -0000 Delivered-To: apmail-myfaces-users-archive@myfaces.apache.org Received: (qmail 3838 invoked by uid 500); 14 Sep 2007 00:55:57 -0000 Mailing-List: contact users-help@myfaces.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "MyFaces Discussion" Delivered-To: mailing list users@myfaces.apache.org Received: (qmail 3820 invoked by uid 99); 14 Sep 2007 00:55:57 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Sep 2007 17:55:57 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of ole.ersoy@gmail.com designates 64.233.166.176 as permitted sender) Received: from [64.233.166.176] (HELO py-out-1112.google.com) (64.233.166.176) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 14 Sep 2007 00:57:36 +0000 Received: by py-out-1112.google.com with SMTP id u77so1544355pyb for ; Thu, 13 Sep 2007 17:55:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:user-agent:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding; bh=DzN2lkjLAw8rKNVvR+D3xp+NJbGhZKG4PpD8YomXF6A=; b=CQgYJD56MsJLhnULz2ajf8d3yk0DIZwC+tLTVXuxs0W6g6lZL7fouivmQRqd8hF4SXHMWXdFqz0iWwKkmUjowJkKfvePdcu91hbOlkWBq5h58dD9C4nbhCazYFkubHEjMOgS+f0vTbR+z5nHyJZpYZ4u3ufky7T+gw7ZkENAjWk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:user-agent:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding; b=lzwGqswSmFnxVutOZrqUPNTmDtz2arYQT+zktGBbM/OWvYTmwaUwAloSRvcwhWqmxOL0V2nQTjn0GaRuKnIdu5nip9Cvg0U8u6S+dw0mAnE1vVhMMCSWR6yJIZTXHZHZ7LEx88lhOlUClt8l8On8otHTL73xBzLbY7yJG9rDZTk= Received: by 10.35.131.13 with SMTP id i13mr1522405pyn.1189731333522; Thu, 13 Sep 2007 17:55:33 -0700 (PDT) Received: from ?192.168.1.6? ( [98.193.70.182]) by mx.google.com with ESMTPS id f78sm243741pyh.2007.09.13.17.55.32 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 13 Sep 2007 17:55:32 -0700 (PDT) Message-ID: <46E9DB7F.7010709@gmail.com> Date: Thu, 13 Sep 2007 19:53:19 -0500 From: Ole Ersoy User-Agent: Thunderbird 2.0.0.5 (X11/20070719) MIME-Version: 1.0 To: dev@myfaces.apache.org CC: users@myfaces.apache.org Subject: Re: java.lang.IllegalStateException: No Factories configured for this Application References: <46E99DEE.3070002@gmail.com> <46E9AD26.3070207@gmail.com> In-Reply-To: <46E9AD26.3070207@gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Got it. I changed the scope of the el dependency to provided, and it took care of it. javax.servlet.jsp jsp-api 2.1 provided Cheers, - Ole Ole Ersoy wrote: > Ok - I think I have it isolated. I have a working component that works > fine using ValueBindings. However, I figured I'd go ahead and get > everything upgraded to the unified EL, so I followed the steps in the > migration guide: > > http://java.sun.com/javaee/javaserverfaces/docs/ReleaseNotes.html > > And changed over to using ValueExpression instead of ValueBinding. This > required that I add the dependency: > > > javax.servlet.jsp > jsp-api > 2.1 > compile > > > This is causing the ruckus. If I revert to using ValueBinding and > remove this dependency the app runs fine. > > Maybe I should have platform scope or something for this dependency. > I'll give that a shot next. > > Cheers, > - Ole > > > > > > Ole Ersoy wrote: >> Hi, >> >> I get a java.lang.IllegalStateException: No Factories configured for >> this Application when adding a dependency to my webapp. Someone >> mentioned on the users list that deleting the tomcat work directory >> might solve it, but this is different. It seems like it's a class >> loading issue. >> >> I'm running with tomcat 6.0.14 and jdk 1.6 >> >> To isolate what's happening I first created a maven project from >> scratch (component.test) and added it as a dependency to the webapp. >> The webapp runs fine with this dependency. Then I added a jsf >> component and renderer to the component.test project, updated this >> projects dependencies, and ran mvn clean install on component.test. >> Then I did a mvn clean package on the corresponding webapp and >> redeployed it. Now I get this in the log: >> >> INFO: Deploying web application archive test0.war >> Sep 13, 2007 2:55:54 PM >> org.apache.myfaces.webapp.DefaultFacesInitializer initFaces >> SEVERE: Error initializing MyFaces: null >> java.lang.NullPointerException >> at >> org.apache.myfaces.webapp.DefaultFacesInitializer.initFaces(DefaultFacesInitializer.java:102) >> >> at >> org.apache.myfaces.webapp.StartupServletContextListener.contextInitialized(StartupServletContextListener.java:57) >> >> 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.deployWAR(HostConfig.java:825) >> at >> org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:515) >> at >> org.apache.catalina.startup.HostConfig.check(HostConfig.java:1220) >> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >> >> The pom for the component.test project looks like this: >> >> > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 >> http://maven.apache.org/maven-v4_0_0.xsd"> >> 4.0.0 >> test >> component.test >> jar >> 1.0-SNAPSHOT >> component.test >> http://maven.apache.org >> >> >> org.apache.myfaces.core >> myfaces-api >> 1.2.0 >> compile >> >> >> >> org.apache.myfaces.core >> myfaces-impl >> 1.2.0 >> compile >> >> >> >> javax.servlet.jsp >> jsp-api >> 2.1 >> compile >> >> >> >> junit >> junit >> 4.4 >> test >> >> >> >> >> Any thoughts on why this is happening? >> >> Thanks, >> - Ole >> >> >> >> >