aspose file tools
The moose likes EJB and other Java EE Technologies and the fly likes EJB3 in action - Chapter 2 EAR file error Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Reply locked New topic
Author

EJB3 in action - Chapter 2 EAR file error

Abhay Agarwal
Ranch Hand

Joined: Feb 29, 2008
Posts: 693

Hi

I am trying to run EJB3 in action Chapter 2 code.

I am using Jboss version 5.
Instead of using default DB(hypersonic), i configured MySQL DB with my JBOSS.

I ran ant script to build an EAR file for Chapter 2 code and then i placed the EAR file on Jboss'deploy folder. On placing EAR file, i get below mentioned error on command prompt

"Deployment "vfszip:/C:/jboss-5.0.1.GA/server/default/deploy/chapter2.ear/" is in error due to the following reason(s): org.jboss.xb.binding.JBossXBRuntimeException: Failed to resolve schema nsURI= location=persistence"


I found that my persistence.xml is having Hypersonic DB settings.




Please let me how can i configure my persistence.xml according to MySQL so that Chapter 2 EAR file is deployed successfully

Thanks


Oracle certified Java 7 Programmer, SCJA 1.0, SCJP 5.0, SCWCD 5.0, Oracle SQL Fundamentals I
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 8142
    
  52

Abhay,

Please do not post the same question in multiple forums. Lets continue this discussion in your duplicate thread here http://www.coderanch.com/t/487624/EJB-Certification-SCBCD/certification/EJB-action-Chapter-EAR-file


[My Blog] [JavaRanch Journal]
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: EJB3 in action - Chapter 2 EAR file error
 
Similar Threads
How to Configuring mysql db with JPA aplication?
EJB3 persistence unit setup in JBoss
jpa is not working
Isolation of EARs (and EJB3)
EJB in action - Chapter 2 EAR file error