myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From José Luis Cetina <maxtorz...@gmail.com>
Subject Re: Both MyFaces and the RI are on your classpath. Please make sure to use only one of the two JSF-implementations.
Date Mon, 12 Mar 2012 17:34:05 GMT
*This:*

Información:
org.apache.myfaces.extensions.cdi.core.impl.provider.DefaultServiceProvider
installed successfully.
Información:
org.apache.myfaces.extensions.cdi.core.impl.provider.DefaultServiceProviderContext
installed successfully.
Información: Computed the following CODI ProjectStage: Production
Información: com.grupokx.webbeans.Index will be used as page-definition.
Información: com.grupokx.webbeans.Index2 will be used as page-definition.
Información: com.grupokx.webbeans.Index2Mbean will be used as page-bean.
Información: com.grupokx.webbeans.MyBean will be used as page-bean.
Información: com.grupokx.webbeans.Pages$Index2 will be used as
page-definition.
Información: com.grupokx.webbeans.Pages will be used as page-definition.
Información: Reading standard config META-INF/standard-faces-config.xml
Información: Reading config :
jar:file:/C:/Users/maxtorzito/Documents/NetBeansProjects/testweb/build/web/WEB-INF/lib/myfaces-extcdi-jsf20-module-impl-1.0.4.jar!/META-INF/faces-config.xml
Información: Artifact 'myfaces-api' was found in version '2.1.6' from path
'file:/C:/Users/maxtorzito/Documents/NetBeansProjects/testweb/build/web/WEB-INF/lib/myfaces-api-2.1.6.jar'
Información: Artifact 'myfaces-extcdi-alternative-implementation-module'
was found in version '1.0.4' from path
'file:/C:/Users/maxtorzito/Documents/NetBeansProjects/testweb/build/web/WEB-INF/lib/myfaces-extcdi-alternative-implementation-module-1.0.4.jar'
Información: Artifact 'myfaces-extcdi-bv1-module-api' was found in version
'1.0.4' from path
'file:/C:/Users/maxtorzito/Documents/NetBeansProjects/testweb/build/web/WEB-INF/lib/myfaces-extcdi-bv1-module-api-1.0.4.jar'
Información: Artifact 'myfaces-extcdi-bv1-module-impl' was found in version
'1.0.4' from path
'file:/C:/Users/maxtorzito/Documents/NetBeansProjects/testweb/build/web/WEB-INF/lib/myfaces-extcdi-bv1-module-impl-1.0.4.jar'
Información: Artifact 'myfaces-extcdi-core-alternative-configuration' was
found in version '1.0.4' from path
'file:/C:/Users/maxtorzito/Documents/NetBeansProjects/testweb/build/web/WEB-INF/lib/myfaces-extcdi-core-alternative-configuration-1.0.4.jar'
Información: Artifact 'myfaces-extcdi-core-api' was found in version
'1.0.4' from path
'file:/C:/Users/maxtorzito/Documents/NetBeansProjects/testweb/build/web/WEB-INF/lib/myfaces-extcdi-core-api-1.0.4.jar'
Información: Artifact 'myfaces-extcdi-core-impl' was found in version
'1.0.4' from path
'file:/C:/Users/maxtorzito/Documents/NetBeansProjects/testweb/build/web/WEB-INF/lib/myfaces-extcdi-core-impl-1.0.4.jar'
Información: Artifact 'myfaces-extcdi-jpa1-module-api' was found in version
'1.0.4' from path
'file:/C:/Users/maxtorzito/Documents/NetBeansProjects/testweb/build/web/WEB-INF/lib/myfaces-extcdi-jpa1-module-api-1.0.4.jar'
Información: Artifact 'myfaces-extcdi-jpa1-module-impl' was found in
version '1.0.4' from path
'file:/C:/Users/maxtorzito/Documents/NetBeansProjects/testweb/build/web/WEB-INF/lib/myfaces-extcdi-jpa1-module-impl-1.0.4.jar'
Información: Artifact 'myfaces-extcdi-jsf-alternative-configuration' was
found in version '1.0.4' from path
'file:/C:/Users/maxtorzito/Documents/NetBeansProjects/testweb/build/web/WEB-INF/lib/myfaces-extcdi-jsf-alternative-configuration-1.0.4.jar'
Información: Artifact 'myfaces-extcdi-jsf20-module-api' was found in
version '1.0.4' from path
'file:/C:/Users/maxtorzito/Documents/NetBeansProjects/testweb/build/web/WEB-INF/lib/myfaces-extcdi-jsf20-module-api-1.0.4.jar'
Información: Artifact 'myfaces-extcdi-jsf20-module-impl' was found in
version '1.0.4' from path
'file:/C:/Users/maxtorzito/Documents/NetBeansProjects/testweb/build/web/WEB-INF/lib/myfaces-extcdi-jsf20-module-impl-1.0.4.jar'
Información: Artifact 'myfaces-extcdi-message-module-api' was found in
version '1.0.4' from path
'file:/C:/Users/maxtorzito/Documents/NetBeansProjects/testweb/build/web/WEB-INF/lib/myfaces-extcdi-message-module-api-1.0.4.jar'
Información: Artifact 'myfaces-extcdi-message-module-impl' was found in
version '1.0.4' from path
'file:/C:/Users/maxtorzito/Documents/NetBeansProjects/testweb/build/web/WEB-INF/lib/myfaces-extcdi-message-module-impl-1.0.4.jar'
Información: Artifact 'myfaces-extcdi-scripting-module-api' was found in
version '1.0.4' from path
'file:/C:/Users/maxtorzito/Documents/NetBeansProjects/testweb/build/web/WEB-INF/lib/myfaces-extcdi-scripting-module-api-1.0.4.jar'
Información: Artifact 'myfaces-extcdi-scripting-module-impl' was found in
version '1.0.4' from path
'file:/C:/Users/maxtorzito/Documents/NetBeansProjects/testweb/build/web/WEB-INF/lib/myfaces-extcdi-scripting-module-impl-1.0.4.jar'
Información: Artifact 'myfaces-impl' was found in version '2.1.6' from path
'file:/C:/Users/maxtorzito/Documents/NetBeansProjects/testweb/build/web/WEB-INF/lib/myfaces-impl-2.1.6.jar'
Información: [Started] MyFaces CODI (Extensions CDI) alternative config
org.apache.myfaces.extensions.cdi.jsf.alternative.config.AlternativeJsfModuleConfig
is active (v1.0.4)

Información: MyFaces Bean Validation support enabled
Información: [Started] MyFaces CODI (Extensions CDI) alternative config
org.apache.myfaces.extensions.cdi.core.alternative.config.AlternativeCodiCoreConfig
is active (v1.0.4)

Información: Serialization provider : class
org.apache.myfaces.shared_impl.util.serial.DefaultSerialFactory
Información: Using LifecycleProvider
org.apache.myfaces.config.annotation.AllAnnotationLifecycleProvider
Información: ServletContext initialized.
Información: Tomahawk jar not available. Autoscrolling, DetectJavascript,
AddResourceClass and CheckExtensionsFilter are disabled now.
Grave: Both MyFaces and the RI are on your classpath. Please make sure to
use only one of the two JSF-implementations.
Información: Scanning for context init parameters not defined. It is not
necessary to define them all into your web.xml, they are just provided here
for informative purposes. To disable this messages set
org.apache.myfaces.LOG_WEB_CONTEXT_PARAMS config param to 'false'
Información: No context init parameter 'javax.faces.RESOURCE_EXCLUDES'
found, using default value '.class .jsp .jspx .properties .xhtml .groovy'.
Información: No context init parameter
'javax.faces.FULL_STATE_SAVING_VIEW_IDS' found.
Información: No context init parameter 'javax.faces.PARTIAL_STATE_SAVING'
found, using default value 'true (false with 1.2 webapps)'.
Información: No context init parameter 'javax.faces.DEFAULT_SUFFIX' found,
using default value '.xhtml .view.xml .jsp'.
Información: No context init parameter 'javax.faces.FACELETS_SUFFIX' found,
using default value '.xhtml'.
Información: No context init parameter 'javax.faces.FACELETS_VIEW_MAPPINGS'
found.
Información: No context init parameter
'javax.faces.HONOR_CURRENT_COMPONENT_ATTRIBUTES' found, using default value
'false'.
Información: No context init parameter 'javax.faces.VALIDATE_EMPTY_FIELDS'
found, using default value 'auto'.
Información: No context init parameter
'javax.faces.INTERPRET_EMPTY_STRING_SUBMITTED_VALUES_AS_NULL' found, using
default value 'false'.
Información: No context init parameter
'org.apache.myfaces.ENUM_CONVERTER_ALLOW_STRING_PASSTROUGH' found, using
default value 'false'.
Información: No context init parameter
'javax.faces.validator.DISABLE_DEFAULT_BEAN_VALIDATOR' found, using default
value 'true'.
Información: No context init parameter 'javax.faces.CONFIG_FILES' found.
Información: No context init parameter 'javax.faces.LIFECYCLE_ID' found.
Información: No context init parameter 'org.apache.myfaces.ERROR_HANDLER'
found.
Información: No context init parameter
'org.apache.myfaces.CHECKED_VIEWID_CACHE_SIZE' found, using default value
'500'.
Información: No context init parameter
'org.apache.myfaces.CHECKED_VIEWID_CACHE_ENABLED' found, using default
value 'true'.
Información: No context init parameter 'org.apache.myfaces.PRETTY_HTML'
found, using default value 'true'.
Información: No context init parameter
'org.apache.myfaces.ALLOW_JAVASCRIPT' found, using default value 'true'.
Información: No context init parameter
'org.apache.myfaces.CONFIG_REFRESH_PERIOD' found, using default value '2'.
Información: No context init parameter
'org.apache.myfaces.VIEWSTATE_JAVASCRIPT' found, using default value
'false'.
Información: No context init parameter
'org.apache.myfaces.RENDER_VIEWSTATE_ID' found, using default value 'true'.
Información: No context init parameter
'org.apache.myfaces.STRICT_XHTML_LINKS' found, using default value 'true'.
Información: No context init parameter
'org.apache.myfaces.RENDER_CLEAR_JAVASCRIPT_FOR_BUTTON' found, using
default value 'false'.
Información: No context init parameter
'org.apache.myfaces.RENDER_HIDDEN_FIELDS_FOR_LINK_PARAMS' found, using
default value 'false'.
Información: No context init parameter
'org.apache.myfaces.SAVE_FORM_SUBMIT_LINK_IE' found, using default value
'false'.
Información: No context init parameter
'org.apache.myfaces.DELEGATE_FACES_SERVLET' found.
Información: No context init parameter
'org.apache.myfaces.REFRESH_TRANSIENT_BUILD_ON_PSS' found, using default
value 'auto'.
Información: No context init parameter
'org.apache.myfaces.REFRESH_TRANSIENT_BUILD_ON_PSS_PRESERVE_STATE' found,
using default value 'false'.
Información: No context init parameter 'org.apache.myfaces.VALIDATE_XML'
found.
Información: No context init parameter
'org.apache.myfaces.WRAP_SCRIPT_CONTENT_WITH_XML_COMMENT_TAG' found, using
default value 'true'.
Información: No context init parameter
'org.apache.myfaces.RENDER_FORM_SUBMIT_SCRIPT_INLINE' found, using default
value 'false'.
Información: No context init parameter
'org.apache.myfaces.DEBUG_PHASE_LISTENER' found.
Información: No context init parameter
'org.apache.myfaces.STRICT_JSF_2_REFRESH_TARGET_AJAX' found, using default
value 'false'.
Información: No context init parameter
'org.apache.myfaces.STRICT_JSF_2_CC_EL_RESOLVER' found, using default value
'false'.
Información: No context init parameter
'org.apache.myfaces.DEFAULT_RESPONSE_WRITER_CONTENT_TYPE_MODE' found, using
default value 'text/html'.
Información: No context init parameter
'org.apache.myfaces.FLASH_SCOPE_DISABLED' found, using default value
'false'.
Información: No context init parameter
'org.apache.myfaces.RESOURCE_MAX_TIME_EXPIRES' found, using default value
'604800000'.
Información: No context init parameter
'org.apache.myfaces.RESOURCE_HANDLER_CACHE_SIZE' found, using default value
'500'.
Información: No context init parameter
'org.apache.myfaces.RESOURCE_HANDLER_CACHE_ENABLED' found, using default
value 'true'.
Información: No context init parameter 'org.apache.myfaces.USE_ENCRYPTION'
found, using default value 'true'.
Información: No context init parameter 'org.apache.myfaces.SECRET' found.
Información: No context init parameter 'org.apache.myfaces.ALGORITHM'
found, using default value 'DES'.
Información: No context init parameter 'org.apache.myfaces.SECRET.CACHE'
found.
Información: No context init parameter 'org.apache.myfaces.ALGORITHM.IV'
found.
Información: No context init parameter
'org.apache.myfaces.ALGORITHM.PARAMETERS' found, using default value
'ECB/PKCS5Padding'.
Información: No context init parameter 'org.apache.myfaces.SERIAL_FACTORY'
found.
Información: No context init parameter
'org.apache.myfaces.COMPRESS_STATE_IN_CLIENT' found, using default value
'false'.
Información: No context init parameter 'org.apache.myfaces.MAC_ALGORITHM'
found, using default value 'HmacSHA1'.
Información: No context init parameter 'org.apache.myfaces.MAC_SECRET'
found.
Información: No context init parameter
'org.apache.myfaces.MAC_SECRET.CACHE' found.
Información: No context init parameter
'org.apache.myfaces.LAZY_LOAD_CONFIG_OBJECTS' found, using default value
'true'.
Información: No context init parameter
'org.apache.myfaces.STRICT_JSF_2_ALLOW_SLASH_LIBRARY_NAME' found, using
default value 'false'.
Información: No context init parameter 'org.apache.myfaces.VALIDATE' found,
using default value 'false'.
Información: No context init parameter
'org.apache.myfaces.annotation.SCAN_PACKAGES' found.
Información: No context init parameter
'org.apache.myfaces.config.annotation.LifecycleProvider' found.
Información: No context init parameter
'org.apache.myfaces.EL_RESOLVER_COMPARATOR' found.
Información: No context init parameter
'org.apache.myfaces.EL_RESOLVER_PREDICATE' found.
Información: No context init parameter
'org.apache.myfaces.CHECKED_VIEWID_CACHE_SIZE' found, using default value
'500'.
Información: No context init parameter
'org.apache.myfaces.CHECKED_VIEWID_CACHE_ENABLED' found, using default
value 'true'.
Información: No context init parameter
'org.apache.myfaces.ERROR_TEMPLATE_RESOURCE' found, using default value
'META-INF/rsc/myfaces-dev-error.xml'.
Información: No context init parameter
'org.apache.myfaces.DEBUG_TEMPLATE_RESOURCE' found, using default value
'META-INF/rsc/myfaces-dev-debug.xml'.
Información: No context init parameter 'org.apache.myfaces.ERROR_HANDLING'
found, using default value 'false, on Development Project stage: true'.
Información: No context init parameter
'org.apache.myfaces.NUMBER_OF_VIEWS_IN_SESSION' found, using default value
'20'.
Información: No context init parameter
'org.apache.myfaces.NUMBER_OF_SEQUENTIAL_VIEWS_IN_SESSION' found.
Información: No context init parameter
'org.apache.myfaces.SERIALIZE_STATE_IN_SESSION' found, using default value
'true'.
Información: No context init parameter
'org.apache.myfaces.COMPRESS_STATE_IN_SESSION' found, using default value
'true'.
Información: No context init parameter
'org.apache.myfaces.CACHE_OLD_VIEWS_IN_SESSION_MODE' found, using default
value 'off'.
Información: No context init parameter
'org.apache.myfaces.USE_FLASH_SCOPE_PURGE_VIEWS_IN_SESSION' found, using
default value 'false'.
Información: No context init parameter
'org.apache.myfaces.HANDLE_STATE_CACHING_MECHANICS' found, using default
value 'true'.
Información: No context init parameter
'org.apache.myfaces.USE_MULTIPLE_JS_FILES_FOR_JSF_UNCOMPRESSED_JS' found,
using default value 'false'.
Información: No context init parameter 'org.apache.myfaces.JSF_JS_MODE'
found, using default value 'normal'.
Información: No context init parameter
'org.apache.myfaces.SERVICE_PROVIDER_FINDER' found.
Información: No context init parameter
'javax.faces.DISABLE_FACELET_JSF_VIEWHANDLER' found, using default value
'false'.
Información: No context init parameter
'org.apache.myfaces.SAVE_STATE_WITH_VISIT_TREE_ON_PSS' found, using default
value 'true'.
Información: No context init parameter
'org.apache.myfaces.CHECK_ID_PRODUCTION_MODE' found, using default value
'auto'.
Información: No context init parameter 'javax.faces.FACELETS_BUFFER_SIZE'
found.
Información: No context init parameter 'facelets.BUFFER_SIZE' found.
Información: No context init parameter 'javax.faces.FACELETS_DECORATORS'
found.
Información: No context init parameter 'facelets.DECORATORS' found.
Información: No context init parameter 'javax.faces.FACELETS_LIBRARIES'
found.
Información: No context init parameter 'facelets.LIBRARIES' found.
Información: No context init parameter
'javax.faces.FACELETS_REFRESH_PERIOD' found, using default value '-1'.
Información: No context init parameter 'facelets.REFRESH_PERIOD' found,
using default value '-1'.
Información: No context init parameter
'javax.faces.FACELETS_RESOURCE_RESOLVER' found.
Información: No context init parameter 'facelets.RESOURCE_RESOLVER' found.
Información: No context init parameter 'facelets.SKIP_COMMENTS' found.
Información: No context init parameter
'org.apache.myfaces.MARK_INITIAL_STATE_WHEN_APPLY_BUILD_VIEW' found, using
default value 'false'.
Información: No context init parameter
'org.apache.myfaces.WRAP_TAG_EXCEPTIONS_AS_CONTEXT_AWARE' found, using
default value 'true'.
Información: No context init parameter
'org.apache.myfaces.CACHE_EL_EXPRESSIONS' found, using default value
'noCache'.
Información: No context init parameter
'org.apache.myfaces.EXPRESSION_FACTORY' found.
Información: No context init parameter
'org.apache.myfaces.INITIALIZE_ALWAYS_STANDALONE' found, using default
value 'false'.
Información: No context init parameter
'org.apache.myfaces.LOG_WEB_CONTEXT_PARAMS' found, using default value
'auto'.
Información: No context init parameter
'org.apache.myfaces.FACES_INITIALIZER' found.
Información: No context init parameter
'org.apache.myfaces.FACES_INIT_PLUGINS' found.
Advertencia:
*******************************************************************
*** WARNING: Apache MyFaces-2 is running in DEVELOPMENT mode.   ***
***                                         ^^^^^^^^^^^         ***
*** Do NOT deploy to your live server(s) without changing this. ***
*** See Application#getProjectStage() for more information.     ***
*******************************************************************

Información: MyFaces already initialized
Información: WEB0671: Loading application [testweb] at [/testweb]
Información: testweb se ha desplegado correctamente en 6,143 milisegundos.
Información: [Started] MyFaces CODI (Extensions CDI) alternative config
org.apache.myfaces.extensions.cdi.core.alternative.scope.conversation.config.AlternativeWindowContextConfig
is active (v1.0.4)

Información: [Started] MyFaces CODI (Extensions CDI) alternative config
org.apache.myfaces.extensions.cdi.core.alternative.scope.conversation.config.AlternativeConversationConfig
is active (v1.0.4)

Información: [Started] MyFaces CODI JSF-Module v1.0.4 for JSF 2.0
Used JSF implementation: MyFaces Core v2.1.6
config implementation:
org.apache.myfaces.extensions.cdi.jsf.alternative.config.AlternativeJsfModuleConfig$Proxy$_$$_WeldClientProxy
config implementation:
org.apache.myfaces.extensions.cdi.jsf.alternative.config.AlternativeJsfModuleConfig
config implementation:
org.apache.myfaces.extensions.cdi.jsf.api.config.JsfModuleConfig
   method: isInitialRedirectEnabled
   value: true
   method: isAlwaysKeepMessages
   value: true
   method: isUseViewConfigsAsNavigationCasesEnabled
   value: true
   method: isInvalidValueAwareMessageInterpolatorEnabled
   value: true
config implementation:
org.apache.myfaces.extensions.cdi.core.alternative.scope.conversation.config.AlternativeWindowContextConfig$Proxy$_$$_WeldClientProxy
config implementation:
org.apache.myfaces.extensions.cdi.core.alternative.scope.conversation.config.AlternativeWindowContextConfig
config implementation:
org.apache.myfaces.extensions.cdi.core.api.scope.conversation.config.WindowContextConfig
   method: isUrlParameterSupported
   value: true
   method: isUnknownWindowIdsAllowed
   value: false
   method: getMaxWindowContextCount
   value: 64
   method: isAddWindowIdToActionUrlsEnabled
   value: false
   method: getWindowContextTimeoutInMinutes
   value: 60
   method: isCloseEmptyWindowContextsEnabled
   value: false
   method: isEagerWindowContextDetectionEnabled
   value: true
   method: isCreateWindowContextEventEnabled
   value: false
   method: isCloseWindowContextEventEnabled
   value: false
config implementation:
org.apache.myfaces.extensions.cdi.core.alternative.scope.conversation.config.AlternativeConversationConfig$Proxy$_$$_WeldClientProxy
config implementation:
org.apache.myfaces.extensions.cdi.core.alternative.scope.conversation.config.AlternativeConversationConfig
config implementation:
org.apache.myfaces.extensions.cdi.core.api.scope.conversation.config.ConversationConfig
   method: isScopeBeanEventEnabled
   value: false
   method: isAccessBeanEventEnabled
   value: false
   method: isUnscopeBeanEventEnabled
   value: false
   method: isConversationRequiredEnabled
   value: true
   method: isRestartConversationEventEnabled
   value: false
   method: isCloseConversationEventEnabled
   value: false
   method: isStartConversationEventEnabled
   value: false
   method: getConversationTimeoutInMinutes
   value: 30
MessageContextConfig class:
org.apache.myfaces.extensions.cdi.message.impl.DefaultMessageContextConfig
   MessageInterpolator class: class
org.apache.myfaces.extensions.cdi.jsf.impl.message.FacesMessageInterpolator
   MessageResolver class: class
org.apache.myfaces.extensions.cdi.jsf.impl.message.JsfAwareApplicationMessagesMessageResolver
   MessageHandler class: class
org.apache.myfaces.extensions.cdi.jsf.impl.message.JsfAwareMessageHandler
   LocaleResolver class: class
org.apache.myfaces.extensions.cdi.jsf.impl.message.JsfAwareLocaleResolver
   FormatterFactory class: class
org.apache.myfaces.extensions.cdi.message.impl.DefaultFormatterFactory

Información: [Started] MyFaces CODI JPA-Module v1.0.4

Información: [Started] MyFaces CODI (Extensions CDI) Core v1.0.4
Used CDI implementation: Weld v20111122-2001
project-stage: Production
project-stage class:
org.apache.myfaces.extensions.cdi.core.api.projectstage.ProjectStage$Production
application-parameters:
   name: com.ocpsoft.pretty.DEVELOPMENT
   value: true
   name: com.sun.faces.forceLoadConfiguration
   value: true
   name: javax.faces.DATETIMECONVERTER_DEFAULT_TIMEZONE_IS_SYSTEM_TIMEZONE
   value: true
   name: com.sun.faces.validateXml
   value: true
   name: com.sun.faces.enableMissingResourceLibraryDetection
   value: true
   name: javax.faces.PROJECT_STAGE
   value: Development
   name: javax.faces.FACELETS_SKIP_COMMENTS
   value: true
   name: javax.faces.STATE_SAVING_METHOD
   value: server
config implementation:
org.apache.myfaces.extensions.cdi.core.alternative.config.AlternativeCodiCoreConfig$Proxy$_$$_WeldClientProxy
config implementation:
org.apache.myfaces.extensions.cdi.core.alternative.config.AlternativeCodiCoreConfig
config implementation:
org.apache.myfaces.extensions.cdi.core.api.config.CodiCoreConfig
   method: isAdvancedQualifierRequiredForDependencyInjection
   value: true
   method: isConfigurationLoggingEnabled
   value: true
   method: isInvalidBeanCreationEventEnabled
   value: false

Advertencia: The value of the JSF 2 project stage (Development) is
different from the CODI project stage (Production)
Información: [Started] MyFaces CODI Scripting-Module v1.0.4

Información: [Started] MyFaces CODI Bean-Validation-Module v1.0.4














2012/3/12 Rafael Pestano <rmpestano@yahoo.com.br>

> i see, if you are using CODI it should be printing(at startup time) all
> information about your enviroment like JSF, CDI implementations,  is that
> the case? what it is printing?
>
>
>
> Att,
> Rafael M. Pestano
> Desenvolvedor Java Cia. de Processamento de Dados do Rio Grande do Sul
> Graduando em Ciência da Computação UFRGS
> @realpestano
> http://code.google.com/p/jsf-conventions-framework/
>
>
>
> ----- Mensagem original -----
> De: José Luis Cetina <maxtorzito@gmail.com>
> Para: MyFaces Discussion <users@myfaces.apache.org>; Rafael Pestano <
> rmpestano@yahoo.com.br>
> Cc:
> Enviadas: Segunda-feira, 12 de Março de 2012 14:24
> Assunto: Re: Both MyFaces and the RI are on your classpath. Please make
> sure to use only one of the two JSF-implementations.
>
> I cant do that , in the server exist other app that use mojarra   :(
>
> and what happend with this:
>
> <class-loader delegate="false"/>
> <property name="useBundledJsf" value="true"/>
>
> 2012/3/12 Rafael Pestano <rmpestano@yahoo.com.br>
>
> > You can try to remove jsf-api.jar and jsf-impl.jar from glassfish, if
> your
> > app still running you are using myfaces ;).
> >
> > RI jars are under GLASSFISH_HOME\glassfish\modules, also make sure to
> > delete cache folder in
> GLASSFISH_HOME\glassfish\domains\domain1\osgi-cache
> >
> > Att,
> >
> > Rafael M. Pestano
> >
> > Desenvolvedor Java Cia. de Processamento de Dados do Rio Grande do Sul
> > Graduando em Ciência da Computação UFRGS
> > @realpestano
> > http://code.google.com/p/jsf-conventions-framework/
> >
> >
> >
> > ________________________________
> > De: Mike Kienenberger <mkienenb@gmail.com>
> > Para: MyFaces Discussion <users@myfaces.apache.org>
> > Enviadas: Segunda-feira, 12 de Março de 2012 14:17
> > Assunto: Re: Both MyFaces and the RI are on your classpath. Please make
> > sure to use only one of the two JSF-implementations.
> >
> > You are correct in that it is a serious error.   Having both jars in
> > your path will result in identically-named, but differently-operating
> > classes to be present in your application.
> >
> > You need to configure Glassfish to disable the RI, or you need to
> > remove the myfaces jars.
> >
> > 2012/3/12 José Luis Cetina <maxtorzito@gmail.com>:
> > > Well sorry, really this says: ERROR Both MyFaces and the RI are on your
> > > classpath. Please make sure to use only one of the two
> > JSF-implementations.
> > >
> > > Grave: Both MyFaces and the RI are on your classpath. Please make sure
> to
> > > use only one of the two JSF-implementations.
> > >
> > > 2012/3/12 Shasi Mitra <shasimitra@yahoo.com>
> > >
> > >> It's just a warning rite? You can go ahead with your development. It
> > >> doesn't  affect anything.
> > >>
> > >> Sent from my iPhone
> > >>
> > >> On Mar 12, 2012, at 10:10 PM, José Luis Cetina <maxtorzito@gmail.com>
> > >> wrote:
> > >>
> > >> > Im triying to start a new project for first time with myfaces, i
> > always
> > >> > used Mojarra but know i want to change but im having problems at the
> > >> start:
> > >> >
> > >> > My only requierement is use Glassfish 3.1.2.1.
> > >> >
> > >> > Hi i have this WARNING:
> > >> >
> > >> > *Both MyFaces and the RI are on your classpath. Please make sure to
> > use
> > >> > only one of the two JSF-implementations.*
> > >> >
> > >> > Why this happend if im using only jars from myfaces?? maybe for
> > >> glassfish i
> > >> > think, i have these in my *glassfish-web.xml* file, under WEB-INF
> > folder:
> > >> >
> > >> > <?xml version="1.0" encoding="UTF-8"?>
> > >> > <!DOCTYPE glassfish-web-app PUBLIC "-//GlassFish.org//DTD GlassFish
> > >> > Application Server 3.1 Servlet 3.0//EN" "
> > >> > http://glassfish.org/dtds/glassfish-web-app_3_0-1.dtd";>
> > >> > <glassfish-web-app error-url="">
> > >> >    <!--Para establecer el charset a utf8 y remover el mensaje de:
> > >> PWC4011:
> > >> > Unable to set request character encoding to UTF-8 from context-->
> > >> >    <parameter-encoding default-charset="UTF-8"/>
> > >> >    *<class-loader delegate="false"/>*
> > >> > *    <property name="useBundledJsf" value="true"/>*
> > >> >    <!--<class-loader delegate="true"/>-->
> > >> >    <jsp-config>
> > >> >        <property name="keepgenerated" value="true">
> > >> >            <description>Keep a copy of the generated servlet
class'
> > java
> > >> > code.</description>
> > >> >        </property>
> > >> >    </jsp-config>
> > >> > </glassfish-web-app>
> > >> >
> > >> > ----------------  ----------------  ----------------
> > >> >
> > >> > This is my web.xml
> > >> >
> > >> > <?xml version="1.0" encoding="UTF-8"?>
> > >> > <web-app version="3.0" xmlns="http://java.sun.com/xml/ns/javaee";
> > >> xmlns:xsi="
> > >> > http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="
> > >> > http://java.sun.com/xml/ns/javaee
> > >> > http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd";>
> > >> >    <context-param>
> > >> >        <param-name>javax.faces.PROJECT_STAGE</param-name>
> > >> >        <param-value>Development</param-value>
> > >> >    </context-param>
> > >> >    <context-param>
> > >> >        <param-name>com.ocpsoft.pretty.DEVELOPMENT</param-name>
> > >> >        <param-value>true</param-value>
> > >> >    </context-param>
> > >> >    <context-param>
> > >> >        <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
> > >> >        <param-value>server</param-value>
> > >> >    </context-param>
> > >> >    <context-param>
> > >> >        <param-name>
> > >> >
> > >>
> >
> javax.faces.DATETIMECONVERTER_DEFAULT_TIMEZONE_IS_SYSTEM_TIMEZONE</param-name>
> > >> >        <param-value>true</param-value>
> > >> >    </context-param>
> > >> >     <context-param>
> > >> >        <param-name>javax.faces.FACELETS_SKIP_COMMENTS</param-name>
> > >> >        <param-value>true</param-value>
> > >> >    </context-param>
> > >> >    <context-param>
> > >> >
> > >> >
> > >>
> >
> <param-name>com.sun.faces.enableMissingResourceLibraryDetection</param-name>
> > >> >        <param-value>true</param-value>
> > >> >    </context-param>
> > >> >    <listener>
> > >> >        *
> > >> >
> > >>
> >
> <listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
> > >> > *
> > >> >    </listener>
> > >> >    <servlet>
> > >> >        <servlet-name>Faces Servlet</servlet-name>
> > >> >
> <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
> > >> >        <load-on-startup>1</load-on-startup>
> > >> >    </servlet>
> > >> >    <servlet-mapping>
> > >> >        <servlet-name>Faces Servlet</servlet-name>
> > >> >        <url-pattern>/faces/*</url-pattern>
> > >> >    </servlet-mapping>
> > >> >    <session-config>
> > >> >        <session-timeout>
> > >> >            30
> > >> >        </session-timeout>
> > >> >    </session-config>
> > >> >    <welcome-file-list>
> > >> >        <welcome-file>faces/index.xhtml</welcome-file>
> > >> >    </welcome-file-list>
> > >> > </web-app>
> > >> >
> > >> > ----------------  ----------------  ----------------
> > >> >
> > >> > Here are my libraries:
> > >> >
> > >> > --MYFACES
> > >> > myfaces-api-2.1.6.jar
> > >> > myfaces-impl-2.1.6.jar
> > >> > commons-beanutils-1.8.3.jar
> > >> > commons-digester-1.8.jar
> > >> > commons-logging-1.8.jar
> > >> > commons-codec-1.1.1.jar
> > >> > commons-collections-3.2.jar
> > >> > --MYFACES CODI
> > >> > myfaces-extcdi-alternative-implementation-module-1.0.4
> > >> > myfaces-extcdi-bv1-module-api-1.0.4
> > >> > myfaces-extcdi-bv1-module-impl-1.0.4
> > >> > myfaces-extcdi-core-alternative-configuration-1.0.4
> > >> > myfaces-extcdi-core-api-1.0.4
> > >> > myfaces-extcdi-core-impl-1.0.4
> > >> > myfaces-extcdi-jpa1-module-api-1.0.4
> > >> > myfaces-extcdi-jpa1-module-impl-1.0.4
> > >> > myfaces-extcdi-jsf20-module-api-1.0.4
> > >> > myfaces-extcdi-jsf20-module-impl-1.0.4
> > >> > myfaces-extcdi-jsf-alternative-configuration-1.0.4
> > >> > myfaces-extcdi-message-module-api-1.0.4
> > >> > myfaces-extcdi-message-module-impl-1.0.4
> > >> > myfaces-extcdi-scripting-module-api-1.0.4
> > >> > myfaces-extcdi-scripting-module-impl-1.0.4
> > >> >
> > >> >
> > >> > I dont know if because the "WARNING" i have other problem:
> > >> >
> > >> > javax.el.PropertyNotFoundException: Target Unreachable, identifier
> > >> 'myBean'
> > >> > resolved to null,
> > >> >
> > >> > I have in my beans.xml file under WEB-INF this:
> > >> >
> > >> > <?xml version="1.0" encoding="UTF-8"?>
> > >> > <beans xmlns="http://java.sun.com/xml/ns/javaee";
> > >> >       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
> > >> >       xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
> > >> > http://java.sun.com/xml/ns/javaee/beans_1_0.xsd";>
> > >> > </beans>
> > >> >
> > >> > and in my bean:
> > >> >
> > >> > @Named
> > >> > @ViewAccessScoped
> > >> > @Model
> > >> > @View(Index.class)
> > >> > public class MyBean implements Serializable{
> > >> >   public void test(){
> > >> >     //do nothing
> > >> >   }
> > >> >
> > >> > .....
> > >> > }
> > >> >
> > >> > and in my index.xhtml
> > >> >
> > >> > <h:commandButton value="CLICK" action="#{myBean.test}"/>
> > >> >
> > >> > if i click my button the i get this error:
> > >> >
> > >> > javax.el.PropertyNotFoundException: Target Unreachable, identifier
> > >> 'myBean'
> > >> > resolved to null
> > >> > viewId=/index.xhtml
> > >> >
> > >>
> >
> location=C:\Users\user\Documents\NetBeansProjects\testweb\build\web\index.xhtml
> > >> > phaseId=INVOKE_APPLICATION(5)
> > >> > Caused by:
> > >> > javax.el.PropertyNotFoundException - Target Unreachable, identifier
> > >> > 'myBean' resolved to null
> > >> > at com.sun.el.parser.AstValue.getTarget(AstValue.java:153)
> > >> >
> > >> >
> > >> > I dont know if this is for the first problem  (*Both MyFaces and the
> > RI
> > >> are
> > >> > on your classpath. Please make sure to use only one of the two
> > >> > JSF-implementations.*)
> > >> > I read i need to have my beans.xml but i have it!!!
> > >> >
> > >> > Thanks, and sorry for the english, is not my native language
> > >> >
> > >> >
> > >> > Im using: Netbeans 7.1, *Glassfish 3.1.2.1,* JDK 7u3, MyFaces 2.1.6,
> > CODI
> > >> > 1.0.4, Windows 7.
> > >> >
> > >> > --
> > >> > -------------------------------------------------------------------
> > >> > *SCJA. José Luis Cetina*
> > >> > -------------------------------------------------------------------
> > >>
> > >
> > >
> > >
> > > --
> > > -------------------------------------------------------------------
> > > *SCJA. José Luis Cetina*
> > > -------------------------------------------------------------------
> >
>
>
>
> --
> -------------------------------------------------------------------
> *SCJA. José Luis Cetina*
> -------------------------------------------------------------------
>
>


-- 
-------------------------------------------------------------------
*SCJA. José Luis Cetina*
-------------------------------------------------------------------

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message