Return-Path: X-Original-To: apmail-myfaces-users-archive@www.apache.org Delivered-To: apmail-myfaces-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2F1959CCD for ; Wed, 23 May 2012 08:53:35 +0000 (UTC) Received: (qmail 75484 invoked by uid 500); 23 May 2012 08:53:34 -0000 Delivered-To: apmail-myfaces-users-archive@myfaces.apache.org Received: (qmail 75192 invoked by uid 500); 23 May 2012 08:53:30 -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 75123 invoked by uid 99); 23 May 2012 08:53:27 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 May 2012 08:53:27 +0000 X-ASF-Spam-Status: No, hits=-0.5 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of lu4242@gmail.com designates 209.85.210.53 as permitted sender) Received: from [209.85.210.53] (HELO mail-pz0-f53.google.com) (209.85.210.53) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 May 2012 08:53:20 +0000 Received: by dadg9 with SMTP id g9so10574768dad.12 for ; Wed, 23 May 2012 01:52:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=kAv1UOfkEaKJ2P2wgN5VB8zE+eLm9XhDDwsFabsLJTw=; b=SItjovIMWu2Ugwy/lfSMPSrYM6VeE+L/8q1TjDUEdkYm3j2+TQOG9+jYHkUvCpRVR7 I7BiW1MjzJ1gUGDtxbMHxlsK8mBITcCuVAQ/x5DZlIHTiSwnz0mZAgUo8QzxzmyJarAs hWVgC2wM25PMfSOJK45pA4/PtRfY0sA1E1LT9VYtQ1hSEKUjwBvYXS/h5vHb6z4hFRyC QRw/EpzxAvTbNF5K0Dl2qlS+wkzBue5KhdnSMogWTnbVAmoFyN/1ftNixeJimreEZz80 7JamtxOy7cTmK4Y43BeN5TEqiO6ko7bocm6TVtxaqu4CTYfULw8/AYuOlpJMFQwP2ywz XLLQ== MIME-Version: 1.0 Received: by 10.68.223.71 with SMTP id qs7mr6147387pbc.9.1337763178192; Wed, 23 May 2012 01:52:58 -0700 (PDT) Received: by 10.142.99.9 with HTTP; Wed, 23 May 2012 01:52:58 -0700 (PDT) In-Reply-To: References: Date: Wed, 23 May 2012 10:52:58 +0200 Message-ID: Subject: Re: myfaces slow startup on GAE From: Leonardo Uribe To: MyFaces Discussion Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi I tried to run a simple helloworld demo as the instructions says with Intellij. See it here: http://lu4242.appspot.com Here is the log (the lastest request is first, see log below): It takes 7616ms to start the app. The config takes from I 2012-05-23 01:44:21.428 org.apache.myfaces.webapp.AbstractFacesInitializer initFaces: ServletContext initialized. to 2012-05-23 01:44:24.228 /home.jsf 200 7616ms 1kb Mozilla/5.0 (Windows NT 6.1; WOW64; rv:12.0) Gecko/20100101 Firefox/12.0 I think it is possible to have a faster setup, just checking when GAE is running and doing some simplifications (scan jars directly on WEB-INF/lib and avoid Classpath.search() ). I think it is interesting to tune MyFaces core for GAE, so any suggestions and help is most welcome. regards, Leonardo Uribe 2012-05-23 01:45:16.994 /helloWorld.jsf 200 64ms 2kb Mozilla/5.0 (Windows NT 6.1; WOW64; rv:12.0) Gecko/20100101 Firefox/12.0 2012-05-23 01:45:15.973 /helloWorld.jsf 200 85ms 1kb Mozilla/5.0 (Windows NT 6.1; WOW64; rv:12.0) Gecko/20100101 Firefox/12.0 2012-05-23 01:45:13.298 /helloWorld.jsf 200 474ms 2kb Mozilla/5.0 (Windows NT 6.1; WOW64; rv:12.0) Gecko/20100101 Firefox/12.0 I 2012-05-23 01:45:13.031 org.apache.myfaces.util.ExternalSpecifications isUnifiedELAvailable: MyFaces Unified EL support disabled I 2012-05-23 01:45:13.222 javax.servlet.ServletContext log: No state saving method defined, assuming default server state saving 2012-05-23 01:44:24.228 /home.jsf 200 7616ms 1kb Mozilla/5.0 (Windows NT 6.1; WOW64; rv:12.0) Gecko/20100101 Firefox/12.0 I 2012-05-23 01:44:18.539 org.apache.myfaces.webapp.Jsp20FacesInitializer initContainerIntegration: This application isn't running in a JSP 2.1 container. I 2012-05-23 01:44:18.540 org.apache.myfaces.webapp.Jsp20FacesInitializer initContainerIntegration: Either you haven't specified the ExpressionFactory implementation, or an err I 2012-05-23 01:44:18.940 org.apache.myfaces.config.DefaultFacesConfigurationProvider getStandardFacesConfig: Reading standard config META-INF/standard-faces-config.xml I 2012-05-23 01:44:20.325 org.apache.myfaces.config.DefaultFacesConfigurationProvider getWebAppFacesConfig: Reading config /WEB-INF/faces-config.xml I 2012-05-23 01:44:20.737 org.apache.myfaces.config.LogMetaInfUtils logArtifact: Artifact 'myfaces-bundle' was found in version '2.1.8-SNAPSHOT' from path 'file:/base/data/home I 2012-05-23 01:44:20.930 org.apache.myfaces.util.ExternalSpecifications isBeanValidationAvailable: MyFaces Bean Validation support disabled I 2012-05-23 01:44:21.341 org.apache.myfaces.application.ApplicationImpl getProjectStage: Couldn't discover the current project stage, using Production I 2012-05-23 01:44:21.341 org.apache.myfaces.config.FacesConfigurator handleSerialFactory: Serialization provider : class org.apache.myfaces.shared_impl.util.serial.DefaultSeri I 2012-05-23 01:44:21.348 org.apache.myfaces.config.annotation.DefaultLifecycleProviderFactory getLifecycleProvider: Using LifecycleProvider org.apache.myfaces.config.annotatio I 2012-05-23 01:44:21.428 org.apache.myfaces.webapp.AbstractFacesInitializer initFaces: ServletContext initialized. I 2012-05-23 01:44:21.432 org.apache.myfaces.webapp.WebConfigParamsLogger logWebContextParams: Tomahawk jar not available. Autoscrolling, DetectJavascript, AddResourceClass and I 2012-05-23 01:44:21.432 org.apache.myfaces.webapp.WebConfigParamsLogger logWebContextParams: Scanning for context init parameters not defined. It is not necessary to define t I 2012-05-23 01:44:21.432 org.apache.myfaces.webapp.WebConfigParamsLogger logWebContextParams: No context init parameter 'javax.faces.RESOURCE_EXCLUDES' found, using default va I 2012-05-23 01:44:21.433 org.apache.myfaces.webapp.WebConfigParamsLogger logWebContextParams: No context init parameter 'javax.faces.STATE_SAVING_METHOD' found, using default I 2012-05-23 01:44:21.433 org.apache.myfaces.webapp.WebConfigParamsLogger logWebContextParams: No context init parameter 'javax.faces.FULL_STATE_SAVING_VIEW_IDS' found. I 2012-05-23 01:44:21.433 org.apache.myfaces.webapp.WebConfigParamsLogger logWebContextParams: No context init parameter 'javax.faces.PARTIAL_STATE_SAVING' found, using default I 2012-05-23 01:44:21.433 org.apache.myfaces.webapp.WebConfigParamsLogger logWebContextParams: No context init parameter 'javax.faces.FACELETS_SUFFIX' found, using default valu I 2012-05-23 01:44:21.433 org.apache.myfaces.webapp.WebConfigParamsLogger logWebContextParams: No context init parameter 'javax.faces.FACELETS_VIEW_MAPPINGS' found. I 2012-05-23 01:44:21.433 org.apache.myfaces.webapp.WebConfigParamsLogger logWebContextParams: No context init parameter 'javax.faces.HONOR_CURRENT_COMPONENT_ATTRIBUTES' found, I 2012-05-23 01:44:21.433 org.apache.myfaces.webapp.WebConfigParamsLogger logWebContextParams: No context init parameter 'javax.faces.VALIDATE_EMPTY_FIELDS' found, using defaul I 2012-05-23 01:44:21.433 org.apache.myfaces.webapp.WebConfigParamsLogger logWebContextParams: No context init parameter 'javax.faces.INTERPRET_EMPTY_STRING_SUBMITTED_VALUES_AS I 2012-05-23 01:44:21.433 org.apache.myfaces.webapp.WebConfigParamsLogger logWebContextParams: No context init parameter 'org.apache.myfaces.ENUM_CONVERTER_ALLOW_STRING_PASSTRO I 2012-05-23 01:44:21.433 org.apache.myfaces.webapp.WebConfigParamsLogger logWebContextParams: No context init parameter 'javax.faces.validator.DISABLE_DEFAULT_BEAN_VALIDATOR' I 2012-05-23 01:44:21.433 org.apache.myfaces.webapp.WebConfigParamsLogger logWebContextParams: No context init parameter 'javax.faces.CONFIG_FILES' found. I 2012-05-23 01:44:21.433 org.apache.myfaces.webapp.WebConfigParamsLogger logWebContextParams: No context init parameter 'javax.faces.LIFECYCLE_ID' found. I 2012-05-23 01:44:21.433 org.apache.myfaces.webapp.WebConfigParamsLogger logWebContextParams: No context init parameter 'org.apache.myfaces.ERROR_HANDLER' found. I 2012-05-23 01:44:21.433 org.apache.myfaces.webapp.WebConfigParamsLogger logWebContextParams: No context init parameter 'org.apache.myfaces.CHECKED_VIEWID_CACHE_SIZE' found, u I 2012-05-23 01:44:21.433 org.apache.myfaces.webapp.WebConfigParamsLogger logWebContextParams: No context init parameter 'org.apache.myfaces.CHECKED_VIEWID_CACHE_ENABLED' found I 2012-05-23 01:44:21.433 org.apache.myfaces.webapp.WebConfigParamsLogger logWebContextParams: No context init parameter 'org.apache.myfaces.PRETTY_HTML' found, using default v I 2012-05-23 01:44:21.433 org.apache.myfaces.webapp.WebConfigParamsLogger logWebContextParams: No context init parameter 'org.apache.myfaces.ALLOW_JAVASCRIPT' found, using defa I 2012-05-23 01:44:21.433 org.apache.myfaces.webapp.WebConfigParamsLogger logWebContextParams: No context init parameter 'org.apache.myfaces.CONFIG_REFRESH_PERIOD' found, using I 2012-05-23 01:44:21.433 org.apache.myfaces.webapp.WebConfigParamsLogger logWebContextParams: No context init parameter 'org.apache.myfaces.VIEWSTATE_JAVASCRIPT' found, using I 2012-05-23 01:44:21.433 org.apache.myfaces.webapp.WebConfigParamsLogger logWebContextParams: No context init parameter 'org.apache.myfaces.RENDER_VIEWSTATE_ID' found, using d I 2012-05-23 01:44:21.434 org.apache.myfaces.webapp.WebConfigParamsLogger logWebContextParams: No context init parameter 'org.apache.myfaces.STRICT_XHTML_LINKS' found, using de I 2012-05-23 01:44:21.434 org.apache.myfaces.webapp.WebConfigParamsLogger logWebContextParams: No context init parameter 'org.apache.myfaces.RENDER_CLEAR_JAVASCRIPT_FOR_BUTTON' I 2012-05-23 01:44:21.434 org.apache.myfaces.webapp.WebConfigParamsLogger logWebContextParams: No context init parameter 'org.apache.myfaces.RENDER_HIDDEN_FIELDS_FOR_LINK_PARAM I 2012-05-23 01:44:21.434 org.apache.myfaces.webapp.WebConfigParamsLogger logWebContextParams: No context init parameter 'org.apache.myfaces.SAVE_FORM_SUBMIT_LINK_IE' found, us I 2012-05-23 01:44:21.434 org.apache.myfaces.webapp.WebConfigParamsLogger logWebContextParams: No context init parameter 'org.apache.myfaces.DELEGATE_FACES_SERVLET' found. I 2012-05-23 01:44:21.434 org.apache.myfaces.webapp.WebConfigParamsLogger logWebContextParams: No context init parameter 'org.apache.myfaces.REFRESH_TRANSIENT_BUILD_ON_PSS' fou I 2012-05-23 01:44:21.434 org.apache.myfaces.webapp.WebConfigParamsLogger logWebContextParams: No context init parameter 'org.apache.myfaces.REFRESH_TRANSIENT_BUILD_ON_PSS_PRES I 2012-05-23 01:44:21.434 org.apache.myfaces.webapp.WebConfigParamsLogger logWebContextParams: No context init parameter 'org.apache.myfaces.VALIDATE_XML' found. I 2012-05-23 01:44:21.434 org.apache.myfaces.webapp.WebConfigParamsLogger logWebContextParams: No context init parameter 'org.apache.myfaces.WRAP_SCRIPT_CONTENT_WITH_XML_COMMEN I 2012-05-23 01:44:21.434 org.apache.myfaces.webapp.WebConfigParamsLogger logWebContextParams: No context init parameter 'org.apache.myfaces.RENDER_FORM_SUBMIT_SCRIPT_INLINE' f I 2012-05-23 01:44:21.434 org.apache.myfaces.webapp.WebConfigParamsLogger logWebContextParams: No context init parameter 'org.apache.myfaces.DEBUG_PHASE_LISTENER' found. I 2012-05-23 01:44:21.434 org.apache.myfaces.webapp.WebConfigParamsLogger logWebContextParams: No context init parameter 'org.apache.myfaces.STRICT_JSF_2_REFRESH_TARGET_AJAX' f I 2012-05-23 01:44:21.434 org.apache.myfaces.webapp.WebConfigParamsLogger logWebContextParams: No context init parameter 'org.apache.myfaces.STRICT_JSF_2_CC_EL_RESOLVER' found, I 2012-05-23 01:44:21.434 org.apache.myfaces.webapp.WebConfigParamsLogger logWebContextParams: No context init parameter 'org.apache.myfaces.DEFAULT_RESPONSE_WRITER_CONTENT_TYP I 2012-05-23 01:44:21.434 org.apache.myfaces.webapp.WebConfigParamsLogger logWebContextParams: No context init parameter 'org.apache.myfaces.VIEW_UNIQUE_IDS_CACHE_ENABLED' foun I 2012-05-23 01:44:21.434 org.apache.myfaces.webapp.WebConfigParamsLogger logWebContextParams: No context init parameter 'org.apache.myfaces.COMPONENT_UNIQUE_IDS_CACHE_SIZE' fo I 2012-05-23 01:44:21.434 org.apache.myfaces.webapp.WebConfigParamsLogger logWebContextParams: No context init parameter 'org.apache.myfaces.SUPPORT_JSP_AND_FACES_EL' found, us I 2012-05-23 01:44:21.435 org.apache.myfaces.webapp.WebConfigParamsLogger logWebContextParams: No context init parameter 'org.apache.myfaces.FLASH_SCOPE_DISABLED' found, using I 2012-05-23 01:44:21.435 org.apache.myfaces.webapp.WebConfigParamsLogger logWebContextParams: No context init parameter 'org.apache.myfaces.RESOURCE_MAX_TIME_EXPIRES' found, u I 2012-05-23 01:44:21.435 org.apache.myfaces.webapp.WebConfigParamsLogger logWebContextParams: No context init parameter 'org.apache.myfaces.RESOURCE_HANDLER_CACHE_SIZE' found, I 2012-05-23 01:44:21.435 org.apache.myfaces.webapp.WebConfigParamsLogger logWebContextParams: No context init parameter 'org.apache.myfaces.RESOURCE_HANDLER_CACHE_ENABLED' fou I 2012-05-23 01:44:21.435 org.apache.myfaces.webapp.WebConfigParamsLogger logWebContextParams: No context init parameter 'org.apache.myfaces.USE_ENCRYPTION' found, using defaul I 2012-05-23 01:44:21.435 org.apache.myfaces.webapp.WebConfigParamsLogger logWebContextParams: No context init parameter 'org.apache.myfaces.ALGORITHM' found, using default val I 2012-05-23 01:44:21.435 org.apache.myfaces.webapp.WebConfigParamsLogger logWebContextParams: No context init parameter 'org.apache.myfaces.SECRET.CACHE' found. I 2012-05-23 01:44:21.435 org.apache.myfaces.webapp.WebConfigParamsLogger logWebContextParams: No context init parameter 'org.apache.myfaces.ALGORITHM.IV' found. I 2012-05-23 01:44:21.435 org.apache.myfaces.webapp.WebConfigParamsLogger logWebContextParams: No context init parameter 'org.apache.myfaces.ALGORITHM.PARAMETERS' found, using I 2012-05-23 01:44:21.435 org.apache.myfaces.webapp.WebConfigParamsLogger logWebContextParams: No context init parameter 'org.apache.myfaces.SERIAL_FACTORY' found. I 2012-05-23 01:44:21.435 org.apache.myfaces.webapp.WebConfigParamsLogger logWebContextParams: No context init parameter 'org.apache.myfaces.COMPRESS_STATE_IN_CLIENT' found, us I 2012-05-23 01:44:21.435 org.apache.myfaces.webapp.WebConfigParamsLogger logWebContextParams: No context init parameter 'org.apache.myfaces.MAC_ALGORITHM' found, using default I 2012-05-23 01:44:21.436 org.apache.myfaces.webapp.WebConfigParamsLogger logWebContextParams: No context init parameter 'org.apache.myfaces.MAC_SECRET' found. I 2012-05-23 01:44:21.436 org.apache.myfaces.webapp.WebConfigParamsLogger logWebContextParams: No context init parameter 'org.apache.myfaces.MAC_SECRET.CACHE' found. I 2012-05-23 01:44:21.436 org.apache.myfaces.webapp.WebConfigParamsLogger logWebContextParams: No context init parameter 'javax.faces.DATETIMECONVERTER_DEFAULT_TIMEZONE_IS_SYST I 2012-05-23 01:44:21.436 org.apache.myfaces.webapp.WebConfigParamsLogger logWebContextParams: No context init parameter 'javax.faces.PROJECT_STAGE' found, using default value I 2012-05-23 01:44:21.436 org.apache.myfaces.webapp.WebConfigParamsLogger logWebContextParams: No context init parameter 'org.apache.myfaces.LAZY_LOAD_CONFIG_OBJECTS' found, us I 2012-05-23 01:44:21.436 org.apache.myfaces.webapp.WebConfigParamsLogger logWebContextParams: No context init parameter 'org.apache.myfaces.STRICT_JSF_2_ALLOW_SLASH_LIBRARY_NA I 2012-05-23 01:44:21.436 org.apache.myfaces.webapp.WebConfigParamsLogger logWebContextParams: No context init parameter 'org.apache.myfaces.VALIDATE' found, using default valu I 2012-05-23 01:44:21.436 org.apache.myfaces.webapp.WebConfigParamsLogger logWebContextParams: No context init parameter 'org.apache.myfaces.annotation.SCAN_PACKAGES' found. I 2012-05-23 01:44:21.436 org.apache.myfaces.webapp.WebConfigParamsLogger logWebContextParams: No context init parameter 'org.apache.myfaces.EL_RESOLVER_COMPARATOR' found. I 2012-05-23 01:44:21.436 org.apache.myfaces.webapp.WebConfigParamsLogger logWebContextParams: No context init parameter 'org.apache.myfaces.EL_RESOLVER_PREDICATE' found. I 2012-05-23 01:44:21.436 org.apache.myfaces.webapp.WebConfigParamsLogger logWebContextParams: No context init parameter 'org.apache.myfaces.CHECKED_VIEWID_CACHE_SIZE' found, u I 2012-05-23 01:44:21.437 org.apache.myfaces.webapp.WebConfigParamsLogger logWebContextParams: No context init parameter 'org.apache.myfaces.CHECKED_VIEWID_CACHE_ENABLED' found I 2012-05-23 01:44:21.437 org.apache.myfaces.webapp.WebConfigParamsLogger logWebContextParams: No context init parameter 'org.apache.myfaces.ERROR_TEMPLATE_RESOURCE' found, usi I 2012-05-23 01:44:21.437 org.apache.myfaces.webapp.WebConfigParamsLogger logWebContextParams: No context init parameter 'org.apache.myfaces.DEBUG_TEMPLATE_RESOURCE' found, usi I 2012-05-23 01:44:21.437 org.apache.myfaces.webapp.WebConfigParamsLogger logWebContextParams: No context init parameter 'org.apache.myfaces.ERROR_HANDLING' found, using defaul I 2012-05-23 01:44:21.437 org.apache.myfaces.webapp.WebConfigParamsLogger logWebContextParams: No context init parameter 'org.apache.myfaces.NUMBER_OF_VIEWS_IN_SESSION' found, I 2012-05-23 01:44:21.437 org.apache.myfaces.webapp.WebConfigParamsLogger logWebContextParams: No context init parameter 'org.apache.myfaces.NUMBER_OF_SEQUENTIAL_VIEWS_IN_SESSI I 2012-05-23 01:44:21.437 org.apache.myfaces.webapp.WebConfigParamsLogger logWebContextParams: No context init parameter 'org.apache.myfaces.SERIALIZE_STATE_IN_SESSION' found, I 2012-05-23 01:44:21.437 org.apache.myfaces.webapp.WebConfigParamsLogger logWebContextParams: No context init parameter 'org.apache.myfaces.COMPRESS_STATE_IN_SESSION' found, u I 2012-05-23 01:44:21.437 org.apache.myfaces.webapp.WebConfigParamsLogger logWebContextParams: No context init parameter 'org.apache.myfaces.CACHE_OLD_VIEWS_IN_SESSION_MODE' fo I 2012-05-23 01:44:21.437 org.apache.myfaces.webapp.WebConfigParamsLogger logWebContextParams: No context init parameter 'org.apache.myfaces.USE_FLASH_SCOPE_PURGE_VIEWS_IN_SESS I 2012-05-23 01:44:21.437 org.apache.myfaces.webapp.WebConfigParamsLogger logWebContextParams: No context init parameter 'org.apache.myfaces.HANDLE_STATE_CACHING_MECHANICS' fou I 2012-05-23 01:44:21.437 org.apache.myfaces.webapp.WebConfigParamsLogger logWebContextParams: No context init parameter 'org.apache.myfaces.USE_MULTIPLE_JS_FILES_FOR_JSF_UNCOM I 2012-05-23 01:44:21.438 org.apache.myfaces.webapp.WebConfigParamsLogger logWebContextParams: No context init parameter 'org.apache.myfaces.JSF_JS_MODE' found, using default v I 2012-05-23 01:44:21.438 org.apache.myfaces.webapp.WebConfigParamsLogger logWebContextParams: No context init parameter 'org.apache.myfaces.SERVICE_PROVIDER_FINDER' found. I 2012-05-23 01:44:21.438 org.apache.myfaces.webapp.WebConfigParamsLogger logWebContextParams: No context init parameter 'javax.faces.DISABLE_FACELET_JSF_VIEWHANDLER' found, us I 2012-05-23 01:44:21.438 org.apache.myfaces.webapp.WebConfigParamsLogger logWebContextParams: No context init parameter 'org.apache.myfaces.SAVE_STATE_WITH_VISIT_TREE_ON_PSS' I 2012-05-23 01:44:21.438 org.apache.myfaces.webapp.WebConfigParamsLogger logWebContextParams: No context init parameter 'org.apache.myfaces.CHECK_ID_PRODUCTION_MODE' found, us I 2012-05-23 01:44:21.438 org.apache.myfaces.webapp.WebConfigParamsLogger logWebContextParams: No context init parameter 'javax.faces.FACELETS_BUFFER_SIZE' found. I 2012-05-23 01:44:21.438 org.apache.myfaces.webapp.WebConfigParamsLogger logWebContextParams: No context init parameter 'facelets.BUFFER_SIZE' found. I 2012-05-23 01:44:21.438 org.apache.myfaces.webapp.WebConfigParamsLogger logWebContextParams: No context init parameter 'javax.faces.FACELETS_DECORATORS' found. I 2012-05-23 01:44:21.438 org.apache.myfaces.webapp.WebConfigParamsLogger logWebContextParams: No context init parameter 'facelets.DECORATORS' found. I 2012-05-23 01:44:21.438 org.apache.myfaces.webapp.WebConfigParamsLogger logWebContextParams: No context init parameter 'javax.faces.FACELETS_LIBRARIES' found. I 2012-05-23 01:44:21.438 org.apache.myfaces.webapp.WebConfigParamsLogger logWebContextParams: No context init parameter 'facelets.LIBRARIES' found. I 2012-05-23 01:44:21.439 org.apache.myfaces.webapp.WebConfigParamsLogger logWebContextParams: No context init parameter 'javax.faces.FACELETS_REFRESH_PERIOD' found, using defa I 2012-05-23 01:44:21.439 org.apache.myfaces.webapp.WebConfigParamsLogger logWebContextParams: No context init parameter 'facelets.REFRESH_PERIOD' found, using default value '- I 2012-05-23 01:44:21.439 org.apache.myfaces.webapp.WebConfigParamsLogger logWebContextParams: No context init parameter 'javax.faces.FACELETS_RESOURCE_RESOLVER' found. I 2012-05-23 01:44:21.439 org.apache.myfaces.webapp.WebConfigParamsLogger logWebContextParams: No context init parameter 'facelets.RESOURCE_RESOLVER' found. I 2012-05-23 01:44:21.439 org.apache.myfaces.webapp.WebConfigParamsLogger logWebContextParams: No context init parameter 'javax.faces.FACELETS_SKIP_COMMENTS' found. I 2012-05-23 01:44:21.439 org.apache.myfaces.webapp.WebConfigParamsLogger logWebContextParams: No context init parameter 'facelets.SKIP_COMMENTS' found. I 2012-05-23 01:44:21.439 org.apache.myfaces.webapp.WebConfigParamsLogger logWebContextParams: No context init parameter 'org.apache.myfaces.MARK_INITIAL_STATE_WHEN_APPLY_BUILD I 2012-05-23 01:44:21.439 org.apache.myfaces.webapp.WebConfigParamsLogger logWebContextParams: No context init parameter 'org.apache.myfaces.WRAP_TAG_EXCEPTIONS_AS_CONTEXT_AWAR I 2012-05-23 01:44:21.439 org.apache.myfaces.webapp.WebConfigParamsLogger logWebContextParams: No context init parameter 'org.apache.myfaces.CACHE_EL_EXPRESSIONS' found, using I 2012-05-23 01:44:21.439 org.apache.myfaces.webapp.WebConfigParamsLogger logWebContextParams: No context init parameter 'org.apache.myfaces.EXPRESSION_FACTORY' found. I 2012-05-23 01:44:21.439 org.apache.myfaces.webapp.WebConfigParamsLogger logWebContextParams: No context init parameter 'org.apache.myfaces.INITIALIZE_ALWAYS_STANDALONE' found I 2012-05-23 01:44:21.439 org.apache.myfaces.webapp.WebConfigParamsLogger logWebContextParams: No context init parameter 'org.apache.myfaces.LOG_WEB_CONTEXT_PARAMS' found, usin I 2012-05-23 01:44:21.440 org.apache.myfaces.webapp.WebConfigParamsLogger logWebContextParams: No context init parameter 'org.apache.myfaces.FACES_INITIALIZER' found. I 2012-05-23 01:44:21.440 org.apache.myfaces.webapp.WebConfigParamsLogger logWebContextParams: No context init parameter 'org.apache.myfaces.FACES_INIT_PLUGINS' found. I 2012-05-23 01:44:24.228 This request caused a new process to be started for your application, and thus caused your application code to be loaded for the first time. This requ 2012/5/23 lucio piccoli : > hi =A0Leonardo > > what startup time are u =A0guys gettting with the deploy myfaces on appen= gine? > > -lp > > On 23 May 2012 15:12, Leonardo Uribe wrote: > >> Hi >> >> You need to take a look at: >> >> org.apache.myfaces.spi.FacesConfigResourceProvider >> org.apache.myfaces.spi.FaceletConfigResourceProvider >> org.apache.myfaces.spi.AnnotationProvider >> >> >> http://myfaces.apache.org/core21/myfaces-impl/apidocs/org/apache/myfaces= /spi/FacesConfigResourceProvider.html >> >> http://myfaces.apache.org/core21/myfaces-impl/apidocs/org/apache/myfaces= /spi/FaceletConfigResourceProvider.html >> >> I think the problem is this code: >> >> =A0 =A0public Collection getMetaInfConfigurationResources( >> =A0 =A0 =A0 =A0 =A0 =A0ExternalContext context) throws IOException >> =A0 =A0{ >> =A0 =A0 =A0 =A0List urlSet =3D new ArrayList(); >> >> =A0 =A0 =A0 =A0//This usually happens when maven-jetty-plugin is used >> =A0 =A0 =A0 =A0//Scan jars looking for paths including META-INF/faces-co= nfig.xml >> =A0 =A0 =A0 =A0Enumeration resources =3D >> getClassLoader().getResources(FACES_CONFIG_IMPLICIT); >> =A0 =A0 =A0 =A0while (resources.hasMoreElements()) >> =A0 =A0 =A0 =A0{ >> =A0 =A0 =A0 =A0 =A0 =A0urlSet.add(resources.nextElement()); >> =A0 =A0 =A0 =A0} >> >> =A0 =A0 =A0 =A0//Scan files inside META-INF ending with .faces-config.xm= l >> =A0 =A0 =A0 =A0URL[] urls =3D Classpath.search(getClassLoader(), >> META_INF_PREFIX, FACES_CONFIG_SUFFIX); >> =A0 =A0 =A0 =A0for (int i =3D 0; i < urls.length; i++) >> =A0 =A0 =A0 =A0{ >> =A0 =A0 =A0 =A0 =A0 =A0urlSet.add(urls[i]); >> =A0 =A0 =A0 =A0} >> >> =A0 =A0 =A0 =A0return urlSet; >> =A0 =A0} >> >> Specially the call to Classpath.search(). The code works well, but >> maybe in GAE this operation is very expensive. One option is do not >> scan for .faces-config.xml, or try to scan the jar files directly from >> WEB-INF/lib. Note the call from Classpath.search() is done in the >> annotation scanning part too, so if you found it is a problem, maybe >> we can do the alternative logic and include it inside myfaces core to >> make it work "out of the box" in gae without this problem. Look this >> demo: >> >> http://myfaces.apache.org/core20/googleappenginesupport.html >> >> regards, >> >> Leonardo Uribe >> >> 2012/5/23 lucio piccoli : >> > hi leonardo >> > >> > thanks for the help but there was no difference in startup time. >> > >> > from the log the big time expense is scanning for faces-config.xml. >> > >> > =A0org.apache.myfaces.config.DefaultFacesConfigurationProvider >> > getClassloaderFacesConfig >> > >> > >> > what other options are there to prevent file scanning? >> > >> > >> > -lp >> > >> > >> > On 22 May 2012 17:26, Leonardo Uribe wrote: >> > >> >> Hi >> >> >> >> MyFaces provides some SPI interfaces that allow to provide web >> >> container specific code in cases like annotation scannig or when it >> >> tries to locate faces-config.xml or .taglib.xml files. >> >> >> >> But first of all, try to setup this web config param: >> >> >> >> org.apache.myfaces.annotation.SCAN_PACKAGES >> >> >> >> Indicate the packages where your managed beans are, separated by >> >> comma. Let us know if that solves your problem, or if you do some SPI >> >> code, it could be good to add it in myfaces core project in someway. >> >> >> >> regards, >> >> >> >> Leonardo Uribe >> >> >> >> 2012/5/22 lucio piccoli : >> >> > the spring issue is exclusive to the myfaces startup. >> >> > >> >> > the myfaces startup seems to be spending its time doing a file scan >> for >> >> > 'faces-config.xml' and other stuff. >> >> > File access speed is known to be poor on GAE. >> >> > >> >> > so is there a way to config myfaces not to file scan? >> >> > >> >> > -lp >> >> > >> >> > On 22 May 2012 17:07, Daniel Reznick wrote: >> >> > >> >> >> Before that, >> >> >> >> >> >> Know that Spring and JSF are known for their SLOW start up time on >> GAE >> >> (I >> >> >> think especially Sping) a short googling can show this , and maybe >> some >> >> >> tricks to speed it up (but it still will be slow...) >> >> >> >> >> >> On Tue, May 22, 2012 at 5:13 AM, lucio piccoli >> >> >> wrote: >> >> >> >> >> >> > hi guys >> >> >> > >> >> >> > i am running myfaces 2.1.6 on appengine 1.6.4. >> >> >> > >> >> >> > the start up time is too long. according to my log 13 seconds of >> wall >> >> >> time. >> >> >> > >> >> >> > this 13 sec is killing my GAE startup time as it has a hardlimit= . >> >> >> > >> >> >> > Q1. why is myfaces taking 12 seconds to load? >> >> >> > Q2. how can i reduce the myfaces load time? >> >> >> > >> >> >> > the log snippet is below. the start of the log is once spring >> >> initiation >> >> >> is >> >> >> > complete. >> >> >> > >> >> >> > INFO: Root WebApplicationContext: initialization completed in 95= 98 >> ms >> >> >> > 22/05/2012 1::57:04 AM >> org.apache.myfaces.webapp.Jsp20FacesInitializer >> >> >> > initContainerIntegration >> >> >> > INFO: This application isn't running in a JSP 2.1 container. >> >> >> > 22/05/2012 1:57:04 AM >> >> >> > org.apache.myfaces.config.DefaultFacesConfigurationProvider >> >> >> > getStandardFacesConfig >> >> >> > INFO: Reading standard config META-INF/standard-faces-config.xml >> >> >> > 22/05/2012 1:57:05 AM >> >> >> > org.apache.myfaces.config.DefaultFacesConfigurationProvider >> >> >> > getWebAppFacesConfig >> >> >> > INFO: Reading config /WEB-INF/faces-config.xml >> >> >> > 22/05/2012 1:57:08 AM >> >> >> > org.apache.myfaces.config.DefaultFacesConfigurationProvider >> >> >> > getClassloaderFacesConfig >> >> >> > INFO: Reading config : >> >> >> > >> >> >> > >> >> >> >> >> >> jar:file:/C:/src/miiingle/venueportal/trunk/target/venueportal-1.0-SNAPS= HOT/WEB-INF/lib/gmaps4jsf-core-1.1.4.jar!/META-INF/faces-config.xml >> >> >> > 22/05/2012 1:57:09 AM >> >> >> > org.apache.myfaces.config.DefaultFacesConfigurationProvider >> >> >> > getClassloaderFacesConfig >> >> >> > INFO: Reading config : >> >> >> > >> >> >> > >> >> >> >> >> >> jar:file:/C:/src/miiingle/venueportal/trunk/target/venueportal-1.0-SNAPS= HOT/WEB-INF/lib/richfaces-components-ui-4.2.1.Final.jar!/META-INF/faces-con= fig.xml >> >> >> > 22/05/2012 1:57:12 AM >> >> >> > org.apache.myfaces.config.DefaultFacesConfigurationProvider >> >> >> > getClassloaderFacesConfig >> >> >> > INFO: Reading config : >> >> >> > >> >> >> > >> >> >> >> >> >> jar:file:/C:/src/miiingle/venueportal/trunk/target/venueportal-1.0-SNAPS= HOT/WEB-INF/lib/richfaces-core-impl-4.2.1.Final.jar!/META-INF/faces-config.= xml >> >> >> > 22/05/2012 1:57:12 AM >> >> >> > org.apache.myfaces.config.DefaultFacesConfigurationProvider >> >> >> > getClassloaderFacesConfig >> >> >> > INFO: Reading config : >> >> >> > >> >> >> > >> >> >> >> >> >> jar:file:/C:/src/miiingle/venueportal/trunk/target/venueportal-1.0-SNAPS= HOT/WEB-INF/lib/tomahawk20-1.1.11.jar!/META-INF/faces-config.xml >> >> >> > 22/05/2012 1:57:12 AM org.apache.myfaces.config.LogMetaInfUtils >> >> >> logArtifact >> >> >> > INFO: Artifact 'myfaces-api' was found in version '2.1.6' from p= ath >> >> >> > >> >> >> > >> >> >> >> >> >> 'file:/C:/src/miiingle/venueportal/trunk/target/venueportal-1.0-SNAPSHOT= /WEB-INF/lib/myfaces-api-2.1.6.jar' >> >> >> > 22/05/2012 1:57:12 AM org.apache.myfaces.config.LogMetaInfUtils >> >> >> logArtifact >> >> >> > INFO: Artifact 'myfaces-impl' was found in version '2.1.6' from >> path >> >> >> > >> >> >> > >> >> >> >> >> >> 'file:/C:/src/miiingle/venueportal/trunk/target/venueportal-1.0-SNAPSHOT= /WEB-INF/lib/myfaces-impl-2.1.6.jar' >> >> >> > 22/05/2012 1:57:12 AM org.apache.myfaces.config.LogMetaInfUtils >> >> >> logArtifact >> >> >> > INFO: Artifact 'tomahawk20' was found in version '1.1.11' from p= ath >> >> >> > >> >> >> > >> >> >> >> >> >> 'file:/C:/src/miiingle/venueportal/trunk/target/venueportal-1.0-SNAPSHOT= /WEB-INF/lib/tomahawk20-1.1.11.jar' >> >> >> > 22/05/2012 1:57:13 AM org.richfaces.resource.ResourceHandlerImpl >> >> >> >> >> > FINE: Instance of org.richfaces.resource.ResourceHandlerImpl >> resource >> >> >> > handler created >> >> >> > 22/05/2012 1:57:13 AM >> org.apache.myfaces.util.ExternalSpecifications >> >> >> > isBeanValidationAvailable >> >> >> > INFO: MyFaces Bean Validation support disabled >> >> >> > 22/05/2012 1:57:15 AM net.sf.jsfcomp.onload.OnLoadPhaseListener >> >> >> >> > INFO: OnLoadPhaseListener created >> >> >> > 22/05/2012 1:57:15 AM >> org.apache.myfaces.application.ApplicationImpl >> >> >> > getProjectStage >> >> >> > INFO: Couldn't discover the current project stage, using Product= ion >> >> >> > 22/05/2012 1:57:15 AM org.apache.myfaces.config.FacesConfigurato= r >> >> >> > handleSerialFactory >> >> >> > INFO: Serialization provider : class >> >> >> > org.apache.myfaces.shared_impl.util.serial.DefaultSerialFactory >> >> >> > 22/05/2012 1:57:15 AM >> >> >> > >> org.apache.myfaces.config.annotation.DefaultLifecycleProviderFactory >> >> >> > getLifecycleProvider >> >> >> > INFO: Using LifecycleProvider >> >> >> > >> >> >> >> >> >> org.apache.myfaces.config.annotation.NoInjectionAnnotationLifecycleProvi= der >> >> >> > >> >> >> > -- >> >> >> > regards >> >> >> > >> >> >> > -Lucio Piccoli >> >> >> > >> >> >> > Director >> >> >> > ------------------------------ >> >> >> > www.asteriski.com >> >> >> > >> >> >> >> >> > >> >> > >> >> > >> >> > -- >> >> > regards >> >> > >> >> > -Lucio Piccoli >> >> > >> >> > Director >> >> > ------------------------------ >> >> > www.asteriski.com >> >> >> > >> > >> > >> > -- >> > regards >> > >> > -Lucio Piccoli >> > >> > Director >> > ------------------------------ >> > www.asteriski.com >> > > > > -- > regards > > -Lucio Piccoli > > Director > ------------------------------ > www.asteriski.com