Announcement Announcement Module
Collapse
No announcement yet.
Error when update from STS2.8 to STS3.1.0, Java 6 to Java 7, and Tomcat 6 to Tomcat 7 Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Error when update from STS2.8 to STS3.1.0, Java 6 to Java 7, and Tomcat 6 to Tomcat 7

    I did not change the original code and original lib references (still use Java 6 libs). Web Server is Tomcat 7.
    When start MyApp, got exception error on Console as follows. Please help me to gifure it out. If need to update Lib references, how to copy those STS 3.1.0 framework? I use the Oracle 11g ex as database. The original application work very well for Java 6 and Tomcat 6. Thank you very much for any help and suggestion.

    --------
    2012-12-27 10:49:45,390 INFO [org.hibernate.validator.engine.resolver.DefaultTra versableResolver] - Instantiated an instance of org.hibernate.validator.engine.resolver.JPATravers ableResolver.
    2012-12-27 10:49:45,546 INFO [org.springframework.orm.hibernate3.annotation.Anno tationSessionFactoryBean] - Building new Hibernate SessionFactory
    2012-12-27 10:49:45,562 INFO [org.hibernate.validator.engine.resolver.DefaultTra versableResolver] - Instantiated an instance of org.hibernate.validator.engine.resolver.JPATravers ableResolver.
    2012-12-27 10:49:45,593 INFO [org.hibernate.validator.engine.resolver.DefaultTra versableResolver] - Instantiated an instance of org.hibernate.validator.engine.resolver.JPATravers ableResolver.
    2012-12-27 10:49:45,593 INFO [org.hibernate.cfg.search.HibernateSearchEventListe nerRegister] - Unable to find org.hibernate.search.event.FullTextIndexEventListe ner on the classpath. Hibernate Search is not enabled.
    2012-12-27 10:49:45,609 INFO [org.hibernate.connection.ConnectionProviderFactory] - Initializing connection provider: org.springframework.orm.hibernate3.LocalDataSource ConnectionProvider
    2012-12-27 10:49:45,625 WARN [org.hibernate.util.JDBCExceptionReporter] - SQL Error: 0, SQLState: null
    2012-12-27 10:49:45,625 ERROR [org.hibernate.util.JDBCExceptionReporter] - Cannot create JDBC driver of class '' for connect URL 'null'
    2012-12-27 10:49:45,625 WARN [org.hibernate.cfg.SettingsFactory] - Could not obtain connection to query metadata
    org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create JDBC driver of class '' for connect URL 'null'
    at org.apache.tomcat.dbcp.dbcp.BasicDataSource.create ConnectionFactory(BasicDataSource.java:1452)
    at org.apache.tomcat.dbcp.dbcp.BasicDataSource.create DataSource(BasicDataSource.java:1371)
    at org.apache.tomcat.dbcp.dbcp.BasicDataSource.getCon nection(BasicDataSource.java:1044)
    at org.springframework.orm.hibernate3.LocalDataSource ConnectionProvider.getConnection(LocalDataSourceCo nnectionProvider.java:81)
    at org.hibernate.cfg.SettingsFactory.buildSettings(Se ttingsFactory.java:114)
    at org.hibernate.cfg.Configuration.buildSettingsInter nal(Configuration.java:2833)
    at org.hibernate.cfg.Configuration.buildSettings(Conf iguration.java:2829)
    at org.hibernate.cfg.Configuration.buildSessionFactor y(Configuration.java:1840)
    at org.springframework.orm.hibernate3.LocalSessionFac toryBean.newSessionFactory(LocalSessionFactoryBean .java:855)
    at org.springframework.orm.hibernate3.LocalSessionFac toryBean.buildSessionFactory(LocalSessionFactoryBe an.java:774)
    at org.springframework.orm.hibernate3.AbstractSession FactoryBean.afterPropertiesSet(AbstractSessionFact oryBean.java:211)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.invokeInitMethods(Abstr actAutowireCapableBeanFactory.java:1477)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.initializeBean(Abstract AutowireCapableBeanFactory.java:1417)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.doCreateBean(AbstractAu towireCapableBeanFactory.java:519)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.createBean(AbstractAuto wireCapableBeanFactory.java:456)
    at org.springframework.beans.factory.support.Abstract BeanFactory$1.getObject(AbstractBeanFactory.java:2 91)
    at org.springframework.beans.factory.support.DefaultS ingletonBeanRegistry.getSingleton(DefaultSingleton BeanRegistry.java:222)
    at org.springframework.beans.factory.support.Abstract BeanFactory.doGetBean(AbstractBeanFactory.java:288 )
    at org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:194)
    at org.springframework.beans.factory.support.DefaultL istableBeanFactory.getBeansOfType(DefaultListableB eanFactory.java:398)
    at org.springframework.beans.factory.BeanFactoryUtils .beansOfTypeIncludingAncestors(BeanFactoryUtils.ja va:266)
    at org.springframework.dao.support.PersistenceExcepti onTranslationInterceptor.detectPersistenceExceptio nTranslators(PersistenceExceptionTranslationInterc eptor.java:139)
    at org.springframework.dao.support.PersistenceExcepti onTranslationInterceptor.<init>(PersistenceExcepti onTranslationInterceptor.java:79)
    at org.springframework.dao.annotation.PersistenceExce ptionTranslationAdvisor.<init>(PersistenceExceptio nTranslationAdvisor.java:70)
    at org.springframework.dao.annotation.PersistenceExce ptionTranslationPostProcessor.setBeanFactory(Persi stenceExceptionTranslationPostProcessor.java:99)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.invokeAwareMethods(Abst ractAutowireCapableBeanFactory.java:1439)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.initializeBean(Abstract AutowireCapableBeanFactory.java:1408)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.doCreateBean(AbstractAu towireCapableBeanFactory.java:519)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.createBean(AbstractAuto wireCapableBeanFactory.java:456)
    at org.springframework.beans.factory.support.Abstract BeanFactory$1.getObject(AbstractBeanFactory.java:2 91)
    at org.springframework.beans.factory.support.DefaultS ingletonBeanRegistry.getSingleton(DefaultSingleton BeanRegistry.java:222)
    at org.springframework.beans.factory.support.Abstract BeanFactory.doGetBean(AbstractBeanFactory.java:288 )
    at org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:194)
    at org.springframework.context.support.AbstractApplic ationContext.registerBeanPostProcessors(AbstractAp plicationContext.java:710)
    at org.springframework.context.support.AbstractApplic ationContext.refresh(AbstractApplicationContext.ja va:410)
    at org.springframework.web.context.ContextLoader.crea teWebApplicationContext(ContextLoader.java:276)
    at org.springframework.web.context.ContextLoader.init WebApplicationContext(ContextLoader.java:197)
    at org.springframework.web.context.ContextLoaderListe ner.contextInitialized(ContextLoaderListener.java: 47)
    at org.apache.catalina.core.StandardContext.listenerS tart(StandardContext.java:4791)
    at org.apache.catalina.core.StandardContext.startInte rnal(StandardContext.java:5285)
    at org.apache.catalina.util.LifecycleBase.start(Lifec ycleBase.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(Futu reTask.java:334)
    at java.util.concurrent.FutureTask.run(FutureTask.jav a:166)
    at java.util.concurrent.ThreadPoolExecutor.runWorker( ThreadPoolExecutor.java:1110)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:603)
    at java.lang.Thread.run(Thread.java:722)
    Caused by: java.lang.NullPointerException
    at sun.jdbc.odbc.JdbcOdbcDriver.getProtocol(JdbcOdbcD river.java:524)
    at sun.jdbc.odbc.JdbcOdbcDriver.knownURL(JdbcOdbcDriv er.java:493)
    at sun.jdbc.odbc.JdbcOdbcDriver.acceptsURL(JdbcOdbcDr iver.java:307)
    at java.sql.DriverManager.getDriver(DriverManager.jav a:273)
    at org.apache.tomcat.dbcp.dbcp.BasicDataSource.create ConnectionFactory(BasicDataSource.java:1437)
    ... 47 more
    2012-12-27 10:49:45,687 INFO [org.hibernate.dialect.Dialect] - Using dialect: org.hibernate.dialect.Oracle10gDialect

    --------

  • #2
    Hey!

    Sorry for the delay... holiday season... Happy New Year!!! :-)

    It looks like there is a problem with the configuration or maybe the property file that contains the connection properties not being deployed correctly. Hard to say what is causing this, but can you take a look at the deployed application to see if your property file with your database connection properties is there?

    HTH,
    Martin

    Comment

    Working...
    X