jsf,jsf-2,primefacesRelated issues-Collection of common programming errors


  • Catfish
    java jsf tomcat
    When I start tomcat in my IDE with this specific project in there (adminapp), it just keeps restarting and restarting. here is my stack trace. if I walk away from my computer, I would see this hundreds of times.What would cause an app to keep doing this?Nov 11, 2011 3:25:36 PM org.apache.catalina.core.AprLifecycleListener init INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\

  • maple_shaft
    jsf coldfusion glassfish
    I want to invoke a jsf file(*.xhtml) from a coldfusion application. The application server is glassfish. I made the follwing my web.xml<?xml version=”1.0″ encoding=”UTF-8″?> <!DOCTYPE web-app PUBLIC “-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN” “http://java.sun.com/dtd/web-app_2_3.dtd”> <web-app id=”adobe_coldfusion”><display-name>Adobe ColdFusion 9</display-name><description>Adobe ColdFusion 9</description><context-param id=”coldfusion_c

  • Volker
    jsf jsf-2 seam icefaces
    UpdateI’m currently over at the ICEfaces forums to get my problem solved – sadly, none of the provided options led to a solution now, but they indeed gave me some more insight into the whole JSF topic (credits go to BalusC for that, as often :-)).I will try to keep this thread up to date and post an answer if the problem is finally solved to help others which may encounter it.My findings so far are:Disabling the Seam Multipart Filter is required because it prevents the fileEntry-component from w

  • user2967758
    jsf tomcat cdi omnifaces weld
    running on: Apache Tomcat 7.0.47 OmniFaces 1.6.3 JSF Mojarra 2.1.26 CDI Weld 2.1.0.FinalThrere is an RuntimeException on Apache Tomcat 7.0.47 by accessing JNDI “java:comp/BeanManager”. The CDI BenManager is bound to “java:comp/env/BeanManager” vut not reached in your BeanManager Class./*** Perform automatic initialization whereby the bean manager is looked up from the JNDI. If the bean manager is* found, then invoke {@link #init(Object)} with the found bean manager.*/private void init() {if (!in

  • Felipe Reis
    jsf jboss7.x cdi activiti wildfly
    I have a webapp which deploys a simple Activiti process,some JSF pages and CDI Beans.Everything works on JBOSS AS 7.1.1 + JSF 2.1.7. However I need to use JSF 2.2, so I tried to configure it on AS 7, but I stumbled on some errors described in this jboss forum post. Bottomline: AS 7 and JSF 2.2 do not work together very well. So I tried to get my app up and running with Wildfly.The startup went on without any relevant errors or warnings. However, upon navigating to a specific jsf page I got an ul

  • COD3BOY
    java jsf
    Ive been trying to debug this for hours but I was unable to get why it’s happening. I have an assumption that the map returned is null? not sure really. Here is the code:FormBean Managed Bean:package core.smd.classes;import javax.faces.bean.ManagedBean; import javax.faces.bean.SessionScoped; import java.util.Date; import org.joda.time.DateTime; import java.util.List;import java.util.ArrayList;@ManagedBean @SessionScoped public class FormBean {/** Creates a new instance of FormBean */int counter=

  • ikrambo
    java spring hibernate jsf spring-mvc
    I´m trying to configure spring + hibernate + jsf in my web application with a glassfish 4.0 server. I use Hibernate in the persistence layer, spring for the business layer and jsf for the web layer. I have configured the hibernate and jsf layers properly. But while I´m trying to configure the spring layer, it doesn´t work.For configuring the database, I have use MySQL Workbench, and I have connected the hibernate layer with the database properly, all the POJOS are properly created.But now Im t

  • Natalia Zoń
    jsf primefaces nullpointerexception requestcontext
    I’m developing an app using Primefaces tag library.So far I’ve copied some examples from their official website and all seems to work except for anything that uses the RequestContext.getCurrentInstance() method. It either returns null every time, causing Tomcat to throw a NullPointer exception or hangs forever, never returning anything.Here’s my code (the case where it hangs):GlobalCounterBean.javapackage org.primefaces.examples.view;import java.io.Serializable; import org.primefaces.context.Req

  • Nazar Sobchuk
    java spring hibernate jsf dependency-injection
    I have a Facelets/ JSF Managed Beans/ Hibernate application. Right now I am trying to implement DI into my beans via annotations. I have 2 of them: LoginBean, RegistrationBean (each responsible for the appropriate page). The problem is that whenever I try to autowire the property inside the RegistrationBean, i end up with NPE. But if I place the same class fields into LoginBean – they are autowired with no problem! Below are my ManagedBeans, applicationContext.xml (db settings are ok, so I won’t

  • Tapas Bose
    java jsf file-upload jsf-1.2 swfupload
    I have seen that we can upload multiple files by flash file upload. Like SWFUpload or YUI Uploader. Is it possible to integrate these upload component with JSF?What I want is to choose multiple file at once. Primefaces file uploader has this feature, but that don’t work in IE7 as IE7 don’t have any support for HTML5. I need to create a Form with various fields, like dropdown menu, text input etc and also need to add a file uploader for choosing multiple file. When the JSF submit button will be c

  • Volker
    jsf jsf-2 seam icefaces
    UpdateI’m currently over at the ICEfaces forums to get my problem solved – sadly, none of the provided options led to a solution now, but they indeed gave me some more insight into the whole JSF topic (credits go to BalusC for that, as often :-)).I will try to keep this thread up to date and post an answer if the problem is finally solved to help others which may encounter it.My findings so far are:Disabling the Seam Multipart Filter is required because it prevents the fileEntry-component from w

  • techventure
    spring hibernate jsf-2
    I’m trying to create a JSF2 application which uses Spring3 for the DI and hibernate to handle the persistence.I’m stock on the following error and don’t know how to proceed:26/10/2012 1:57:04 PM org.apache.catalina.core.StandardContext listenerStart SEVERE: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘sessionFactory’ defined in

  • roterl
    jsf-2 myfaces
    I like to display a form where the end-user can enter details and the post will result in the table which contain a filtered list based on the user input. This table should have link for each row to select that specific row and return a detailed view.accounts-list.xhtml:<?xml version=”1.0″ encoding=”UTF-8″?> <ui:composition xmlns=”http://www.w3.org/1999/xhtml” xmlns:ui=”http://java.sun.com/jsf/facelets” xmlns:f=”http://java.sun.com/jsf/core” xmlns:h=”http://java.sun.com/jsf/html” xmlns:

  • Matt Handy
    spring jsf-2 primefaces
    I am getting following weird error while integrating SWF,Primefaces 2.2.1,JSF 2,Spring Security 3,Spring 3.1.0INFO: Unsanitized stacktrace from failed start… com.sun.faces.config.ConfigurationException: Source Document: jar:file:/E:/30May2011/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/simpleWeb/WEB-INF/lib/primefaces-2.2.1.jar!/META-INF/faces-config.xmlCause: Class ‘org.primefaces.component.autocomplete.AutoCompleteRenderer’ is missing a runtime dependency: java.lang.NoClas

  • John Smith
    ajax jsf jsf-2 primefaces radio-button
    When I try this code after loading the index.xhtml page which is my welcome page(and which have page strana1.xhtml initialy included as content of p:outputPanel “sadrzaj”) and clicking on button “Napred”(means Forward) everything works fine and I got the ajax update of p:outputPanel id=”sadrzaj”(page strana2.xhtml loads and replace page strana1.xhtml inside of index.xhtml page, under p:outputPanel “sadrzaj”). But after that any change of radioButtons(which are part of page strana2.xhtml) doesn’t

  • bertie
    java spring jsf java-ee jsf-2
    I have tested this, trying to inject an service object to a @ManagedBean, but it failed with a nullpointerexception, being the userService is null.I am currently using Tomcat 7, JSF 2, and here are some of my pom.xml<properties><java-version>1.6</java-version><org.springframework-version>3.0.3.RELEASE</org.springframework-version><org.hibernate-version>3.6.0.Final</org.hibernate-version>…. </properties>Here is the exception trace :javax.faces.el.

  • Peter Penzov
    java jsf jsf-2
    I want to use this code and create JSF 2.0 table.I get this problem when I import the code into Netbeans:How I can fix this code?Best wishesP.S. This is the error stack from Netbeans:Source roots:/home/rcbandit/Desktop/NetBeans/Prototype_13/History_Module_57/src/main/java Command line options: -d /home/rcbandit/Desktop/NetBeans/Prototype_13/History_Module_57/target/classes -classpath /home/rcbandit/Desktop/NetBeans/Prototype_13/History_Module_57/target/classes:/home/rcbandit/.m2/repository/java

  • Tomas
    java google-app-engine jsf-2
    I have a problem with running JSF 2.0 on AppEngine. I have following index.xhtml and if I deploy it and open the page, there is nothing but the Title and the page’s source code is completely the same as it was written – no changes from <h:head> to <head> whatsoever.index.xhtml<!DOCTYPE html> <html xmlns=”http://www.w3.org/1999/xhtml”xmlns:f=”http://java.sun.com/jsf/core”xmlns:h=”http://java.sun.com/jsf/html”> <h:head><title>Title</title> </h:head>

  • user2084921
    java jsf java-ee jsf-2
    i am developping a project base on J2EE EJB JSF, database is MYsql, the project works very well last week. but today, it can’t be deployed when i run it. here are some exception:Initial deploying ECOM to C:\Users\John624\Documents\NetBeansProjects\PromoCoupon\ECOM\dist\gfdeploy\ECOM Completed initial distribution of ECOM Initializing… invalid header field name: Exception Description C:\Users\John624\Documents\NetBeansProjects\PromoCoupon\ECOM\nbproject\build-impl.xml:307: The module has not be

  • user811602
    jsf jsf-2 richfaces weblogic weblogic11g
    I am trying to create a simple Richface4 project. Following are jars that i usedAll the jars as per RichFace-4.2 documentation is added.Now on publishing it on server, I am getting following error:Apr 10, 2012 7:41:39 PM com.sun.faces.config.ConfigureListener contextInitialized INFO: Initializing Mojarra 2.0.4 (FCS b05) for context ‘/RF4Test’ Apr 10, 2012 7:41:40 PM org.richfaces.javascript.ClientServiceConfigParser parse WARNING: Found JavaScript function definition for class org.hibernate.vali

  • Eves Mary
    java spring hibernate jsp primefaces
    I am trying to build a j2ee application using primefaces , spring and hibernate. When i am trying to run the project, i get the following errorSEVERE: Context initialization failed java.lang.NoClassDefFoundError: org/springframework/asm/ClassVisitorat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.<init>(AbstractAutowireCapableBeanFactory.java:121)at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.<init>(AbstractAutowireCapab

  • Natalia Zoń
    jsf primefaces nullpointerexception requestcontext
    I’m developing an app using Primefaces tag library.So far I’ve copied some examples from their official website and all seems to work except for anything that uses the RequestContext.getCurrentInstance() method. It either returns null every time, causing Tomcat to throw a NullPointer exception or hangs forever, never returning anything.Here’s my code (the case where it hangs):GlobalCounterBean.javapackage org.primefaces.examples.view;import java.io.Serializable; import org.primefaces.context.Req

  • Matt Handy
    spring jsf-2 primefaces
    I am getting following weird error while integrating SWF,Primefaces 2.2.1,JSF 2,Spring Security 3,Spring 3.1.0INFO: Unsanitized stacktrace from failed start… com.sun.faces.config.ConfigurationException: Source Document: jar:file:/E:/30May2011/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/simpleWeb/WEB-INF/lib/primefaces-2.2.1.jar!/META-INF/faces-config.xmlCause: Class ‘org.primefaces.component.autocomplete.AutoCompleteRenderer’ is missing a runtime dependency: java.lang.NoClas

  • John Smith
    ajax jsf jsf-2 primefaces radio-button
    When I try this code after loading the index.xhtml page which is my welcome page(and which have page strana1.xhtml initialy included as content of p:outputPanel “sadrzaj”) and clicking on button “Napred”(means Forward) everything works fine and I got the ajax update of p:outputPanel id=”sadrzaj”(page strana2.xhtml loads and replace page strana1.xhtml inside of index.xhtml page, under p:outputPanel “sadrzaj”). But after that any change of radioButtons(which are part of page strana2.xhtml) doesn’t

  • Catfish
    java jsf primefaces
    I’m trying to create a treetable from a properties file that i’m parsing and I keep getting the error “Can’t instantiate class” with the code below. I’m not sure why it would be throwing this exception where it does.for(Map.Entry<Object, Object> prop : props.entrySet()) {String key = ((String)prop.getKey()).replace(“_”, ” “);String value = (String)prop.getValue();String[] parts = key.split(“\\.”);if(parts.length > 4) {boolean topLevelExists = false;// if there are already child nodesif(

  • marcog
    java eclipse jsf jsf-2 primefaces
    I have a maven project, and then, i would like to enable JSF 2 facet into the project, because i realized that i cant do the auto completion with the jsf / primefaces tags and with the tag attributes with the ctrl space when editing my jsf page.Enabling the JSF 2 facet in my Helios eclipse results in NullPointerException, with this complete exception trace :!ENTRY org.eclipse.wst.common.project.facet.core 4 0 2011-01-18 22:45:17.073 !MESSAGE null !STACK 0 java.lang.NullPointerExceptionat org.ecl

  • Kawu
    java-ee jsf-2 primefaces glassfish el
    We have a list of collision entities that you can single-select in a PrimeFaces <p:datatable>. Below that one is a fieldset which shows the associated history and file attachments.Here’s the JSF page (the attachments datatable is more important than the rest):<h:panelGrid><p:scrollPanel mode=”native”><p:dataTable value=”#{collisionManager.selectedCollisions}”var=”cln”selection=”#{collisionManager.selectedStateChangeCollision}” selectionMode=”single”rowKey=”#{cln.id}”paginato

  • fer.marino
    maven jsf primefaces jboss7.x atmosphere
    I’m trying to get it to work primefaces, jboss eap 6.2 and primefaces push, that is based on atmosphere. I’m fighting with it for quite some time and I’m getting nowhere, so here I am. So here some info on my configuration. Inside my standalone.xml i’ve set to true the usenative flag, and this is my web.xml:http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd” version=”3.0″>sra-EE<servlet><servlet-name>Push Servlet</servlet-name><servlet-class>org.primefaces.push.PushServle

  • Lennart
    primefaces file-download
    I have a download link in my JSF page using primefaces. When you click it, browser (and not the program) opens a dialog box asking (Open,save,close). I am using eclipse default browser to view my web application. So if you click Open or Save, file will be downloaded. Everything is fine. But if you click cancel everything fails. The error I receive below. I have the bean in conversation scope.WARNING: org.apache.catalina.connector.ClientAbortException: java.io.IOException: An existing connection

  • robson
    java primefaces jboss atmosphere
    I have some errors with my Prime Push / atmosphere configuration, but in general application works. PrimePUSH examples also work. I’m not sure what my errors mean and how to fix it.On deploy I have error ‘URI scheme is not “file”‘:12:07:08,102 INFO [org.atmosphere.cpr.AtmosphereFramework] (ServerService Thread Pool — 213) Atmosphere is using org.atmosphere.cpr.DefaultAnnotationProcessor for processing annotation 12:07:08,103 INFO [org.atmosphere.cpr.DefaultAnnotationProcessor] (ServerService

Web site is in building