Olá,
estou estudando vraptor há alguns dias, e não estou conseguindo fazer muita coisa, hoje estou enfrentando um erro 404 em simplesmente todas as páginas que eu tento abrir.
eu estou utilizando o vraptor-blank-project. O básico de que a pasta dentro de WebContent/WEB-INF/jsp/classe/metodo.jsp e a anotação do @Resource eu sei.
Mas o log mostra tanta coisa e tudo que eu procuro não dá em nada.
Alguém pode me dar uma luz do que pode ser?
11/01/2013 19:54:02 org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Arquivos de programas\Java\jre6\bin;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:/Arquivos de programas/Java/jre6/bin/client;C:/Arquivos de programas/Java/jre6/bin;C:/Arquivos de programas/Java/jre6/lib/i386;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Arquivos de programas\COMODO\Time Machine;C:\mf\eclipse;;.
11/01/2013 19:54:04 org.apache.tomcat.util.digester.SetPropertiesRule begin
AVISO: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:vraptor-blank-project' did not find a matching property.
11/01/2013 19:54:05 org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-bio-8080"]
11/01/2013 19:54:05 org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["ajp-bio-8009"]
11/01/2013 19:54:05 org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 5425 ms
11/01/2013 19:54:05 org.apache.catalina.core.StandardService startInternal
INFO: Starting service Catalina
11/01/2013 19:54:05 org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.34
11/01/2013 19:54:07 org.apache.catalina.util.SessionIdGenerator createSecureRandom
INFO: Creation of SecureRandom instance for session ID generation using [SHA1PRNG] took [297] milliseconds.
19:54:16,250 INFO [BasicConfiguration ] Using class br.com.caelum.vraptor.ioc.spring.SpringProvider as Container Provider
19:54:16,343 INFO [DefaultSpringLocator] No application context found
19:54:16,718 INFO [BasicConfiguration ] br.com.caelum.vraptor.scanning = null
19:54:16,718 INFO [WebAppBootstrapFactory] Dynamic WebAppBootstrap found.
19:54:17,656 INFO [AnnotationConfigWebApplicationContext] Refreshing Root WebApplicationContext: startup date [Fri Jan 11 19:54:17 BRST 2013]; root of context hierarchy
19:54:18,875 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]
19:54:19,359 INFO [DefaultListableBeanFactory] Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@14c7cd: defining beans [org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,defaultInterceptorHandlerFactory,defaultMethodNotAllowedHandler,defaultRouter,defaultResourceNotFoundHandler,objenesisInstanceCreator,defaultRoutes,paranamerNameProvider,cglibProxifier,defaultResourceTranslator,defaultStaticContentHandler,XStreamConverters.NullConverter,pathAnnotationRoutesParser,defaultAcceptHeaderToFormat,encodingHandlerFactory,topologicalSortedInterceptorRegistry,defaultTypeNameExtractor,defaultMultipartConfig,defaultConverters,defaultRestDefaults,noRoutesConfiguration,interceptorListPriorToExecutionExtractor,defaultDeserializers,defaultTypeFinder,javaEvaluator,hibernateProxyInitializer,stereotypeHandler,converterHandler,interceptorStereotypeHandler,deserializesHandler,stereotypedBeansRegistrar,defaultSpringLocator,defaultValidationViewsFactory,jstlLocalization,exceptionHandlerInterceptor,defaultRepresentationResult,forwardToDefaultViewInterceptor,messageConverter,defaultMethodInfo,defaultExceptionMapper,resourceLookupInterceptor,XStreamConverters,downloadInterceptor,defaultLogicResult,VRaptorDependencyProvider,iogiParametersProvider,defaultRestHeadersHandler,XStreamXMLSerialization,HTMLSerialization,sessionFlashScope,executeMethodInterceptor,nullBeanValidator,defaultFormatResolver,XStreamJSONSerialization,jsonDeserializer,parametersInstantiatorInterceptor,XStreamJSONPSerialization,defaultHttpResult,defaultValidator,outjectResult,XStreamXMLDeserializer,deserializingInterceptor,defaultPathResolver,VRaptorInstantiator,replicatorOutjector,defaultStatus,VRaptorParameterNamesProvider,servlet3MultipartInterceptor,applicationConfiguration,defaultRefererResult,instantiateInterceptor,emptyResult,defaultPageResult,flashInterceptor,defaultResult,primitiveShortConverter,primitiveByteConverter,floatConverter,primitiveDoubleConverter,booleanConverter,primitiveCharConverter,stringConverter,characterConverter,primitiveLongConverter,enumConverter,doubleConverter,bigIntegerConverter,primitiveIntConverter,shortConverter,localeBasedDateConverter,integerConverter,primitiveBooleanConverter,uploadedFileConverter,longConverter,localeBasedCalendarConverter,primitiveFloatConverter,byteConverter,bigDecimalConverter,VRaptorRequestProvider,httpServletRequestProvider,httpServletResponseProvider,httpSessionProvider,XStreamBuilderImpl,enhancedRequestExecution,defaultInterceptorStack,org.springframework.aop.config.internalAutoProxyCreator,sessionFactoryCreator,sessionCreator,produtosController,indexController,mundo]; root of factory hierarchy
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.
19:54:23,796 INFO [DefaultListableBeanFactory] Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@14c7cd: defining beans [org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,defaultInterceptorHandlerFactory,defaultMethodNotAllowedHandler,defaultRouter,defaultResourceNotFoundHandler,objenesisInstanceCreator,defaultRoutes,paranamerNameProvider,cglibProxifier,defaultResourceTranslator,defaultStaticContentHandler,XStreamConverters.NullConverter,pathAnnotationRoutesParser,defaultAcceptHeaderToFormat,encodingHandlerFactory,topologicalSortedInterceptorRegistry,defaultTypeNameExtractor,defaultMultipartConfig,defaultConverters,defaultRestDefaults,noRoutesConfiguration,interceptorListPriorToExecutionExtractor,defaultDeserializers,defaultTypeFinder,javaEvaluator,hibernateProxyInitializer,stereotypeHandler,converterHandler,interceptorStereotypeHandler,deserializesHandler,stereotypedBeansRegistrar,defaultSpringLocator,defaultValidationViewsFactory,jstlLocalization,exceptionHandlerInterceptor,defaultRepresentationResult,forwardToDefaultViewInterceptor,messageConverter,defaultMethodInfo,defaultExceptionMapper,resourceLookupInterceptor,XStreamConverters,downloadInterceptor,defaultLogicResult,VRaptorDependencyProvider,iogiParametersProvider,defaultRestHeadersHandler,XStreamXMLSerialization,HTMLSerialization,sessionFlashScope,executeMethodInterceptor,nullBeanValidator,defaultFormatResolver,XStreamJSONSerialization,jsonDeserializer,parametersInstantiatorInterceptor,XStreamJSONPSerialization,defaultHttpResult,defaultValidator,outjectResult,XStreamXMLDeserializer,deserializingInterceptor,defaultPathResolver,VRaptorInstantiator,replicatorOutjector,defaultStatus,VRaptorParameterNamesProvider,servlet3MultipartInterceptor,applicationConfiguration,defaultRefererResult,instantiateInterceptor,emptyResult,defaultPageResult,flashInterceptor,defaultResult,primitiveShortConverter,primitiveByteConverter,floatConverter,primitiveDoubleConverter,booleanConverter,primitiveCharConverter,stringConverter,characterConverter,primitiveLongConverter,enumConverter,doubleConverter,bigIntegerConverter,primitiveIntConverter,shortConverter,localeBasedDateConverter,integerConverter,primitiveBooleanConverter,uploadedFileConverter,longConverter,localeBasedCalendarConverter,primitiveFloatConverter,byteConverter,bigDecimalConverter,VRaptorRequestProvider,httpServletRequestProvider,httpServletResponseProvider,httpSessionProvider,XStreamBuilderImpl,enhancedRequestExecution,defaultInterceptorStack,org.springframework.aop.config.internalAutoProxyCreator,sessionFactoryCreator,sessionCreator,produtosController,indexController,mundo]; root of factory hierarchy
11/01/2013 19:54:23 org.apache.catalina.core.StandardContext filterStart
GRAVE: Exception starting filter vraptor
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactoryCreator': Invocation of init method failed; nested exception is org.hibernate.service.classloading.spi.ClassLoadingException: Specified JDBC Driver com.mysql.jdbc.Driver class not found
at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:133)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:394)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1413)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:580)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)
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:278)
at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:259)
at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:383)
at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:104)
at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4650)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5306)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: org.hibernate.service.classloading.spi.ClassLoadingException: Specified JDBC Driver com.mysql.jdbc.Driver class not found
at org.hibernate.service.jdbc.connections.internal.DriverManagerConnectionProviderImpl.configure(DriverManagerConnectionProviderImpl.java:107)
at org.hibernate.service.internal.StandardServiceRegistryImpl.configureService(StandardServiceRegistryImpl.java:75)
at org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:159)
at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:131)
at org.hibernate.engine.jdbc.internal.JdbcServicesImpl.buildJdbcConnectionAccess(JdbcServicesImpl.java:223)
at org.hibernate.engine.jdbc.internal.JdbcServicesImpl.configure(JdbcServicesImpl.java:89)
at org.hibernate.service.internal.StandardServiceRegistryImpl.configureService(StandardServiceRegistryImpl.java:75)
at org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:159)
at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:131)
at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:77)
at org.hibernate.cfg.Configuration.buildSettingsInternal(Configuration.java:2283)
at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2279)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1748)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1788)
at br.com.caelum.vraptor.blank.SessionFactoryCreator.create(SessionFactoryCreator.java:23)
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.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:340)
at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:293)
at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:130)
... 29 more
Caused by: org.hibernate.service.classloading.spi.ClassLoadingException: Unable to load class [com.mysql.jdbc.Driver]
at org.hibernate.service.classloading.internal.ClassLoaderServiceImpl.classForName(ClassLoaderServiceImpl.java:141)
at org.hibernate.service.jdbc.connections.internal.DriverManagerConnectionProviderImpl.configure(DriverManagerConnectionProviderImpl.java:104)
... 50 more
Caused by: java.lang.ClassNotFoundException: Could not load requested class : com.mysql.jdbc.Driver
at org.hibernate.service.classloading.internal.ClassLoaderServiceImpl$1.findClass(ClassLoaderServiceImpl.java:99)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at org.hibernate.service.classloading.internal.ClassLoaderServiceImpl.classForName(ClassLoaderServiceImpl.java:138)
... 51 more
11/01/2013 19:54:23 org.apache.catalina.core.StandardContext startInternal
GRAVE: Error filterStart
11/01/2013 19:54:23 org.apache.catalina.core.StandardContext startInternal
GRAVE: Context [/vraptor-blank-project] startup failed due to previous errors
11/01/2013 19:54:24 org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-bio-8080"]
11/01/2013 19:54:24 org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["ajp-bio-8009"]
11/01/2013 19:54:24 org.apache.catalina.startup.Catalina start
INFO: Server startup in 18378 ms