Vraptor - Erro em depências [RESOLVIDO]

Nessa parte é executado normalmente:

ApplicationLog.info(this, "Criando Session do Hibernate"); try { this.session=this.factory.openSession(); } catch(Exception e) { throw new EplusException(this, e); }

Depois cai nessa chamada interna do JAR DefaultListableBeanFactory(AbstractAutowireCapableBeanFactory).doCreateBean(String, RootBeanDefinition, Object[]) line: 566
do spring beans e da o erro.

mas dá alguma exception?

tenta remover esse código que está no método @PostConstruct e coloque no construtor da classe (e remover o método)

[code]package br.com.eplus.hibernate;

import javax.annotation.PostConstruct;
import javax.annotation.PreDestroy;

import org.hibernate.Session;
import org.hibernate.SessionFactory;

import br.com.caelum.vraptor.ioc.Component;
import br.com.caelum.vraptor.ioc.ComponentFactory;
import br.com.caelum.vraptor.ioc.RequestScoped;
import br.com.eplus.exception.EplusException;
import br.com.eplus.util.ApplicationLog;

@Component
@RequestScoped
public class OpenSession implements ComponentFactory<Session>
{
private SessionFactory factory;
private Session session;

public OpenSession(SessionFactory factory)
{
	this.factory=factory;
	ApplicationLog.info(this, "Criando Session do Hibernate");
	try
	{
		this.session=this.factory.openSession();
	}
	catch(Exception e)
	{
		ApplicationLog.info(this, e.getMessage());
	}
}

/*@PostConstruct
public void open() throws EplusException
{
	
}*/
@PreDestroy
public void close() throws EplusException
{
	try
	{
		ApplicationLog.info(this, "Encerrando Session do Hibernate");
		this.session.close();
	}
	catch(Exception e)
	{
		throw new EplusException(this, e);
	}
	finally
	{
		this.session=null;
	}
}

public Session getInstance() {
	return session;
}

}[/code]

Nada lucas… nessa parte não da exception, ele cai dentro do Jars do Spring e ai exibido a mensagem:

23:11:21,524 WARN [org.springframework.web.context.request.FacesRequestAttributes] (MSC service thread 1-1) Could not register destruction callback [org.springframework.beans.factory.support.DisposableBeanAdapter@6da642c3] for attribute 'openSession' because FacesRequestAttributes does not support such callbacks 23:11:38,456 INFO [org.springframework.beans.factory.support.DefaultListableBeanFactory] (MSC service thread 1-1) Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@5f84a3e: 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.ConfigurationClassPostProcessor$ImportAwareBeanPostProcessor#0,JSR303ValidatorFactory,pathAnnotationRoutesParser,defaultTypeFinder,noRoutesConfiguration,defaultRouter,defaultConverters,messageInterpolatorFactory,defaultInterceptorHandlerFactory,cglibProxifier,defaultStaticContentHandler,encodingHandlerFactory,defaultMethodNotAllowedHandler,paranamerNameProvider,validatorFactoryCreator,defaultMultipartConfig,defaultRestDefaults,defaultTypeNameExtractor,interceptorListPriorToExecutionExtractor,defaultDeserializers,XStreamConverters.NullConverter,topologicalSortedInterceptorRegistry,defaultAcceptHeaderToFormat,javaEvaluator,defaultResourceNotFoundHandler,defaultResourceTranslator,defaultRoutes,objenesisInstanceCreator,hibernateProxyInitializer,stereotypeHandler,converterHandler,interceptorStereotypeHandler,deserializesHandler,stereotypedBeansRegistrar,defaultSpringLocator,sessionFlashScope,defaultResult,defaultPageResult,defaultRefererResult,emptyResult,XStreamConverters,forwardToDefaultViewInterceptor,iogiParametersProvider,XStreamXMLDeserializer,defaultValidator,defaultRestHeadersHandler,VRaptorInstantiator,outjectResult,instantiateInterceptor,defaultPathResolver,applicationConfiguration,XStreamJSONPSerialization,exceptionHandlerInterceptor,defaultExceptionMapper,JSR303Validator,defaultHttpResult,VRaptorDependencyProvider,VRaptorParameterNamesProvider,defaultValidationViewsFactory,HTMLSerialization,executeMethodInterceptor,servlet3MultipartInterceptor,downloadInterceptor,XStreamJSONSerialization,defaultLogicResult,parametersInstantiatorInterceptor,resourceLookupInterceptor,messageConverter,defaultRepresentationResult,jstlLocalization,replicatorOutjector,defaultMethodInfo,defaultFormatResolver,flashInterceptor,deserializingInterceptor,jsonDeserializer,XStreamXMLSerialization,defaultStatus,primitiveCharConverter,booleanConverter,primitiveByteConverter,byteConverter,primitiveShortConverter,characterConverter,uploadedFileConverter,floatConverter,primitiveFloatConverter,localeBasedDateConverter,enumConverter,localeBasedCalendarConverter,shortConverter,primitiveLongConverter,primitiveIntConverter,stringConverter,primitiveDoubleConverter,doubleConverter,longConverter,integerConverter,bigIntegerConverter,primitiveBooleanConverter,bigDecimalConverter,VRaptorRequestProvider,httpServletRequestProvider,httpServletResponseProvider,httpSessionProvider,enhancedRequestExecution,XStreamBuilderImpl,defaultInterceptorStack,org.springframework.aop.config.internalAutoProxyCreator,errorController,openTransaction,applicationTimer,usuarioDao,indexController,usuarioService,openSessionFactory,configuracaoService,usuarioFactory,openSession,cepService,configuracaoWeb,configuracaoDao]; root of factory hierarchy

Depois a minha fábrica simplesmente fecha.

23:11:38,514 INFO [stdout] (MSC service thread 1-1) 23:11:38,513 INFO [OpenSessionFactory ] Encerrando Fábrica do Hibernate

Consigo fazer um debug dentro dos jars sem decompilar eles?

FacesRequestAttributes does not support such callbacks

esse cara é da integração com o JSF, não deveria estar habilitado no uso com o VRaptor!

vc tá usando o spring especificamente pra alguma coisa? Se não, tente trocar pelo Guice

Não estou usando pra nada Lucas, só o Vraptor mesmo…vo alterar pro Guice e já posto novamente.

Esse ta custoso de sair

[code]
00:10:21,717 Informações [org.jboss.modules] JBoss Modules version 1.1.1.GA
00:10:22,348 INFO [org.jboss.msc] JBoss MSC version 1.0.2.GA
00:10:22,461 INFO [org.jboss.as] JBAS015899: JBoss AS 7.1.1.Final “Brontes” starting
00:10:24,642 INFO [org.xnio] XNIO Version 3.0.3.GA
00:10:24,644 INFO [org.jboss.as.server] JBAS015888: Creating http management service using socket-binding (management-http)
00:10:24,665 INFO [org.xnio.nio] XNIO NIO Implementation Version 3.0.3.GA
00:10:24,685 INFO [org.jboss.remoting] JBoss Remoting version 3.2.3.GA
00:10:24,760 INFO [org.jboss.as.logging] JBAS011502: Removing bootstrap log handlers
00:10:24,768 INFO [org.jboss.as.configadmin] (ServerService Thread Pool – 26) JBAS016200: Activating ConfigAdmin Subsystem
00:10:24,835 INFO [org.jboss.as.clustering.infinispan] (ServerService Thread Pool – 31) JBAS010280: Activating Infinispan subsystem.
00:10:24,925 INFO [org.jboss.as.connector.subsystems.datasources] (ServerService Thread Pool – 27) JBAS010403: Deploying JDBC-compliant driver class org.h2.Driver (version 1.3)
00:10:25,218 INFO [org.jboss.as.naming] (ServerService Thread Pool – 38) JBAS011800: Activating Naming Subsystem
00:10:25,229 INFO [org.jboss.as.osgi] (ServerService Thread Pool – 39) JBAS011940: Activating OSGi Subsystem
00:10:25,296 INFO [org.jboss.as.security] (ServerService Thread Pool – 44) JBAS013101: Activating Security Subsystem
00:10:25,305 INFO [org.jboss.as.webservices] (ServerService Thread Pool – 48) JBAS015537: Activating WebServices Extension
00:10:25,650 INFO [org.jboss.as.naming] (MSC service thread 1-4) JBAS011802: Starting Naming Service
00:10:25,668 INFO [org.jboss.as.security] (MSC service thread 1-4) JBAS013100: Current PicketBox version=4.0.7.Final
00:10:25,856 INFO [org.jboss.ws.common.management.AbstractServerConfig] (MSC service thread 1-2) JBoss Web Services - Stack CXF Server 4.0.2.GA
00:10:25,959 INFO [org.jboss.as.mail.extension] (MSC service thread 1-2) JBAS015400: Bound mail session [java:jboss/mail/Default]
00:10:26,178 INFO [org.jboss.as.connector] (MSC service thread 1-2) JBAS010408: Starting JCA Subsystem (JBoss IronJacamar 1.0.9.Final)
00:10:27,133 INFO [org.jboss.as.server.deployment.scanner] (MSC service thread 1-2) JBAS015012: Started FileSystemDeploymentService for directory D:\Java\Servers\jboss-as-7.1.1.Final\standalone\deployments
00:10:27,204 INFO [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) JBAS015003: Found Eplus.war in deployment directory. To trigger deployment create a file called Eplus.war.dodeploy
00:10:27,530 INFO [org.jboss.as.remoting] (MSC service thread 1-1) JBAS017100: Listening on localhost/127.0.0.1:4447
00:10:27,627 INFO [org.apache.coyote.http11.Http11Protocol] (MSC service thread 1-4) Starting Coyote HTTP/1.1 on http-localhost-127.0.0.1-8080
00:10:27,686 INFO [org.jboss.as.remoting] (MSC service thread 1-4) JBAS017100: Listening on /127.0.0.1:9999
00:10:27,854 INFO [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-4) JBAS010400: Bound data source [java:jboss/datasources/ExampleDS]
00:10:28,120 INFO [org.jboss.as.server.deployment] (MSC service thread 1-1) JBAS015876: Starting deployment of “Eplus.war”
00:10:33,387 INFO [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-4) JBAS010404: Deploying non-JDBC-compliant driver class com.mysql.jdbc.Driver (version 5.1)
00:10:33,955 INFO [br.com.caelum.vraptor.config.BasicConfiguration] (MSC service thread 1-4) Using class br.com.caelum.vraptor.ioc.guice.GuiceProvider as Container Provider
00:10:35,342 INFO [br.com.caelum.vraptor.config.BasicConfiguration] (MSC service thread 1-4) br.com.caelum.vraptor.scanning = null
00:10:35,344 INFO [br.com.caelum.vraptor.scan.WebAppBootstrapFactory] (MSC service thread 1-4) Dynamic WebAppBootstrap found.
00:10:36,389 INFO [stdout] (MSC service thread 1-4) 00:10:36,388 INFO [OpenSessionFactory ] Criando Fábrica do Hibernate

00:10:36,528 INFO [org.hibernate.annotations.common.Version] (MSC service thread 1-4) HCANN000001: Hibernate Commons Annotations {4.0.1.Final}
00:10:36,538 INFO [org.hibernate.Version] (MSC service thread 1-4) HHH000412: Hibernate Core {4.1.6.Final}
00:10:36,542 INFO [org.hibernate.cfg.Environment] (MSC service thread 1-4) HHH000206: hibernate.properties not found
00:10:36,545 INFO [org.hibernate.cfg.Environment] (MSC service thread 1-4) HHH000021: Bytecode provider name : javassist
00:10:36,579 INFO [org.hibernate.cfg.Configuration] (MSC service thread 1-4) HHH000043: Configuring from resource: /hibernate.cfg.xml
00:10:36,580 INFO [org.hibernate.cfg.Configuration] (MSC service thread 1-4) HHH000040: Configuration resource: /hibernate.cfg.xml
00:10:36,617 WARN [org.hibernate.internal.util.xml.DTDEntityResolver] (MSC service thread 1-4) HHH000223: Recognized obsolete hibernate namespace http://hibernate.sourceforge.net/. Use namespace http://www.hibernate.org/dtd/ instead. Refer to Hibernate 3.6 Migration Guide!
00:10:36,652 INFO [org.hibernate.cfg.Configuration] (MSC service thread 1-4) HHH000041: Configured SessionFactory: null
00:10:36,877 INFO [org.hibernate.service.jdbc.connections.internal.DriverManagerConnectionProviderImpl] (MSC service thread 1-4) HHH000402: Using Hibernate built-in connection pool (not for production use!)
00:10:36,879 INFO [org.hibernate.service.jdbc.connections.internal.DriverManagerConnectionProviderImpl] (MSC service thread 1-4) HHH000115: Hibernate connection pool size: 20
00:10:36,880 INFO [org.hibernate.service.jdbc.connections.internal.DriverManagerConnectionProviderImpl] (MSC service thread 1-4) HHH000006: Autocommit mode: false
00:10:36,882 INFO [org.hibernate.service.jdbc.connections.internal.DriverManagerConnectionProviderImpl] (MSC service thread 1-4) HHH000401: using driver [com.mysql.jdbc.Driver] at URL [jdbc:mysql://localhost/eplus]
00:10:36,887 INFO [org.hibernate.service.jdbc.connections.internal.DriverManagerConnectionProviderImpl] (MSC service thread 1-4) HHH000046: Connection properties: {user=root, password=****}
00:10:37,234 INFO [org.hibernate.dialect.Dialect] (MSC service thread 1-4) HHH000400: Using dialect: org.hibernate.dialect.MySQL5InnoDBDialect
00:10:37,263 INFO [org.hibernate.engine.transaction.internal.TransactionFactoryInitiator] (MSC service thread 1-4) HHH000399: Using default transaction strategy (direct JDBC transactions)
00:10:37,271 INFO [org.hibernate.hql.internal.ast.ASTQueryTranslatorFactory] (MSC service thread 1-4) HHH000397: Using ASTQueryTranslatorFactory
00:10:37,325 INFO [org.hibernate.validator.util.Version] (MSC service thread 1-4) Hibernate Validator 4.2.0.Final
00:10:37,627 INFO [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-4) HHH000228: Running hbm2ddl schema update
00:10:37,628 INFO [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-4) HHH000102: Fetching database metadata
00:10:37,631 INFO [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-4) HHH000396: Updating schema
00:10:37,663 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000261: Table found: eplus.configuracoes
00:10:37,664 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000037: Columns: [valor, tipo, chave, descricao]
00:10:37,665 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000108: Foreign keys: []
00:10:37,666 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000126: Indexes: [index_configuracao]
00:10:37,707 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000261: Table found: eplus.usuarios
00:10:37,708 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000037: Columns: [compania, fax, pais, usuario, senha, aceita_newsletter, bairro, cidade, sobrenome, cep, estado, telefone, nome, endereco]
00:10:37,709 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000108: Foreign keys: []
00:10:37,710 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000126: Indexes: [index_usuarios, primary]
00:10:37,712 INFO [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-4) HHH000232: Schema update complete
00:10:37,746 INFO [br.com.caelum.vraptor.core.DefaultConverters] (MSC service thread 1-4) Registering bundled converters
00:10:37,752 INFO [br.com.caelum.vraptor.view.LinkToHandler] (MSC service thread 1-4) Registering linkTo component
00:10:37,787 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/Eplus]] (MSC service thread 1-4) Exception starting filter vraptor: com.google.inject.CreationException: Guice creation errors:

  1. Error in custom provider, java.lang.NullPointerException
    at br.com.caelum.vraptor.ioc.guice.GuiceComponentRegistry.bindToConstructor(GuiceComponentRegistry.java:141)
    while locating br.com.eplus.service.ConfiguracaoService
    for parameter 0 at br.com.eplus.util.ApplicationTimer.<init>(ApplicationTimer.java:28)
    at br.com.caelum.vraptor.ioc.guice.GuiceComponentRegistry.bindToConstructor(GuiceComponentRegistry.java:141)
    while locating br.com.eplus.util.ApplicationTimer

1 error
at com.google.inject.internal.Errors.throwCreationExceptionIfErrorsExist(Errors.java:435) [guice-3.0.jar:]
at com.google.inject.internal.InternalInjectorCreator.injectDynamically(InternalInjectorCreator.java:183) [guice-3.0.jar:]
at com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:109) [guice-3.0.jar:]
at com.google.inject.Guice.createInjector(Guice.java:95) [guice-3.0.jar:]
at com.google.inject.Guice.createInjector(Guice.java:83) [guice-3.0.jar:]
at br.com.caelum.vraptor.ioc.guice.GuiceProvider.start(GuiceProvider.java:98) [vraptor-3.4.1.jar:]
at br.com.caelum.vraptor.VRaptor.init(VRaptor.java:108) [vraptor-3.4.1.jar:]
at br.com.caelum.vraptor.VRaptor.init(VRaptor.java:102) [vraptor-3.4.1.jar:]
at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:447) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3269) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.core.StandardContext.start(StandardContext.java:3865) [jbossweb-7.0.13.Final.jar:]
at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:90) [jboss-as-web-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [rt.jar:1.7.0_05]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [rt.jar:1.7.0_05]
at java.lang.Thread.run(Unknown Source) [rt.jar:1.7.0_05]
Caused by: java.lang.NullPointerException
at br.com.caelum.vraptor.ioc.guice.AbstractScope$ScopedProvider.getName(AbstractScope.java:87) [vraptor-3.4.1.jar:]
at br.com.caelum.vraptor.ioc.guice.AbstractScope$ScopedProvider.get(AbstractScope.java:67) [vraptor-3.4.1.jar:]
at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:40) [guice-3.0.jar:]
at com.google.inject.internal.SingleParameterInjector.inject(SingleParameterInjector.java:38) [guice-3.0.jar:]
at com.google.inject.internal.SingleParameterInjector.getAll(SingleParameterInjector.java:62) [guice-3.0.jar:]
at com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:84) [guice-3.0.jar:]
at com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:254) [guice-3.0.jar:]
at com.google.inject.internal.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:46) [guice-3.0.jar:]
at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1031) [guice-3.0.jar:]
at com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40) [guice-3.0.jar:]
at com.google.inject.Scopes$1$1.get(Scopes.java:65) [guice-3.0.jar:]
at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:40) [guice-3.0.jar:]
at com.google.inject.internal.InternalInjectorCreator$1.call(InternalInjectorCreator.java:204) [guice-3.0.jar:]
at com.google.inject.internal.InternalInjectorCreator$1.call(InternalInjectorCreator.java:198) [guice-3.0.jar:]
at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1024) [guice-3.0.jar:]
at com.google.inject.internal.InternalInjectorCreator.loadEagerSingletons(InternalInjectorCreator.java:198) [guice-3.0.jar:]
at com.google.inject.internal.InternalInjectorCreator.injectDynamically(InternalInjectorCreator.java:179) [guice-3.0.jar:]
… 15 more

00:10:37,835 ERROR [org.apache.catalina.core.StandardContext] (MSC service thread 1-4) Error filterStart
00:10:37,837 ERROR [org.apache.catalina.core.StandardContext] (MSC service thread 1-4) Context [/Eplus] startup failed due to previous errors
00:10:37,878 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-4) MSC00001: Failed to start service jboss.web.deployment.default-host./Eplus: org.jboss.msc.service.StartException in service jboss.web.deployment.default-host./Eplus: JBAS018040: Failed to start context
at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:95)
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [rt.jar:1.7.0_05]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [rt.jar:1.7.0_05]
at java.lang.Thread.run(Unknown Source) [rt.jar:1.7.0_05]

00:10:37,888 INFO [org.jboss.as] (MSC service thread 1-4) JBAS015951: Admin console listening on http://127.0.0.1:9990
00:10:37,890 ERROR [org.jboss.as] (MSC service thread 1-4) JBAS015875: JBoss AS 7.1.1.Final "Brontes" started (with errors) in 17269ms - Started 325 of 404 services (2 services failed or missing dependencies, 76 services are passive or on-demand)
00:10:37,990 INFO [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS015870: Deploy of deployment "Eplus.war" was rolled back with failure message {"JBAS014671: Failed services" => {"jboss.web.deployment.default-host./Eplus" => "org.jboss.msc.service.StartException in service jboss.web.deployment.default-host./Eplus: JBAS018040: Failed to start context"}}
00:10:37,995 INFO [org.jboss.as.controller] (DeploymentScanner-threads - 2) JBAS014774: Service status report
JBAS014777: Services which failed to start: service jboss.web.deployment.default-host./Eplus: org.jboss.msc.service.StartException in service jboss.web.deployment.default-host./Eplus: JBAS018040: Failed to start context

00:10:38,014 ERROR [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) {"JBAS014653: Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-2" => {"JBAS014671: Failed services" => {"jboss.web.deployment.default-host./Eplus" => "org.jboss.msc.service.StartException in service jboss.web.deployment.default-host./Eplus: JBAS018040: Failed to start context"}}}}
00:10:38,393 INFO [org.jboss.as.server.deployment] (MSC service thread 1-2) JBAS015877: Stopped deployment Eplus.war in 402ms[/code]

O pico já reclama de dependencia, acho que comi bronha na implementação mesmo:

[code]00:53:41,577 INFO [br.com.caelum.vraptor.ioc.pico.PicoComponentRegistry] (MSC service thread 1-1) Initializing VRaptor IoC Container implementation based on PicoContainer
00:53:41,664 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/Eplus]] (MSC service thread 1-1) Exception starting filter vraptor: org.picocontainer.injectors.AbstractInjector$UnsatisfiableDependenciesException: br.com.eplus.util.ApplicationTimer has unsatisfied dependency: class br.com.eplus.service.ConfiguracaoService among unsatisfiable dependencies: [[class br.com.eplus.service.ConfiguracaoService]] where org.picocontainer.DefaultPicoContainer@1feda585:87<| was the leaf container being asked for dependencies.
at org.picocontainer.injectors.ConstructorInjector.getGreediestSatisfiableConstructor(ConstructorInjector.java:195) [picocontainer-2.13.6.jar:]
at org.picocontainer.injectors.ConstructorInjector.getGreediestSatisfiableConstructor(ConstructorInjector.java:111) [picocontainer-2.13.6.jar:]
at org.picocontainer.injectors.ConstructorInjector.access$100(ConstructorInjector.java:51) [picocontainer-2.13.6.jar:]
at org.picocontainer.injectors.ConstructorInjector$1.run(ConstructorInjector.java:321) [picocontainer-2.13.6.jar:]
at org.picocontainer.injectors.AbstractInjector$ThreadLocalCyclicDependencyGuard.observe(AbstractInjector.java:272) [picocontainer-2.13.6.jar:]
at org.picocontainer.injectors.ConstructorInjector.getComponentInstance(ConstructorInjector.java:354) [picocontainer-2.13.6.jar:]
at org.picocontainer.injectors.AbstractInjectionFactory$LifecycleAdapter.getComponentInstance(AbstractInjectionFactory.java:56) [picocontainer-2.13.6.jar:]
at org.picocontainer.behaviors.AbstractBehavior.getComponentInstance(AbstractBehavior.java:64) [picocontainer-2.13.6.jar:]
at org.picocontainer.behaviors.Stored.getComponentInstance(Stored.java:91) [picocontainer-2.13.6.jar:]
at org.picocontainer.DefaultPicoContainer.instantiateComponentAsIsStartable(DefaultPicoContainer.java:1023) [picocontainer-2.13.6.jar:]
at org.picocontainer.DefaultPicoContainer.addAdapterIfStartable(DefaultPicoContainer.java:1015) [picocontainer-2.13.6.jar:]
at org.picocontainer.DefaultPicoContainer.startAdapters(DefaultPicoContainer.java:992) [picocontainer-2.13.6.jar:]
at org.picocontainer.DefaultPicoContainer.start(DefaultPicoContainer.java:756) [picocontainer-2.13.6.jar:]
at br.com.caelum.vraptor.ioc.pico.PicoProvider.start(PicoProvider.java:106) [vraptor-3.4.1.jar:]
at br.com.caelum.vraptor.VRaptor.init(VRaptor.java:108) [vraptor-3.4.1.jar:]
at br.com.caelum.vraptor.VRaptor.init(VRaptor.java:102) [vraptor-3.4.1.jar:]
at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:447) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3269) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.core.StandardContext.start(StandardContext.java:3865) [jbossweb-7.0.13.Final.jar:]
at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:90) [jboss-as-web-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [rt.jar:1.7.0_05]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [rt.jar:1.7.0_05]
at java.lang.Thread.run(Unknown Source) [rt.jar:1.7.0_05]

00:53:41,707 ERROR [org.apache.catalina.core.StandardContext] (MSC service thread 1-1) Error filterStart
00:53:41,708 ERROR [org.apache.catalina.core.StandardContext] (MSC service thread 1-1) Context [/Eplus] startup failed due to previous errors
00:53:41,759 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-1) MSC00001: Failed to start service jboss.web.deployment.default-host./Eplus: org.jboss.msc.service.StartException in service jboss.web.deployment.default-host./Eplus: JBAS018040: Failed to start context
at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:95)
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [rt.jar:1.7.0_05]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [rt.jar:1.7.0_05]
at java.lang.Thread.run(Unknown Source) [rt.jar:1.7.0_05]

00:53:41,769 INFO [org.jboss.as] (MSC service thread 1-1) JBAS015951: Admin console listening on http://127.0.0.1:9990
00:53:41,770 ERROR [org.jboss.as] (MSC service thread 1-1) JBAS015875: JBoss AS 7.1.1.Final "Brontes" started (with errors) in 12735ms - Started 325 of 404 services (2 services failed or missing dependencies, 76 services are passive or on-demand)
00:53:41,875 INFO [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS015870: Deploy of deployment "Eplus.war" was rolled back with failure message {"JBAS014671: Failed services" => {"jboss.web.deployment.default-host./Eplus" => "org.jboss.msc.service.StartException in service jboss.web.deployment.default-host./Eplus: JBAS018040: Failed to start context"}}
00:53:41,877 INFO [org.jboss.as.controller] (DeploymentScanner-threads - 2) JBAS014774: Service status report
JBAS014777: Services which failed to start: service jboss.web.deployment.default-host./Eplus: org.jboss.msc.service.StartException in service jboss.web.deployment.default-host./Eplus: JBAS018040: Failed to start context

00:53:41,880 ERROR [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) {"JBAS014653: Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-2" => {"JBAS014671: Failed services" => {"jboss.web.deployment.default-host./Eplus" => "org.jboss.msc.service.StartException in service jboss.web.deployment.default-host./Eplus: JBAS018040: Failed to start context"}}}}
00:53:42,182 INFO [org.jboss.as.server.deployment] (MSC service thread 1-1) JBAS015877: Stopped deployment Eplus.war in 289ms
[/code]

muito estranho isso…

tenta fazer o deploy da aplicação num tomcat limpo ao invés de no jboss.

Spring com o mesmo erro:

Set 18, 2012 1:21:19 AM org.apache.catalina.core.AprLifecycleListener init
Informações: 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\jre7\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\TortoiseSVN\bin;.
Set 18, 2012 1:21:20 AM org.apache.tomcat.util.digester.SetPropertiesRule begin
Advertência: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:Eplus' did not find a matching property.
Set 18, 2012 1:21:20 AM org.apache.coyote.AbstractProtocolHandler init
Informações: Initializing ProtocolHandler ["http-bio-8080"]
Set 18, 2012 1:21:20 AM org.apache.coyote.AbstractProtocolHandler init
Informações: Initializing ProtocolHandler ["ajp-bio-8009"]
Set 18, 2012 1:21:20 AM org.apache.catalina.startup.Catalina load
Informações: Initialization processed in 1712 ms
Set 18, 2012 1:21:20 AM org.apache.catalina.core.StandardService startInternal
Informações: Starting service Catalina
Set 18, 2012 1:21:20 AM org.apache.catalina.core.StandardEngine startInternal
Informações: Starting Servlet Engine: Apache Tomcat/7.0.12
01:21:22,891  INFO [BasicConfiguration  ] Using class br.com.caelum.vraptor.ioc.spring.SpringProvider as Container Provider
01:21:22,981  INFO [DefaultSpringLocator] No application context found
01:21:23,277  INFO [BasicConfiguration  ] br.com.caelum.vraptor.scanning = null
01:21:23,277  INFO [WebAppBootstrapFactory] Dynamic WebAppBootstrap found.
01:21:23,997  INFO [AnnotationConfigWebApplicationContext] Refreshing Root WebApplicationContext: startup date [Tue Sep 18 01:21:23 BRT 2012]; root of context hierarchy
01:21:24,243  INFO [ClassPathBeanDefinitionScanner] JSR-330 'javax.inject.Named' annotation found and supported for component scanning
01:21:24,856  INFO [DefaultListableBeanFactory] Overriding bean definition for bean 'org.springframework.context.annotation.internalAutowiredAnnotationProcessor': replacing [Root bean: class [org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null] with [Root bean: class [br.com.caelum.vraptor.ioc.spring.InjectionBeanPostProcessor]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null]
01:21:24,900  INFO [InjectionBeanPostProcessor] JSR-330 'javax.inject.Inject' annotation found and supported for autowiring
01:21:25,268  INFO [DefaultListableBeanFactory] Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@726c8f4c: 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.ConfigurationClassPostProcessor$ImportAwareBeanPostProcessor#0,defaultMethodNotAllowedHandler,noRoutesConfiguration,defaultRoutes,defaultStaticContentHandler,defaultResourceTranslator,paranamerNameProvider,defaultDeserializers,topologicalSortedInterceptorRegistry,defaultInterceptorHandlerFactory,defaultResourceNotFoundHandler,defaultTypeNameExtractor,javaEvaluator,hibernateProxyInitializer,encodingHandlerFactory,defaultRouter,cglibProxifier,defaultTypeFinder,pathAnnotationRoutesParser,interceptorListPriorToExecutionExtractor,defaultMultipartConfig,objenesisInstanceCreator,defaultRestDefaults,XStreamConverters.NullConverter,defaultAcceptHeaderToFormat,defaultConverters,stereotypeHandler,converterHandler,interceptorStereotypeHandler,deserializesHandler,stereotypedBeansRegistrar,defaultSpringLocator,servlet3MultipartInterceptor,applicationConfiguration,outjectResult,defaultStatus,defaultRestHeadersHandler,defaultRefererResult,replicatorOutjector,defaultFormatResolver,jsonDeserializer,defaultValidator,messageConverter,exceptionHandlerInterceptor,VRaptorInstantiator,defaultRepresentationResult,VRaptorDependencyProvider,VRaptorParameterNamesProvider,defaultPageResult,defaultLogicResult,defaultExceptionMapper,XStreamXMLDeserializer,resourceLookupInterceptor,defaultPathResolver,executeMethodInterceptor,parametersInstantiatorInterceptor,defaultHttpResult,forwardToDefaultViewInterceptor,XStreamConverters,emptyResult,downloadInterceptor,nullBeanValidator,XStreamXMLSerialization,defaultValidationViewsFactory,defaultMethodInfo,jstlLocalization,iogiParametersProvider,XStreamJSONPSerialization,sessionFlashScope,defaultResult,flashInterceptor,HTMLSerialization,XStreamJSONSerialization,instantiateInterceptor,deserializingInterceptor,primitiveFloatConverter,primitiveCharConverter,byteConverter,primitiveShortConverter,uploadedFileConverter,characterConverter,localeBasedCalendarConverter,integerConverter,floatConverter,primitiveDoubleConverter,doubleConverter,primitiveLongConverter,localeBasedDateConverter,shortConverter,primitiveBooleanConverter,longConverter,primitiveIntConverter,stringConverter,primitiveByteConverter,booleanConverter,bigIntegerConverter,enumConverter,bigDecimalConverter,VRaptorRequestProvider,httpServletRequestProvider,httpServletResponseProvider,httpSessionProvider,XStreamBuilderImpl,defaultInterceptorStack,enhancedRequestExecution,org.springframework.aop.config.internalAutoProxyCreator,cepService,errorController,openSession,indexController,configuracaoDao,openSessionFactory,configuracaoService,usuarioService,openTransaction,usuarioDao,usuarioFactory,configuracaoWeb,applicationTimer]; root of factory hierarchy
01:21:25,352  INFO [OpenSessionFactory  ] Criando Fábrica do Hibernate
log4j:WARN No appenders could be found for logger (org.jboss.logging).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
Set 18, 2012 1:21:28 AM org.apache.catalina.core.StandardContext filterStart
Grave: Exception starting filter vraptor
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'applicationTimer': Unsatisfied dependency expressed through constructor argument with index 0 of type [br.com.eplus.service.ConfiguracaoService]: : Error creating bean with name 'configuracaoService': Scope 'request' is not active for the current thread; consider defining a scoped proxy for this bean if you intend to refer to it from a singleton; nested exception is java.lang.IllegalStateException: No thread-bound request found: Are you referring to request attributes outside of an actual web request, or processing a request outside of the originally receiving thread? If you are actually operating within a web request and still receive this message, your code is probably running outside of DispatcherServlet/DispatcherPortlet: In this case, use RequestContextListener or RequestContextFilter to expose the current request.; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'configuracaoService': Scope 'request' is not active for the current thread; consider defining a scoped proxy for this bean if you intend to refer to it from a singleton; nested exception is java.lang.IllegalStateException: No thread-bound request found: Are you referring to request attributes outside of an actual web request, or processing a request outside of the originally receiving thread? If you are actually operating within a web request and still receive this message, your code is probably running outside of DispatcherServlet/DispatcherPortlet: In this case, use RequestContextListener or RequestContextFilter to expose the current request.
	at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:730)
	at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:196)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1035)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:939)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:485)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
	at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)
	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)
	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)
	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
	at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:609)
	at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:918)
	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:469)
	at br.com.caelum.vraptor.ioc.spring.SpringBasedContainer.start(SpringBasedContainer.java:106)
	at br.com.caelum.vraptor.ioc.spring.SpringProvider.start(SpringProvider.java:87)
	at br.com.caelum.vraptor.VRaptor.init(VRaptor.java:108)
	at br.com.caelum.vraptor.VRaptor.init(VRaptor.java:102)
	at org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:273)
	at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:254)
	at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:372)
	at org.apache.catalina.core.ApplicationFilterConfig.&lt;init&gt;(ApplicationFilterConfig.java:98)
	at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4562)
	at org.apache.catalina.core.StandardContext$2.call(StandardContext.java:5240)
	at org.apache.catalina.core.StandardContext$2.call(StandardContext.java:5235)
	at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
	at java.util.concurrent.FutureTask.run(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
	at java.lang.Thread.run(Unknown Source)
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'configuracaoService': Scope 'request' is not active for the current thread; consider defining a scoped proxy for this bean if you intend to refer to it from a singleton; nested exception is java.lang.IllegalStateException: No thread-bound request found: Are you referring to request attributes outside of an actual web request, or processing a request outside of the originally receiving thread? If you are actually operating within a web request and still receive this message, your code is probably running outside of DispatcherServlet/DispatcherPortlet: In this case, use RequestContextListener or RequestContextFilter to expose the current request.
	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:342)
	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
	at org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:876)
	at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:818)
	at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:735)
	at org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:795)
	at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:723)
	... 28 more
Caused by: java.lang.IllegalStateException: No thread-bound request found: Are you referring to request attributes outside of an actual web request, or processing a request outside of the originally receiving thread? If you are actually operating within a web request and still receive this message, your code is probably running outside of DispatcherServlet/DispatcherPortlet: In this case, use RequestContextListener or RequestContextFilter to expose the current request.
	at org.springframework.web.context.request.RequestContextHolder.currentRequestAttributes(RequestContextHolder.java:131)
	at org.springframework.web.context.request.AbstractRequestAttributesScope.get(AbstractRequestAttributesScope.java:40)
	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:328)
	... 34 more

Set 18, 2012 1:21:28 AM org.apache.catalina.core.StandardContext startInternal
Grave: Error filterStart
Set 18, 2012 1:21:28 AM org.apache.catalina.core.StandardContext startInternal
Grave: Context [/Eplus] startup failed due to previous errors
01:21:28,036  INFO [DefaultListableBeanFactory] Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@726c8f4c: 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.ConfigurationClassPostProcessor$ImportAwareBeanPostProcessor#0,defaultMethodNotAllowedHandler,noRoutesConfiguration,defaultRoutes,defaultStaticContentHandler,defaultResourceTranslator,paranamerNameProvider,defaultDeserializers,topologicalSortedInterceptorRegistry,defaultInterceptorHandlerFactory,defaultResourceNotFoundHandler,defaultTypeNameExtractor,javaEvaluator,hibernateProxyInitializer,encodingHandlerFactory,defaultRouter,cglibProxifier,defaultTypeFinder,pathAnnotationRoutesParser,interceptorListPriorToExecutionExtractor,defaultMultipartConfig,objenesisInstanceCreator,defaultRestDefaults,XStreamConverters.NullConverter,defaultAcceptHeaderToFormat,defaultConverters,stereotypeHandler,converterHandler,interceptorStereotypeHandler,deserializesHandler,stereotypedBeansRegistrar,defaultSpringLocator,servlet3MultipartInterceptor,applicationConfiguration,outjectResult,defaultStatus,defaultRestHeadersHandler,defaultRefererResult,replicatorOutjector,defaultFormatResolver,jsonDeserializer,defaultValidator,messageConverter,exceptionHandlerInterceptor,VRaptorInstantiator,defaultRepresentationResult,VRaptorDependencyProvider,VRaptorParameterNamesProvider,defaultPageResult,defaultLogicResult,defaultExceptionMapper,XStreamXMLDeserializer,resourceLookupInterceptor,defaultPathResolver,executeMethodInterceptor,parametersInstantiatorInterceptor,defaultHttpResult,forwardToDefaultViewInterceptor,XStreamConverters,emptyResult,downloadInterceptor,nullBeanValidator,XStreamXMLSerialization,defaultValidationViewsFactory,defaultMethodInfo,jstlLocalization,iogiParametersProvider,XStreamJSONPSerialization,sessionFlashScope,defaultResult,flashInterceptor,HTMLSerialization,XStreamJSONSerialization,instantiateInterceptor,deserializingInterceptor,primitiveFloatConverter,primitiveCharConverter,byteConverter,primitiveShortConverter,uploadedFileConverter,characterConverter,localeBasedCalendarConverter,integerConverter,floatConverter,primitiveDoubleConverter,doubleConverter,primitiveLongConverter,localeBasedDateConverter,shortConverter,primitiveBooleanConverter,longConverter,primitiveIntConverter,stringConverter,primitiveByteConverter,booleanConverter,bigIntegerConverter,enumConverter,bigDecimalConverter,VRaptorRequestProvider,httpServletRequestProvider,httpServletResponseProvider,httpSessionProvider,XStreamBuilderImpl,defaultInterceptorStack,enhancedRequestExecution,org.springframework.aop.config.internalAutoProxyCreator,cepService,errorController,openSession,indexController,configuracaoDao,openSessionFactory,configuracaoService,usuarioService,openTransaction,usuarioDao,usuarioFactory,configuracaoWeb,applicationTimer]; root of factory hierarchy
01:21:28,037  INFO [OpenSessionFactory  ] Encerrando Fábrica do Hibernate
Set 18, 2012 1:21:28 AM org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc
Grave: The web application [/Eplus] registered the JDBC driver [com.mysql.jdbc.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
Set 18, 2012 1:21:28 AM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
Grave: The web application [/Eplus] appears to have started a thread named [Abandoned connection cleanup thread] but has failed to stop it. This is very likely to create a memory leak.
Set 18, 2012 1:21:28 AM org.apache.coyote.AbstractProtocolHandler start
Informações: Starting ProtocolHandler ["http-bio-8080"]
Set 18, 2012 1:21:28 AM org.apache.coyote.AbstractProtocolHandler start
Informações: Starting ProtocolHandler ["ajp-bio-8009"]
Set 18, 2012 1:21:28 AM org.apache.catalina.startup.Catalina start
Informações: Server startup in 7384 ms[/code]

gUICE:

[code]Set 18, 2012 1:28:27 AM org.apache.catalina.core.AprLifecycleListener init
Informações: 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\jre7\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\TortoiseSVN\bin;.
Set 18, 2012 1:28:27 AM org.apache.tomcat.util.digester.SetPropertiesRule begin
Advertência: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:Eplus' did not find a matching property.
Set 18, 2012 1:28:27 AM org.apache.coyote.AbstractProtocolHandler init
Informações: Initializing ProtocolHandler ["http-bio-8080"]
Set 18, 2012 1:28:28 AM org.apache.coyote.AbstractProtocolHandler init
Informações: Initializing ProtocolHandler ["ajp-bio-8009"]
Set 18, 2012 1:28:28 AM org.apache.catalina.startup.Catalina load
Informações: Initialization processed in 1738 ms
Set 18, 2012 1:28:28 AM org.apache.catalina.core.StandardService startInternal
Informações: Starting service Catalina
Set 18, 2012 1:28:28 AM org.apache.catalina.core.StandardEngine startInternal
Informações: Starting Servlet Engine: Apache Tomcat/7.0.12
01:28:30,123  INFO [BasicConfiguration  ] Using class br.com.caelum.vraptor.ioc.guice.GuiceProvider as Container Provider
01:28:32,321  INFO [BasicConfiguration  ] br.com.caelum.vraptor.scanning = null
01:28:32,322  INFO [WebAppBootstrapFactory] Dynamic WebAppBootstrap found.
Set 18, 2012 1:28:33 AM org.apache.catalina.core.StandardContext filterStart
Grave: Exception starting filter vraptor
com.google.inject.CreationException: Guice creation errors:

1) No implementation for br.com.caelum.iogi.spi.DependencyProvider was bound.
  while locating br.com.caelum.iogi.spi.DependencyProvider
    for parameter 1 at br.com.caelum.vraptor.http.iogi.VRaptorInstantiator.&lt;init&gt;(VRaptorInstantiator.java:58)
  at br.com.caelum.vraptor.ioc.guice.GuiceComponentRegistry.bindToConstructor(GuiceComponentRegistry.java:141)

2) No implementation for br.com.caelum.iogi.spi.ParameterNamesProvider was bound.
  while locating br.com.caelum.iogi.spi.ParameterNamesProvider
    for parameter 3 at br.com.caelum.vraptor.http.iogi.VRaptorInstantiator.&lt;init&gt;(VRaptorInstantiator.java:58)
  at br.com.caelum.vraptor.ioc.guice.GuiceComponentRegistry.bindToConstructor(GuiceComponentRegistry.java:141)

2 errors
	at com.google.inject.internal.Errors.throwCreationExceptionIfErrorsExist(Errors.java:435)
	at com.google.inject.internal.InternalInjectorCreator.initializeStatically(InternalInjectorCreator.java:154)
	at com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:106)
	at com.google.inject.Guice.createInjector(Guice.java:95)
	at com.google.inject.Guice.createInjector(Guice.java:83)
	at br.com.caelum.vraptor.ioc.guice.GuiceProvider.start(GuiceProvider.java:98)
	at br.com.caelum.vraptor.VRaptor.init(VRaptor.java:108)
	at br.com.caelum.vraptor.VRaptor.init(VRaptor.java:102)
	at org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:273)
	at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:254)
	at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:372)
	at org.apache.catalina.core.ApplicationFilterConfig.&lt;init&gt;(ApplicationFilterConfig.java:98)
	at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4562)
	at org.apache.catalina.core.StandardContext$2.call(StandardContext.java:5240)
	at org.apache.catalina.core.StandardContext$2.call(StandardContext.java:5235)
	at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
	at java.util.concurrent.FutureTask.run(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
	at java.lang.Thread.run(Unknown Source)

Set 18, 2012 1:28:33 AM org.apache.catalina.core.StandardContext startInternal
Grave: Error filterStart
Set 18, 2012 1:28:33 AM org.apache.catalina.core.StandardContext startInternal
Grave: Context [/Eplus] startup failed due to previous errors
Set 18, 2012 1:28:33 AM org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc
Grave: The web application [/Eplus] registered the JDBC driver [com.mysql.jdbc.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
Set 18, 2012 1:28:33 AM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
Grave: The web application [/Eplus] appears to have started a thread named [com.google.inject.internal.util.$Finalizer] but has failed to stop it. This is very likely to create a memory leak.
Set 18, 2012 1:28:33 AM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
Grave: The web application [/Eplus] appears to have started a thread named [Abandoned connection cleanup thread] but has failed to stop it. This is very likely to create a memory leak.
Set 18, 2012 1:28:33 AM org.apache.coyote.AbstractProtocolHandler start
Informações: Starting ProtocolHandler [&quot;http-bio-8080&quot;]
Set 18, 2012 1:28:33 AM org.apache.coyote.AbstractProtocolHandler start
Informações: Starting ProtocolHandler [&quot;ajp-bio-8009&quot;]
Set 18, 2012 1:28:33 AM org.apache.catalina.startup.Catalina start
Informações: Server startup in 5166 ms

Pico:

[code]Set 18, 2012 1:30:51 AM org.apache.catalina.core.AprLifecycleListener init
Informações: 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\jre7\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Program Files\TortoiseSVN\bin;.
Set 18, 2012 1:30:51 AM org.apache.tomcat.util.digester.SetPropertiesRule begin
Advertência: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property ‘source’ to ‘org.eclipse.jst.jee.server:Eplus’ did not find a matching property.
Set 18, 2012 1:30:52 AM org.apache.coyote.AbstractProtocolHandler init
Informações: Initializing ProtocolHandler [“http-bio-8080”]
Set 18, 2012 1:30:52 AM org.apache.coyote.AbstractProtocolHandler init
Informações: Initializing ProtocolHandler [“ajp-bio-8009”]
Set 18, 2012 1:30:52 AM org.apache.catalina.startup.Catalina load
Informações: Initialization processed in 1746 ms
Set 18, 2012 1:30:52 AM org.apache.catalina.core.StandardService startInternal
Informações: Starting service Catalina
Set 18, 2012 1:30:52 AM org.apache.catalina.core.StandardEngine startInternal
Informações: Starting Servlet Engine: Apache Tomcat/7.0.12
01:30:54,115 INFO [BasicConfiguration ] Using class br.com.caelum.vraptor.ioc.pico.PicoProvider as Container Provider
01:30:54,902 INFO [BasicConfiguration ] br.com.caelum.vraptor.scanning = null
01:30:54,903 INFO [WebAppBootstrapFactory] Dynamic WebAppBootstrap found.
01:30:55,480 INFO [PicoComponentRegistry] Initializing VRaptor IoC Container implementation based on PicoContainer
01:30:55,695 INFO [DefaultConverters ] Registering bundled converters
Set 18, 2012 1:30:55 AM org.apache.catalina.core.StandardContext filterStart
Grave: Exception starting filter vraptor
org.picocontainer.injectors.AbstractInjector$UnsatisfiableDependenciesException: br.com.eplus.util.ApplicationTimer has unsatisfied dependency: class br.com.eplus.service.ConfiguracaoService among unsatisfiable dependencies: [[class br.com.eplus.service.ConfiguracaoService]] where org.picocontainer.DefaultPicoContainer@37b84bea:81<| was the leaf container being asked for dependencies.
at org.picocontainer.injectors.ConstructorInjector.getGreediestSatisfiableConstructor(ConstructorInjector.java:195)
at org.picocontainer.injectors.ConstructorInjector.getGreediestSatisfiableConstructor(ConstructorInjector.java:111)
at org.picocontainer.injectors.ConstructorInjector.access$100(ConstructorInjector.java:51)
at org.picocontainer.injectors.ConstructorInjector$1.run(ConstructorInjector.java:321)
at org.picocontainer.injectors.AbstractInjector$ThreadLocalCyclicDependencyGuard.observe(AbstractInjector.java:272)
at org.picocontainer.injectors.ConstructorInjector.getComponentInstance(ConstructorInjector.java:354)
at org.picocontainer.injectors.AbstractInjectionFactory$LifecycleAdapter.getComponentInstance(AbstractInjectionFactory.java:56)
at org.picocontainer.behaviors.AbstractBehavior.getComponentInstance(AbstractBehavior.java:64)
at org.picocontainer.behaviors.Stored.getComponentInstance(Stored.java:91)
at org.picocontainer.DefaultPicoContainer.instantiateComponentAsIsStartable(DefaultPicoContainer.java:1023)
at org.picocontainer.DefaultPicoContainer.addAdapterIfStartable(DefaultPicoContainer.java:1015)
at org.picocontainer.DefaultPicoContainer.startAdapters(DefaultPicoContainer.java:992)
at org.picocontainer.DefaultPicoContainer.start(DefaultPicoContainer.java:756)
at br.com.caelum.vraptor.ioc.pico.PicoProvider.start(PicoProvider.java:106)
at br.com.caelum.vraptor.VRaptor.init(VRaptor.java:108)
at br.com.caelum.vraptor.VRaptor.init(VRaptor.java:102)
at org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:273)
at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:254)
at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:372)
at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:98)
at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4562)
at org.apache.catalina.core.StandardContext$2.call(StandardContext.java:5240)
at org.apache.catalina.core.StandardContext$2.call(StandardContext.java:5235)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

Set 18, 2012 1:30:55 AM org.apache.catalina.core.StandardContext startInternal
Grave: Error filterStart
Set 18, 2012 1:30:55 AM org.apache.catalina.core.StandardContext startInternal
Grave: Context [/Eplus] startup failed due to previous errors
Set 18, 2012 1:30:55 AM org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc
Grave: The web application [/Eplus] registered the JDBC driver [com.mysql.jdbc.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
Set 18, 2012 1:30:55 AM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
Grave: The web application [/Eplus] appears to have started a thread named [Abandoned connection cleanup thread] but has failed to stop it. This is very likely to create a memory leak.
Set 18, 2012 1:30:55 AM org.apache.coyote.AbstractProtocolHandler start
Informações: Starting ProtocolHandler [“http-bio-8080”]
Set 18, 2012 1:30:55 AM org.apache.coyote.AbstractProtocolHandler start
Informações: Starting ProtocolHandler [“ajp-bio-8009”]
Set 18, 2012 1:30:55 AM org.apache.catalina.startup.Catalina start
Informações: Server startup in 3501 ms[/code]

Mesmo erros de antes, ahuauhahua já to rindo senão eu choro.

Cara agora fico estranho de vez coloquei as classes ApplicationTimer, ConfiguracaoService,ConfiguracaoWeb e ConfiguracaoDAO, OpenSession no mesmo escopo, no caso de aplicação apenas para teste, e as dependencias foram resolvidas, porém a session da null pointer…na verdade esste teste nem vale, pq não vou deixar essas classes no escopo de aplicação, mas está estranho:

[code]Set 18, 2012 1:46:07 AM org.apache.catalina.core.AprLifecycleListener init
Informações: 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\jre7\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Program Files\TortoiseSVN\bin;.
Set 18, 2012 1:46:08 AM org.apache.tomcat.util.digester.SetPropertiesRule begin
Advertência: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property ‘source’ to ‘org.eclipse.jst.jee.server:Eplus’ did not find a matching property.
Set 18, 2012 1:46:08 AM org.apache.coyote.AbstractProtocolHandler init
Informações: Initializing ProtocolHandler [“http-bio-8080”]
Set 18, 2012 1:46:08 AM org.apache.coyote.AbstractProtocolHandler init
Informações: Initializing ProtocolHandler [“ajp-bio-8009”]
Set 18, 2012 1:46:08 AM org.apache.catalina.startup.Catalina load
Informações: Initialization processed in 1740 ms
Set 18, 2012 1:46:08 AM org.apache.catalina.core.StandardService startInternal
Informações: Starting service Catalina
Set 18, 2012 1:46:08 AM org.apache.catalina.core.StandardEngine startInternal
Informações: Starting Servlet Engine: Apache Tomcat/7.0.12
01:46:10,238 INFO [BasicConfiguration ] Using class br.com.caelum.vraptor.ioc.pico.PicoProvider as Container Provider
01:46:11,019 INFO [BasicConfiguration ] br.com.caelum.vraptor.scanning = null
01:46:11,019 INFO [WebAppBootstrapFactory] Dynamic WebAppBootstrap found.
01:46:11,502 INFO [PicoComponentRegistry] Initializing VRaptor IoC Container implementation based on PicoContainer
01:46:11,784 INFO [DefaultConverters ] Registering bundled converters
01:46:11,800 INFO [OpenSessionFactory ] Criando Fábrica do Hibernate
log4j:WARN No appenders could be found for logger (org.jboss.logging).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
01:46:14,983 INFO [OpenSession ] Criando Session do Hibernate
Set 18, 2012 1:46:14 AM org.apache.catalina.core.StandardContext filterStart
Grave: Exception starting filter vraptor
org.picocontainer.PicoLifecycleException: PicoLifecycleException: method ‘public void br.com.eplus.hibernate.OpenSession.open() throws br.com.eplus.exception.EplusException’, instance 'br.com.eplus.hibernate.OpenSession@c8af6ec, java.lang.reflect.InvocationTargetException
at org.picocontainer.lifecycle.JavaEE5LifecycleStrategy.doLifecycleMethod(JavaEE5LifecycleStrategy.java:75)
at org.picocontainer.lifecycle.JavaEE5LifecycleStrategy.doLifecycleMethod(JavaEE5LifecycleStrategy.java:54)
at org.picocontainer.lifecycle.JavaEE5LifecycleStrategy.start(JavaEE5LifecycleStrategy.java:41)
at org.picocontainer.injectors.AbstractInjectionFactory$LifecycleAdapter.start(AbstractInjectionFactory.java:84)
at org.picocontainer.behaviors.AbstractBehavior.start(AbstractBehavior.java:169)
at org.picocontainer.behaviors.Stored$RealComponentLifecycle.start(Stored.java:132)
at org.picocontainer.behaviors.Stored.start(Stored.java:110)
at org.picocontainer.DefaultPicoContainer.potentiallyStartAdapter(DefaultPicoContainer.java:1005)
at org.picocontainer.DefaultPicoContainer.startAdapters(DefaultPicoContainer.java:998)
at org.picocontainer.DefaultPicoContainer.start(DefaultPicoContainer.java:756)
at br.com.caelum.vraptor.ioc.pico.PicoProvider.start(PicoProvider.java:106)
at br.com.caelum.vraptor.VRaptor.init(VRaptor.java:108)
at br.com.caelum.vraptor.VRaptor.init(VRaptor.java:102)
at org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:273)
at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:254)
at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:372)
at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:98)
at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4562)
at org.apache.catalina.core.StandardContext$2.call(StandardContext.java:5240)
at org.apache.catalina.core.StandardContext$2.call(StandardContext.java:5235)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.picocontainer.lifecycle.JavaEE5LifecycleStrategy.doLifecycleMethod(JavaEE5LifecycleStrategy.java:69)
… 24 more
Caused by: br.com.eplus.exception.EplusException: EplusException: java.lang.NullPointerException - null
at br.com.eplus.hibernate.OpenSession.open(OpenSession.java:39)
… 29 more

01:46:14,983 ERROR [OpenSession ] EplusException: java.lang.NullPointerException - null
Set 18, 2012 1:46:14 AM org.apache.catalina.core.StandardContext startInternal
Grave: Error filterStart
Set 18, 2012 1:46:14 AM org.apache.catalina.core.StandardContext startInternal
Grave: Context [/Eplus] startup failed due to previous errors
Set 18, 2012 1:46:15 AM org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc
Grave: The web application [/Eplus] registered the JDBC driver [com.mysql.jdbc.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
Set 18, 2012 1:46:15 AM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
Grave: The web application [/Eplus] appears to have started a thread named [Abandoned connection cleanup thread] but has failed to stop it. This is very likely to create a memory leak.
Set 18, 2012 1:46:15 AM org.apache.coyote.AbstractProtocolHandler start
Informações: Starting ProtocolHandler [“http-bio-8080”]
Set 18, 2012 1:46:15 AM org.apache.coyote.AbstractProtocolHandler start
Informações: Starting ProtocolHandler [“ajp-bio-8009”]
Set 18, 2012 1:46:15 AM org.apache.catalina.startup.Catalina start
Informações: Server startup in 6580 ms
[/code]

Error creating bean with name ‘configuracaoService’: Scope ‘request’ is not active for the current thread;

ConfiguracaoService é @ApplicationScoped e a Session é request scoped…

jeito facil de resolver isso é receber uma SessionFactory dentro do ConfiguracaoService e controlar a session na mão lá…

tenta fazer isso, usando o spring… deve funcionar…

o erro do guice é pq precisa registrar o pacote do iogi no web.xml, ou colocar o ognl no classpath.

Ah cara desisto, tirei até umas classes da dependencia criando singletons, mas não vai. O código permanece no github, se alguém conseguir posta aqui que eu agradeço muito.

Dica pra vida: esse tipo de coisa acontece sempre em desenvolvimento de software… Desistir simplesmente não é o melhor jeito :wink:

tenta isolar o erro…

tipo cria um projeto do zero, e vai adicionando as classes até vc descobrir qual é a que tá dando problema e daí a gente ajuda.

São raras as pessoas que vão pegar o seu projeto inteiro, rodar e descobrir o que tá acontecendo.

Blz Lucas? é depois que eu escrevi eu vi que postei besteira, ahuahu fiquei a semana inteira mirabolando um jeito e acabei ficando nervoso.Bom vamos lá então, rodei a aplicação do jeito que estava antes do TomCat e pelo menos ele me detalhou mais que o Jboss:

Error creating bean with name 'applicationTimer': Unsatisfied dependency expressed through constructor argument with index 0 of type [br.com.eplus.service.ConfiguracaoService]: : Error creating bean with name 'configuracaoService': Scope 'request' is not active for the current thread; consider defining a scoped proxy for this bean if you intend to refer to it from a singleton; nested exception is java.lang.IllegalStateException: No thread-bound request found: Are you referring to request attributes outside of an actual web request, or processing a request outside of the originally receiving thread? If you are actually operating within a web request and still receive this message, your code is probably running outside of DispatcherServlet/DispatcherPortlet: In this case, use RequestContextListener or RequestContextFilter to expose the current request.; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'configuracaoService': Scope 'request' is not active for the current thread; consider defining a scoped proxy for this bean if you intend to refer to it from a singleton; nested exception is java.lang.IllegalStateException: No thread-bound request found: Are you referring to request attributes outside of an actual web request, or processing a request outside of the originally receiving thread? If you are actually operating within a web request and still receive this message, your code is probably running outside of DispatcherServlet/DispatcherPortlet: In this case, use RequestContextListener or RequestContextFilter to expose the current request.

A dúvida é: eu posso injetar classe de escopo request(ConfiguracaoService ) dentro de uma application (ApplicationTimer)? Isso o vrpator herdou do spring? Eu mesmo não conheço isso. Se eu tornar a ApplicationTimer como request a aplicação starta normalmente, só que eu preciso que essa classe seja chama uma única vez assim que a aplcação for startada(por isso tinha colocado o escopo de application).

@Component
public class ApplicationTimer
{
	private Timer timer;
	private int verificarTempo=1;
	private int qtdMinutos=0;
	private final ConfiguracaoService configuracaoService;
	
	
	public ApplicationTimer(ConfiguracaoService configuracaoService)
	{
		this.configuracaoService=configuracaoService;
	}
	@PostConstruct
	public void run()
	{
			ApplicationLog.info(this, "Inicializando o Timer");
			if(verificarTempo==1)
			{
				Configuracao configuracao=configuracaoService.obterConfiguracaoChave(ApplicationKeys.ATUALIZA_CONFIGURACOES_TIME);
				verificarTempo=0;
				qtdMinutos=60000 * Integer.parseInt(configuracao.getValor());
			}
			timer=new Timer();
	        timer.schedule(new TimerTasks(configuracaoService),
	                       0,        //initial delay
	                       qtdMinutos);  //subsequent rate*/
	}
	@PreDestroy
	public void close()
	{
		timer.cancel();
	}
	
}

A saida seria criar um listener:

&lt;listener&gt; &lt;listener-class&gt;br.com.eplus.util.ApplicationTimer&lt;/listener-class&gt; &lt;/listener&gt;

Mas ai o vrpator não entra…não tem nada pra resolver a dependência dessa classe… tem alguma configuração do vraptor pra isso?

Como consegui aplicar o spring em minha aplicação eu utilizei o scheduler do spring assim como: http://vraptor.caelum.com.br/pt/cookbook/job-scheduling-com-vraptor3-e-spring/
só que eu configurei por XML.

A rotina funciona normalmente , porém quando acesso qualquer página é informado que tenho duas fábricas de conexão. Isso ocorre pq a classe do Timer tem escopo de aplicação e como a session é request eu tive que abrir a sessão manualmente:

private Session session;

public ClasseDAO(SessionFactory sessionFactory) {
 [b]   this.session = sessionFactory.openSession();[/b]

Só que o spring também controla a fábrica internamente:

[code]<?xml version=“1.0” encoding=“UTF-8”?>
<beans xmlns=“http://www.springframework.org/schema/beans
xmlns:xsi=“http://www.w3.org/2001/XMLSchema-instance
xmlns:tx=“http://www.springframework.org/schema/tx
xsi:schemaLocation="
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://www.springframework.org/schema/tx
http://www.springframework.org/schema/tx/spring-tx-2.0.xsd">

&lt;tx:annotation-driven /&gt;  

&lt;bean id="transactionManager"  
    class="org.springframework.orm.hibernate3.HibernateTransactionManager"&gt;  
    &lt;property name="sessionFactory" ref="sessionFactory" /&gt;  
&lt;/bean&gt;  
      
&lt;bean id="sessionFactory"  
    class="org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean"&gt;  
    &lt;property name="configLocation"&gt;  
        &lt;value&gt;classpath:/hibernate.cfg.xml&lt;/value&gt;  
    &lt;/property&gt;     
&lt;/bean&gt;  

</beans> [/code]

O que posso fazer?

Então, se vc vai usar a SessionFactory do Spring, faça o seguinte:

@Component
public class ApplicationTimer {

    public ApplicationTimer(SessionFactory factory) {
        this.factory = factory;
    }


    @Transactional  //importante!
    public void metodoQualquer() {
          Session session = factory.getCurrentSession();
          //...
    }

}

Então mas essa não é a SessionFactory do Spring e sim a que eu utilizava anteriormente (antes de habilitar o spring e o controle de transação). Meu DAO ficou assim:

[code]package br.com.eplus.dao;

import java.util.List;

import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.springframework.transaction.annotation.Transactional;

import br.com.caelum.vraptor.ioc.Component;
import br.com.caelum.vraptor.ioc.PrototypeScoped;

import br.com.eplus.exception.EplusException;
import br.com.eplus.model.Configuracao;

@Component
@PrototypeScoped
public class HibernateConfiguracaoDao implements ConfiguracaoDAO
{
private SessionFactory sessionFactory;

public HibernateConfiguracaoDao(SessionFactory sessionFactory)
{
	this.sessionFactory=sessionFactory;
}
/* (non-Javadoc)
 * @see br.com.eplus.dao.ConfiguracaoDAO#obterConfiguracoes()
 */
@Override
@Transactional
public List&lt;Configuracao&gt; obterConfiguracoes() throws EplusException
{
	Session session=sessionFactory.getCurrentSession();
	try
	{
		return session.createCriteria(Configuracao.class).list();		
	}
	catch (Exception e) 
	{
		throw new EplusException(this, e);
	}
}

}
[/code]

Timer funcionando, porém ao abrir a index:

No unique bean of type [org.hibernate.SessionFactory] is defined: expected single matching bean but found 2: [sessionFactory, br.com.eplus.hibernate.OpenSessionFactory]

Opa mancada minha, esqueci de deletar a OpenSessionFactory, agora está funcional finalmente do jeito que queria =D

muito obrigado pela força Lucas.