File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JBoss/WildFly and the fly likes JBoss 5.0.1 GA + JPA 2.0  Deployment failed require help ASAP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "JBoss 5.0.1 GA + JPA 2.0  Deployment failed require help ASAP" Watch "JBoss 5.0.1 GA + JPA 2.0  Deployment failed require help ASAP" New topic
Author

JBoss 5.0.1 GA + JPA 2.0 Deployment failed require help ASAP

debraj mallick
Ranch Hand

Joined: Mar 08, 2011
Posts: 188

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

Joined: May 14, 2008
Posts: 5778
    
    7

Did you create and deploy as *-ds.xml file that defines the debraj-db datasource?


JBoss In Action
debraj mallick
Ranch Hand

Joined: Mar 08, 2011
Posts: 188

hi Peter,
thanz for your valuable time.

no i didnot deploy as *-ds.xml file,
what should i do?
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5778
    
    7

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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: JBoss 5.0.1 GA + JPA 2.0 Deployment failed require help ASAP
 
Similar Threads
Encript the password in jboss
Error creating bean with name 'datasource': Invocation of init method failed; comp not bound
How can i tell Hibernate not to fetch files from internet
Error starting up my jboss
Class Loading Configuration