9 Replies Latest reply on Oct 16, 2008 5:27 AM by Ileana SSS

    Plug-n-skin made and now??

    Remco Visser Newbie

      I have managed to create a skin. But after that the documentation is unclear to me what steps have to be taken next.

      How do I really plug the skin in my excisting project?

      Thanks in advance

        • 1. Re: Plug-n-skin made and now??
          Ilya Shaikovsky Master

          with your description all that I can do describe steps which is already described again :)

          Please tell what have you performed already and where did you actually lost? ;)

          P.s. If I understand you right you already create pluggable skin template and define the xcss's properties you need in generated files and only need to include the result in your application? then just execute mvn install and add the result jar to your project.

          • 2. Re: Plug-n-skin made and now??
            Remco Visser Newbie

            Your PS is right.

            Adding the result jar should be enough in my case. I will give it try.

            Thank you for your reply.

            • 3. Re: Plug-n-skin made and now??
              Ilya Shaikovsky Master

              sorry.. b.t.w. I forgot to mention that you should define the name of new skin in web.xml as for usual one.

              • 4. Re: Plug-n-skin made and now??
                Remco Visser Newbie

                I have added the result jar to my project and added the following to my web.xml as descriped by the developers guide:

                 <context-param>
                 <param-name>org.ajax4jsf.SKIN</param-name>
                 <param-value>kms</param-value>
                 </context-param>
                


                kms is the name of my skin.

                Now I do get the following exception:

                org.xml.sax.SAXException: Template namespace element <f:importResource> not recognized
                 at org.apache.commons.digester.Digester.createSAXException(Digester.java:3181)
                 at org.apache.commons.digester.Digester.createSAXException(Digester.java:3207)
                 at org.apache.commons.digester.Digester.startElement(Digester.java:1456)
                 at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(Unknown Source)
                 at com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source)
                 at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source)
                 at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
                 at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
                 at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
                 at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
                 at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
                 at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)
                 at org.apache.commons.digester.Digester.parse(Digester.java:1765)
                 at org.ajax4jsf.renderkit.compiler.HtmlCompiler.compile(HtmlCompiler.java:332)
                 at org.ajax4jsf.resource.TemplateCSSRenderer.getTemplate(TemplateCSSRenderer.java:105)
                 at org.ajax4jsf.resource.TemplateCSSRenderer.getData(TemplateCSSRenderer.java:123)
                 at org.ajax4jsf.resource.InternetResourceBase.getDataToStore(InternetResourceBase.java:233)
                 at org.ajax4jsf.resource.InternetResourceBase.getUri(InternetResourceBase.java:215)
                 at org.ajax4jsf.application.AjaxViewHandler.getResourceURL(AjaxViewHandler.java:189)
                 at org.ajax4jsf.context.AjaxContextImpl.processHeadResources(AjaxContextImpl.java:389)
                 at org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:245)
                 at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:107)
                 at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:245)
                 at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:137)
                 at javax.faces.webapp.FacesServlet.service(FacesServlet.java:214)
                 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
                 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
                 at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:141)
                 at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:281)
                 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
                 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
                 at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:691)
                 at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:469)
                 at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:403)
                 at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
                 at org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:686)
                 at org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:656)
                 at org.apache.jsp.index_jsp._jspService(index_jsp.java:46)
                 at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
                 at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
                 at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:331)
                 at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
                 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
                 at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
                 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
                 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
                 at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
                 at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
                 at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
                 at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
                 at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
                 at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
                 at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:874)
                 at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
                 at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
                 at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
                 at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
                 at java.lang.Thread.run(Unknown Source)
                


                • 5. Re: Plug-n-skin made and now??
                  Ilya Shaikovsky Master

                  coud you please send me in zip generated plug-n-skin project?

                  • 6. Re: Plug-n-skin made and now??
                    Remco Visser Newbie

                    I am behind the corperate firewall so that is not an option. But I have also tried it with the laguna example skin and it gives me the same exception.

                    • 8. Re: Plug-n-skin made and now??
                      Remco Visser Newbie

                      Just back from holiday :)

                      I hope there is someone with a solution for my problem.

                      • 9. Re: Plug-n-skin made and now??
                        Ileana SSS Newbie

                        Hi, I have the same problem .... could anyone help?