e ae galera
estou com um projeto que da o seguinte erro:
HTTP Status 500 -
type Exception report
message
descriptionThe server encountered an internal error () that prevented it from fulfilling this request.
exception
javax.servlet.ServletException: javax.persistence.PersistenceException: org.hibernate.exception.GenericJDBCException: Cannot open connection
root cause
javax.el.ELException: javax.persistence.PersistenceException: org.hibernate.exception.GenericJDBCException: Cannot open connection
root cause
javax.persistence.PersistenceException: org.hibernate.exception.GenericJDBCException: Cannot open connection
root cause
org.hibernate.exception.GenericJDBCException: Cannot open connection
root cause
java.sql.SQLException: Error in allocating a connection. Cause: org.firebirdsql.jdbc.FBDriver cannot be cast to javax.sql.DataSource
note The full stack traces of the exception and its root causes are available in the Sun Java System Application Server 9.1 logs.
Sun Java System Application Server 9.1
incluir na biblioteca:
os drivers para o hibernate
os drivers do FireBird
e um arquivo “hibernate_config.zip” que é assim:
tem 1 arquivo: hibernate.properties
tem 1 arquivo: log4j.properties
no arquivo hibernate.properties tem:
hibernate.dialect org.hibernate.dialect.FirebirdDialect
hibernate.connection.driver_class org.firebirdsql.jdbc.FBDriver
hibernate.connection.url jdbc:firebirdsql:localhost/3050:C:\work\TESTE.gdb;create=true
hibernate.connection.username SYSDBA
hibernate.connection.password masterkey
hibernate.show_sql true
hibernate.format_sql true
ele estava configurado para o Derby e eu alterei para o FireBird
mas mesmo assim deu o erro
como posso proceder para resolver?
agradeco
sylvio