Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JBoss 5.0.1 GA + JPA 2.0 Deployment failed require help ASAP

 
debraj mallick
Ranch Hand
Posts: 188
Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all,
i am using Struts2.2.3.1, spring 3 and jpa 2, i am migrating my application to JBoss 5.0.1 GA from tomcat6, it works fine in tomcat 6, but when deploying to JBoss 5.0.1 GA,
i am getting exception like

my persistance.xml is


also i have copies the "persistence_2_0.xsd" file into the <JBOSS_51_INSTALL_DIR>/docs/schema (from http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd)
and added the

into <JBOSS_51_INSTALL_DIR>/server/default/deployers/metadata-deployer-jboss-beans.xml


 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did you create and deploy as *-ds.xml file that defines the debraj-db datasource?
 
debraj mallick
Ranch Hand
Posts: 188
Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi Peter,
thanz for your valuable time.

no i didnot deploy as *-ds.xml file,
what should i do?
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Read the docs:
http://docs.jboss.org/jbossas/docs/Server_Configuration_Guide/4/html-single/index.html#Connectors_on_JBoss-Configuring_JDBC_DataSources

Example *-ds.xml files for various databases can be found at jboss_home/docs/examples/jca
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic