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.
<?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:
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!