NetBeans com Hibernate configuracao

1 resposta
S

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

1 Resposta

plentz

Revise a url de conexao, usuario e senha, pois o problema eh que ele nao esta conseguindo conectar no banco.

Criado 31 de maio de 2007
Ultima resposta 1 de jun. de 2007
Respostas 1
Participantes 2