Running Primefaces on JBoss 5 and JSF 2

UI Components for JSF
Post Reply
sebek
Posts: 38
Joined: 19 Jul 2011, 18:56

19 Jul 2011, 19:50

Hello,

I have been trying to get JSF 2.1.2 running on JBoss 5.0.1 and Primefaces 2.2.1.

Since JBoss 5 does not support JSF 2 out of the box, I followed these instructions:
http://aaron.ajexperience.com/2010/10/1 ... app-basis/

After going through the instructions, I was able to successfully get JSF 2 running on JBoss 5.
The next step was to add Primefaces.

I have dropped the jar file into the WEB-INF/lib directory of my application and accessed basic JSF page (see below):

Code: Select all

<!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:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.prime.com.tr/ui">

	<body>
		Hello
		
		<br/><br/>
		
		<p:spinner>0</p:spinner>
		<br/>
		
		<p:layout style="width:400px;height:200px;">  
	        <p:layoutUnit position="left" width="100" resizable="true" minWidth="50" maxWidth="200">  
	            Left Pane  
	        </p:layoutUnit>  
	                      
	        <p:layoutUnit position="center">  
	            Center Pane  
	        </p:layoutUnit>  
	    </p:layout>  
	</body>
</html>
Unfortunately, Primefaces components did not render. There were also no errors generated.

The view source on the browser, displayed the following:

Code: Select all

<!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">

	<body>
		Hello
		
		<br /><br />0<!--[if IE 8.0]><style type="text/css">.ui-spinner {border:1px solid transparent;}</style><![endif]--><input id="j_idt3" name="j_idt3" type="text" value="" class="ui-inputfield ui-widget ui-state-default ui-corner-bl ui-corner-tl" /><script type="text/javascript">jQuery(function(){widget_j_idt3 = new PrimeFaces.widget.Spinner('j_idt3',{step:1.0});});</script>
		<br /><div id="j_idt6" style="width:400px;height:200px;"><div id="j_idt7">  
	            Left Pane  
	        </div><div id="j_idt9">  
	            Center Pane  
	        </div></div><script type="text/javascript">widget_j_idt6 = new PrimeFaces.widget.Layout('j_idt6', {units:[{position:'left',body:'j_idt7',gutter:'4px',close:false,resize:true,collapse:false,visible:true,collapsed:false,width:100,minWidth:50,maxWidth:200},{position:'center',body:'j_idt9',gutter:'4px',close:false,resize:false,collapse:false,visible:true,collapsed:false}],ajaxToggle:true,ajaxClose:true,ajaxResize:true,url:'/EMoveWeb/pages/prime.jsf'});</script>  
	</body>

</html>
After some searching on the Primefaces forum, I found the following thread:
http://primefaces.prime.com.tr/forum/vi ... ?f=3&t=245

The solution there, which was for JSF 1.2, was to copy all JSF related jars to jboss-5.0.1.GA\server\default\deploy\jbossweb.sar\jsf-libs, but with the following setting in my web.xml, I do not think JBoss was looking at that directory anymore. I tried anyway, but the results are what I showed above.

Code: Select all

<!-- JSF 2: this tells JBoss 5 to use the jsf jars included in the app -->
<context-param>
   <param-name>org.jboss.jbossfaces.WAR_BUNDLES_JSF_IMPL</param-name>
   <param-value>true</param-value>
</context-param>
Has anyone figured out how to run JSF 2 with Primefaces on JBoss 5 platform?

Thank You for any help!
-- PrimeFaces 3.3-SNAPSHOT -- Mojarra 2.1.2 -- Tomcat 7.0.19 --

User avatar
Oleg
Expert Member
Posts: 3805
Joined: 02 Oct 2009, 09:41
Location: Germany, Black Forest

19 Jul 2011, 21:00

Hi,

I have the same JBoss version and the same PF / Mojarra. We drop new Mojarra jars (api and impl.) into jboss-5.0.1.GA\server\yourprofile\deploy\jbossweb.sar\jsf-libs and remove old files. This replacement is enough. No problem with last three PF releases and many Mojarra releases which I tried in the last 2 years. No specific web.xml configuration is required! Remove all jboss stuff from your web.xml.
PrimeFaces Cookbook (2. edition): http://ova2.github.io/primefaces-cookbook/ Learning Angular UI Development with PrimeNG: https://github.com/ova2/angular-develop ... th-primeng Blog: https://medium.com/@OlegVaraksin

tandraschko
PrimeFaces Core Developer
Posts: 3979
Joined: 03 Dec 2010, 14:11
Location: Bavaria, DE
Contact:

19 Jul 2011, 21:55

Also add h:head :)
Thomas Andraschko

PrimeFaces | PrimeFaces Extensions

Apache Member | OpenWebBeans, DeltaSpike, MyFaces, BVal, TomEE

Sponsor me: https://github.com/sponsors/tandraschko
Blog: http://tandraschko.blogspot.de/
Twitter: https://twitter.com/TAndraschko

sebek
Posts: 38
Joined: 19 Jul 2011, 18:56

19 Jul 2011, 22:04

Hello Oleg,

I would like to make sure that my setup is exactly the same as yours.

Please forgive me for being repetitious, but I want to make sure I double-check everything.

Can you please provide/review my current setup:

1. All jar files names and versions in jboss-5.0.1.GA\server\yourprofile\deploy\jbossweb.sar\jsf-libs

>> This is what I have:
- jsf-impl.jar (2.1.2)
- jsf-api.jar (2.1.2)
- jboss-faces.jar (came with jboss 5.0.1)

2. JSF and Primefaces related jars names and versions in \someApp\WEB-INF\lib

>> This is what I have:
- jsf-impl.jar (2.1.2)
- jsf-api.jar (2.1.2)
- primefaces-2.2.1.jar

3. Simple web.xml entry for comparison

>> This is what I have (with your modifications)

Code: Select all

<?xml version="1.0"?>
<web-app version="2.5" 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_2_5.xsd">
	<display-name>EMoveWeb</display-name>
	<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>*.jsf</url-pattern>
	</servlet-mapping>
	<welcome-file-list>
		<welcome-file>index.html</welcome-file>
		<welcome-file>index.htm</welcome-file>
		<welcome-file>index.jsp</welcome-file>
		<welcome-file>default.html</welcome-file>
		<welcome-file>default.htm</welcome-file>
		<welcome-file>default.jsp</welcome-file>
	</welcome-file-list>
</web-app>
This is my current setup. I think it is what you have. Am I missing anything?

*** UPDATE: Here is the error when I deploy the above simple JSF war file to JBoss 5 ***

Code: Select all

16:09:00,026 INFO  [ServerImpl] Starting JBoss (Microcontainer)...
16:09:00,026 INFO  [ServerImpl] Release ID: JBoss [Morpheus] 5.0.1.GA (build: SVNTag=JBoss_5_0_1_GA date=200902231221)
16:09:00,027 INFO  [ServerImpl] Bootstrap URL: null
16:09:00,027 INFO  [ServerImpl] Home Dir: C:\tools\jboss-5.0.1.GA
16:09:00,027 INFO  [ServerImpl] Home URL: file:/C:/tools/jboss-5.0.1.GA/
16:09:00,027 INFO  [ServerImpl] Library URL: file:/C:/tools/jboss-5.0.1.GA/lib/
16:09:00,028 INFO  [ServerImpl] Patch URL: null
16:09:00,028 INFO  [ServerImpl] Common Base URL: file:/C:/tools/jboss-5.0.1.GA/common/
16:09:00,028 INFO  [ServerImpl] Common Library URL: file:/C:/tools/jboss-5.0.1.GA/common/lib/
16:09:00,028 INFO  [ServerImpl] Server Name: default
16:09:00,028 INFO  [ServerImpl] Server Base Dir: C:\tools\jboss-5.0.1.GA\server
16:09:00,028 INFO  [ServerImpl] Server Base URL: file:/C:/tools/jboss-5.0.1.GA/server/
16:09:00,028 INFO  [ServerImpl] Server Config URL: file:/C:/tools/jboss-5.0.1.GA/server/default/conf/
16:09:00,028 INFO  [ServerImpl] Server Home Dir: C:\tools\jboss-5.0.1.GA\server\default
16:09:00,029 INFO  [ServerImpl] Server Home URL: file:/C:/tools/jboss-5.0.1.GA/server/default/
16:09:00,029 INFO  [ServerImpl] Server Data Dir: C:\tools\jboss-5.0.1.GA\server\default\data
16:09:00,029 INFO  [ServerImpl] Server Library URL: file:/C:/tools/jboss-5.0.1.GA/server/default/lib/
16:09:00,029 INFO  [ServerImpl] Server Log Dir: C:\tools\jboss-5.0.1.GA\server\default\log
16:09:00,029 INFO  [ServerImpl] Server Native Dir: C:\tools\jboss-5.0.1.GA\server\default\tmp\native
16:09:00,029 INFO  [ServerImpl] Server Temp Dir: C:\tools\jboss-5.0.1.GA\server\default\tmp
16:09:00,029 INFO  [ServerImpl] Server Temp Deploy Dir: C:\tools\jboss-5.0.1.GA\server\default\tmp\deploy
16:09:00,472 INFO  [ServerImpl] Starting Microcontainer, bootstrapURL=file:/C:/tools/jboss-5.0.1.GA/server/default/conf/bootstrap.xml
16:09:00,958 INFO  [VFSCacheFactory] Initializing VFSCache [org.jboss.virtual.plugins.cache.CombinedVFSCache]
16:09:00,960 INFO  [VFSCacheFactory] Using VFSCache [CombinedVFSCache[real-cache: null]]
16:09:01,160 INFO  [CopyMechanism] VFS temp dir: C:\tools\jboss-5.0.1.GA\server\default\tmp
16:09:01,161 INFO  [ZipEntryContext] VFS force nested jars copy-mode is enabled.
16:09:02,025 INFO  [ServerInfo] Java version: 1.6.0_26,Sun Microsystems Inc.
16:09:02,025 INFO  [ServerInfo] Java Runtime: Java(TM) SE Runtime Environment (build 1.6.0_26-b03)
16:09:02,025 INFO  [ServerInfo] Java VM: Java HotSpot(TM) 64-Bit Server VM 20.1-b02,Sun Microsystems Inc.
16:09:02,026 INFO  [ServerInfo] OS-System: Windows 7 6.1,amd64
16:09:02,054 INFO  [JMXKernel] Legacy JMX core initialized
16:09:03,564 INFO  [ProfileServiceImpl] Loading profile: default from: org.jboss.system.server.profileservice.repository.SerializableDeploymentRepository@15c313da(root=C:\tools\jboss-5.0.1.GA\server, key=org.jboss.profileservice.spi.ProfileKey@143b82c3[domain=default,server=default,name=default])
16:09:03,565 INFO  [ProfileImpl] Using repository:org.jboss.system.server.profileservice.repository.SerializableDeploymentRepository@15c313da(root=C:\tools\jboss-5.0.1.GA\server, key=org.jboss.profileservice.spi.ProfileKey@143b82c3[domain=default,server=default,name=default])
16:09:03,565 INFO  [ProfileServiceImpl] Loaded profile: ProfileImpl@2e0ca6ae{key=org.jboss.profileservice.spi.ProfileKey@143b82c3[domain=default,server=default,name=default]}
16:09:04,561 INFO  [WebService] Using RMI server codebase: http://127.0.0.1:8083/
16:09:08,247 INFO  [NativeServerConfig] JBoss Web Services - Stack Native Core
16:09:08,247 INFO  [NativeServerConfig] 3.0.5.GA
16:09:15,214 INFO  [JMXConnectorServerService] JMX Connector server: service:jmx:rmi://127.0.0.1/jndi/rmi://127.0.0.1:1090/jmxconnector
16:09:15,316 INFO  [MailService] Mail Service bound to java:/Mail
16:09:16,385 WARN  [JBossASSecurityMetadataStore] WARNING! POTENTIAL SECURITY RISK. It has been detected that the MessageSucker component which sucks messages from one node to another has not had its password changed from the installation default. Please see the JBoss Messaging user guide for instructions on how to do this.
16:09:16,400 WARN  [AnnotationCreator] No ClassLoader provided, using TCCL: org.jboss.managed.api.annotation.ManagementComponent
16:09:16,485 INFO  [TransactionManagerService] JBossTS Transaction Service (JTA version) - JBoss Inc.
16:09:16,485 INFO  [TransactionManagerService] Setting up property manager MBean and JMX layer
16:09:16,678 INFO  [TransactionManagerService] Initializing recovery manager
16:09:16,742 WARN  [arjLoggerI18N] [com.arjuna.ats.arjuna.recovery.ActionStatusService_2] - Other Exception: java.lang.NullPointerException
16:09:16,742 ERROR [STDERR] java.lang.NullPointerException
16:09:16,743 ERROR [STDERR] 	at com.arjuna.ats.arjuna.recovery.ActionStatusService.doWork(ActionStatusService.java:123)
16:09:16,743 ERROR [STDERR] 	at com.arjuna.ats.internal.arjuna.recovery.Connection.run(Connection.java:83)
16:09:16,786 INFO  [TransactionManagerService] Recovery manager configured
16:09:16,786 INFO  [TransactionManagerService] Binding TransactionManager JNDI Reference
16:09:16,804 INFO  [TransactionManagerService] Starting transaction recovery manager
16:09:17,330 INFO  [Http11Protocol] Initializing Coyote HTTP/1.1 on http-127.0.0.1-8080
16:09:17,351 INFO  [AjpProtocol] Initializing Coyote AJP/1.3 on ajp-127.0.0.1-8009
16:09:17,351 INFO  [StandardService] Starting service jboss.web
16:09:17,355 INFO  [StandardEngine] Starting Servlet Engine: JBoss Web/2.1.2.GA
16:09:17,398 INFO  [Catalina] Server startup in 143 ms
16:09:17,415 INFO  [TomcatDeployment] deploy, ctxPath=/web-console
16:09:18,085 INFO  [TomcatDeployment] deploy, ctxPath=/invoker
16:09:18,153 INFO  [TomcatDeployment] deploy, ctxPath=/jbossws
16:09:18,260 INFO  [RARDeployment] Required license terms exist, view vfszip:/C:/tools/jboss-5.0.1.GA/server/default/deploy/jboss-local-jdbc.rar/META-INF/ra.xml
16:09:18,280 INFO  [RARDeployment] Required license terms exist, view vfszip:/C:/tools/jboss-5.0.1.GA/server/default/deploy/jboss-xa-jdbc.rar/META-INF/ra.xml
16:09:18,303 INFO  [RARDeployment] Required license terms exist, view vfszip:/C:/tools/jboss-5.0.1.GA/server/default/deploy/jms-ra.rar/META-INF/ra.xml
16:09:18,322 INFO  [RARDeployment] Required license terms exist, view vfszip:/C:/tools/jboss-5.0.1.GA/server/default/deploy/mail-ra.rar/META-INF/ra.xml
16:09:18,346 INFO  [RARDeployment] Required license terms exist, view vfszip:/C:/tools/jboss-5.0.1.GA/server/default/deploy/quartz-ra.rar/META-INF/ra.xml
16:09:18,409 INFO  [SimpleThreadPool] Job execution threads will use class loader of thread: main
16:09:18,430 INFO  [QuartzScheduler] Quartz Scheduler v.1.5.2 created.
16:09:18,433 INFO  [RAMJobStore] RAMJobStore initialized.
16:09:18,433 INFO  [StdSchedulerFactory] Quartz scheduler 'DefaultQuartzScheduler' initialized from default resource file in Quartz package: 'quartz.properties'
16:09:18,433 INFO  [StdSchedulerFactory] Quartz scheduler version: 1.5.2
16:09:18,433 INFO  [QuartzScheduler] Scheduler DefaultQuartzScheduler_$_NON_CLUSTERED started.
16:09:18,754 INFO  [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=DefaultDS' to JNDI name 'java:DefaultDS'
16:09:19,063 INFO  [ServerPeer] JBoss Messaging 1.4.1.GA server [0] started
16:09:19,128 INFO  [QueueService] Queue[/queue/ExpiryQueue] started, fullSize=200000, pageSize=2000, downCacheSize=2000
16:09:19,177 INFO  [ConnectionFactory] Connector bisocket://127.0.0.1:4457 has leasing enabled, lease period 10000 milliseconds
16:09:19,177 INFO  [ConnectionFactory] org.jboss.jms.server.connectionfactory.ConnectionFactory@7eceb790 started
16:09:19,179 WARN  [ConnectionFactoryJNDIMapper] supportsFailover attribute is true on connection factory: jboss.messaging.connectionfactory:service=ClusteredConnectionFactory but post office is non clustered. So connection factory will *not* support failover
16:09:19,179 WARN  [ConnectionFactoryJNDIMapper] supportsLoadBalancing attribute is true on connection factory: jboss.messaging.connectionfactory:service=ClusteredConnectionFactory but post office is non clustered. So connection factory will *not* support load balancing
16:09:19,182 INFO  [ConnectionFactory] Connector bisocket://127.0.0.1:4457 has leasing enabled, lease period 10000 milliseconds
16:09:19,182 INFO  [ConnectionFactory] org.jboss.jms.server.connectionfactory.ConnectionFactory@50ad782e started
16:09:19,184 INFO  [QueueService] Queue[/queue/DLQ] started, fullSize=200000, pageSize=2000, downCacheSize=2000
16:09:19,184 INFO  [ConnectionFactory] Connector bisocket://127.0.0.1:4457 has leasing enabled, lease period 10000 milliseconds
16:09:19,184 INFO  [ConnectionFactory] org.jboss.jms.server.connectionfactory.ConnectionFactory@34efa795 started
16:09:19,270 INFO  [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=ConnectionFactoryBinding,name=JmsXA' to JNDI name 'java:JmsXA'
16:09:19,421 INFO  [TomcatDeployment] deploy, ctxPath=/EMoveWeb
16:09:22,448 ERROR [application] JSF1029: The specified InjectionProvider implementation 'org.jboss.web.jsf.integration.injection.JBossDelegatingInjectionProvider' does not implement the InjectionProvider interface. 
16:09:22,450 INFO  [application] JSF1048: PostConstruct/PreDestroy annotations present.  ManagedBeans methods marked with these annotations will have said annotations processed.
16:09:25,633 ERROR [[/EMoveWeb]] Exception sending context initialized event to listener instance of class org.jboss.web.jsf.integration.config.JBossJSFConfigureListener
java.lang.ClassCastException: com.sun.faces.config.WebConfiguration cannot be cast to com.sun.faces.config.WebConfiguration
	at com.sun.faces.config.WebConfiguration.getInstance(WebConfiguration.java:190)
	at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:163)
	at org.jboss.web.jsf.integration.config.JBossJSFConfigureListener.contextInitialized(JBossJSFConfigureListener.java:75)
	at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3910)
	at org.apache.catalina.core.StandardContext.start(StandardContext.java:4393)
	at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:312)
	at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:144)
	at org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:461)
	at org.jboss.web.deployers.WebModule.startModule(WebModule.java:118)
	at org.jboss.web.deployers.WebModule.start(WebModule.java:97)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
	at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
	at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
	at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
	at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
	at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:206)
	at $Proxy36.start(Unknown Source)
	at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:42)
	at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:37)
	at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)
	at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)
	at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
	at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
	at org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:286)
	at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1598)
	at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
	at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)
	at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
	at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
	at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
	at org.jboss.system.ServiceController.doChange(ServiceController.java:688)
	at org.jboss.system.ServiceController.start(ServiceController.java:460)
	at org.jboss.system.deployers.ServiceDeployer.start(ServiceDeployer.java:163)
	at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:99)
	at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:46)
	at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62)
	at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)
	at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)
	at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)
	at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)
	at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1178)
	at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)
	at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
	at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1598)
	at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
	at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)
	at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
	at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
	at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
	at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)
	at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:698)
	at org.jboss.system.server.profileservice.ProfileServiceBootstrap.loadProfile(ProfileServiceBootstrap.java:304)
	at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:205)
	at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:405)
	at org.jboss.Main.boot(Main.java:209)
	at org.jboss.Main$1.run(Main.java:547)
	at java.lang.Thread.run(Thread.java:662)
16:09:25,636 ERROR [StandardContext] Error listenerStart
16:09:25,636 ERROR [StandardContext] Context [/EMoveWeb] startup failed due to previous errors
16:09:25,651 ERROR [[/EMoveWeb]] Exception sending context destroyed event to listener instance of class org.jboss.web.jsf.integration.config.JBossJSFConfigureListener
java.lang.ClassCastException: com.sun.faces.application.ApplicationAssociate cannot be cast to com.sun.faces.application.ApplicationAssociate
	at com.sun.faces.application.ApplicationAssociate.clearInstance(ApplicationAssociate.java:336)
	at com.sun.faces.config.ConfigureListener.contextDestroyed(ConfigureListener.java:343)
	at org.jboss.web.jsf.integration.config.JBossJSFConfigureListener.contextDestroyed(JBossJSFConfigureListener.java:83)
	at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:3949)
	at org.apache.catalina.core.StandardContext.stop(StandardContext.java:4615)
	at org.apache.catalina.core.StandardContext.start(StandardContext.java:4437)
	at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:312)
	at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:144)
	at org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:461)
	at org.jboss.web.deployers.WebModule.startModule(WebModule.java:118)
	at org.jboss.web.deployers.WebModule.start(WebModule.java:97)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
	at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
	at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
	at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
	at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
	at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:206)
	at $Proxy36.start(Unknown Source)
	at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:42)
	at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:37)
	at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)
	at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)
	at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
	at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
	at org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:286)
	at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1598)
	at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
	at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)
	at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
	at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
	at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
	at org.jboss.system.ServiceController.doChange(ServiceController.java:688)
	at org.jboss.system.ServiceController.start(ServiceController.java:460)
	at org.jboss.system.deployers.ServiceDeployer.start(ServiceDeployer.java:163)
	at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:99)
	at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:46)
	at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62)
	at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)
	at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)
	at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)
	at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)
	at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1178)
	at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)
	at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
	at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1598)
	at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
	at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)
	at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
	at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
	at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
	at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)
	at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:698)
	at org.jboss.system.server.profileservice.ProfileServiceBootstrap.loadProfile(ProfileServiceBootstrap.java:304)
	at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:205)
	at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:405)
	at org.jboss.Main.boot(Main.java:209)
	at org.jboss.Main$1.run(Main.java:547)
	at java.lang.Thread.run(Thread.java:662)
16:09:25,657 ERROR [AbstractKernelController] Error installing to Start: name=jboss.web.deployment:war=/EMoveWeb state=Create mode=Manual requiredState=Installed
org.jboss.deployers.spi.DeploymentException: URL file:/C:/tools/jboss-5.0.1.GA/server/default/tmp/a263824-i889vu-gqbaqshf-1-gqbar73t-9m/EMoveWeb.war/ deployment failed
	at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:333)
	at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:144)
	at org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:461)
	at org.jboss.web.deployers.WebModule.startModule(WebModule.java:118)
	at org.jboss.web.deployers.WebModule.start(WebModule.java:97)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
	at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
	at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
	at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
	at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
	at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:206)
	at $Proxy36.start(Unknown Source)
	at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:42)
	at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:37)
	at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)
	at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)
	at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
	at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
	at org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:286)
	at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1598)
	at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
	at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)
	at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
	at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
	at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
	at org.jboss.system.ServiceController.doChange(ServiceController.java:688)
	at org.jboss.system.ServiceController.start(ServiceController.java:460)
	at org.jboss.system.deployers.ServiceDeployer.start(ServiceDeployer.java:163)
	at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:99)
	at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:46)
	at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62)
	at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)
	at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)
	at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)
	at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)
	at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1178)
	at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)
	at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
	at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1598)
	at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
	at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)
	at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
	at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
	at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
	at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)
	at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:698)
	at org.jboss.system.server.profileservice.ProfileServiceBootstrap.loadProfile(ProfileServiceBootstrap.java:304)
	at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:205)
	at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:405)
	at org.jboss.Main.boot(Main.java:209)
	at org.jboss.Main$1.run(Main.java:547)
	at java.lang.Thread.run(Thread.java:662)
16:09:25,666 ERROR [AbstractKernelController] Error installing to Real: name=vfszip:/C:/tools/jboss-5.0.1.GA/server/default/deploy/EMoveWeb.war/ state=PreReal mode=Manual requiredState=Real
org.jboss.deployers.spi.DeploymentException: URL file:/C:/tools/jboss-5.0.1.GA/server/default/tmp/a263824-i889vu-gqbaqshf-1-gqbar73t-9m/EMoveWeb.war/ deployment failed
	at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:333)
	at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:144)
	at org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:461)
	at org.jboss.web.deployers.WebModule.startModule(WebModule.java:118)
	at org.jboss.web.deployers.WebModule.start(WebModule.java:97)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
	at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
	at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
	at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
	at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
	at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:206)
	at $Proxy36.start(Unknown Source)
	at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:42)
	at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:37)
	at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)
	at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)
	at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
	at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
	at org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:286)
	at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1598)
	at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
	at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)
	at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
	at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
	at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
	at org.jboss.system.ServiceController.doChange(ServiceController.java:688)
	at org.jboss.system.ServiceController.start(ServiceController.java:460)
	at org.jboss.system.deployers.ServiceDeployer.start(ServiceDeployer.java:163)
	at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:99)
	at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:46)
	at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62)
	at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)
	at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)
	at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)
	at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)
	at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1178)
	at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)
	at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
	at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1598)
	at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
	at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)
	at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
	at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
	at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
	at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)
	at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:698)
	at org.jboss.system.server.profileservice.ProfileServiceBootstrap.loadProfile(ProfileServiceBootstrap.java:304)
	at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:205)
	at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:405)
	at org.jboss.Main.boot(Main.java:209)
	at org.jboss.Main$1.run(Main.java:547)
	at java.lang.Thread.run(Thread.java:662)
16:09:25,696 INFO  [TomcatDeployment] deploy, ctxPath=/
16:09:25,753 INFO  [TomcatDeployment] deploy, ctxPath=/jmx-console
16:09:25,808 ERROR [ProfileServiceBootstrap] Failed to load profile: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):

DEPLOYMENTS IN ERROR:
  Deployment "vfszip:/C:/tools/jboss-5.0.1.GA/server/default/deploy/EMoveWeb.war/" is in error due to the following reason(s): org.jboss.deployers.spi.DeploymentException: URL file:/C:/tools/jboss-5.0.1.GA/server/default/tmp/a263824-i889vu-gqbaqshf-1-gqbar73t-9m/EMoveWeb.war/ deployment failed

16:09:25,819 INFO  [Http11Protocol] Starting Coyote HTTP/1.1 on http-127.0.0.1-8080
16:09:25,837 INFO  [AjpProtocol] Starting Coyote AJP/1.3 on ajp-127.0.0.1-8009
16:09:25,844 INFO  [ServerImpl] JBoss (Microcontainer) [5.0.1.GA (build: SVNTag=JBoss_5_0_1_GA date=200902231221)] Started in 25s:813ms
-- PrimeFaces 3.3-SNAPSHOT -- Mojarra 2.1.2 -- Tomcat 7.0.19 --

kukeltje
Expert Member
Posts: 9605
Joined: 17 Jun 2010, 13:34
Location: Netherlands

19 Jul 2011, 22:59

this is normally because of duplicate classes because of duplicate jars and in your config I see that is the case. Remove the jsf api and imp from the war and it should work

User avatar
Oleg
Expert Member
Posts: 3805
Joined: 02 Oct 2009, 09:41
Location: Germany, Black Forest

19 Jul 2011, 23:00

Hi,

You don't need to place jsf-imp / jsf-api jars under someApp/WEB-INF/lib JBoss has just one class loader as default. Make these jars as <compile> in pom.xml. Do you use Maven?

My config-param in web.xml look as follows

Code: Select all

	<context-param>
		<param-name>javax.faces.PROJECT_STAGE</param-name>
		<param-value>Development</param-value>
	</context-param>
	<context-param>
		<param-name>javax.faces.FACELETS_REFRESH_PERIOD</param-name>
		<param-value>-1</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>javax.faces.SEPARATOR_CHAR</param-name>
		<param-value>_</param-value>
	</context-param>
	<context-param>
		<param-name>javax.faces.VALIDATE_EMPTY_FIELDS</param-name>
		<param-value>true</param-value>
	</context-param>
	<context-param>
		<param-name>com.sun.faces.resourceUpdateCheckPeriod</param-name>
		<param-value>-1</param-value>
	</context-param>
	<context-param>
		<param-name>com.sun.faces.allowTextChildren</param-name>
		<param-value>true</param-value>
	</context-param>
	<context-param>
		<param-name>com.sun.faces.expressionFactory</param-name>
		<param-value>com.sun.el.ExpressionFactoryImpl</param-value>
	</context-param>
expressionFactory is for new EL 2.0 which I placed in JBoss too (I think somewhere in shared or common, don't know).
PrimeFaces Cookbook (2. edition): http://ova2.github.io/primefaces-cookbook/ Learning Angular UI Development with PrimeNG: https://github.com/ova2/angular-develop ... th-primeng Blog: https://medium.com/@OlegVaraksin

sebek
Posts: 38
Joined: 19 Jul 2011, 18:56

20 Jul 2011, 15:44

Hi All,

I want to thank everyone for helping me out up to this point.

I do not use Maven with my current setup.

I think I am closer to a solution. Unfortunately, Primefaces components are still not rendering.

Here is my current setup:

1. This is what I have in jboss-5.0.1.GA\server\yourprofile\deploy\jbossweb.sar\jsf-libs

- jsf-impl.jar (2.1.2)
- jsf-api.jar (2.1.2)
- jboss-faces.jar (came with jboss 5.0.1)

2. This is what I have added in jboss-5.0.1.GA\common\lib

- el-api-2.1.2-b03.jar
- el-impl-2.2.jar

2. This is what I have in \someApp\WEB-INF\lib (JSF related)

- primefaces-2.2.1.jar

3. This is my web.xml which is based on Oleg's sample.

Code: Select all

<?xml version="1.0"?>
<web-app version="2.5" 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_2_5.xsd">
	<display-name>EMoveWeb</display-name>
	<context-param>
		<param-name>javax.faces.PROJECT_STAGE</param-name>
		<param-value>Development</param-value>
	</context-param>
	<context-param>
		<param-name>javax.faces.FACELETS_REFRESH_PERIOD</param-name>
		<param-value>-1</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>javax.faces.SEPARATOR_CHAR</param-name>
		<param-value>_</param-value>
	</context-param>
	<context-param>
		<param-name>javax.faces.VALIDATE_EMPTY_FIELDS</param-name>
		<param-value>true</param-value>
	</context-param>
	<context-param>
		<param-name>com.sun.faces.resourceUpdateCheckPeriod</param-name>
		<param-value>-1</param-value>
	</context-param>
	<context-param>
		<param-name>com.sun.faces.allowTextChildren</param-name>
		<param-value>true</param-value>
	</context-param>
	<context-param>
		<param-name>com.sun.faces.expressionFactory</param-name>
		<param-value>com.sun.el.ExpressionFactoryImpl</param-value>
	</context-param>

	<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>*.jsf</url-pattern>
	</servlet-mapping>
	<welcome-file-list>
		<welcome-file>index.html</welcome-file>
		<welcome-file>index.htm</welcome-file>
		<welcome-file>index.jsp</welcome-file>
		<welcome-file>default.html</welcome-file>
		<welcome-file>default.htm</welcome-file>
		<welcome-file>default.jsp</welcome-file>
	</welcome-file-list>
</web-app>
Here is the log from JBoss:

Code: Select all

09:31:30,107 INFO  [ServerImpl] Starting JBoss (Microcontainer)...
09:31:30,108 INFO  [ServerImpl] Release ID: JBoss [Morpheus] 5.0.1.GA (build: SVNTag=JBoss_5_0_1_GA date=200902231221)
09:31:30,109 INFO  [ServerImpl] Bootstrap URL: null
09:31:30,109 INFO  [ServerImpl] Home Dir: C:\tools\jboss-5.0.1.GA
09:31:30,109 INFO  [ServerImpl] Home URL: file:/C:/tools/jboss-5.0.1.GA/
09:31:30,109 INFO  [ServerImpl] Library URL: file:/C:/tools/jboss-5.0.1.GA/lib/
09:31:30,109 INFO  [ServerImpl] Patch URL: null
09:31:30,110 INFO  [ServerImpl] Common Base URL: file:/C:/tools/jboss-5.0.1.GA/common/
09:31:30,110 INFO  [ServerImpl] Common Library URL: file:/C:/tools/jboss-5.0.1.GA/common/lib/
09:31:30,110 INFO  [ServerImpl] Server Name: default
09:31:30,110 INFO  [ServerImpl] Server Base Dir: C:\tools\jboss-5.0.1.GA\server
09:31:30,110 INFO  [ServerImpl] Server Base URL: file:/C:/tools/jboss-5.0.1.GA/server/
09:31:30,110 INFO  [ServerImpl] Server Config URL: file:/C:/tools/jboss-5.0.1.GA/server/default/conf/
09:31:30,110 INFO  [ServerImpl] Server Home Dir: C:\tools\jboss-5.0.1.GA\server\default
09:31:30,110 INFO  [ServerImpl] Server Home URL: file:/C:/tools/jboss-5.0.1.GA/server/default/
09:31:30,111 INFO  [ServerImpl] Server Data Dir: C:\tools\jboss-5.0.1.GA\server\default\data
09:31:30,111 INFO  [ServerImpl] Server Library URL: file:/C:/tools/jboss-5.0.1.GA/server/default/lib/
09:31:30,111 INFO  [ServerImpl] Server Log Dir: C:\tools\jboss-5.0.1.GA\server\default\log
09:31:30,111 INFO  [ServerImpl] Server Native Dir: C:\tools\jboss-5.0.1.GA\server\default\tmp\native
09:31:30,111 INFO  [ServerImpl] Server Temp Dir: C:\tools\jboss-5.0.1.GA\server\default\tmp
09:31:30,111 INFO  [ServerImpl] Server Temp Deploy Dir: C:\tools\jboss-5.0.1.GA\server\default\tmp\deploy
09:31:30,566 INFO  [ServerImpl] Starting Microcontainer, bootstrapURL=file:/C:/tools/jboss-5.0.1.GA/server/default/conf/bootstrap.xml
09:31:31,052 INFO  [VFSCacheFactory] Initializing VFSCache [org.jboss.virtual.plugins.cache.CombinedVFSCache]
09:31:31,054 INFO  [VFSCacheFactory] Using VFSCache [CombinedVFSCache[real-cache: null]]
09:31:31,267 INFO  [CopyMechanism] VFS temp dir: C:\tools\jboss-5.0.1.GA\server\default\tmp
09:31:31,268 INFO  [ZipEntryContext] VFS force nested jars copy-mode is enabled.
09:31:32,100 INFO  [ServerInfo] Java version: 1.6.0_26,Sun Microsystems Inc.
09:31:32,100 INFO  [ServerInfo] Java Runtime: Java(TM) SE Runtime Environment (build 1.6.0_26-b03)
09:31:32,100 INFO  [ServerInfo] Java VM: Java HotSpot(TM) 64-Bit Server VM 20.1-b02,Sun Microsystems Inc.
09:31:32,100 INFO  [ServerInfo] OS-System: Windows 7 6.1,amd64
09:31:32,127 INFO  [JMXKernel] Legacy JMX core initialized
09:31:33,580 INFO  [ProfileServiceImpl] Loading profile: default from: org.jboss.system.server.profileservice.repository.SerializableDeploymentRepository@4c825cf3(root=C:\tools\jboss-5.0.1.GA\server, key=org.jboss.profileservice.spi.ProfileKey@143b82c3[domain=default,server=default,name=default])
09:31:33,582 INFO  [ProfileImpl] Using repository:org.jboss.system.server.profileservice.repository.SerializableDeploymentRepository@4c825cf3(root=C:\tools\jboss-5.0.1.GA\server, key=org.jboss.profileservice.spi.ProfileKey@143b82c3[domain=default,server=default,name=default])
09:31:33,582 INFO  [ProfileServiceImpl] Loaded profile: ProfileImpl@12a4ed99{key=org.jboss.profileservice.spi.ProfileKey@143b82c3[domain=default,server=default,name=default]}
09:31:34,594 INFO  [WebService] Using RMI server codebase: http://127.0.0.1:8083/
09:31:38,362 INFO  [NativeServerConfig] JBoss Web Services - Stack Native Core
09:31:38,362 INFO  [NativeServerConfig] 3.0.5.GA
09:31:45,211 INFO  [JMXConnectorServerService] JMX Connector server: service:jmx:rmi://127.0.0.1/jndi/rmi://127.0.0.1:1090/jmxconnector
09:31:45,311 INFO  [MailService] Mail Service bound to java:/Mail
09:31:46,412 WARN  [JBossASSecurityMetadataStore] WARNING! POTENTIAL SECURITY RISK. It has been detected that the MessageSucker component which sucks messages from one node to another has not had its password changed from the installation default. Please see the JBoss Messaging user guide for instructions on how to do this.
09:31:46,429 WARN  [AnnotationCreator] No ClassLoader provided, using TCCL: org.jboss.managed.api.annotation.ManagementComponent
09:31:46,524 INFO  [TransactionManagerService] JBossTS Transaction Service (JTA version) - JBoss Inc.
09:31:46,524 INFO  [TransactionManagerService] Setting up property manager MBean and JMX layer
09:31:46,711 INFO  [TransactionManagerService] Initializing recovery manager
09:31:46,804 WARN  [arjLoggerI18N] [com.arjuna.ats.arjuna.recovery.ActionStatusService_2] - Other Exception: java.lang.NullPointerException
09:31:46,805 ERROR [STDERR] java.lang.NullPointerException
09:31:46,805 ERROR [STDERR] 	at com.arjuna.ats.arjuna.recovery.ActionStatusService.doWork(ActionStatusService.java:123)
09:31:46,805 ERROR [STDERR] 	at com.arjuna.ats.internal.arjuna.recovery.Connection.run(Connection.java:83)
09:31:46,815 WARN  [arjLoggerI18N] [com.arjuna.ats.arjuna.recovery.ActionStatusService_2] - Other Exception: java.lang.NullPointerException
09:31:46,815 ERROR [STDERR] java.lang.NullPointerException
09:31:46,815 ERROR [STDERR] 	at com.arjuna.ats.arjuna.recovery.ActionStatusService.doWork(ActionStatusService.java:123)
09:31:46,815 ERROR [STDERR] 	at com.arjuna.ats.internal.arjuna.recovery.Connection.run(Connection.java:83)
09:31:46,849 INFO  [TransactionManagerService] Recovery manager configured
09:31:46,849 INFO  [TransactionManagerService] Binding TransactionManager JNDI Reference
09:31:46,868 INFO  [TransactionManagerService] Starting transaction recovery manager
09:31:47,349 INFO  [Http11Protocol] Initializing Coyote HTTP/1.1 on http-127.0.0.1-8080
09:31:47,370 INFO  [AjpProtocol] Initializing Coyote AJP/1.3 on ajp-127.0.0.1-8009
09:31:47,370 INFO  [StandardService] Starting service jboss.web
09:31:47,373 INFO  [StandardEngine] Starting Servlet Engine: JBoss Web/2.1.2.GA
09:31:47,413 INFO  [Catalina] Server startup in 136 ms
09:31:47,430 INFO  [TomcatDeployment] deploy, ctxPath=/jbossws
09:31:47,890 INFO  [TomcatDeployment] deploy, ctxPath=/web-console
09:31:48,135 INFO  [TomcatDeployment] deploy, ctxPath=/invoker
09:31:48,269 INFO  [RARDeployment] Required license terms exist, view vfszip:/C:/tools/jboss-5.0.1.GA/server/default/deploy/jboss-local-jdbc.rar/META-INF/ra.xml
09:31:48,290 INFO  [RARDeployment] Required license terms exist, view vfszip:/C:/tools/jboss-5.0.1.GA/server/default/deploy/jboss-xa-jdbc.rar/META-INF/ra.xml
09:31:48,314 INFO  [RARDeployment] Required license terms exist, view vfszip:/C:/tools/jboss-5.0.1.GA/server/default/deploy/jms-ra.rar/META-INF/ra.xml
09:31:48,335 INFO  [RARDeployment] Required license terms exist, view vfszip:/C:/tools/jboss-5.0.1.GA/server/default/deploy/mail-ra.rar/META-INF/ra.xml
09:31:48,359 INFO  [RARDeployment] Required license terms exist, view vfszip:/C:/tools/jboss-5.0.1.GA/server/default/deploy/quartz-ra.rar/META-INF/ra.xml
09:31:48,433 INFO  [SimpleThreadPool] Job execution threads will use class loader of thread: main
09:31:48,457 INFO  [QuartzScheduler] Quartz Scheduler v.1.5.2 created.
09:31:48,459 INFO  [RAMJobStore] RAMJobStore initialized.
09:31:48,459 INFO  [StdSchedulerFactory] Quartz scheduler 'DefaultQuartzScheduler' initialized from default resource file in Quartz package: 'quartz.properties'
09:31:48,460 INFO  [StdSchedulerFactory] Quartz scheduler version: 1.5.2
09:31:48,460 INFO  [QuartzScheduler] Scheduler DefaultQuartzScheduler_$_NON_CLUSTERED started.
09:31:48,826 INFO  [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=DefaultDS' to JNDI name 'java:DefaultDS'
09:31:49,138 INFO  [ServerPeer] JBoss Messaging 1.4.1.GA server [0] started
09:31:49,233 INFO  [ConnectionFactory] Connector bisocket://127.0.0.1:4457 has leasing enabled, lease period 10000 milliseconds
09:31:49,233 INFO  [ConnectionFactory] org.jboss.jms.server.connectionfactory.ConnectionFactory@5972be65 started
09:31:49,252 INFO  [QueueService] Queue[/queue/DLQ] started, fullSize=200000, pageSize=2000, downCacheSize=2000
09:31:49,254 INFO  [QueueService] Queue[/queue/ExpiryQueue] started, fullSize=200000, pageSize=2000, downCacheSize=2000
09:31:49,255 WARN  [ConnectionFactoryJNDIMapper] supportsFailover attribute is true on connection factory: jboss.messaging.connectionfactory:service=ClusteredConnectionFactory but post office is non clustered. So connection factory will *not* support failover
09:31:49,255 WARN  [ConnectionFactoryJNDIMapper] supportsLoadBalancing attribute is true on connection factory: jboss.messaging.connectionfactory:service=ClusteredConnectionFactory but post office is non clustered. So connection factory will *not* support load balancing
09:31:49,262 INFO  [ConnectionFactory] Connector bisocket://127.0.0.1:4457 has leasing enabled, lease period 10000 milliseconds
09:31:49,262 INFO  [ConnectionFactory] org.jboss.jms.server.connectionfactory.ConnectionFactory@245b5f7e started
09:31:49,265 INFO  [ConnectionFactory] Connector bisocket://127.0.0.1:4457 has leasing enabled, lease period 10000 milliseconds
09:31:49,265 INFO  [ConnectionFactory] org.jboss.jms.server.connectionfactory.ConnectionFactory@4177fc5c started
09:31:49,354 INFO  [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=ConnectionFactoryBinding,name=JmsXA' to JNDI name 'java:JmsXA'
09:31:49,453 INFO  [TomcatDeployment] deploy, ctxPath=/EMoveWeb
09:31:55,287 INFO  [config] Monitoring jndi:/localhost/EMoveWeb/WEB-INF/faces-config.xml for modifications
09:31:55,319 ERROR [STDERR] Jul 20, 2011 9:31:55 AM com.sun.faces.lifecycle.ELResolverInitPhaseListener populateFacesELResolverForJsp
INFO: JSF1027: [null] The ELResolvers for JSF were not registered with the JSP container.
09:31:55,353 INFO  [TomcatDeployment] deploy, ctxPath=/
09:31:55,417 INFO  [TomcatDeployment] deploy, ctxPath=/jmx-console
09:31:55,500 INFO  [Http11Protocol] Starting Coyote HTTP/1.1 on http-127.0.0.1-8080
09:31:55,524 INFO  [AjpProtocol] Starting Coyote AJP/1.3 on ajp-127.0.0.1-8009
09:31:55,531 INFO  [ServerImpl] JBoss (Microcontainer) [5.0.1.GA (build: SVNTag=JBoss_5_0_1_GA date=200902231221)] Started in 25s:418ms
Am I missing any other steps or jars? Where should the primefaces.jar be located?

Again, thank you for your help!
-- PrimeFaces 3.3-SNAPSHOT -- Mojarra 2.1.2 -- Tomcat 7.0.19 --

tandraschko
PrimeFaces Core Developer
Posts: 3979
Joined: 03 Dec 2010, 14:11
Location: Bavaria, DE
Contact:

20 Jul 2011, 15:53

Did you add h:head into your page?
Thomas Andraschko

PrimeFaces | PrimeFaces Extensions

Apache Member | OpenWebBeans, DeltaSpike, MyFaces, BVal, TomEE

Sponsor me: https://github.com/sponsors/tandraschko
Blog: http://tandraschko.blogspot.de/
Twitter: https://twitter.com/TAndraschko

sebek
Posts: 38
Joined: 19 Jul 2011, 18:56

20 Jul 2011, 16:06

Hi All,

The problem has been resolved!

With the above setup in place, I have added <h:head> to my page. That was the missing last step.

I want to thank zoigl for pointing that out twice!

Thank you Oleg and kukeltje for all your contributions!
-- PrimeFaces 3.3-SNAPSHOT -- Mojarra 2.1.2 -- Tomcat 7.0.19 --

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 26 guests