Hi,
Bought the ultima theme in morning today and have been trying since to integrate an existing project in JSF2.2 with Primefaces 6 along with glassfish server 4 in Netbeans IDE 8 (without Maven).
Will be extremely grateful for the help.
My directory structure is as follows:
1- Web Pages
1.1- META-INF
1.2- WEB-INF
1.3- resources
1.3.1- css
1.3.2- images
1.3.3- ultima-layout
2- Source Packages
3- Libraries
4- Configuration Files
1- Have already imported the ultima-theme-1.1.jar in the lib folder.
2- Have made the following entry in the web.xml file
<context-param>
<param-name>primefaces.THEME</param-name>
<param-value>primefaces-ultima-dark-green</param-value>
</context-param>
3- Copied the following files footer.xhtml, menu.xhtml, rightpanel.xhtml, template.xhtml and topbar.xhtml in the WEB-INF folder
4- Copied the ultima-layout folder under the resources folder.
Constantly getting the follwing error:
Warning: StandardWrapperValve[Faces Servlet]: Servlet.service() for servlet Faces Servlet threw exception
javax.faces.FacesException: Error loading css, cannot find "theme.css" resource of "primefaces-primefaces-ultima-dark-green" library
at org.primefaces.renderkit.HeadRenderer.encodeCSS(HeadRenderer.java:145)
at org.primefaces.renderkit.HeadRenderer.encodeBegin(HeadRenderer.java:77)
at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:869)
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1854)
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1859)
at com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:443)
at com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:131)
at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:337)
at org.apache.myfaces.tomahawk.application.ResourceViewHandlerWrapper.renderView(ResourceViewHandlerWrapper.java:169)
at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:337)
at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:120)
at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:219)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:647)
at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1682)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:318)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:160)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:734)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:673)
at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:99)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:174)
at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:357)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:260)
at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:188)
at org.glassfish.grizzly.http.server.HttpHandler.runService(HttpHandler.java:191)
at org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:168)
at org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:189)
at org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:288)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:206)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:136)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:114)
at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77)
at org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:838)
at org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:113)
at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:115)
at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:55)
at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:135)
at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:564)
at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:544)
at java.lang.Thread.run(Thread.java:745)
Installation of Ultima Theme
Forum rules
Please note that response time for technical support is within 3-5 business days.
Please note that response time for technical support is within 3-5 business days.
-
- Posts: 5281
- Joined: 29 Jun 2013, 12:38
You can provide css file with SASS command. Please see documentation;
https://www.primefaces.org/ultima/docs.xhtml
Please try;
Also, these links can help to you;
https://www.dropbox.com/s/2p74g63wldbov ... t.mp4?dl=0
https://www.dropbox.com/s/s9cle2xqbwbu8 ... t.mp4?dl=0
https://www.primefaces.org/ultima/docs.xhtml
Please try;
Code: Select all
sass -w src/main/webapp/resources/ --sourcemap=none
https://www.dropbox.com/s/2p74g63wldbov ... t.mp4?dl=0
https://www.dropbox.com/s/s9cle2xqbwbu8 ... t.mp4?dl=0
Github Profile: https://github.com/mertsincan
-
- Posts: 5
- Joined: 04 Feb 2016, 14:21
Hi,
On using the saas command I get the following output:
I still get the same error as before:
Have watched both videos extremely carefully. In both videos they have used a build tool maven to install this theme.
In short, is there a way to integrate this theme without using the build tool maven.
On using the saas command I get the following output:
Code: Select all
H:\Projects\Testing\USFIS_v3>sass -w web/resources/ --sourcemap=none
>>> Sass is watching for changes. Press Ctrl-C to stop.
Code: Select all
HTTP Status 500 - Internal Server Error
type Exception report
messageInternal Server Error
descriptionThe server encountered an internal error that prevented it from fulfilling this request.
exception
javax.servlet.ServletException: Error loading css, cannot find "theme.css" resource of "primefaces-primefaces-ultima-indigo" library
root cause
javax.faces.FacesException: Error loading css, cannot find "theme.css" resource of "primefaces-primefaces-ultima-indigo" library
note The full stack traces of the exception and its root causes are available in the GlassFish Server Open Source Edition 4.0 logs.
GlassFish Server Open Source Edition 4.0
In short, is there a way to integrate this theme without using the build tool maven.
-
- Posts: 5281
- Joined: 29 Jun 2013, 12:38
Please check primefaces-primefaces-ultima-indigo and theme.css.
Code: Select all
<param-value>ultima-dark-green</param-value>
Github Profile: https://github.com/mertsincan
-
- Posts: 1
- Joined: 29 Apr 2019, 16:56
Hello,nova-usman wrote: ↑23 Oct 2017, 21:14
Have watched both videos extremely carefully. In both videos they have used a build tool maven to install this theme.
In short, is there a way to integrate this theme without using the build tool maven.
Have you ever been able to get primefaces working without maven ? We are struggling with the same problem.....
regards,
Rinse
-
- Posts: 5281
- Joined: 29 Jun 2013, 12:38
Two solutions;
1) You can add all SCSS files into the project and provide CSS files. Then, you can import the css files with <h:outputStylesheet
2) You can add theme.jar and SCSS files related to the only Layout into your project. Then, <h:outputStylesheet
1) You can add all SCSS files into the project and provide CSS files. Then, you can import the css files with <h:outputStylesheet
2) You can add theme.jar and SCSS files related to the only Layout into your project. Then, <h:outputStylesheet
Github Profile: https://github.com/mertsincan
-
- Information
-
Who is online
Users browsing this forum: No registered users and 12 guests