Announcement Announcement Module
Collapse
No announcement yet.
Tomcat + Spring + Hibernate-Mysql(JNDI) config problem Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Tomcat + Spring + Hibernate-Mysql(JNDI) config problem

    Hi all,

    I've read through many different posts talk about similar issue, but still no help on mine. I am trying to get the JNDI work for my system. Below is what I have currently.

    - Redhat Linux 9
    - Tomcat 5.5.4
    - Java 1.5.0_01
    - mySQL 4.1.8a

    ***************************
    applicationContext-hibernate.xml
    ***************************

    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN"
    "http://www.springframework.org/dtd/spring-beans.dtd">

    <beans>
    <bean id="dataSource" class="org.springframework.jndi.JndiObjectFactoryB ean">
    <property name="jndiName">
    <value>java:comp/env/jdbc/mysqlTest</value>
    </property>
    </bean>


    <bean id="sessionFactory" class="org.springframework.orm.hibernate.LocalSess ionFactoryBean">
    <property name="dataSource"><ref bean="dataSource"/></property>
    <property name="mappingResources">
    <list>
    <value>org/appfuse/model/User.hbm.xml</value>
    <value>Test/model/Article.hbm.xml</value>
    </list>
    </property>


    ******************
    MyTest app: web.xml
    ******************
    <?xml version="1.0" encoding="UTF-8"?>
    <web-app xmlns="http://java.sun.com/xml/ns/j2ee"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" version="2.4">

    ...
    ...

    <resource-ref>
    <description>Local MySQL Connection for Testing</description>
    <res-ref-name>jdbc/mysqlTest</res-ref-name>
    <res-type>javax.sql.DataSource</res-type>
    <res-auth>Container</res-auth>
    </resource-ref>

    ...
    ...

    *****************
    Tomcat: server.xml
    *****************

    <GlobalNamingResources>

    </GlobalNamingResources>

    <Context path="" docBase="" debug="5" reloadable="false" crossContext="true">

    <Resource name="jdbc/mysql_local" auth="Container" type="javax.sql.DataSource"
    maxActive="100" maxIdle="30" maxWait="10000"
    username="ai4" password="americanidol" driverClassName="com.mysql.jdbc.Driver"
    url="jdbc:mysql://localhost:3306/myfirstapp1?autoReconnect=true"/>

    <Resource name="jdbc/mysqlTest" auth="Container" type="javax.sql.DataSource"
    driverClassName="com.mysql.jdbc.Driver"
    factory="org.apache.commons.dbcp.BasicDataSourceFa ctory"
    url="jdbc:mysql://localhost:3306/webcontent?autoReconnect=false"
    username="myacct" password="password"
    maxWait="3000" maxIdle="100" maxActive="10"/>

    </Context>

    *************************************
    Log when startup Tomcat: catalina.out
    *************************************

    Apr 14, 2005 9:52:47 AM org.apache.coyote.http11.Http11Protocol init
    INFO: Initializing Coyote HTTP/1.1 on http-8080
    Apr 14, 2005 9:52:47 AM org.apache.catalina.startup.Catalina load
    INFO: Initialization processed in 1892 ms
    Apr 14, 2005 9:52:47 AM org.apache.catalina.core.StandardService start
    INFO: Starting service Catalina
    Apr 14, 2005 9:52:47 AM org.apache.catalina.core.StandardEngine start
    INFO: Starting Servlet Engine: Apache Tomcat/5.5.4
    Apr 14, 2005 9:52:47 AM org.apache.catalina.core.StandardHost start
    INFO: XML validation disabled
    Apr 14, 2005 9:52:48 AM org.apache.catalina.startup.ContextConfig validateSecurityRoles
    INFO: WARNING: Security role name service_provider used in an <auth-constraint> without being defined in a <security-role>
    Apr 14, 2005 9:52:48 AM org.apache.catalina.startup.ContextConfig validateSecurityRoles
    INFO: WARNING: Security role name publicity used in an <auth-constraint> without being defined in a <security-role>
    Apr 14, 2005 9:52:48 AM org.apache.catalina.startup.ContextConfig validateSecurityRoles
    INFO: WARNING: Security role name marketing used in an <auth-constraint> without being defined in a <security-role>
    WARN - JDBCExceptionReporter.logExceptions(57) | SQL Error: 0, SQLState: null
    ERROR - JDBCExceptionReporter.logExceptions(58) | Cannot create JDBC driver of class '' for connect URL 'null'
    WARN - SettingsFactory.buildSettings(107) | Could not obtain connection 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 DataSource(BasicDataSource.java:780)
    at org.apache.tomcat.dbcp.dbcp.BasicDataSource.getCon nection(BasicDataSource.java:540)
    at org.springframework.orm.hibernate.LocalDataSourceC onnectionProvider.getConnection(LocalDataSourceCon nectionProvider.java:75)
    at net.sf.hibernate.cfg.SettingsFactory.buildSettings (SettingsFactory.java:84)
    at net.sf.hibernate.cfg.Configuration.buildSettings(C onfiguration.java:1172)
    at net.sf.hibernate.cfg.Configuration.buildSessionFac tory(Configuration.java:803)
    at org.springframework.orm.hibernate.LocalSessionFact oryBean.newSessionFactory(LocalSessionFactoryBean. java:544)
    at org.springframework.orm.hibernate.LocalSessionFact oryBean.afterPropertiesSet(LocalSessionFactoryBean .java:479)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.invokeInitMethods(Abstr actAutowireCapableBeanFactory.java:1072)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.createBean(AbstractAuto wireCapableBeanFactory.java:343)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.createBean(AbstractAuto wireCapableBeanFactory.java:260)
    at org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:221)
    at org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:145)
    at org.springframework.beans.factory.support.DefaultL istableBeanFactory.preInstantiateSingletons(Defaul tListableBeanFactory.java:285)
    at org.springframework.context.support.AbstractApplic ationContext.refresh(AbstractApplicationContext.ja va:317)
    at org.springframework.web.context.support.AbstractRe freshableWebApplicationContext.refresh(AbstractRef reshableWebApplicationContext.java:131)
    at org.springframework.web.context.ContextLoader.crea teWebApplicationContext(ContextLoader.java:224)
    at org.springframework.web.context.ContextLoader.init WebApplicationContext(ContextLoader.java:150)
    at org.springframework.web.context.ContextLoaderListe ner.contextInitialized(ContextLoaderListener.java: 48)
    at org.apache.catalina.core.StandardContext.listenerS tart(StandardContext.java:3631)
    at org.apache.catalina.core.StandardContext.start(Sta ndardContext.java:4065)
    at org.apache.catalina.core.ContainerBase.addChildInt ernal(ContainerBase.java:755)
    at org.apache.catalina.core.ContainerBase.addChild(Co ntainerBase.java:739)
    at org.apache.catalina.core.StandardHost.addChild(Sta ndardHost.java:525)
    at org.apache.catalina.startup.HostConfig.deployDirec tory(HostConfig.java:886)
    at org.apache.catalina.startup.HostConfig.deployDirec tories(HostConfig.java:849)
    at org.apache.catalina.startup.HostConfig.deployApps( HostConfig.java:474)
    at org.apache.catalina.startup.HostConfig.start(HostC onfig.java:1079)
    at org.apache.catalina.startup.HostConfig.lifecycleEv ent(HostConfig.java:310)
    at org.apache.catalina.util.LifecycleSupport.fireLife cycleEvent(LifecycleSupport.java:119)
    at org.apache.catalina.core.ContainerBase.start(Conta inerBase.java:1011)
    at org.apache.catalina.core.StandardHost.start(Standa rdHost.java:718)
    at org.apache.catalina.core.ContainerBase.start(Conta inerBase.java:1003)
    at org.apache.catalina.core.StandardEngine.start(Stan dardEngine.java:437)
    at org.apache.catalina.core.StandardService.start(Sta ndardService.java:450)
    at org.apache.catalina.core.StandardServer.start(Stan dardServer.java:2010)
    at org.apache.catalina.startup.Catalina.start(Catalin a.java:537)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.apache.catalina.startup.Bootstrap.start(Bootst rap.java:271)
    at org.apache.catalina.startup.Bootstrap.main(Bootstr ap.java:409)
    Caused by: java.sql.SQLException: No suitable driver
    at java.sql.DriverManager.getDriver(DriverManager.jav a:243)
    at org.apache.tomcat.dbcp.dbcp.BasicDataSource.create DataSource(BasicDataSource.java:773)
    ... 42 more
    WARN - Configurator.configure(126) | No configuration found. Configuring ehcache from ehcache-failsafe.xml found in the classpath: jar:file:/var/www/bluebird/MyTest/WEB-INF/lib/ehcache-1.1.jar!/ehcache-failsafe.xml
    WARN - JDBCExceptionReporter.logExceptions(57) | SQL Error: 0, SQLState: null
    ERROR - JDBCExceptionReporter.logExceptions(58) | Cannot create JDBC driver of class '' for connect URL 'null'
    ERROR - SchemaExport.execute(165) | schema export unsuccessful
    org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create JDBC driver of class '' for connect URL 'null'
    at org.apache.tomcat.dbcp.dbcp.BasicDataSource.create DataSource(BasicDataSource.java:780)
    at org.apache.tomcat.dbcp.dbcp.BasicDataSource.getCon nection(BasicDataSource.java:540)
    at org.springframework.orm.hibernate.LocalDataSourceC onnectionProvider.getConnection(LocalDataSourceCon nectionProvider.java:75)
    at net.sf.hibernate.tool.hbm2ddl.SchemaExport.execute (SchemaExport.java:119)
    at net.sf.hibernate.tool.hbm2ddl.SchemaExport.create( SchemaExport.java:84)
    at net.sf.hibernate.impl.SessionFactoryImpl.<init>(Se ssionFactoryImpl.java:198)
    at net.sf.hibernate.cfg.Configuration.buildSessionFac tory(Configuration.java:805)
    at org.springframework.orm.hibernate.LocalSessionFact oryBean.newSessionFactory(LocalSessionFactoryBean. java:544)
    at org.springframework.orm.hibernate.LocalSessionFact oryBean.afterPropertiesSet(LocalSessionFactoryBean .java:479)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.invokeInitMethods(Abstr actAutowireCapableBeanFactory.java:1072)
    ...
    ...
    ...

    ******************************************

    I have my first appllication using pure servlet with the JNDI (jdbc/mysql_local) works fine. However, I could get it run with the new one (jdbc/mysqlTest) on the Equinox (light version of AppFuse).

    Could any of you help about this?

    Many thanks!

  • #2
    More details about the catalina.out in DEBUG level log

    Apr 14, 2005 10:57:04 AM org.apache.coyote.http11.Http11Protocol init
    INFO: Initializing Coyote HTTP/1.1 on http-8080
    Apr 14, 2005 10:57:04 AM org.apache.catalina.startup.Catalina load
    INFO: Initialization processed in 1902 ms
    Apr 14, 2005 10:57:04 AM org.apache.catalina.core.StandardService start
    INFO: Starting service Catalina
    Apr 14, 2005 10:57:04 AM org.apache.catalina.core.StandardEngine start
    INFO: Starting Servlet Engine: Apache Tomcat/5.5.4
    Apr 14, 2005 10:57:05 AM org.apache.catalina.core.StandardHost start
    INFO: XML validation disabled
    Apr 14, 2005 10:57:06 AM org.apache.catalina.startup.ContextConfig validateSecurityRoles
    INFO: WARNING: Security role name service_provider used in an <auth-constraint> without being defined in a <security-role>
    Apr 14, 2005 10:57:06 AM org.apache.catalina.startup.ContextConfig validateSecurityRoles
    INFO: WARNING: Security role name publicity used in an <auth-constraint> without being defined in a <security-role>
    Apr 14, 2005 10:57:06 AM org.apache.catalina.startup.ContextConfig validateSecurityRoles
    INFO: WARNING: Security role name marketing used in an <auth-constraint> without being defined in a <security-role>
    INFO - ContextLoader.initWebApplicationContext(142) | Root WebApplicationContext: initialization started
    INFO - PathMatchingResourcePatternResolver.findPathMatchi ngResources(238) | Resolved location pattern [/WEB-INF/applicationContext*.xml] to resources [ServletContext resource [/WEB-INF/applicationContext-hibernate.xml], ServletContext resource [/WEB-INF/applicationContext.xml]]
    INFO - XmlBeanDefinitionReader.loadBeanDefinitions(119) | Loading XML bean definitions from ServletContext resource [/WEB-INF/applicationContext-hibernate.xml]
    DEBUG - XmlBeanDefinitionReader.loadBeanDefinitions(123) | Using JAXP implementation [com.sun.org.apache.xerces.internal.jaxp.DocumentBu ilderFactoryImpl@1595f51]
    DEBUG - BeansDtdResolver.resolveEntity(50) | Trying to resolve XML entity with public ID [-//SPRING//DTD BEAN//EN] and system ID [http://www.springframework.org/dtd/spring-beans.dtd]
    DEBUG - BeansDtdResolver.resolveEntity(54) | Trying to locate [spring-beans.dtd] under [/org/springframework/beans/factory/xml/]
    DEBUG - BeansDtdResolver.resolveEntity(60) | Found beans DTD [http://www.springframework.org/dtd/spring-beans.dtd] in classpath
    DEBUG - DefaultXmlBeanDefinitionParser.registerBeanDefinit ions(163) | Loading bean definitions
    DEBUG - DefaultXmlBeanDefinitionParser.registerBeanDefinit ions(170) | Default lazy init 'false'
    DEBUG - DefaultXmlBeanDefinitionParser.registerBeanDefinit ions(171) | Default dependency check 'none'
    DEBUG - DefaultXmlBeanDefinitionParser.registerBeanDefinit ions(172) | Default autowire 'no'
    DEBUG - DefaultXmlBeanDefinitionParser.registerBeanDefinit ions(194) | Found 5 <bean> elements defining beans
    INFO - XmlBeanDefinitionReader.loadBeanDefinitions(119) | Loading XML bean definitions from ServletContext resource [/WEB-INF/applicationContext.xml]
    DEBUG - XmlBeanDefinitionReader.loadBeanDefinitions(123) | Using JAXP implementation [com.sun.org.apache.xerces.internal.jaxp.DocumentBu ilderFactoryImpl@19b5217]
    DEBUG - BeansDtdResolver.resolveEntity(50) | Trying to resolve XML entity with public ID [-//SPRING//DTD BEAN//EN] and system ID [http://www.springframework.org/dtd/spring-beans.dtd]
    DEBUG - BeansDtdResolver.resolveEntity(54) | Trying to locate [spring-beans.dtd] under [/org/springframework/beans/factory/xml/]
    DEBUG - BeansDtdResolver.resolveEntity(60) | Found beans DTD [http://www.springframework.org/dtd/spring-beans.dtd] in classpath
    DEBUG - DefaultXmlBeanDefinitionParser.registerBeanDefinit ions(163) | Loading bean definitions
    DEBUG - DefaultXmlBeanDefinitionParser.registerBeanDefinit ions(170) | Default lazy init 'false'
    DEBUG - DefaultXmlBeanDefinitionParser.registerBeanDefinit ions(171) | Default dependency check 'none'
    DEBUG - DefaultXmlBeanDefinitionParser.registerBeanDefinit ions(172) | Default autowire 'no'
    DEBUG - DefaultXmlBeanDefinitionParser.parseBeanDefinition (280) | Neither XML 'id' nor 'name' specified - using generated bean name [org.appfuse.service.impl.UserManagerImpl]
    DEBUG - DefaultXmlBeanDefinitionParser.parseBeanDefinition (280) | Neither XML 'id' nor 'name' specified - using generated bean name [CMS.service.impl.ArticleManagerImpl]
    DEBUG - DefaultXmlBeanDefinitionParser.registerBeanDefinit ions(194) | Found 4 <bean> elements defining beans
    INFO - AbstractRefreshableApplicationContext.refreshBeanF actory(90) | Bean factory for application context [org.springframework.web.context.support.XmlWebAppl icationContext;hashCode=7578443]: org.springframework.beans.factory.support.DefaultL istableBeanFactory defining beans [dataSource,sessionFactory,transactionManager,userD AO,articleDAO,propertyConfigurer,txProxyTemplate,u serManager,articleManager]; root of BeanFactory hierarchy
    INFO - AbstractApplicationContext.refresh(294) | 9 beans defined in application context [org.springframework.web.context.support.XmlWebAppl icationContext;hashCode=7578443]
    INFO - CollectionFactory.<clinit>(59) | Using JDK 1.4 collections
    DEBUG - CollectionFactory.createLinkedMapIfPossible(109) | Creating java.util.LinkedHashMap
    INFO - AbstractBeanFactory.getBean(217) | Creating shared instance of singleton bean 'propertyConfigurer'
    DEBUG - AbstractAutowireCapableBeanFactory.createBean(280) | Creating instance of bean 'propertyConfigurer' with merged definition [Root bean with class [org.springframework.beans.factory.config.PropertyP laceholderConfigurer] defined in ServletContext resource [/WEB-INF/applicationContext.xml]]
    DEBUG - CachedIntrospectionResults.<init>(138) | Getting BeanInfo for class [org.springframework.beans.factory.config.PropertyP laceholderConfigurer]
    DEBUG - CachedIntrospectionResults.<init>(154) | Caching PropertyDescriptors for class [org.springframework.beans.factory.config.PropertyP laceholderConfigurer]
    DEBUG - CachedIntrospectionResults.<init>(162) | Found property 'beanFactory' of type [org.springframework.beans.factory.BeanFactory]
    DEBUG - CachedIntrospectionResults.<init>(162) | Found property 'beanName' of type [java.lang.String]
    DEBUG - CachedIntrospectionResults.<init>(162) | Found property 'class' of type [java.lang.Class]
    DEBUG - CachedIntrospectionResults.<init>(162) | Found property 'fileEncoding' of type [java.lang.String]
    DEBUG - CachedIntrospectionResults.<init>(162) | Found property 'ignoreResourceNotFound' of type [boolean]
    DEBUG - CachedIntrospectionResults.<init>(162) | Found property 'ignoreUnresolvablePlaceholders' of type [boolean]
    DEBUG - CachedIntrospectionResults.<init>(162) | Found property 'location' of type [org.springframework.core.io.Resource]
    DEBUG - CachedIntrospectionResults.<init>(162) | Found property 'locations' of type [[Lorg.springframework.core.io.Resource;]
    DEBUG - CachedIntrospectionResults.<init>(162) | Found property 'order' of type [int]
    DEBUG - CachedIntrospectionResults.<init>(162) | Found property 'placeholderPrefix' of type [java.lang.String]
    DEBUG - CachedIntrospectionResults.<init>(162) | Found property 'placeholderSuffix' of type [java.lang.String]
    DEBUG - CachedIntrospectionResults.<init>(162) | Found property 'properties' of type [java.util.Properties]
    DEBUG - CachedIntrospectionResults.<init>(162) | Found property 'propertiesPersister' of type [org.springframework.util.PropertiesPersister]
    DEBUG - CachedIntrospectionResults.<init>(162) | Found property 'systemPropertiesMode' of type [int]
    DEBUG - CachedIntrospectionResults.<init>(162) | Found property 'systemPropertiesModeName' of type [java.lang.String]
    DEBUG - CachedIntrospectionResults.forClass(85) | Class [org.springframework.beans.factory.config.PropertyP laceholderConfigurer] is cache-safe
    DEBUG - BeanWrapperImpl.doTypeConversionIfNecessary(960) | Converting String to [interface org.springframework.core.io.Resource] using property editor [org.springframework.core.io.ResourceEditor@1e78fc6]
    DEBUG - BeanWrapperImpl.setPropertyValue(787) | About to invoke write method [public void org.springframework.beans.factory.config.PropertyR esourceConfigurer.setLocation(org.springframework. core.io.Resource)] on object of class [org.springframework.beans.factory.config.PropertyP laceholderConfigurer]
    DEBUG - BeanWrapperImpl.setPropertyValue(798) | Invoked write method [public void org.springframework.beans.factory.config.PropertyR esourceConfigurer.setLocation(org.springframework. core.io.Resource)] with value of type [org.springframework.core.io.Resource]
    DEBUG - AbstractAutowireCapableBeanFactory.createBean(329) | Invoking setBeanName on BeanNameAware bean 'propertyConfigurer'
    DEBUG - AbstractAutowireCapableBeanFactory.createBean(336) | Invoking setBeanFactory on BeanFactoryAware bean 'propertyConfigurer'
    DEBUG - AbstractAutowireCapableBeanFactory.applyBeanPostPr ocessorsBeforeInitialization(199) | Invoking BeanPostProcessors before initialization of bean 'propertyConfigurer'
    DEBUG - AbstractAutowireCapableBeanFactory.applyBeanPostPr ocessorsAfterInitialization(234) | Invoking BeanPostProcessors after initialization of bean 'propertyConfigurer'
    INFO - PropertyResourceConfigurer.postProcessBeanFactory( 154) | Loading properties from class path resource [jdbc.properties.mysql]
    DEBUG - PropertyPlaceholderConfigurer.parseString(401) | Resolving placeholder 'hibernate.show_sql' to [true]
    DEBUG - CollectionFactory.createLinkedMapIfPossible(109) | Creating java.util.LinkedHashMap
    INFO - AbstractApplicationContext.initMessageSource(401) | Unable to locate MessageSource with name 'messageSource': using default [org.springframework.context.support.DelegatingMess ageSource@e6f7d2]
    INFO - AbstractApplicationContext.initApplicationEventMul ticaster(423) | Unable to locate ApplicationEventMulticaster with name 'applicationEventMulticaster': using default [org.springframework.context.event.SimpleApplicatio nEventMulticaster@3e0ebb]
    INFO - UiApplicationContextUtils.initThemeSource(67) | No ThemeSource found for [org.springframework.web.context.support.XmlWebAppl icationContext;hashCode=7578443]: using ResourceBundleThemeSource
    DEBUG - AbstractApplicationContext.refreshListeners(456) | Refreshing listeners
    DEBUG - CollectionFactory.createLinkedMapIfPossible(109) | Creating java.util.LinkedHashMap
    DEBUG - AbstractApplicationContext.refreshListeners(459) | Found 0 listeners in bean factory
    INFO - DefaultListableBeanFactory.preInstantiateSingleton s(276) | Pre-instantiating singletons in factory [org.springframework.beans.factory.support.DefaultL istableBeanFactory defining beans [dataSource,sessionFactory,transactionManager,userD AO,articleDAO,propertyConfigurer,txProxyTemplate,u serManager,articleManager]; root of BeanFactory hierarchy]
    INFO - AbstractBeanFactory.getBean(217) | Creating shared instance of singleton bean 'dataSource'
    DEBUG - AbstractAutowireCapableBeanFactory.createBean(280) | Creating instance of bean 'dataSource' with merged definition [Root bean with class [org.springframework.jndi.JndiObjectFactoryBean] defined in ServletContext resource [/WEB-INF/applicationContext-hibernate.xml]]
    DEBUG - CachedIntrospectionResults.<init>(138) | Getting BeanInfo for class [org.springframework.jndi.JndiObjectFactoryBean]
    DEBUG - CachedIntrospectionResults.<init>(154) | Caching PropertyDescriptors for class [org.springframework.jndi.JndiObjectFactoryBean]
    DEBUG - CachedIntrospectionResults.<init>(162) | Found property 'cache' of type [boolean]
    DEBUG - CachedIntrospectionResults.<init>(162) | Found property 'class' of type [java.lang.Class]
    DEBUG - CachedIntrospectionResults.<init>(162) | Found property 'jndiEnvironment' of type [java.util.Properties]
    DEBUG - CachedIntrospectionResults.<init>(162) | Found property 'jndiName' of type [java.lang.String]
    DEBUG - CachedIntrospectionResults.<init>(162) | Found property 'jndiTemplate' of type [org.springframework.jndi.JndiTemplate]
    DEBUG - CachedIntrospectionResults.<init>(162) | Found property 'lookupOnStartup' of type [boolean]
    DEBUG - CachedIntrospectionResults.<init>(162) | Found property 'object' of type [java.lang.Object]
    DEBUG - CachedIntrospectionResults.<init>(162) | Found property 'objectType' of type [java.lang.Class]
    DEBUG - CachedIntrospectionResults.<init>(162) | Found property 'proxyInterface' of type [java.lang.Class]
    DEBUG - CachedIntrospectionResults.<init>(162) | Found property 'resourceRef' of type [boolean]
    DEBUG - CachedIntrospectionResults.<init>(162) | Found property 'singleton' of type [boolean]
    DEBUG - CachedIntrospectionResults.forClass(85) | Class [org.springframework.jndi.JndiObjectFactoryBean] is cache-safe
    DEBUG - BeanWrapperImpl.setPropertyValue(787) | About to invoke write method [public void org.springframework.jndi.JndiObjectLocator.setJndi Name(java.lang.String)] on object of class [org.springframework.jndi.JndiObjectFactoryBean]
    DEBUG - BeanWrapperImpl.setPropertyValue(795) | Invoked write method [public void org.springframework.jndi.JndiObjectLocator.setJndi Name(java.lang.String)] with value [java:comp/env/jdbc/mysqlCMS]
    DEBUG - AbstractAutowireCapableBeanFactory.applyBeanPostPr ocessorsBeforeInitialization(199) | Invoking BeanPostProcessors before initialization of bean 'dataSource'
    DEBUG - AbstractAutowireCapableBeanFactory.invokeInitMetho ds(1070) | Invoking afterPropertiesSet() on bean with beanName 'dataSource'
    DEBUG - JndiTemplate.lookup(119) | Looking up JNDI object with name [java:comp/env/jdbc/mysqlCMS]
    DEBUG - JndiLocatorSupport.lookup(73) | Located object with JNDI name [java:comp/env/jdbc/mysqlCMS]
    DEBUG - AbstractAutowireCapableBeanFactory.applyBeanPostPr ocessorsAfterInitialization(234) | Invoking BeanPostProcessors after initialization of bean 'dataSource'
    DEBUG - AbstractBeanFactory.getObjectForSharedInstance(721 ) | Calling code asked for FactoryBean instance for name 'dataSource'
    DEBUG - AbstractBeanFactory.getBean(184) | Returning cached instance of singleton bean 'dataSource'
    DEBUG - AbstractBeanFactory.getObjectForSharedInstance(704 ) | Bean with name 'dataSource' is a factory bean
    INFO - AbstractBeanFactory.getBean(217) | Creating shared instance of singleton bean 'sessionFactory'
    DEBUG - AbstractAutowireCapableBeanFactory.createBean(280) | Creating instance of bean 'sessionFactory' with merged definition [Root bean with class [org.springframework.orm.hibernate.LocalSessionFact oryBean] defined in ServletContext resource [/WEB-INF/applicationContext-hibernate.xml]]
    DEBUG - CachedIntrospectionResults.<init>(138) | Getting BeanInfo for class [org.springframework.orm.hibernate.LocalSessionFact oryBean]
    DEBUG - CachedIntrospectionResults.<init>(154) | Caching PropertyDescriptors for class [org.springframework.orm.hibernate.LocalSessionFact oryBean]
    DEBUG - CachedIntrospectionResults.<init>(162) | Found property 'class' of type [java.lang.Class]
    DEBUG - CachedIntrospectionResults.<init>(162) | Found property 'configLocation' of type [org.springframework.core.io.Resource]
    DEBUG - CachedIntrospectionResults.<init>(162) | Found property 'configuration' of type [net.sf.hibernate.cfg.Configuration]
    DEBUG - CachedIntrospectionResults.<init>(162) | Found property 'dataSource' of type [javax.sql.DataSource]
    DEBUG - CachedIntrospectionResults.<init>(162) | Found property 'entityInterceptor' of type [net.sf.hibernate.Interceptor]
    DEBUG - CachedIntrospectionResults.<init>(162) | Found property 'hibernateProperties' of type [java.util.Properties]
    DEBUG - CachedIntrospectionResults.<init>(162) | Found property 'jtaTransactionManager' of type [javax.transaction.TransactionManager]
    DEBUG - CachedIntrospectionResults.<init>(162) | Found property 'lobHandler' of type [org.springframework.jdbc.support.lob.LobHandler]
    DEBUG - CachedIntrospectionResults.<init>(162) | Found property 'mappingDirectoryLocations' of type [[Lorg.springframework.core.io.Resource;]
    DEBUG - CachedIntrospectionResults.<init>(162) | Found property 'mappingJarLocations' of type [[Lorg.springframework.core.io.Resource;]
    DEBUG - CachedIntrospectionResults.<init>(162) | Found property 'mappingLocations' of type [[Lorg.springframework.core.io.Resource;]
    DEBUG - CachedIntrospectionResults.<init>(162) | Found property 'mappingResources' of type [[Ljava.lang.String;]
    DEBUG - CachedIntrospectionResults.<init>(162) | Found property 'namingStrategy' of type [net.sf.hibernate.cfg.NamingStrategy]
    DEBUG - CachedIntrospectionResults.<init>(162) | Found property 'object' of type [java.lang.Object]
    DEBUG - CachedIntrospectionResults.<init>(162) | Found property 'objectType' of type [java.lang.Class]
    DEBUG - CachedIntrospectionResults.<init>(162) | Found property 'schemaUpdate' of type [boolean]
    DEBUG - CachedIntrospectionResults.<init>(162) | Found property 'singleton' of type [boolean]
    DEBUG - CachedIntrospectionResults.<init>(162) | Found property 'useTransactionAwareDataSource' of type [boolean]
    DEBUG - CachedIntrospectionResults.forClass(85) | Class [org.springframework.orm.hibernate.LocalSessionFact oryBean] is cache-safe
    DEBUG - AbstractAutowireCapableBeanFactory.resolveReferenc e(963) | Resolving reference from property 'dataSource' in bean 'sessionFactory' to bean 'dataSource'
    DEBUG - AbstractBeanFactory.getBean(184) | Returning cached instance of singleton bean 'dataSource'
    DEBUG - AbstractBeanFactory.getObjectForSharedInstance(704 ) | Bean with name 'dataSource' is a factory bean
    DEBUG - BeanWrapperImpl.setPropertyValue(787) | About to invoke write method [public void org.springframework.orm.hibernate.LocalSessionFact oryBean.setDataSource(javax.sql.DataSource)] on object of class [org.springframework.orm.hibernate.LocalSessionFact oryBean]
    DEBUG - BeanWrapperImpl.setPropertyValue(798) | Invoked write method [public void org.springframework.orm.hibernate.LocalSessionFact oryBean.setDataSource(javax.sql.DataSource)] with value of type [javax.sql.DataSource]
    DEBUG - BeanWrapperImpl.setPropertyValue(787) | About to invoke write method [public void org.springframework.orm.hibernate.LocalSessionFact oryBean.setMappingResources(java.lang.String[])] on object of class [org.springframework.orm.hibernate.LocalSessionFact oryBean]
    DEBUG - BeanWrapperImpl.setPropertyValue(795) | Invoked write method [public void org.springframework.orm.hibernate.LocalSessionFact oryBean.setMappingResources(java.lang.String[])] with value [[Ljava.lang.String;@1c80b01]
    DEBUG - BeanWrapperImpl.setPropertyValue(787) | About to invoke write method [public void org.springframework.orm.hibernate.LocalSessionFact oryBean.setHibernateProperties(java.util.Propertie s)] on object of class [org.springframework.orm.hibernate.LocalSessionFact oryBean]
    DEBUG - BeanWrapperImpl.setPropertyValue(798) | Invoked write method [public void org.springframework.orm.hibernate.LocalSessionFact oryBean.setHibernateProperties(java.util.Propertie s)] with value of type [java.util.Properties]
    DEBUG - AbstractAutowireCapableBeanFactory.applyBeanPostPr ocessorsBeforeInitialization(199) | Invoking BeanPostProcessors before initialization of bean 'sessionFactory'
    DEBUG - AbstractAutowireCapableBeanFactory.invokeInitMetho ds(1070) | Invoking afterPropertiesSet() on bean with beanName 'sessionFactory'
    INFO - LocalSessionFactoryBean.afterPropertiesSet(477) | Building new Hibernate SessionFactory
    WARN - JDBCExceptionReporter.logExceptions(57) | SQL Error: 0, SQLState: null
    ERROR - JDBCExceptionReporter.logExceptions(58) | Cannot create JDBC driver of class '' for connect URL 'null'
    WARN - SettingsFactory.buildSettings(107) | Could not obtain connection 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 DataSource(BasicDataSource.java:780)
    at org.apache.tomcat.dbcp.dbcp.BasicDataSource.getCon nection(BasicDataSource.java:540)
    at org.springframework.orm.hibernate.LocalDataSourceC onnectionProvider.getConnection(LocalDataSourceCon nectionProvider.java:75)
    at net.sf.hibernate.cfg.SettingsFactory.buildSettings (SettingsFactory.java:84)
    at net.sf.hibernate.cfg.Configuration.buildSettings(C onfiguration.java:1172)
    at net.sf.hibernate.cfg.Configuration.buildSessionFac tory(Configuration.java:803)
    at org.springframework.orm.hibernate.LocalSessionFact oryBean.newSessionFactory(LocalSessionFactoryBean. java:544)
    at org.springframework.orm.hibernate.LocalSessionFact oryBean.afterPropertiesSet(LocalSessionFactoryBean .java:479)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.invokeInitMethods(Abstr actAutowireCapableBeanFactory.java:1072)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.createBean(AbstractAuto wireCapableBeanFactory.java:343)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.createBean(AbstractAuto wireCapableBeanFactory.java:260)
    at org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:221)
    at org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:145)
    at org.springframework.beans.factory.support.DefaultL istableBeanFactory.preInstantiateSingletons(Defaul tListableBeanFactory.java:285)
    at org.springframework.context.support.AbstractApplic ationContext.refresh(AbstractApplicationContext.ja va:317)
    at org.springframework.web.context.support.AbstractRe freshableWebApplicationContext.refresh(AbstractRef reshableWebApplicationContext.java:131)
    at org.springframework.web.context.ContextLoader.crea teWebApplicationContext(ContextLoader.java:224)
    at org.springframework.web.context.ContextLoader.init WebApplicationContext(ContextLoader.java:150)
    at org.springframework.web.context.ContextLoaderListe ner.contextInitialized(ContextLoaderListener.java: 48)
    at org.apache.catalina.core.StandardContext.listenerS tart(StandardContext.java:3631)
    at org.apache.catalina.core.StandardContext.start(Sta ndardContext.java:4065)
    at org.apache.catalina.core.ContainerBase.addChildInt ernal(ContainerBase.java:755)
    at org.apache.catalina.core.ContainerBase.addChild(Co ntainerBase.java:739)
    at org.apache.catalina.core.StandardHost.addChild(Sta ndardHost.java:525)
    at org.apache.catalina.startup.HostConfig.deployDirec tory(HostConfig.java:886)
    at org.apache.catalina.startup.HostConfig.deployDirec tories(HostConfig.java:849)
    at org.apache.catalina.startup.HostConfig.deployApps( HostConfig.java:474)
    at org.apache.catalina.startup.HostConfig.start(HostC onfig.java:1079)
    at org.apache.catalina.startup.HostConfig.lifecycleEv ent(HostConfig.java:310)
    at org.apache.catalina.util.LifecycleSupport.fireLife cycleEvent(LifecycleSupport.java:119)
    at org.apache.catalina.core.ContainerBase.start(Conta inerBase.java:1011)
    at org.apache.catalina.core.StandardHost.start(Standa rdHost.java:718)
    at org.apache.catalina.core.ContainerBase.start(Conta inerBase.java:1003)
    at org.apache.catalina.core.StandardEngine.start(Stan dardEngine.java:437)
    at org.apache.catalina.core.StandardService.start(Sta ndardService.java:450)
    at org.apache.catalina.core.StandardServer.start(Stan dardServer.java:2010)
    at org.apache.catalina.startup.Catalina.start(Catalin a.java:537)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.apache.catalina.startup.Bootstrap.start(Bootst rap.java:271)
    at org.apache.catalina.startup.Bootstrap.main(Bootstr ap.java:409)
    Caused by: java.sql.SQLException: No suitable driver
    at java.sql.DriverManager.getDriver(DriverManager.jav a:243)
    at org.apache.tomcat.dbcp.dbcp.BasicDataSource.create DataSource(BasicDataSource.java:773)
    ... 42 more
    WARN - Configurator.configure(126) | No configuration found. Configuring ehcache from ehcache-failsafe.xml found in the classpath: jar:file:/var/www/bluebird/MyTest/WEB-INF/lib/ehcache-1.1.jar!/ehcache-failsafe.xml
    WARN - JDBCExceptionReporter.logExceptions(57) | SQL Error: 0, SQLState: null
    ERROR - JDBCExceptionReporter.logExceptions(58) | Cannot create JDBC driver of class '' for connect URL 'null'
    ERROR - SchemaExport.execute(165) | schema export unsuccessful
    org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create JDBC driver of class '' for connect URL 'null'
    at org.apache.tomcat.dbcp.dbcp.BasicDataSource.create DataSource(BasicDataSource.java:780)
    at org.apache.tomcat.dbcp.dbcp.BasicDataSource.getCon nection(BasicDataSource.java:540)
    at org.springframework.orm.hibernate.LocalDataSourceC onnectionProvider.getConnection(LocalDataSourceCon nectionProvider.java:75)
    at net.sf.hibernate.tool.hbm2ddl.SchemaExport.execute (SchemaExport.java:119)
    at net.sf.hibernate.tool.hbm2ddl.SchemaExport.create( SchemaExport.java:84)
    ...
    ...

    Comment

    Working...
    X