openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tim Holloway <>
Subject Re: Dumb User Question
Date Mon, 06 Nov 2006 21:34:27 GMT
Abe White wrote:
> The error message is from the XML parser; we don't have much control 
> over it.  How about posting your persistence.xml?
> _______________________________________________________________________
> Notice:  This email message, together with any attachments, may contain
> information  of  BEA Systems,  Inc.,  its subsidiaries  and  affiliated
> entities,  that may be confidential,  proprietary,  copyrighted  and/or
> legally privileged, and is intended solely for the use of the individual
> or entity named in this message. If you are not the intended recipient,
> and have received this message in error, please immediately return this
> by email and then delete it.
If it looks familiar, it's because for starters I just copied the 
sample. Once get something parseable, then I'll adapt it.

I looked over the openjpa sources, and it appears that the XML is being 
handled in nonvalidating mode. I think that attaching the DTD might 
help. A custom entity resolver allows you to embed the DTD into the JAR 
instead of making the dreaded trip to the Internet.

I don't claim the be the all-master of Java XML parsing, but I've gotten 
more than my share of practice in it lately, if I can be of assistance.

<?xml version="1.0"?>
<persistence xmlns="">
  <persistence-unit name="openjpa">
      <property name="openjpa.ConnectionURL" 
      <property name="openjpa.ConnectionDriverName" 
      <property name="openjpa.ConnectionUserName" value="sa"/>
      <property name="openjpa.ConnectionPassword" value=""/>
      <property name="openjpa.Log" value="DefaultLevel=WARN, Tool=INFO"/>

View raw message