| Autor |
Mensagem |
![[Post New]](/templates/default/images/icon_minipost_new.gif) 13/09/2010 16:14:42
|
Metaleiro
Virtual Machine Man
![[Avatar]](/images/avatar/c2155acc6d5bcda7debfb19c3abef4af.jpg)
Membro desde: 06/07/2006 10:55:54
Mensagens: 671
Localização: São Bernardo do Campo - SP
Offline
|
Estou com o seguinte erro, alguém poderia ajudar ?
Desde já agradeço !
This message was edited 2 times. Last update was at 13/09/2010 20:23:29
|
"Why, Mr. Anderson? Why do you do it? Why get up? Why keep fighting? Do you believe you're fighting for something? For more than your survival? Can you tell me what it is? Do you even know? Is it freedom? Or truth? Perhaps peace? Yes? No? Could it be for love? Illusions, Mr. Anderson. Vagaries of perception. The temporary constructs of a feeble human intellect trying desperately to justify an existence that is without meaning or purpose. And all of them as artificial as the Matrix itself, although only a human mind could invent something as insipid as love. You must be able to see it, Mr. Anderson. You must know it by now. You can?t win. It?s pointless to keep fighting. Why, Mr. Anderson? Why? Why do you persist?"
Neo :
-Because is my choice
|
|
|
 |
|
|
![[Post New]](/templates/default/images/icon_minipost_new.gif) 13/09/2010 16:20:10
|
Guevara
GUJ Master
![[Avatar]](/images/avatar/debb1f141bb07971081da87bb43c269b.png)
Membro desde: 24/02/2009 17:56:09
Mensagens: 1023
Offline
|
Olá!
Crie uma pasta META-INF dentro da pasta /src do seu projeto, lá dentro da META-INF vc cria seu persistence.xml, e dentro desse arquivo vc coloca a configuração:
Substitua o usuario, senha e banco de acordo com os seus dados. Eu uso Hibernate e JPA, ai vc coloca de acordo com o que vc está usando, mas o esqueleto do arquivo é esse.
Abraço!
|
Analista de Sistemas e desenvolvedor WEB Java e Python
http://twitter.com/eguevara2012 |
|
|
 |
![[Post New]](/templates/default/images/icon_minipost_new.gif) 13/09/2010 16:34:22
|
Metaleiro
Virtual Machine Man
![[Avatar]](/images/avatar/c2155acc6d5bcda7debfb19c3abef4af.jpg)
Membro desde: 06/07/2006 10:55:54
Mensagens: 671
Localização: São Bernardo do Campo - SP
Offline
|
Muito obrigado, estava na pasta errada, porém quando criei a pasta gerou o seguinte erro :
Muito obrigado pela ajuda !
|
"Why, Mr. Anderson? Why do you do it? Why get up? Why keep fighting? Do you believe you're fighting for something? For more than your survival? Can you tell me what it is? Do you even know? Is it freedom? Or truth? Perhaps peace? Yes? No? Could it be for love? Illusions, Mr. Anderson. Vagaries of perception. The temporary constructs of a feeble human intellect trying desperately to justify an existence that is without meaning or purpose. And all of them as artificial as the Matrix itself, although only a human mind could invent something as insipid as love. You must be able to see it, Mr. Anderson. You must know it by now. You can?t win. It?s pointless to keep fighting. Why, Mr. Anderson? Why? Why do you persist?"
Neo :
-Because is my choice
|
|
|
 |
![[Post New]](/templates/default/images/icon_minipost_new.gif) 13/09/2010 16:47:52
|
Guevara
GUJ Master
![[Avatar]](/images/avatar/debb1f141bb07971081da87bb43c269b.png)
Membro desde: 24/02/2009 17:56:09
Mensagens: 1023
Offline
|
Vc está usando Hibernate + JPA? Se não estiver vc precisa adaptar o persistence.xml de acordo com o que estiver usando. Existem vários exemplos para pegar como referência.
Vc esta usando EJB3?
Vai ter q adaptar para isso ai. Como eu ainda não usei o EJB3 não vou saber te orientar na configuração, mas vc acha isso pesquisando no fórum ou no google.
This message was edited 1 time. Last update was at 13/09/2010 16:50:07
|
Analista de Sistemas e desenvolvedor WEB Java e Python
http://twitter.com/eguevara2012 |
|
|
 |
![[Post New]](/templates/default/images/icon_minipost_new.gif) 13/09/2010 20:22:51
|
Metaleiro
Virtual Machine Man
![[Avatar]](/images/avatar/c2155acc6d5bcda7debfb19c3abef4af.jpg)
Membro desde: 06/07/2006 10:55:54
Mensagens: 671
Localização: São Bernardo do Campo - SP
Offline
|
Obrigado pela ajuda, foi o que você falou !
|
"Why, Mr. Anderson? Why do you do it? Why get up? Why keep fighting? Do you believe you're fighting for something? For more than your survival? Can you tell me what it is? Do you even know? Is it freedom? Or truth? Perhaps peace? Yes? No? Could it be for love? Illusions, Mr. Anderson. Vagaries of perception. The temporary constructs of a feeble human intellect trying desperately to justify an existence that is without meaning or purpose. And all of them as artificial as the Matrix itself, although only a human mind could invent something as insipid as love. You must be able to see it, Mr. Anderson. You must know it by now. You can?t win. It?s pointless to keep fighting. Why, Mr. Anderson? Why? Why do you persist?"
Neo :
-Because is my choice
|
|
|
 |
|
|