tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dvosbu...@aol.com
Subject Re: Trouble loading MS SQl Server database driver in Tomcat 7.0.37
Date Thu, 04 Apr 2013 16:04:25 GMT

 

 

 

-----Original Message-----
From: Neven Cvetkovic <neven.cvetkovic@gmail.com>
To: Tomcat Users List <users@tomcat.apache.org>
Sent: Tue, Apr 2, 2013 1:48 pm
Subject: Re: Trouble loading MS SQl Server database driver in Tomcat 7.0.37


David,

I would like to split troubleshooting into three steps:

- tomcat startup (no app deployed)
- deploy application war file (copy war to webapps)
- test application in browser

This way you can really isolate and nail down the problem. When does the
exception occur?

Can you give us theee console outputs with complete stacktraces?

I suspect that you still have that jboss transaction manager lookup defined.

Cheers!


Nevin,

I've taken the steps you outlined in your previous email. I don't know if I need to increase
the logging level verbosity on the server. If so, please let me know how I do that and I'll
resend the log.

Here is a copy of my catalina.out log with no app deployed:

Apr 04, 2013 11:45:15 AM 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: /usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib
Apr 04, 2013 11:45:16 AM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-bio-8081"]
Apr 04, 2013 11:45:16 AM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["ajp-bio-8010"]
Apr 04, 2013 11:45:16 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 3167 ms
Apr 04, 2013 11:45:16 AM org.apache.catalina.core.StandardService startInternal
INFO: Starting service Catalina
Apr 04, 2013 11:45:16 AM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.37
Apr 04, 2013 11:45:16 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory /tomcat/tomcat2/apache-tomcat-7.0.37/webapps/host-manager
Apr 04, 2013 11:45:18 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory /tomcat/tomcat2/apache-tomcat-7.0.37/webapps/manager
Apr 04, 2013 11:45:19 AM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-bio-8081"]
Apr 04, 2013 11:45:19 AM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["ajp-bio-8010"]
Apr 04, 2013 11:45:19 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 2918 ms

Here is a copy after deploying the app:

Apr 04, 2013 11:45:15 AM 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: /usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib
Apr 04, 2013 11:45:16 AM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-bio-8081"]
Apr 04, 2013 11:45:16 AM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["ajp-bio-8010"]
Apr 04, 2013 11:45:16 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 3167 ms
Apr 04, 2013 11:45:16 AM org.apache.catalina.core.StandardService startInternal
INFO: Starting service Catalina
Apr 04, 2013 11:45:16 AM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.37
Apr 04, 2013 11:45:16 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory /tomcat/tomcat2/apache-tomcat-7.0.37/webapps/host-manager
Apr 04, 2013 11:45:18 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory /tomcat/tomcat2/apache-tomcat-7.0.37/webapps/manager
Apr 04, 2013 11:45:19 AM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-bio-8081"]
Apr 04, 2013 11:45:19 AM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["ajp-bio-8010"]
Apr 04, 2013 11:45:19 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 2918 ms
Apr 04, 2013 11:48:49 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory /tomcat/tomcat2/apache-tomcat-7.0.37/webapps/SystemsMadeSimple
Apr 04, 2013 11:48:57 AM org.apache.catalina.startup.TaglibUriRule body
INFO: TLD skipped. URI: http://struts.apache.org/tags-bean is already defined
Apr 04, 2013 11:48:58 AM org.apache.catalina.startup.TaglibUriRule body
INFO: TLD skipped. URI: http://struts.apache.org/tags-html is already defined
Apr 04, 2013 11:48:58 AM org.apache.catalina.startup.TaglibUriRule body
INFO: TLD skipped. URI: http://struts.apache.org/tags-logic is already defined
Apr 04, 2013 11:48:58 AM org.apache.catalina.startup.TaglibUriRule body
INFO: TLD skipped. URI: http://struts.apache.org/tags-nested is already defined
Apr 04, 2013 11:48:58 AM org.apache.catalina.startup.TaglibUriRule body
INFO: TLD skipped. URI: http://struts.apache.org/tags-tiles is already defined
WebConfig Initialization Started @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Apr 04, 2013 11:49:00 AM org.hibernate.cfg.Environment <clinit>
INFO: Hibernate 3.0.5
Apr 04, 2013 11:49:00 AM org.hibernate.cfg.Environment <clinit>
INFO: hibernate.properties not found
Apr 04, 2013 11:49:00 AM org.hibernate.cfg.Environment <clinit>
INFO: using CGLIB reflection optimizer
Apr 04, 2013 11:49:00 AM org.hibernate.cfg.Environment <clinit>
INFO: using JDK 1.4 java.sql.Timestamp handling
Apr 04, 2013 11:49:00 AM org.hibernate.cfg.Configuration configure
INFO: configuring from resource: /hibernate.cfg.xml
Apr 04, 2013 11:49:00 AM org.hibernate.cfg.Configuration getConfigurationInputStream
INFO: Configuration resource: /hibernate.cfg.xml
Apr 04, 2013 11:49:00 AM org.hibernate.cfg.Configuration addResource
INFO: Mapping resource: com/systemsmadesimple/hibernate/SMSuser.hbm.xml
Apr 04, 2013 11:49:01 AM org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonValues
INFO: Mapping class: com.systemsmadesimple.hibernate.SMSuser -> SMSuser
Apr 04, 2013 11:49:01 AM org.hibernate.cfg.Configuration addResource
INFO: Mapping resource: com/systemsmadesimple/hibernate/News.hbm.xml
Apr 04, 2013 11:49:01 AM org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonValues
INFO: Mapping class: com.systemsmadesimple.hibernate.News -> news
Apr 04, 2013 11:49:01 AM org.hibernate.cfg.Configuration addResource
INFO: Mapping resource: com/systemsmadesimple/hibernate/Staff.hbm.xml
Apr 04, 2013 11:49:01 AM org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonValues
INFO: Mapping class: com.systemsmadesimple.hibernate.Staff -> staff
Apr 04, 2013 11:49:01 AM org.hibernate.cfg.Configuration addResource
INFO: Mapping resource: com/systemsmadesimple/hibernate/Contract.hbm.xml
Apr 04, 2013 11:49:01 AM org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonValues
INFO: Mapping class: com.systemsmadesimple.hibernate.Contract -> contract
Apr 04, 2013 11:49:01 AM org.hibernate.cfg.Configuration addResource
INFO: Mapping resource: com/systemsmadesimple/hibernate/Philanthropy.hbm.xml
INFO: Mapping class: com.systemsmadesimple.hibernate.Philanthropy -> philanthropy
Apr 04, 2013 11:49:01 AM org.hibernate.cfg.Configuration addResource
INFO: Mapping resource: com/systemsmadesimple/hibernate/Customer.hbm.xml
Apr 04, 2013 11:49:02 AM org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonValues
INFO: Mapping class: com.systemsmadesimple.hibernate.Customer -> customer
Apr 04, 2013 11:49:02 AM org.hibernate.cfg.Configuration addResource
INFO: Mapping resource: com/systemsmadesimple/hibernate/Service.hbm.xml
Apr 04, 2013 11:49:02 AM org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonValues
INFO: Mapping class: com.systemsmadesimple.hibernate.Service -> service
Apr 04, 2013 11:49:02 AM org.hibernate.cfg.Configuration doConfigure
INFO: Configured SessionFactory: null
Apr 04, 2013 11:49:02 AM org.hibernate.cfg.Configuration secondPassCompile
INFO: processing extends queue
Apr 04, 2013 11:49:02 AM org.hibernate.cfg.Configuration secondPassCompile
INFO: processing collection mappings
Apr 04, 2013 11:49:02 AM org.hibernate.cfg.Configuration secondPassCompile
INFO: processing association property references
Apr 04, 2013 11:49:02 AM org.hibernate.cfg.Configuration secondPassCompile
INFO: processing foreign key constraints
Apr 04, 2013 11:49:02 AM org.hibernate.util.NamingHelper getInitialContext
INFO: JNDI InitialContext properties:{}
Apr 04, 2013 11:49:02 AM org.hibernate.connection.DatasourceConnectionProvider configure
INFO: Using datasource: java:comp/env/jdbc/smswebdb
Apr 04, 2013 11:49:04 AM org.hibernate.cfg.SettingsFactory buildSettings
INFO: RDBMS: Microsoft SQL Server, version: 10.50.1600
Apr 04, 2013 11:49:04 AM org.hibernate.cfg.SettingsFactory buildSettings
INFO: JDBC driver: Microsoft JDBC Driver 4.0 for SQL Server, version: 4.0.2206.100
Apr 04, 2013 11:49:04 AM org.hibernate.dialect.Dialect <init>
INFO: Using dialect: org.hibernate.dialect.SQLServerDialect
Apr 04, 2013 11:49:04 AM org.hibernate.transaction.TransactionFactoryFactory buildTransactionFactory
INFO: Transaction strategy: org.hibernate.transaction.JTATransactionFactory
Apr 04, 2013 11:49:04 AM org.hibernate.util.NamingHelper getInitialContext
INFO: JNDI InitialContext properties:{}
Apr 04, 2013 11:49:04 AM org.hibernate.transaction.TransactionManagerLookupFactory getTransactionManagerLookup
INFO: instantiating TransactionManagerLookup: org.hibernate.transaction.JBossTransactionManagerLookup
Apr 04, 2013 11:49:04 AM org.hibernate.transaction.TransactionManagerLookupFactory getTransactionManagerLookup
INFO: instantiated TransactionManagerLookup
Apr 04, 2013 11:49:04 AM org.hibernate.transaction.TransactionManagerLookupFactory getTransactionManagerLookup
INFO: instantiating TransactionManagerLookup: org.hibernate.transaction.JBossTransactionManagerLookup
Apr 04, 2013 11:49:04 AM org.hibernate.transaction.TransactionManagerLookupFactory getTransactionManagerLookup
INFO: instantiated TransactionManagerLookup
Apr 04, 2013 11:49:04 AM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Automatic flush during beforeCompletion(): disabled
Apr 04, 2013 11:49:04 AM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Automatic session close at end of transaction: disabled
Apr 04, 2013 11:49:04 AM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Scrollable result sets: enabled
Apr 04, 2013 11:49:04 AM org.hibernate.cfg.SettingsFactory buildSettings
INFO: JDBC3 getGeneratedKeys(): enabled
Apr 04, 2013 11:49:04 AM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Connection release mode: null
Apr 04, 2013 11:49:04 AM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Default schema: SMSWebDB
Apr 04, 2013 11:49:04 AM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Default batch fetch size: 1
Apr 04, 2013 11:49:04 AM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Generate SQL with comments: disabled
Apr 04, 2013 11:49:04 AM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Order SQL updates by primary key: disabled
Apr 04, 2013 11:49:04 AM org.hibernate.cfg.SettingsFactory createQueryTranslatorFactory
INFO: Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
Apr 04, 2013 11:49:04 AM org.hibernate.hql.ast.ASTQueryTranslatorFactory <init>
INFO: Using ASTQueryTranslatorFactory
Apr 04, 2013 11:49:04 AM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Query language substitutions: {}
Apr 04, 2013 11:49:04 AM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Second-level cache: enabled
Apr 04, 2013 11:49:04 AM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Query cache: enabled
Apr 04, 2013 11:49:04 AM org.hibernate.cfg.SettingsFactory createCacheProvider
INFO: Cache provider: org.hibernate.cache.EhCacheProvider
Apr 04, 2013 11:49:04 AM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Optimize cache for minimal puts: disabled
Apr 04, 2013 11:49:04 AM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Structured second-level cache entries: disabled
Apr 04, 2013 11:49:04 AM org.hibernate.cfg.SettingsFactory createQueryCacheFactory
INFO: Query cache factory: org.hibernate.cache.StandardQueryCacheFactory
Apr 04, 2013 11:49:04 AM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Statistics: disabled
Apr 04, 2013 11:49:04 AM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Deleted entity synthetic identifier rollback: disabled
Apr 04, 2013 11:49:04 AM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Default entity-mode: pojo
NewsServlet started

Here is the log after trying to access the home page of the app:

Apr 04, 2013 11:45:15 AM 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: /usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib
Apr 04, 2013 11:45:16 AM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-bio-8081"]
Apr 04, 2013 11:45:16 AM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["ajp-bio-8010"]
Apr 04, 2013 11:45:16 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 3167 ms
Apr 04, 2013 11:45:16 AM org.apache.catalina.core.StandardService startInternal
INFO: Starting service Catalina
Apr 04, 2013 11:45:16 AM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.37
Apr 04, 2013 11:45:16 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory /tomcat/tomcat2/apache-tomcat-7.0.37/webapps/host-manager
Apr 04, 2013 11:45:18 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory /tomcat/tomcat2/apache-tomcat-7.0.37/webapps/manager
Apr 04, 2013 11:45:19 AM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-bio-8081"]
Apr 04, 2013 11:45:19 AM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["ajp-bio-8010"]
Apr 04, 2013 11:45:19 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 2918 ms
Apr 04, 2013 11:48:49 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory /tomcat/tomcat2/apache-tomcat-7.0.37/webapps/SystemsMadeSimple
Apr 04, 2013 11:48:57 AM org.apache.catalina.startup.TaglibUriRule body
INFO: TLD skipped. URI: http://struts.apache.org/tags-bean is already defined
Apr 04, 2013 11:48:58 AM org.apache.catalina.startup.TaglibUriRule body
INFO: TLD skipped. URI: http://struts.apache.org/tags-html is already defined
Apr 04, 2013 11:48:58 AM org.apache.catalina.startup.TaglibUriRule body
INFO: TLD skipped. URI: http://struts.apache.org/tags-logic is already defined
Apr 04, 2013 11:48:58 AM org.apache.catalina.startup.TaglibUriRule body
INFO: TLD skipped. URI: http://struts.apache.org/tags-nested is already defined
Apr 04, 2013 11:48:58 AM org.apache.catalina.startup.TaglibUriRule body
INFO: TLD skipped. URI: http://struts.apache.org/tags-tiles is already defined
WebConfig Initialization Started @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Apr 04, 2013 11:49:00 AM org.hibernate.cfg.Environment <clinit>
INFO: Hibernate 3.0.5
Apr 04, 2013 11:49:00 AM org.hibernate.cfg.Environment <clinit>
INFO: hibernate.properties not found
Apr 04, 2013 11:49:00 AM org.hibernate.cfg.Environment <clinit>
INFO: using CGLIB reflection optimizer
Apr 04, 2013 11:49:00 AM org.hibernate.cfg.Environment <clinit>
INFO: using JDK 1.4 java.sql.Timestamp handling
Apr 04, 2013 11:49:00 AM org.hibernate.cfg.Configuration configure
INFO: configuring from resource: /hibernate.cfg.xml
Apr 04, 2013 11:49:00 AM org.hibernate.cfg.Configuration getConfigurationInputStream
INFO: Configuration resource: /hibernate.cfg.xml
Apr 04, 2013 11:49:00 AM org.hibernate.cfg.Configuration addResource
INFO: Mapping resource: com/systemsmadesimple/hibernate/SMSuser.hbm.xml
Apr 04, 2013 11:49:01 AM org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonValues
INFO: Mapping class: com.systemsmadesimple.hibernate.SMSuser -> SMSuser
Apr 04, 2013 11:49:01 AM org.hibernate.cfg.Configuration addResource
INFO: Mapping resource: com/systemsmadesimple/hibernate/News.hbm.xml
Apr 04, 2013 11:49:01 AM org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonValues
INFO: Mapping class: com.systemsmadesimple.hibernate.News -> news
Apr 04, 2013 11:49:01 AM org.hibernate.cfg.Configuration addResource
INFO: Mapping resource: com/systemsmadesimple/hibernate/Staff.hbm.xml
Apr 04, 2013 11:49:01 AM org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonValues
INFO: Mapping class: com.systemsmadesimple.hibernate.Staff -> staff
Apr 04, 2013 11:49:01 AM org.hibernate.cfg.Configuration addResource
INFO: Mapping resource: com/systemsmadesimple/hibernate/Contract.hbm.xml
Apr 04, 2013 11:49:01 AM org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonValues
INFO: Mapping class: com.systemsmadesimple.hibernate.Contract -> contract
Apr 04, 2013 11:49:01 AM org.hibernate.cfg.Configuration addResource
INFO: Mapping resource: com/systemsmadesimple/hibernate/Philanthropy.hbm.xml
Apr 04, 2013 11:49:01 AM org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonValues
INFO: Mapping class: com.systemsmadesimple.hibernate.Philanthropy -> philanthropy
Apr 04, 2013 11:49:01 AM org.hibernate.cfg.Configuration addResource
INFO: Mapping resource: com/systemsmadesimple/hibernate/Customer.hbm.xml
Apr 04, 2013 11:49:02 AM org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonValues
INFO: Mapping class: com.systemsmadesimple.hibernate.Customer -> customer
Apr 04, 2013 11:49:02 AM org.hibernate.cfg.Configuration addResource
INFO: Mapping resource: com/systemsmadesimple/hibernate/Service.hbm.xml
Apr 04, 2013 11:49:02 AM org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonValues
INFO: Mapping class: com.systemsmadesimple.hibernate.Service -> service
Apr 04, 2013 11:49:02 AM org.hibernate.cfg.Configuration doConfigure
INFO: Configured SessionFactory: null
Apr 04, 2013 11:49:02 AM org.hibernate.cfg.Configuration secondPassCompile
INFO: processing extends queue
Apr 04, 2013 11:49:02 AM org.hibernate.cfg.Configuration secondPassCompile
INFO: processing collection mappings
Apr 04, 2013 11:49:02 AM org.hibernate.cfg.Configuration secondPassCompile
INFO: processing association property references
Apr 04, 2013 11:49:02 AM org.hibernate.cfg.Configuration secondPassCompile
INFO: processing foreign key constraints
Apr 04, 2013 11:49:02 AM org.hibernate.util.NamingHelper getInitialContext
INFO: JNDI InitialContext properties:{}
Apr 04, 2013 11:49:02 AM org.hibernate.connection.DatasourceConnectionProvider configure
INFO: Using datasource: java:comp/env/jdbc/smswebdb
Apr 04, 2013 11:49:04 AM org.hibernate.cfg.SettingsFactory buildSettings
INFO: RDBMS: Microsoft SQL Server, version: 10.50.1600
Apr 04, 2013 11:49:04 AM org.hibernate.cfg.SettingsFactory buildSettings
INFO: JDBC driver: Microsoft JDBC Driver 4.0 for SQL Server, version: 4.0.2206.100
Apr 04, 2013 11:49:04 AM org.hibernate.dialect.Dialect <init>
INFO: Using dialect: org.hibernate.dialect.SQLServerDialect
Apr 04, 2013 11:49:04 AM org.hibernate.transaction.TransactionFactoryFactory buildTransactionFactory
INFO: Transaction strategy: org.hibernate.transaction.JTATransactionFactory
Apr 04, 2013 11:49:04 AM org.hibernate.util.NamingHelper getInitialContext
INFO: JNDI InitialContext properties:{}
Apr 04, 2013 11:49:04 AM org.hibernate.transaction.TransactionManagerLookupFactory getTransactionManagerLookup
INFO: instantiating TransactionManagerLookup: org.hibernate.transaction.JBossTransactionManagerLookup
Apr 04, 2013 11:49:04 AM org.hibernate.transaction.TransactionManagerLookupFactory getTransactionManagerLookup
INFO: instantiated TransactionManagerLookup
Apr 04, 2013 11:49:04 AM org.hibernate.transaction.TransactionManagerLookupFactory getTransactionManagerLookup
INFO: instantiating TransactionManagerLookup: org.hibernate.transaction.JBossTransactionManagerLookup
Apr 04, 2013 11:49:04 AM org.hibernate.transaction.TransactionManagerLookupFactory getTransactionManagerLookup
INFO: instantiated TransactionManagerLookup
Apr 04, 2013 11:49:04 AM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Automatic flush during beforeCompletion(): disabled
Apr 04, 2013 11:49:04 AM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Automatic session close at end of transaction: disabled
Apr 04, 2013 11:49:04 AM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Scrollable result sets: enabled
Apr 04, 2013 11:49:04 AM org.hibernate.cfg.SettingsFactory buildSettings
INFO: JDBC3 getGeneratedKeys(): enabled
Apr 04, 2013 11:49:04 AM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Connection release mode: null
Apr 04, 2013 11:49:04 AM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Default schema: SMSWebDB
Apr 04, 2013 11:49:04 AM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Default batch fetch size: 1
Apr 04, 2013 11:49:04 AM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Generate SQL with comments: disabled
Apr 04, 2013 11:49:04 AM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Order SQL updates by primary key: disabled
Apr 04, 2013 11:49:04 AM org.hibernate.cfg.SettingsFactory createQueryTranslatorFactory
INFO: Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
Apr 04, 2013 11:49:04 AM org.hibernate.hql.ast.ASTQueryTranslatorFactory <init>
INFO: Using ASTQueryTranslatorFactory
Apr 04, 2013 11:49:04 AM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Query language substitutions: {}
Apr 04, 2013 11:49:04 AM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Second-level cache: enabled
Apr 04, 2013 11:49:04 AM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Query cache: enabled
Apr 04, 2013 11:49:04 AM org.hibernate.cfg.SettingsFactory createCacheProvider
INFO: Cache provider: org.hibernate.cache.EhCacheProvider
Apr 04, 2013 11:49:04 AM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Optimize cache for minimal puts: disabled
Apr 04, 2013 11:49:04 AM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Structured second-level cache entries: disabled
Apr 04, 2013 11:49:04 AM org.hibernate.cfg.SettingsFactory createQueryCacheFactory
INFO: Query cache factory: org.hibernate.cache.StandardQueryCacheFactory
Apr 04, 2013 11:49:04 AM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Statistics: disabled
Apr 04, 2013 11:49:04 AM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Deleted entity synthetic identifier rollback: disabled
Apr 04, 2013 11:49:04 AM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Default entity-mode: pojo
NewsServlet started
HOME >> reinitializing data

And the output on the home page in the browser is:



HTTP Status 500 - Servlet execution threw an exception

type Exception report
message Servlet execution threw an exception
description The server encountered an internal error that prevented it from fulfilling this
request.
exception 
javax.servlet.ServletException: Servlet execution threw an exception
root cause 
java.lang.NoClassDefFoundError: Could not initialize class com.systemsmadesimple.hibernate.HibernateUtil
com.systemsmadesimple.hibernate.DatabaseManager.getAdHocData(DatabaseManager.java:171)	com.systemsmadesimple.struts.action.HomeAction.execute(HomeAction.java:50)
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:419)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:224)	org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)	javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
note The full stack trace of the root cause is available in the Apache Tomcat/7.0.37 logs.




 

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message