Pessoal não consigo fazer o spring injetar para mim segue códigos abaixo.
web.xml
<?xml version="1.0"?>
<web-app version="3.0" 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_3_0.xsd">
<display-name>MonteiroWeb</display-name>
<welcome-file-list>
<welcome-file>/pages/cliente/cliente.xhtml</welcome-file>
</welcome-file-list>
<context-param>
<param-name>javax.faces.PROJECT_STAGE</param-name>
<param-value>Development</param-value>
</context-param>
<context-param>
<param-name>org.richfaces.skin</param-name>
<param-value>classic</param-value>
</context-param>
<context-param>
<param-name>org.richfaces.enableControlSkinning</param-name>
<param-value>true</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>
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>*.faces</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>*.xhtml</url-pattern>
</servlet-mapping>
<session-config>
<session-timeout>30</session-timeout>
</session-config>
<listener>
<listener-class>
org.springframework.web.context.ContextLoaderListener
</listener-class>
</listener>
<listener>
<listener-class>
org.springframework.web.context.request.RequestContextListener
</listener-class>
</listener>
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>/WEB-INF/webContext.xml </param-value>
</context-param>
</web-app>
webContext.xml
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:util="http://www.springframework.org/schema/util" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:p="http://www.springframework.org/schema/p" xmlns:aop="http://www.springframework.org/schema/aop"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:jee="http://www.springframework.org/schema/jee" xmlns:tx="http://www.springframework.org/schema/tx"
xsi:schemaLocation="
http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-3.1.xsd
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.1.xsd
http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-3.1.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.1.xsd
http://www.springframework.org/schema/jee http://www.springframework.org/schema/jee/spring-jee-3.1.xsd
http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-3.1.xsd">
<context:annotation-config />
<context:component-scan base-package="br.com.monteiro.web.jsf" />
<context:component-scan annotation-config="true"
base-package="br.com.monteiro.entity" />
<context:component-scan base-package="br.com.monteiro.entitymanager.factory" />
<context:component-scan base-package="br.com.monteiro.entitymanager" />
<context:component-scan base-package="br.com.monteiro.vo" />
<context:component-scan base-package="br.com.monteiro.service.impl" />
<bean id="emfMonteiro"
class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean">
<property name="persistenceUnitName" value="MonteiroPersistenceUnit" />
<property name="dataSource" ref="dataSource" />
<property name="packagesToScan" value="br.com.monteiro.entity" />
<property name="persistenceProviderClass" value="org.hibernate.ejb.HibernatePersistence" />
<property name="jpaVendorAdapter">
<bean class="org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter">
<property name="showSql" value="false" />
<property name="generateDdl" value="false" />
<property name="databasePlatform" value="org.hibernate.dialect.MySQLDialect" />
</bean>
</property>
</bean>
<bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource">
<property name="driverClassName" value="com.mysql.jdbc.Driver" />
<property name="url" value="jdbc:mysql://localhost:3306/monteiro" />
<property name="username" value="root" />
<property name="password" value="root" />
</bean>
<bean id="txManager" class="org.springframework.orm.jpa.JpaTransactionManager">
<property name="entityManagerFactory" ref="emfMonteiro" />
<qualifier value="txManagerMonteiro" />
</bean>
<tx:annotation-driven />
</beans>
minha classe q pega a conexão EntityManager
package br.com.monteiro.datamaneger.factory;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
public abstract class DataManager<Entity, ID> {
public DataManager() {
}
public EntityManager entityManager;
protected abstract Entity getEntityInstance();
@SuppressWarnings("rawtypes")
protected Class getManagedClass() {
Entity entity = getEntityInstance();
return entity.getClass();
}
@PersistenceContext(unitName = "MonteiroPersistenceUnit")
public void setEntityManager(final EntityManager entityManager) {
this.entityManager = entityManager;
}
public EntityManager getEntityManager() {
return this.entityManager;
}
public abstract void insert(Entity entity);
public abstract Entity update(Entity entity);
public abstract void delete(Entity entity);
public abstract void deleteByID(ID id);
}
minha classe quem faz as transações
package br.com.monteiro.datamaneger.factory;
import java.util.List;
import javax.persistence.Query;
import org.hibernate.Criteria;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;
import br.com.monteiro.exception.GenericException;
@SuppressWarnings({ "rawtypes", "unchecked" })
public abstract class DataManegerMonteiro<Entity, ID> extends DataManager<Entity, ID> {
protected Class getManagedClass() {
Entity entity = getEntityInstance();
return entity.getClass();
}
public DataManegerMonteiro() {
}
public Entity find(ID id) {
Entity p = (Entity) entityManager.find(getManagedClass(), id);
return p;
}
public List<Entity> getAll() throws GenericException {
Query query = entityManager.createQuery("from " + getManagedClass().getName());
List list = query.getResultList();
return list;
}
public Entity findByCriteria(Criteria criteria) throws GenericException {
Entity entity = (Entity) criteria.uniqueResult();
return entity;
}
@Transactional(value = "txManagerMonteiro", propagation = Propagation.REQUIRED)
public void insert(Entity entity) {
entityManager.persist(entity);
entityManager.flush();
}
@Transactional(value = "txManagerMonteiro", propagation = Propagation.REQUIRED)
public Entity update(Entity entity) {
Entity returno = entityManager.merge(entity);
entityManager.flush();
return returno;
}
@Transactional(value = "txManagerMonteiro", propagation = Propagation.REQUIRED)
public void delete(Entity entity) {
Entity retorno = entityManager.merge(entity);
entityManager.flush();
entityManager.remove(retorno);
}
@Transactional(value = "txManagerMonteiro", propagation = Propagation.REQUIRED)
public void deleteByID(ID id) {
Entity entity = (Entity) entityManager.find(getClass(), id);
if (entity != null) {
entityManager.remove(entity);
entityManager.flush();
}
}
}
Classe que cria o bean no spring com a conexão e as transações
package br.com.monteiro.entitymanager;
import org.springframework.stereotype.Component;
import br.com.monteiro.datamaneger.factory.DataManegerMonteiro;
import br.com.monteiro.entity.Cliente;
import br.com.monteiro.entity.ClienteID;
@Component("ClienteEM")
public class ClienteEM extends DataManegerMonteiro<Cliente, ClienteID> {
public ClienteEM() {
super();
}
@Override
public Cliente getEntityInstance() {
return new Cliente();
}
}
meu serviço e é nela que eu tenho problemas pois ele não está injetando e o meu objeto clienteEM está sempre null
package br.com.monteiro.service.impl;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import br.com.monteiro.entity.Cliente;
import br.com.monteiro.entitymanager.ClienteEM;
import br.com.monteiro.exception.GenericException;
import br.com.monteiro.service.ClienteService;
import br.com.monteiro.vo.ClienteVO;
@Service("ClienteService")
public class ClienteServiceImpl implements ClienteService {
@Autowired
ClienteEM clienteEm;
@Override
public void salvar(ClienteVO clienteVO) throws GenericException {
Cliente entity = new Cliente();
BeanUtils.copyProperties(clienteVO, entity);
BeanUtils.copyProperties(clienteVO, entity.getId());
clienteEm.insert(entity);
}
}
meu bean e meu log provando q o spring esta subindo o contexto
package br.com.monteiro.web.jsf;
import javax.annotation.PostConstruct;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.ViewScoped;
import org.springframework.beans.factory.DisposableBean;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Autowired;
import br.com.monteiro.exception.GenericException;
import br.com.monteiro.service.ClienteService;
import br.com.monteiro.service.impl.ClienteServiceImpl;
import br.com.monteiro.vo.ClienteVO;
@ViewScoped
@ManagedBean(name = "clienteBean")
public class ClienteBean implements{
ClienteService clienteService;
private Integer id;
private String nome;
public void salvarCliente() throws GenericException {
System.out.println("Metodo Salvar");
ClienteVO clienteVO = new ClienteVO();
clienteVO.setIdCliente(1);
clienteVO.setNomeCliente("Teste");
clienteService.salvar(clienteVO);
}
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public String getNome() {
return nome;
}
public void setNome(String nome) {
this.nome = nome;
}
@PostConstruct
public void init() {
this.clienteService = new ClienteServiceImpl();
}
}
e o log probando q está subindo o contexto do spring
22:19:18,042 INFO [org.jboss.modules] JBoss Modules version 1.1.1.GA
22:19:18,290 INFO [org.jboss.msc] JBoss MSC version 1.0.2.GA
22:19:18,363 INFO [org.jboss.as] JBAS015899: JBoss AS 7.1.1.Final “Brontes” starting
22:19:19,791 INFO [org.jboss.as.server] JBAS015888: Creating http management service using socket-binding (management-http)
22:19:19,807 INFO [org.xnio] XNIO Version 3.0.3.GA
22:19:19,822 INFO [org.xnio.nio] XNIO NIO Implementation Version 3.0.3.GA
22:19:19,836 INFO [org.jboss.remoting] JBoss Remoting version 3.2.3.GA
22:19:19,889 INFO [org.jboss.as.clustering.infinispan] JBAS010280: Activating Infinispan subsystem.
22:19:19,903 INFO [org.jboss.as.security] JBAS013101: Activating Security Subsystem
22:19:19,905 INFO [org.jboss.as.logging] JBAS011502: Removing bootstrap log handlers
22:19:19,919 INFO [org.jboss.as.webservices] (ServerService Thread Pool – 48) JBAS015537: Activating WebServices Extension
22:19:19,945 INFO [org.jboss.as.osgi] (ServerService Thread Pool – 39) JBAS011940: Activating OSGi Subsystem
22:19:19,949 INFO [org.jboss.as.naming] (ServerService Thread Pool – 38) JBAS011800: Activating Naming Subsystem
22:19:19,994 INFO [org.jboss.as.configadmin] (ServerService Thread Pool – 26) JBAS016200: Activating ConfigAdmin Subsystem
22:19:20,145 INFO [org.jboss.as.naming] (MSC service thread 1-2) JBAS011802: Starting Naming Service
22:19:20,151 INFO [org.jboss.as.security] (MSC service thread 1-1) JBAS013100: Current PicketBox version=4.0.7.Final
22:19:20,161 INFO [org.jboss.as.connector] (MSC service thread 1-6) JBAS010408: Starting JCA Subsystem (JBoss IronJacamar 1.0.9.Final)
22:19:20,179 INFO [org.jboss.as.mail.extension] (MSC service thread 1-6) JBAS015400: Bound mail session [java:jboss/mail/Default]
22:19:20,267 INFO [org.jboss.as.connector.subsystems.datasources] (ServerService Thread Pool – 27) JBAS010403: Deploying JDBC-compliant driver class org.h2.Driver (version 1.3)
22:19:20,292 INFO [org.jboss.ws.common.management.AbstractServerConfig] (MSC service thread 1-2) JBoss Web Services - Stack CXF Server 4.0.2.GA
22:19:20,785 INFO [org.apache.coyote.http11.Http11Protocol] (MSC service thread 1-4) Starting Coyote HTTP/1.1 on http-localhost-127.0.0.1-8081
22:19:20,797 INFO [org.jboss.as.remoting] (MSC service thread 1-5) JBAS017100: Listening on localhost/127.0.0.1:4447
22:19:20,799 INFO [org.jboss.as.remoting] (MSC service thread 1-7) JBAS017100: Listening on /127.0.0.1:9999
22:19:20,808 INFO [org.jboss.as.server.deployment.scanner] (MSC service thread 1-8) JBAS015012: Started FileSystemDeploymentService for directory E:\Jr\BackUp Jr\Projetos\Servidores\jboss-as-7.1.1.Final\standalone\deployments
22:19:20,842 INFO [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) JBAS015003: Found MonteiroWeb.war in deployment directory. To trigger deployment create a file called MonteiroWeb.war.dodeploy
22:19:20,922 INFO [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-1) JBAS010400: Bound data source [java:jboss/datasources/ExampleDS]
22:19:20,953 INFO [org.jboss.as.server.deployment] (MSC service thread 1-2) JBAS015876: Starting deployment of "MonteiroWeb.war"
22:19:27,098 WARN [org.jboss.as.server.deployment] (MSC service thread 1-4) JBAS015893: Encountered invalid class name ‘com.sun.faces.vendor.Tomcat6InjectionProvider:org.apache.catalina.util.DefaultAnnotationProcessor’ for service type 'com.sun.faces.spi.injectionprovider’
22:19:27,102 WARN [org.jboss.as.server.deployment] (MSC service thread 1-4) JBAS015893: Encountered invalid class name ‘com.sun.faces.vendor.Jetty6InjectionProvider:org.mortbay.jetty.plus.annotation.InjectionCollection’ for service type 'com.sun.faces.spi.injectionprovider’
22:19:27,106 WARN [org.jboss.as.server.deployment] (MSC service thread 1-4) JBAS015893: Encountered invalid class name ‘com.sun.faces.vendor.Tomcat6InjectionProvider:org.apache.catalina.util.DefaultAnnotationProcessor’ for service type 'com.sun.faces.spi.injectionprovider’
22:19:27,110 WARN [org.jboss.as.server.deployment] (MSC service thread 1-4) JBAS015893: Encountered invalid class name ‘com.sun.faces.vendor.Jetty6InjectionProvider:org.mortbay.jetty.plus.annotation.InjectionCollection’ for service type 'com.sun.faces.spi.injectionprovider’
22:19:29,184 INFO [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-8) JBAS010404: Deploying non-JDBC-compliant driver class com.mysql.jdbc.Driver (version 5.1)
22:19:29,294 INFO [org.apache.catalina.core.StandardContext] (MSC service thread 1-8) The listener “com.sun.faces.config.ConfigureListener” is already configured for this context. The duplicate definition has been ignored.
22:19:29,301 INFO [org.apache.catalina.core.StandardContext] (MSC service thread 1-8) The listener “com.sun.faces.config.ConfigureListener” is already configured for this context. The duplicate definition has been ignored.
22:19:29,310 INFO [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/MonteiroWeb]] (MSC service thread 1-8) No Spring WebApplicationInitializer types detected on classpath
22:19:29,362 INFO [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/MonteiroWeb]] (MSC service thread 1-8) Initializing Spring root WebApplicationContext
22:19:29,364 INFO [org.springframework.web.context.ContextLoader] (MSC service thread 1-8) Root WebApplicationContext: initialization started
22:19:29,415 INFO [org.springframework.web.context.support.XmlWebApplicationContext] (MSC service thread 1-8) Refreshing Root WebApplicationContext: startup date [Fri Mar 22 22:19:29 BRT 2013]; root of context hierarchy
22:19:29,453 INFO [org.springframework.beans.factory.xml.XmlBeanDefinitionReader] (MSC service thread 1-8) Loading XML bean definitions from ServletContext resource [/WEB-INF/webContext.xml]
22:19:29,662 INFO [org.springframework.context.annotation.ClassPathBeanDefinitionScanner] (MSC service thread 1-8) JSR-250 ‘javax.annotation.ManagedBean’ found and supported for component scanning
22:19:29,668 INFO [org.springframework.context.annotation.ClassPathBeanDefinitionScanner] (MSC service thread 1-8) JSR-330 ‘javax.inject.Named’ annotation found and supported for component scanning
22:19:29,723 INFO [org.springframework.context.annotation.ClassPathBeanDefinitionScanner] (MSC service thread 1-8) JSR-250 ‘javax.annotation.ManagedBean’ found and supported for component scanning
22:19:29,725 INFO [org.springframework.context.annotation.ClassPathBeanDefinitionScanner] (MSC service thread 1-8) JSR-330 ‘javax.inject.Named’ annotation found and supported for component scanning
22:19:29,734 INFO [org.springframework.context.annotation.ClassPathBeanDefinitionScanner] (MSC service thread 1-8) JSR-250 ‘javax.annotation.ManagedBean’ found and supported for component scanning
22:19:29,736 INFO [org.springframework.context.annotation.ClassPathBeanDefinitionScanner] (MSC service thread 1-8) JSR-330 ‘javax.inject.Named’ annotation found and supported for component scanning
22:19:29,739 INFO [org.springframework.context.annotation.ClassPathBeanDefinitionScanner] (MSC service thread 1-8) JSR-250 ‘javax.annotation.ManagedBean’ found and supported for component scanning
22:19:29,742 INFO [org.springframework.context.annotation.ClassPathBeanDefinitionScanner] (MSC service thread 1-8) JSR-330 ‘javax.inject.Named’ annotation found and supported for component scanning
22:19:29,750 INFO [org.springframework.context.annotation.ClassPathBeanDefinitionScanner] (MSC service thread 1-8) JSR-250 ‘javax.annotation.ManagedBean’ found and supported for component scanning
22:19:29,753 INFO [org.springframework.context.annotation.ClassPathBeanDefinitionScanner] (MSC service thread 1-8) JSR-330 ‘javax.inject.Named’ annotation found and supported for component scanning
22:19:29,757 INFO [org.springframework.context.annotation.ClassPathBeanDefinitionScanner] (MSC service thread 1-8) JSR-250 ‘javax.annotation.ManagedBean’ found and supported for component scanning
22:19:29,759 INFO [org.springframework.context.annotation.ClassPathBeanDefinitionScanner] (MSC service thread 1-8) JSR-330 ‘javax.inject.Named’ annotation found and supported for component scanning
22:19:29,912 INFO [org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor] (MSC service thread 1-8) JSR-330 ‘javax.inject.Inject’ annotation found and supported for autowiring
22:19:29,951 INFO [org.springframework.beans.factory.support.DefaultListableBeanFactory] (MSC service thread 1-8) Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@5bd41bfd: defining beans [org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,org.springframework.context.annotation.internalPersistenceAnnotationProcessor,ClienteEM,ClienteService,emfMonteiro,dataSource,txManager,org.springframework.aop.config.internalAutoProxyCreator,org.springframework.transaction.annotation.AnnotationTransactionAttributeSource#0,org.springframework.transaction.interceptor.TransactionInterceptor#0,org.springframework.transaction.config.internalTransactionAdvisor,org.springframework.context.annotation.ConfigurationClassPostProcessor$ImportAwareBeanPostProcessor#0]; root of factory hierarchy
22:19:30,070 INFO [org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean] (MSC service thread 1-8) Building JPA container EntityManagerFactory for persistence unit 'MonteiroPersistenceUnit’
22:19:30,176 INFO [org.hibernate.annotations.common.Version] (MSC service thread 1-8) HCANN000001: Hibernate Commons Annotations {4.0.1.Final}
22:19:30,182 INFO [org.hibernate.Version] (MSC service thread 1-8) HHH000412: Hibernate Core {4.1.4.Final}
22:19:30,188 INFO [org.hibernate.cfg.Environment] (MSC service thread 1-8) HHH000206: hibernate.properties not found
22:19:30,192 INFO [org.hibernate.cfg.Environment] (MSC service thread 1-8) HHH000021: Bytecode provider name : javassist
22:19:30,216 INFO [org.hibernate.ejb.Ejb3Configuration] (MSC service thread 1-8) HHH000204: Processing PersistenceUnitInfo [
name: MonteiroPersistenceUnit
…]
22:19:30,352 WARN [org.hibernate.mapping.RootClass] (MSC service thread 1-8) HHH000038: Composite-id class does not override equals(): br.com.monteiro.entity.ClienteID
22:19:30,354 WARN [org.hibernate.mapping.RootClass] (MSC service thread 1-8) HHH000039: Composite-id class does not override hashCode(): br.com.monteiro.entity.ClienteID
22:19:30,361 INFO [org.hibernate.service.jdbc.connections.internal.ConnectionProviderInitiator] (MSC service thread 1-8) HHH000130: Instantiating explicit connection provider: org.hibernate.ejb.connection.InjectedDataSourceConnectionProvider
22:19:30,595 INFO [org.hibernate.dialect.Dialect] (MSC service thread 1-8) HHH000400: Using dialect: org.hibernate.dialect.MySQLDialect
22:19:30,603 INFO [org.hibernate.engine.jdbc.internal.LobCreatorBuilder] (MSC service thread 1-8) HHH000423: Disabling contextual LOB creation as JDBC driver reported JDBC version [3] less than 4
22:19:30,615 INFO [org.hibernate.engine.transaction.internal.TransactionFactoryInitiator] (MSC service thread 1-8) HHH000268: Transaction strategy: org.hibernate.engine.transaction.internal.jdbc.JdbcTransactionFactory
22:19:30,620 INFO [org.hibernate.hql.internal.ast.ASTQueryTranslatorFactory] (MSC service thread 1-8) HHH000397: Using ASTQueryTranslatorFactory
22:19:30,649 INFO [org.hibernate.validator.util.Version] (MSC service thread 1-8) Hibernate Validator 4.2.0.Final
22:19:31,004 INFO [org.springframework.web.context.ContextLoader] (MSC service thread 1-8) Root WebApplicationContext: initialization completed in 1639 ms
22:19:31,064 INFO [javax.enterprise.resource.webcontainer.jsf.config] (MSC service thread 1-8) Inicializando Mojarra 2.1.7-jbossorg-1 (20120227-1401) para o contexto '/MonteiroWeb’
22:19:35,852 INFO [org.richfaces.log.Cache] (MSC service thread 1-8) Selected fallback cache factory
22:19:35,854 INFO [org.richfaces.log.Cache] (MSC service thread 1-8) Creating LRUMap cache instance using parameters: {org.richfaces.skin=classic, javax.faces.PROJECT_STAGE=Development, org.richfaces.enableControlSkinning=true, contextConfigLocation=/WEB-INF/webContext.xml}
22:19:35,862 INFO [org.richfaces.log.Cache] (MSC service thread 1-8) Creating LRUMap cache instance of 512 items capacity
22:19:35,870 INFO [org.richfaces.log.Application] (MSC service thread 1-8) RichFaces Core Implementation by JBoss by Red Hat, version v.4.2.2.Final
22:19:35,917 AVISO [org.richfaces.log.Application] (MSC service thread 1-8) JMS API was found on the classpath; if you want to enable RichFaces Push JMS integration, set context-param ‘org.richfaces.push.jms.enabled’ in web.xml
22:19:35,922 INFO [javax.enterprise.resource.webcontainer.jsf.config] (MSC service thread 1-8) Monitoring jndi:/default-host/MonteiroWeb/WEB-INF/faces-config.xml for modifications
22:19:35,958 INFO [org.jboss.web] (MSC service thread 1-8) JBAS018210: Registering web context: /MonteiroWeb
22:19:35,967 INFO [org.jboss.as] (MSC service thread 1-2) JBAS015951: Admin console listening on http://127.0.0.1:9990
22:19:35,969 INFO [org.jboss.as] (MSC service thread 1-2) JBAS015874: JBoss AS 7.1.1.Final “Brontes” started in 18263ms - Started 487 of 564 services (76 services are passive or on-demand)
22:19:36,025 INFO [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS018559: Deployed “MonteiroWeb.war”