tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <yucca...@live.co.za>
Subject Re: tomcat hibernate wiki
Date Tue, 15 Jun 2010 17:25:57 GMT
Much appreciated, Very nice wiki that got me up and running apart from some 
odd exception.... (does not happen in development only production)


root cause

org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create JDBC driver of 
class '' for connect URL 'null'
	org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1150)
	org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(BasicDataSource.java:880)
	org.hibernate.connection.DatasourceConnectionProvider.getConnection(DatasourceConnectionProvider.java:69)
	org.hibernate.jdbc.ConnectionManager.openConnection(ConnectionManager.java:423)
	org.hibernate.jdbc.ConnectionManager.getConnection(ConnectionManager.java:144)
	org.hibernate.jdbc.JDBCContext.connection(JDBCContext.java:119)
	org.hibernate.transaction.JDBCTransaction.begin(JDBCTransaction.java:57)
	org.hibernate.impl.SessionImpl.beginTransaction(SessionImpl.java:1326)
	sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	java.lang.reflect.Method.invoke(Method.java:597)
	org.hibernate.context.ThreadLocalSessionContext$TransactionProtectionWrapper.invoke(ThreadLocalSessionContext.java:301)
	$Proxy0.beginTransaction(Unknown Source)
	org.bar.jar.view.validators.EmailExistsValidator.validate(EmailExistsValidator.java:28)
	javax.faces.component.UIInput.validateValue(UIInput.java:1019)
	javax.faces.component.UIInput.validate(UIInput.java:875)
	javax.faces.component.UIInput.executeValidate(UIInput.java:1072)
	javax.faces.component.UIInput.processValidators(UIInput.java:672)
	javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1058)
	javax.faces.component.UIForm.processValidators(UIForm.java:235)
	javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1058)
	javax.faces.component.UIViewRoot.processValidators(UIViewRoot.java:700)
	com.sun.faces.lifecycle.ProcessValidationsPhase.execute(ProcessValidationsPhase.java:76)
	com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
	com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
	javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)

root cause

java.lang.NullPointerException
	sun.jdbc.odbc.JdbcOdbcDriver.getProtocol(JdbcOdbcDriver.java:507)
	sun.jdbc.odbc.JdbcOdbcDriver.knownURL(JdbcOdbcDriver.java:476)
	sun.jdbc.odbc.JdbcOdbcDriver.acceptsURL(JdbcOdbcDriver.java:307)
	java.sql.DriverManager.getDriver(DriverManager.java:253)
	org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1143)
	org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(BasicDataSource.java:880)
	org.hibernate.connection.DatasourceConnectionProvider.getConnection(DatasourceConnectionProvider.java:69)
	org.hibernate.jdbc.ConnectionManager.openConnection(ConnectionManager.java:423)
	org.hibernate.jdbc.ConnectionManager.getConnection(ConnectionManager.java:144)
	org.hibernate.jdbc.JDBCContext.connection(JDBCContext.java:119)
	org.hibernate.transaction.JDBCTransaction.begin(JDBCTransaction.java:57)
	org.hibernate.impl.SessionImpl.beginTransaction(SessionImpl.java:1326)
	sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	java.lang.reflect.Method.invoke(Method.java:597)
	org.hibernate.context.ThreadLocalSessionContext$TransactionProtectionWrapper.invoke(ThreadLocalSessionContext.java:301)
	$Proxy0.beginTransaction(Unknown Source)
	org.bar.jar.view.validators.EmailExistsValidator.validate(EmailExistsValidator.java:28)
	javax.faces.component.UIInput.validateValue(UIInput.java:1019)
	javax.faces.component.UIInput.validate(UIInput.java:875)
	javax.faces.component.UIInput.executeValidate(UIInput.java:1072)
	javax.faces.component.UIInput.processValidators(UIInput.java:672)
	javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1058)
	javax.faces.component.UIForm.processValidators(UIForm.java:235)
	javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1058)
	javax.faces.component.UIViewRoot.processValidators(UIViewRoot.java:700)
	com.sun.faces.lifecycle.ProcessValidationsPhase.execute(ProcessValidationsPhase.java:76)
	com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
	com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
	javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)




--------------------------------------------------
From: "Mark Eggers" <its_toasted@yahoo.com>
Sent: Tuesday, June 15, 2010 7:13 PM
To: "Tomcat Users List" <users@tomcat.apache.org>
Subject: Re: tomcat hibernate wiki

> I've added a sentence clarifying that, saying that you still need the 
> dialect property.
>
> --- On Tue, 6/15/10, yuccanel@live.co.za <yuccanel@live.co.za> wrote:
>
>
>> Please add to the wiki that hibernate
>> dialect must still be set. Wiki says,
>> must have NO database configuration properties but just got
>> an exception
>> complaining om missing dialect properties
>
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message