8 Replies Latest reply on Mar 17, 2011 9:21 AM by benng

    Problem with skins

    benng

      Hi guys !

       

      i'm testing richfaces 4 with maven and i have a problem with skin.

      Everything seem to be working good but without skin.

       

      I joined my project on this message. I'm sure it's is a stupid mistake but i don't find

      Could you have a look to my problem please ?

      I'm sure 4 for person who know well it will take 5 minutes !

       

      Thanks !!!

        • 1. Problem with skins
          ilya_shaikovsky

          please try to change skin context-param.. according to our constants it should be org.richfaces.skin

          • 2. Problem with skins
            benng

            Thx for the answer

            In fact i used both  org.richfaces.SKIN and  org.richfaces.skin but it did not work

            • 3. Problem with skins
              ilya_shaikovsky

              any information in server log?

              • 4. Problem with skins
                benng

                nop

                 

                this is the console :

                 

                 

                 

                 

                 

                 

                 

                 

                 

                 

                09:25:24,544 INFO  [AbstractJBossASServerBase] Server Configuration:

                 

                 

                          JBOSS_HOME URL: file:/D:/Users/Administrator/Downloads/soft/java/jboss-6.0.0.Final/

                          Bootstrap: $JBOSS_HOME\server/default/conf/bootstrap.xml

                          Common Base: $JBOSS_HOME\common/

                          Common Library: $JBOSS_HOME\common/lib/

                          Server Name: default

                          Server Base: $JBOSS_HOME\server/

                          Server Library: $JBOSS_HOME\server/default/lib/

                          Server Config: $JBOSS_HOME\server/default/conf/

                          Server Home: $JBOSS_HOME\server/default/

                          Server Data: $JBOSS_HOME\server/default/data/

                          Server Log: $JBOSS_HOME\server/default/log/

                          Server Temp: $JBOSS_HOME\server/default/tmp/

                 

                 

                09:25:24,554 INFO  [AbstractServer] Starting: JBossAS [6.0.0.Final "Neo"]

                09:25:28,981 INFO  [ServerInfo] Java version: 1.6.0_24,Sun Microsystems Inc.

                09:25:28,982 INFO  [ServerInfo] Java Runtime: Java(TM) SE Runtime Environment (build 1.6.0_24-b07)

                09:25:28,982 INFO  [ServerInfo] Java VM: Java HotSpot(TM) 64-Bit Server VM 19.1-b02,Sun Microsystems Inc.

                09:25:28,982 INFO  [ServerInfo] OS-System: Windows 7 6.1,amd64

                09:25:28,984 INFO  [ServerInfo] VM arguments: -Dprogram.name=JBossTools: jboss-6.0.0.Final Runtime -Xms256m -Xmx768m -XX:MaxPermSize=256m -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Djava.endorsed.dirs=D:\Users\Administrator\Downloads\soft\java\jboss-6.0.0.Final\lib\endorsed -Djava.library.path=D:\Users\Administrator\Downloads\soft\java\jboss-6.0.0.Final\bin\native; -Dfile.encoding=Cp1252

                09:25:29,145 INFO  [JMXKernel] Legacy JMX core initialized

                09:25:51,390 INFO  [AbstractServerConfig] JBoss Web Services - Stack CXF Server 3.4.1.GA

                09:25:53,960 INFO  [JSFImplManagementDeployer] Initialized 3 JSF configurations: [Mojarra-1.2, MyFaces-2.0, Mojarra-2.0]

                09:26:31,987 ATTENTION [FileConfigurationParser] AIO wasn't located on this platform, it will fall back to using pure Java NIO. If your platform is Linux, install LibAIO to enable the AIO journal

                09:27:11,208 ATTENTION [FileConfigurationParser] AIO wasn't located on this platform, it will fall back to using pure Java NIO. If your platform is Linux, install LibAIO to enable the AIO journal

                09:27:11,772 INFO  [JMXConnector] starting JMXConnector on host localhost:1090

                09:27:12,124 INFO  [MailService] Mail Service bound to java:/Mail

                09:27:14,156 INFO  [HornetQServerImpl] live server is starting..

                09:27:14,648 INFO  [JournalStorageManager] Using NIO Journal

                09:27:14,687 ATTENTION [HornetQServerImpl] Security risk! It has been detected that the cluster admin user and password have not been changed from the installation default. Please see the HornetQ user guide, cluster chapter, for instructions on how to do this.

                09:27:16,783 INFO  [NettyAcceptor] Started Netty Acceptor version 3.2.1.Final-r2319 localhost:5445 for CORE protocol

                09:27:16,789 INFO  [NettyAcceptor] Started Netty Acceptor version 3.2.1.Final-r2319 localhost:5455 for CORE protocol

                09:27:16,792 INFO  [HornetQServerImpl] HornetQ Server version 2.1.2.Final (Colmeia, 120) started

                09:27:16,881 INFO  [WebService] Using RMI server codebase: http://localhost:8083/

                09:27:17,235 INFO  [jbossatx] ARJUNA-32010 JBossTS Recovery Service (tag: JBOSSTS_4_14_0_Final) - JBoss Inc.

                09:27:17,246 INFO  [arjuna] ARJUNA-12324 Start RecoveryActivators

                09:27:17,291 INFO  [arjuna] ARJUNA-12296 ExpiredEntryMonitor running at jeu., 17 mars 2011 09:27:17

                09:27:17,515 INFO  [arjuna] ARJUNA-12310 Recovery manager listening on endpoint 127.0.0.1:4712

                09:27:17,517 INFO  [arjuna] ARJUNA-12344 RecoveryManagerImple is ready on port 4712

                09:27:17,518 INFO  [jbossatx] ARJUNA-32013 Starting transaction recovery manager

                09:27:17,533 INFO  [arjuna] ARJUNA-12163 Starting service com.arjuna.ats.arjuna.recovery.ActionStatusService on port 4713

                09:27:17,535 INFO  [arjuna] ARJUNA-12337 TransactionStatusManagerItem host: 127.0.0.1 port: 4713

                09:27:17,681 INFO  [arjuna] ARJUNA-12170 TransactionStatusManager started on port 4713 and host 127.0.0.1 with service com.arjuna.ats.arjuna.recovery.ActionStatusService

                09:27:17,766 INFO  [jbossatx] ARJUNA-32017 JBossTS Transaction Service (JTA version - tag: JBOSSTS_4_14_0_Final) - JBoss Inc.

                09:27:17,855 INFO  [arjuna] ARJUNA-12202 registering bean jboss.jta:type=ObjectStore.

                09:27:18,558 INFO  [AprLifecycleListener] The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: D:\Users\Administrator\Downloads\soft\java\jboss-6.0.0.Final\bin\native;

                09:27:18,906 INFO  [ModClusterService] Initializing mod_cluster 1.1.0.Final

                09:27:18,932 INFO  [TomcatDeployment] deploy, ctxPath=/invoker

                09:27:19,917 INFO  [RARDeployment] Required license terms exist, view vfs:/D:/Users/Administrator/Downloads/soft/java/jboss-6.0.0.Final/server/default/deploy/jboss-local-jdbc.rar/META-INF/ra.xml

                09:27:19,960 INFO  [RARDeployment] Required license terms exist, view vfs:/D:/Users/Administrator/Downloads/soft/java/jboss-6.0.0.Final/server/default/deploy/jboss-xa-jdbc.rar/META-INF/ra.xml

                09:27:19,991 INFO  [RARDeployment] Required license terms exist, view vfs:/D:/Users/Administrator/Downloads/soft/java/jboss-6.0.0.Final/server/default/deploy/jms-ra.rar/META-INF/ra.xml

                09:27:20,037 INFO  [HornetQResourceAdapter] HornetQ resource adaptor started

                09:27:20,069 INFO  [RARDeployment] Required license terms exist, view vfs:/D:/Users/Administrator/Downloads/soft/java/jboss-6.0.0.Final/server/default/deploy/mail-ra.rar/META-INF/ra.xml

                09:27:20,106 INFO  [RARDeployment] Required license terms exist, view vfs:/D:/Users/Administrator/Downloads/soft/java/jboss-6.0.0.Final/server/default/deploy/quartz-ra.rar/META-INF/ra.xml

                09:27:20,416 INFO  [SimpleThreadPool] Job execution threads will use class loader of thread: Thread-2

                09:27:20,551 INFO  [SchedulerSignalerImpl] Initialized Scheduler Signaller of type: class org.quartz.core.SchedulerSignalerImpl

                09:27:20,553 INFO  [QuartzScheduler] Quartz Scheduler v.1.8.3 created.

                09:27:20,559 INFO  [RAMJobStore] RAMJobStore initialized.

                09:27:20,566 INFO  [QuartzScheduler] Scheduler meta-data: Quartz Scheduler (v1.8.3) 'JBossQuartzScheduler' with instanceId 'NON_CLUSTERED'

                  Scheduler class: 'org.quartz.core.QuartzScheduler' - running locally.

                  NOT STARTED.

                  Currently in standby mode.

                  Number of jobs executed: 0

                  Using thread pool 'org.quartz.simpl.SimpleThreadPool' - with 10 threads.

                  Using job-store 'org.quartz.simpl.RAMJobStore' - which does not support persistence. and is not clustered.

                 

                 

                09:27:20,568 INFO  [StdSchedulerFactory] Quartz scheduler 'JBossQuartzScheduler' initialized from an externally opened InputStream.

                09:27:20,569 INFO  [StdSchedulerFactory] Quartz scheduler version: 1.8.3

                09:27:20,571 INFO  [QuartzScheduler] Scheduler JBossQuartzScheduler_$_NON_CLUSTERED started.

                09:27:21,695 INFO  [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=DefaultDS' to JNDI name 'java:DefaultDS'

                09:27:22,349 INFO  [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=ConnectionFactoryBinding,name=JmsXA' to JNDI name 'java:JmsXA'

                09:27:22,697 INFO  [xnio] XNIO Version 2.1.0.CR2

                09:27:22,715 INFO  [nio] XNIO NIO Implementation Version 2.1.0.CR2

                09:27:23,175 INFO  [remoting] JBoss Remoting version 3.1.0.Beta2

                09:27:23,347 INFO  [TomcatDeployment] deploy, ctxPath=/

                09:28:33,901 INFO  [TomcatDeployment] deploy, ctxPath=/core-demo-4.1.0-SNAPSHOT

                09:28:33,999 INFO  [StandardContext] The listener "com.sun.faces.config.ConfigureListener" is already configured for this context. The duplicate definition has been ignored.

                09:28:34,061 INFO  [config] Initialisation de Mojarra 2.0.4 (FCS b09) pour le contexte '/core-demo-4.1.0-SNAPSHOT'

                09:28:44,206 INFO  [Cache] Selected fallback cache factory

                09:28:44,210 INFO  [Cache] Creating LRUMap cache instance using parameters: {com.sun.faces.duplicateJARPattern=^tmp\d+(\S*\.jar), org.richfaces.skin=#{skinBean.skin}, com.sun.faces.injectionProvider=org.jboss.web.jsf.integration.injection.JBossDelegatingInjectionProvider, javax.faces.PROJECT_STAGE=Development, org.richfaces.enableControlSkinningClasses=#{skinBean.enableClassesSkinning}, org.richfaces.enableControlSkinning=#{skinBean.enableElementsSkinning}, resteasy.unwrapped.exceptions=javax.ejb.EJBException, javax.faces.STATE_SAVING_METHOD=client}

                09:28:44,218 INFO  [Cache] Creating LRUMap cache instance of 512 items capacity

                09:28:44,224 INFO  [Application] RichFaces Core Implementation by JBoss, a division of Red Hat, Inc., version v.4.1.0-SNAPSHOT SVN r.22222

                09:28:45,771 INFO  [config] Monitoring jndi:/localhost/core-demo-4.1.0-SNAPSHOT/WEB-INF/faces-config.xml for modifications

                09:29:59,026 INFO  [TomcatDeployment] deploy, ctxPath=/jbossStack

                09:29:59,242 INFO  [StandardContext] The listener "com.sun.faces.config.ConfigureListener" is already configured for this context. The duplicate definition has been ignored.

                09:29:59,363 INFO  [config] Initialisation de Mojarra 2.0.4 (FCS b09) pour le contexte '/jbossStack'

                09:30:17,662 INFO  [Version] Hibernate Validator 4.1.0.Final

                09:30:17,695 INFO  [DefaultTraversableResolver] Instantiated an instance of org.hibernate.validator.engine.resolver.JPATraversableResolver.

                09:30:17,849 INFO  [Cache] Selected fallback cache factory

                09:30:17,852 INFO  [Cache] Creating LRUMap cache instance using parameters: {com.sun.faces.duplicateJARPattern=^tmp\d+(\S*\.jar), org.richfaces.skin=blueSky, com.sun.faces.injectionProvider=org.jboss.web.jsf.integration.injection.JBossDelegatingInjectionProvider, javax.faces.PROJECT_STAGE=Development, resteasy.unwrapped.exceptions=javax.ejb.EJBException, javax.faces.STATE_SAVING_METHOD=client}

                09:30:17,858 INFO  [Cache] Creating LRUMap cache instance of 512 items capacity

                09:30:17,863 INFO  [Application] RichFaces Core Implementation by JBoss, a division of Red Hat, Inc., version v.4.0.0.20110227-CR1 SVN r.21967

                09:30:17,962 INFO  [config] Monitoring jndi:/localhost/jbossStack/WEB-INF/faces-config.xml for modifications

                09:31:25,186 INFO  [TomcatDeployment] deploy, ctxPath=/richfaces-showcase

                09:31:25,328 INFO  [config] Initialisation de Mojarra 2.0.3 ( b05) pour le contexte '/richfaces-showcase'

                09:31:32,063 INFO  [DefaultTraversableResolver] Instantiated an instance of org.hibernate.validator.engine.resolver.JPATraversableResolver.

                09:31:32,104 INFO  [Cache] Selected fallback cache factory

                09:31:32,106 INFO  [Cache] Creating LRUMap cache instance using parameters: {com.sun.faces.duplicateJARPattern=^tmp\d+(\S*\.jar), org.richfaces.skin=#{skinBean.skin}, com.sun.faces.injectionProvider=org.jboss.web.jsf.integration.injection.JBossDelegatingInjectionProvider, org.richfaces.fileUpload.maxRequestSize=100000, javax.faces.PROJECT_STAGE=Development, javax.faces.FACELETS_LIBRARIES=/WEB-INF/app-tags.taglib.xml, org.richfaces.fileUpload.createTempFiles=false, resteasy.unwrapped.exceptions=javax.ejb.EJBException, javax.faces.STATE_SAVING_METHOD=server}

                09:31:32,113 INFO  [Cache] Creating LRUMap cache instance of 512 items capacity

                09:31:32,117 INFO  [Application] RichFaces Core Implementation by JBoss, a division of Red Hat, Inc., version v.4.1.0-SNAPSHOT SVN r.22222

                09:31:32,124 INFO  [config] Monitoring jndi:/localhost/richfaces-showcase/WEB-INF/faces-config.xml for modifications

                09:31:32,188 INFO  [service] Removing bootstrap log handlers

                09:31:32,389 INFO  [org.apache.coyote.http11.Http11Protocol] Démarrage de Coyote HTTP/1.1 sur http-localhost%2F127.0.0.1-8080

                09:31:32,413 INFO  [org.apache.coyote.ajp.AjpProtocol] Starting Coyote AJP/1.3 on ajp-localhost%2F127.0.0.1-8009

                09:31:32,415 INFO  [org.jboss.bootstrap.impl.base.server.AbstractServer] JBossAS [6.0.0.Final "Neo"] Started in 6m:7s:853ms

                09:36:48,408 INFO  [org.jboss.web.tomcat.service.deployers.TomcatDeployment] undeploy, ctxPath=/jbossStack

                09:39:26,407 INFO  [org.jboss.web.tomcat.service.deployers.TomcatDeployment] deploy, ctxPath=/jbossStack

                09:39:26,555 INFO  [org.apache.catalina.core.StandardContext] The listener "com.sun.faces.config.ConfigureListener" is already configured for this context. The duplicate definition has been ignored.

                09:39:26,678 INFO  [javax.enterprise.resource.webcontainer.jsf.config] Initialisation de Mojarra 2.0.4 (FCS b09) pour le contexte '/jbossStack'

                09:39:54,110 INFO  [org.hibernate.validator.engine.resolver.DefaultTraversableResolver] Instantiated an instance of org.hibernate.validator.engine.resolver.JPATraversableResolver.

                09:39:54,346 INFO  [org.richfaces.log.Cache] Selected fallback cache factory

                09:39:54,349 INFO  [org.richfaces.log.Cache] Creating LRUMap cache instance using parameters: {com.sun.faces.duplicateJARPattern=^tmp\d+(\S*\.jar), org.richfaces.SKIN=blueSky, com.sun.faces.injectionProvider=org.jboss.web.jsf.integration.injection.JBossDelegatingInjectionProvider, javax.faces.PROJECT_STAGE=Development, resteasy.unwrapped.exceptions=javax.ejb.EJBException, javax.faces.STATE_SAVING_METHOD=client}

                09:39:54,356 INFO  [org.richfaces.log.Cache] Creating LRUMap cache instance of 512 items capacity

                09:39:54,363 INFO  [org.richfaces.log.Application] RichFaces Core Implementation by JBoss, a division of Red Hat, Inc., version v.4.0.0.20110227-CR1 SVN r.21967

                09:39:54,377 INFO  [javax.enterprise.resource.webcontainer.jsf.config] Monitoring jndi:/localhost/jbossStack/WEB-INF/faces-config.xml for modifications

                • 5. Problem with skins
                  ilya_shaikovsky

                  after second check found one more obvious problem. You had incorrect HTML markup becuase of mistake in teamplate. Should be:

                   

                  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

                  <html xmlns="http://www.w3.org/1999/xhtml"

                            xmlns:h="http://java.sun.com/jsf/html"

                            xmlns:f="http://java.sun.com/jsf/core"

                            xmlns:ui="http://java.sun.com/jsf/facelets"

                            xmlns:a4j="http://richfaces.org/a4j">

                  <f:view contentType="text/html">

                  <h:head></h:head>

                  <h:body>

                  <ui:insert name="body">

                  le body n'a pas été surchargé

                  </ui:insert>

                  </h:body>

                  </f:view>

                  </html>

                   

                  And keep in mind that this 

                   

                  <context-param>

                                      <param-name>org.richfaces.skin</param-name>

                                      <param-value>blueSky</param-value>

                            </context-param>

                   

                  still important./

                  • 6. Problem with skins
                    benng

                    So the skin can only be applied inside head or body.

                    Ok really thx !!!

                    • 7. Problem with skins
                      ilya_shaikovsky

                      not the "skin could be used" but in general resources not loading properly without that. Event standard JSF ones I guess should be failed with your initial code.

                      • 8. Problem with skins
                        benng

                        I see ...

                        Thx