Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

EJB in action - Chapter 2 EAR file error

 
Ranch Hand
Posts: 1376
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

My persistence.xml (for O'reilly, but working on jboss 5.x) looks like the following:



Then, under the JBOSS server directory"../Server/Default/Deploy" directory, i put my "titan-ds.xml" file that looks
like the following:



Note that when I've switched to Jboss 5.x...I had to rewrite the XML files... you cannot apparently using the
old XML for version 4.x with the new version...

Dave
 
    Bookmark Topic Watch Topic
  • New Topic