Autore Topic: problema collegamento a database  (Letto 2354 volte)

Offline ghiro90

  • Nuovo arrivato
  • *
  • Post: 19
  • Respect: 0
    • Mostra profilo
  • Dispositivo Android:
    Samsung Galaxy Next Turbo
  • Sistema operativo:
    Mac OS X
problema collegamento a database
« il: 20 Settembre 2012, 10:12:30 CEST »
0
Ciao ragazzi ho creato un server con eclipse che si collega al mio database però quando mando in esecuzione il progetto mi esce la schermata HTTP Status 404...
Vi allego gli errori della console:




 
Codice (Java): [Seleziona]
20-set-2012 10.09.14 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: .:/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java
20-set-2012 10.09.14 org.apache.tomcat.util.digester.SetPropertiesRule begin
AVVERTENZA: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:Example1' did not find a matching property.
20-set-2012 10.09.14 org.apache.tomcat.util.digester.SetPropertiesRule begin
AVVERTENZA: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:Server' did not find a matching property.
20-set-2012 10.09.14 org.apache.tomcat.util.digester.SetPropertiesRule begin
AVVERTENZA: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:com.example' did not find a matching property.
20-set-2012 10.09.14 org.apache.tomcat.util.digester.SetPropertiesRule begin
AVVERTENZA: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:SoSGeolocalizzatoServer' did not find a matching property.
20-set-2012 10.09.14 org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
20-set-2012 10.09.14 org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 528 ms
20-set-2012 10.09.14 org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
20-set-2012 10.09.14 org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.35
20-set-2012 10.09.16 org.apache.catalina.core.ApplicationContext log
INFO: Set web app root system property: 'springapp' = [/Users/Ghiro/Documents/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp2/wtpwebapps/Example1/]
20-set-2012 10.09.16 org.apache.catalina.core.ApplicationContext log
INFO: Initializing log4j from [/Users/Ghiro/Documents/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp2/wtpwebapps/Example1/WEB-INF/classes/log4j.xml]
20-set-2012 10.09.16 org.apache.catalina.core.ApplicationContext log
INFO: Initializing Spring root WebApplicationContext
09/20/2012 10:09:16|INFO |main|org.springframework.web.context.ContextLoader: initWebApplicationContext(): Root WebApplicationContext: initialization started
09/20/2012 10:09:16|INFO |main|org.springframework.web.context.support.XmlWebApplicationContext: prepareRefresh(): Refreshing Root WebApplicationContext: startup date [Thu Sep 20 10:09:16 CEST 2012]; root of context hierarchy
09/20/2012 10:09:16|INFO |main|org.springframework.beans.factory.xml.XmlBeanDefinitionReader: loadBeanDefinitions(): Loading XML bean definitions from ServletContext resource [/WEB-INF/springapp-servlet.xml]
09/20/2012 10:09:16|INFO |main|org.springframework.beans.factory.support.DefaultListableBeanFactory: registerBeanDefinition(): Overriding bean definition for bean 'employeeController': replacing [Generic bean: class [com.company.springapp.EmployeeController]; scope=singleton; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in file [/Users/Ghiro/Documents/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp2/wtpwebapps/Example1/WEB-INF/classes/com/company/springapp/EmployeeController.class]] with [Generic bean: class [com.company.springapp.EmployeeController]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in ServletContext resource [/WEB-INF/springapp-servlet.xml]]
09/20/2012 10:09:16|INFO |main|org.springframework.beans.factory.support.DefaultListableBeanFactory: preInstantiateSingletons(): Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@7a22ce00: defining beans [employeeController,org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,messages,view-resolver,dataSource,sessionFactory,txManager,myService,employeeDao]; root of factory hierarchy
09/20/2012 10:09:16|INFO |main|org.hibernate.cfg.Environment: <clinit>(): Hibernate 3.5.3-Final
09/20/2012 10:09:16|INFO |main|org.hibernate.cfg.Environment: <clinit>(): hibernate.properties not found
09/20/2012 10:09:16|INFO |main|org.hibernate.cfg.Environment: buildBytecodeProvider(): Bytecode provider name : javassist
09/20/2012 10:09:16|INFO |main|org.hibernate.cfg.Environment: <clinit>(): using JDK 1.4 java.sql.Timestamp handling
09/20/2012 10:09:17|INFO |main|org.hibernate.cfg.HbmBinder: bindRootPersistentClassCommonValues(): Mapping class: com.company.springapp.Employee -> EMPLOYEE_DTL
09/20/2012 10:09:17|INFO |main|org.springframework.orm.hibernate3.LocalSessionFactoryBean: buildSessionFactory(): Building new Hibernate SessionFactory
09/20/2012 10:09:17|INFO |main|org.hibernate.connection.ConnectionProviderFactory: newConnectionProvider(): Initializing connection provider: org.springframework.orm.hibernate3.LocalDataSourceConnectionProvider
09/20/2012 10:09:17|WARN |main|org.hibernate.util.JDBCExceptionReporter: logExceptions(): SQL Error: 0, SQLState: null
09/20/2012 10:09:17|ERROR|main|org.hibernate.util.JDBCExceptionReporter: logExceptions(): Cannot load JDBC driver class 'org.jdbcDriver'
09/20/2012 10:09:17|WARN |main|org.hibernate.cfg.SettingsFactory: buildSettings(): Could not obtain connection to query metadata
org.apache.commons.dbcp.SQLNestedException: Cannot load JDBC driver class 'org.jdbcDriver'
        at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1136)
        at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:880)
        at org.springframework.orm.hibernate3.LocalDataSourceConnectionProvider.getConnection(LocalDataSourceConnectionProvider.java:81)
        at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:114)
        at org.hibernate.cfg.Configuration.buildSettingsInternal(Configuration.java:2163)
        at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2159)
        at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1383)
        at org.springframework.orm.hibernate3.LocalSessionFactoryBean.newSessionFactory(LocalSessionFactoryBean.java:855)
        at org.springframework.orm.hibernate3.LocalSessionFactoryBean.buildSessionFactory(LocalSessionFactoryBean.java:774)
        at org.springframework.orm.hibernate3.AbstractSessionFactoryBean.afterPropertiesSet(AbstractSessionFactoryBean.java:211)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1469)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1409)
        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.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:322)
        at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1317)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1076)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)
        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.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:322)
        at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1317)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1076)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)
        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:574)
        at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)
        at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)
        at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:276)
        at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:197)
        at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)
        at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4206)
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:4705)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
        at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
        at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
        at org.apache.catalina.core.StandardService.start(StandardService.java:525)
        at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
Caused by: java.lang.ClassNotFoundException: org.jdbcDriver
        at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1680)
        at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1526)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:169)
        at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1130)
        ... 58 more
09/20/2012 10:09:17|INFO |main|org.hibernate.dialect.Dialect: <init>(): Using dialect: org.hibernate.dialect.HSQLDialect
09/20/2012 10:09:17|INFO |main|org.hibernate.engine.jdbc.JdbcSupportLoader: useContextualLobCreation(): Disabling contextual LOB creation as connection was null
09/20/2012 10:09:17|INFO |main|org.hibernate.transaction.TransactionFactoryFactory: buildTransactionFactory(): Transaction strategy: org.springframework.orm.hibernate3.SpringTransactionFactory
09/20/2012 10:09:17|INFO |main|org.hibernate.transaction.TransactionManagerLookupFactory: getTransactionManagerLookup(): No TransactionManagerLookup configured (in JTA environment, use of read-write or transactional second-level cache is not recommended)
09/20/2012 10:09:17|INFO |main|org.hibernate.cfg.SettingsFactory: buildSettings(): Automatic flush during beforeCompletion(): disabled
09/20/2012 10:09:17|INFO |main|org.hibernate.cfg.SettingsFactory: buildSettings(): Automatic session close at end of transaction: disabled
09/20/2012 10:09:17|INFO |main|org.hibernate.cfg.SettingsFactory: buildSettings(): Scrollable result sets: disabled
09/20/2012 10:09:17|INFO |main|org.hibernate.cfg.SettingsFactory: buildSettings(): JDBC3 getGeneratedKeys(): disabled
09/20/2012 10:09:17|INFO |main|org.hibernate.cfg.SettingsFactory: buildSettings(): Connection release mode: auto
09/20/2012 10:09:17|INFO |main|org.hibernate.cfg.SettingsFactory: buildSettings(): Default batch fetch size: 1
09/20/2012 10:09:17|INFO |main|org.hibernate.cfg.SettingsFactory: buildSettings(): Generate SQL with comments: disabled
09/20/2012 10:09:17|INFO |main|org.hibernate.cfg.SettingsFactory: buildSettings(): Order SQL updates by primary key: disabled
09/20/2012 10:09:17|INFO |main|org.hibernate.cfg.SettingsFactory: buildSettings(): Order SQL inserts for batching: disabled
09/20/2012 10:09:17|INFO |main|org.hibernate.cfg.SettingsFactory: createQueryTranslatorFactory(): Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
09/20/2012 10:09:17|INFO |main|org.hibernate.hql.ast.ASTQueryTranslatorFactory: <init>(): Using ASTQueryTranslatorFactory
09/20/2012 10:09:17|INFO |main|org.hibernate.cfg.SettingsFactory: buildSettings(): Query language substitutions: {}
09/20/2012 10:09:17|INFO |main|org.hibernate.cfg.SettingsFactory: buildSettings(): JPA-QL strict compliance: disabled
09/20/2012 10:09:17|INFO |main|org.hibernate.cfg.SettingsFactory: buildSettings(): Second-level cache: enabled
09/20/2012 10:09:17|INFO |main|org.hibernate.cfg.SettingsFactory: buildSettings(): Query cache: disabled
09/20/2012 10:09:17|INFO |main|org.hibernate.cfg.SettingsFactory: createRegionFactory(): Cache region factory : org.hibernate.cache.impl.NoCachingRegionFactory
09/20/2012 10:09:17|INFO |main|org.hibernate.cfg.SettingsFactory: buildSettings(): Optimize cache for minimal puts: disabled
09/20/2012 10:09:17|INFO |main|org.hibernate.cfg.SettingsFactory: buildSettings(): Structured second-level cache entries: disabled
09/20/2012 10:09:17|INFO |main|org.hibernate.cfg.SettingsFactory: buildSettings(): Echoing all SQL to stdout
09/20/2012 10:09:17|INFO |main|org.hibernate.cfg.SettingsFactory: buildSettings(): Statistics: disabled
09/20/2012 10:09:17|INFO |main|org.hibernate.cfg.SettingsFactory: buildSettings(): Deleted entity synthetic identifier rollback: disabled
09/20/2012 10:09:17|INFO |main|org.hibernate.cfg.SettingsFactory: buildSettings(): Default entity-mode: pojo
09/20/2012 10:09:17|INFO |main|org.hibernate.cfg.SettingsFactory: buildSettings(): Named query checking : enabled
09/20/2012 10:09:17|INFO |main|org.hibernate.cfg.SettingsFactory: buildSettings(): Check Nullability in Core (should be disabled when Bean Validation is on): enabled
09/20/2012 10:09:17|INFO |main|org.hibernate.impl.SessionFactoryImpl: <init>(): building session factory
09/20/2012 10:09:17|INFO |main|org.hibernate.impl.SessionFactoryObjectFactory: addInstance(): Not binding factory to JNDI, no JNDI name configured
09/20/2012 10:09:17|INFO |main|org.springframework.orm.hibernate3.HibernateTransactionManager: afterPropertiesSet(): Using DataSource [org.apache.commons.dbcp.BasicDataSource@3cfa54fe] of Hibernate SessionFactory for HibernateTransactionManager
09/20/2012 10:09:17|INFO |main|org.springframework.web.context.ContextLoader: initWebApplicationContext(): Root WebApplicationContext: initialization completed in 1333 ms
20-set-2012 10.09.17 org.apache.catalina.core.ApplicationContext log
INFO: Initializing Spring FrameworkServlet 'springapp'
09/20/2012 10:09:17|INFO |main|org.springframework.web.servlet.DispatcherServlet: initServletBean(): FrameworkServlet 'springapp': initialization started
09/20/2012 10:09:17|INFO |main|org.springframework.web.context.support.XmlWebApplicationContext: prepareRefresh(): Refreshing WebApplicationContext for namespace 'springapp-servlet': startup date [Thu Sep 20 10:09:17 CEST 2012]; parent: Root WebApplicationContext
09/20/2012 10:09:17|INFO |main|org.springframework.beans.factory.xml.XmlBeanDefinitionReader: loadBeanDefinitions(): Loading XML bean definitions from ServletContext resource [/WEB-INF/springapp-servlet.xml]
09/20/2012 10:09:17|INFO |main|org.springframework.beans.factory.support.DefaultListableBeanFactory: registerBeanDefinition(): Overriding bean definition for bean 'employeeController': replacing [Generic bean: class [com.company.springapp.EmployeeController]; scope=singleton; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in file [/Users/Ghiro/Documents/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp2/wtpwebapps/Example1/WEB-INF/classes/com/company/springapp/EmployeeController.class]] with [Generic bean: class [com.company.springapp.EmployeeController]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in ServletContext resource [/WEB-INF/springapp-servlet.xml]]
09/20/2012 10:09:17|INFO |main|org.springframework.beans.factory.support.DefaultListableBeanFactory: preInstantiateSingletons(): Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@36e3fd79: defining beans [employeeController,org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,messages,view-resolver,dataSource,sessionFactory,txManager,myService,employeeDao]; parent: org.springframework.beans.factory.support.DefaultListableBeanFactory@7a22ce00
09/20/2012 10:09:17|INFO |main|org.hibernate.cfg.HbmBinder: bindRootPersistentClassCommonValues(): Mapping class: com.company.springapp.Employee -> EMPLOYEE_DTL
09/20/2012 10:09:17|INFO |main|org.springframework.orm.hibernate3.LocalSessionFactoryBean: buildSessionFactory(): Building new Hibernate SessionFactory
09/20/2012 10:09:17|INFO |main|org.hibernate.connection.ConnectionProviderFactory: newConnectionProvider(): Initializing connection provider: org.springframework.orm.hibernate3.LocalDataSourceConnectionProvider
09/20/2012 10:09:17|WARN |main|org.hibernate.util.JDBCExceptionReporter: logExceptions(): SQL Error: 0, SQLState: null
09/20/2012 10:09:17|ERROR|main|org.hibernate.util.JDBCExceptionReporter: logExceptions(): Cannot load JDBC driver class 'org.jdbcDriver'
09/20/2012 10:09:17|WARN |main|org.hibernate.cfg.SettingsFactory: buildSettings(): Could not obtain connection to query metadata
org.apache.commons.dbcp.SQLNestedException: Cannot load JDBC driver class 'org.jdbcDriver'
        at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1136)
        at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:880)
        at org.springframework.orm.hibernate3.LocalDataSourceConnectionProvider.getConnection(LocalDataSourceConnectionProvider.java:81)
        at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:114)
        at org.hibernate.cfg.Configuration.buildSettingsInternal(Configuration.java:2163)
        at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2159)
        at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1383)
        at org.springframework.orm.hibernate3.LocalSessionFactoryBean.newSessionFactory(LocalSessionFactoryBean.java:855)
        at org.springframework.orm.hibernate3.LocalSessionFactoryBean.buildSessionFactory(LocalSessionFactoryBean.java:774)
        at org.springframework.orm.hibernate3.AbstractSessionFactoryBean.afterPropertiesSet(AbstractSessionFactoryBean.java:211)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1469)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1409)
        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.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:322)
        at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1317)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1076)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)
        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.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:322)
        at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1317)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1076)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)
        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:574)
        at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)
        at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)
        at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:442)
        at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:458)
        at org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:339)
        at org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:306)
        at org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:127)
        at javax.servlet.GenericServlet.init(GenericServlet.java:212)
        at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1206)
        at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1026)
        at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4421)
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:4734)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
        at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
        at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
        at org.apache.catalina.core.StandardService.start(StandardService.java:525)
        at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
Caused by: java.lang.ClassNotFoundException: org.jdbcDriver
        at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1680)
        at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1526)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:169)
        at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1130)
        ... 63 more
09/20/2012 10:09:17|INFO |main|org.hibernate.dialect.Dialect: <init>(): Using dialect: org.hibernate.dialect.HSQLDialect
09/20/2012 10:09:17|INFO |main|org.hibernate.engine.jdbc.JdbcSupportLoader: useContextualLobCreation(): Disabling contextual LOB creation as connection was null
09/20/2012 10:09:17|INFO |main|org.hibernate.transaction.TransactionFactoryFactory: buildTransactionFactory(): Transaction strategy: org.springframework.orm.hibernate3.SpringTransactionFactory
09/20/2012 10:09:17|INFO |main|org.hibernate.transaction.TransactionManagerLookupFactory: getTransactionManagerLookup(): No TransactionManagerLookup configured (in JTA environment, use of read-write or transactional second-level cache is not recommended)
09/20/2012 10:09:17|INFO |main|org.hibernate.cfg.SettingsFactory: buildSettings(): Automatic flush during beforeCompletion(): disabled
09/20/2012 10:09:17|INFO |main|org.hibernate.cfg.SettingsFactory: buildSettings(): Automatic session close at end of transaction: disabled
09/20/2012 10:09:17|INFO |main|org.hibernate.cfg.SettingsFactory: buildSettings(): Scrollable result sets: disabled
09/20/2012 10:09:17|INFO |main|org.hibernate.cfg.SettingsFactory: buildSettings(): JDBC3 getGeneratedKeys(): disabled
09/20/2012 10:09:17|INFO |main|org.hibernate.cfg.SettingsFactory: buildSettings(): Connection release mode: auto
09/20/2012 10:09:17|INFO |main|org.hibernate.cfg.SettingsFactory: buildSettings(): Default batch fetch size: 1
09/20/2012 10:09:17|INFO |main|org.hibernate.cfg.SettingsFactory: buildSettings(): Generate SQL with comments: disabled
09/20/2012 10:09:17|INFO |main|org.hibernate.cfg.SettingsFactory: buildSettings(): Order SQL updates by primary key: disabled
09/20/2012 10:09:17|INFO |main|org.hibernate.cfg.SettingsFactory: buildSettings(): Order SQL inserts for batching: disabled
09/20/2012 10:09:17|INFO |main|org.hibernate.cfg.SettingsFactory: createQueryTranslatorFactory(): Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
09/20/2012 10:09:17|INFO |main|org.hibernate.hql.ast.ASTQueryTranslatorFactory: <init>(): Using ASTQueryTranslatorFactory
09/20/2012 10:09:17|INFO |main|org.hibernate.cfg.SettingsFactory: buildSettings(): Query language substitutions: {}
09/20/2012 10:09:17|INFO |main|org.hibernate.cfg.SettingsFactory: buildSettings(): JPA-QL strict compliance: disabled
09/20/2012 10:09:17|INFO |main|org.hibernate.cfg.SettingsFactory: buildSettings(): Second-level cache: enabled
09/20/2012 10:09:17|INFO |main|org.hibernate.cfg.SettingsFactory: buildSettings(): Query cache: disabled
09/20/2012 10:09:17|INFO |main|org.hibernate.cfg.SettingsFactory: createRegionFactory(): Cache region factory : org.hibernate.cache.impl.NoCachingRegionFactory
09/20/2012 10:09:17|INFO |main|org.hibernate.cfg.SettingsFactory: buildSettings(): Optimize cache for minimal puts: disabled
09/20/2012 10:09:17|INFO |main|org.hibernate.cfg.SettingsFactory: buildSettings(): Structured second-level cache entries: disabled
09/20/2012 10:09:17|INFO |main|org.hibernate.cfg.SettingsFactory: buildSettings(): Echoing all SQL to stdout
09/20/2012 10:09:17|INFO |main|org.hibernate.cfg.SettingsFactory: buildSettings(): Statistics: disabled
09/20/2012 10:09:17|INFO |main|org.hibernate.cfg.SettingsFactory: buildSettings(): Deleted entity synthetic identifier rollback: disabled
09/20/2012 10:09:17|INFO |main|org.hibernate.cfg.SettingsFactory: buildSettings(): Default entity-mode: pojo
09/20/2012 10:09:17|INFO |main|org.hibernate.cfg.SettingsFactory: buildSettings(): Named query checking : enabled
09/20/2012 10:09:17|INFO |main|org.hibernate.cfg.SettingsFactory: buildSettings(): Check Nullability in Core (should be disabled when Bean Validation is on): enabled
09/20/2012 10:09:17|INFO |main|org.hibernate.impl.SessionFactoryImpl: <init>(): building session factory
09/20/2012 10:09:17|INFO |main|org.hibernate.impl.SessionFactoryObjectFactory: addInstance(): Not binding factory to JNDI, no JNDI name configured
09/20/2012 10:09:17|INFO |main|org.springframework.orm.hibernate3.HibernateTransactionManager: afterPropertiesSet(): Using DataSource [org.apache.commons.dbcp.BasicDataSource@29f2588] of Hibernate SessionFactory for HibernateTransactionManager
09/20/2012 10:09:17|INFO |main|org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping: registerHandler(): Mapped URL path [/employee/list] onto handler [com.company.springapp.EmployeeController@7f162a9c]
09/20/2012 10:09:17|INFO |main|org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping: registerHandler(): Mapped URL path [/employee/list.*] onto handler [com.company.springapp.EmployeeController@7f162a9c]
09/20/2012 10:09:17|INFO |main|org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping: registerHandler(): Mapped URL path [/employee/list/] onto handler [com.company.springapp.EmployeeController@7f162a9c]
09/20/2012 10:09:17|INFO |main|org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping: registerHandler(): Mapped URL path [/employee/delete] onto handler [com.company.springapp.EmployeeController@7f162a9c]
09/20/2012 10:09:17|INFO |main|org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping: registerHandler(): Mapped URL path [/employee/delete.*] onto handler [com.company.springapp.EmployeeController@7f162a9c]
09/20/2012 10:09:17|INFO |main|org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping: registerHandler(): Mapped URL path [/employee/delete/] onto handler [com.company.springapp.EmployeeController@7f162a9c]
09/20/2012 10:09:17|INFO |main|org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping: registerHandler(): Mapped URL path [/employee/insert] onto handler [com.company.springapp.EmployeeController@7f162a9c]
09/20/2012 10:09:17|INFO |main|org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping: registerHandler(): Mapped URL path [/employee/insert.*] onto handler [com.company.springapp.EmployeeController@7f162a9c]
09/20/2012 10:09:17|INFO |main|org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping: registerHandler(): Mapped URL path [/employee/insert/] onto handler [com.company.springapp.EmployeeController@7f162a9c]
09/20/2012 10:09:17|INFO |main|org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping: registerHandler(): Mapped URL path [/employee/update] onto handler [com.company.springapp.EmployeeController@7f162a9c]
09/20/2012 10:09:17|INFO |main|org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping: registerHandler(): Mapped URL path [/employee/update.*] onto handler [com.company.springapp.EmployeeController@7f162a9c]
09/20/2012 10:09:17|INFO |main|org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping: registerHandler(): Mapped URL path [/employee/update/] onto handler [com.company.springapp.EmployeeController@7f162a9c]
09/20/2012 10:09:17|INFO |main|org.springframework.web.servlet.DispatcherServlet: initServletBean(): FrameworkServlet 'springapp': initialization completed in 262 ms
20-set-2012 10.09.18 org.apache.catalina.core.ApplicationContext log
INFO: Marking servlet dispatcher as unavailable
20-set-2012 10.09.18 org.apache.catalina.core.ApplicationContext log
GRAVE: Error loading WebappClassLoader
  context: /Server
  delegate: false
  repositories:
    /WEB-INF/classes/
----------> Parent Classloader:
org.apache.catalina.loader.StandardClassLoader@48f0c0d3
 org.springframework.web.servlet.DispatcherServlet
java.lang.ClassNotFoundException: org.springframework.web.servlet.DispatcherServlet
        at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1680)
        at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1526)
        at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1128)
        at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1026)
        at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4421)
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:4734)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
        at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
        at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
        at org.apache.catalina.core.StandardService.start(StandardService.java:525)
        at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
20-set-2012 10.09.18 org.apache.catalina.core.StandardContext loadOnStartup
GRAVE: Servlet /Server threw load() exception
java.lang.ClassNotFoundException: org.springframework.web.servlet.DispatcherServlet
        at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1680)
        at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1526)
        at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1128)
        at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1026)
        at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4421)
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:4734)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
        at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
        at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
        at org.apache.catalina.core.StandardService.start(StandardService.java:525)
        at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
20-set-2012 10.09.18 org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
20-set-2012 10.09.18 org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
20-set-2012 10.09.18 org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/14  config=null
20-set-2012 10.09.18 org.apache.catalina.startup.Catalina start
INFO: Server startup in 3697 ms

Offline bradipao

  • Moderatore globale
  • Utente storico
  • *****
  • Post: 4043
  • keep it simple
  • Respect: +567
    • Github
    • Google+
    • bradipao
    • Mostra profilo
  • Dispositivo Android:
    Nexus 5
  • Play Store ID:
    Bradipao
  • Sistema operativo:
    W7
Re:problema collegamento a database
« Risposta #1 il: 20 Settembre 2012, 10:49:36 CEST »
0
Ma non è un'applicazione Android, giusto?
NON rispondo a domande nei messaggi privati
Bradipao @ Play Store

Offline ghiro90

  • Nuovo arrivato
  • *
  • Post: 19
  • Respect: 0
    • Mostra profilo
  • Dispositivo Android:
    Samsung Galaxy Next Turbo
  • Sistema operativo:
    Mac OS X
Re:problema collegamento a database
« Risposta #2 il: 20 Settembre 2012, 12:19:14 CEST »
0
No, é una web application che poi connetterò ad un dispositivo android.

Offline bradipao

  • Moderatore globale
  • Utente storico
  • *****
  • Post: 4043
  • keep it simple
  • Respect: +567
    • Github
    • Google+
    • bradipao
    • Mostra profilo
  • Dispositivo Android:
    Nexus 5
  • Play Store ID:
    Bradipao
  • Sistema operativo:
    W7
Re:problema collegamento a database
« Risposta #3 il: 20 Settembre 2012, 12:22:00 CEST »
0
Allora te lo sposto in una sezione non-Android
NON rispondo a domande nei messaggi privati
Bradipao @ Play Store

Offline ghiro90

  • Nuovo arrivato
  • *
  • Post: 19
  • Respect: 0
    • Mostra profilo
  • Dispositivo Android:
    Samsung Galaxy Next Turbo
  • Sistema operativo:
    Mac OS X
Re:problema collegamento a database
« Risposta #4 il: 20 Settembre 2012, 12:24:49 CEST »
0
Ok, grazie e scusa se ho sbagliato!