Hi Kate, It looks like some namespace changes were accidentally backed out of the documentation... When the Apache projects were required to do a cms wiki update in early 2013, the namespace that we were using for these xsd files was removed. We had to define a new namespace. Try this in your xml instead... (I highlighted the changes)
<entity-mappings xmlns="http://*openjpa.apache.org <http://openjpa.apache.org>*/ns/orm/extendable" xmlns:openjpa="http://*openjpa.apache.org <http://openjpa.apache.org>*/ns/orm" xmlns:orm="http://java.sun.com/xml/ns/persistence/orm" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.0"> I'm not positive that this change alone will get you what you are looking for... But, try this first and let us know the results. If you want to know the background information on this change in namespaces, you can reference this JIRA: https://issues.apache.org/jira/browse/OPENJPA-2368 FYI, as we are working to clean this up, we can make faster changes in trunk vs the 2.2.2 release. You referenced the 2.2.2 documentation, so I'm assuming you are using the 2.2.2 release. If you can experiment with trunk, the changes will come faster... But, let us know the final release that you would need these changes in. Thanks. Kevin On Wed, Apr 23, 2014 at 12:47 PM, Tierney, Mary K (GE Healthcare) < kate.tier...@ge.com> wrote: > I am trying to put together a prototype using an orm.xml file instead of > using attributes. One of the features I would like to use is the > @Externalizer/@Factory attributes. I have tried to follow the sample > provided in the openjpa manual ( > http://openjpa.apache.org/builds/2.2.2/apache-openjpa/docs/manual.pdf), > but I get an error during compile - "Cannot find the declaration of element > 'entity-mappings'." > > Based on the sample provided in the manual, I am using the following: > > <entity-mappings xmlns="http://www.apache.org/openjpa/ns/orm/extendable" > xmlns:openjpa="http://www.apache.org/openjpa/ns/orm" > xmlns:orm="http://java.sun.com/xml/ns/persistence/orm" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > version="2.0"> > > Can anyone provide any guidance on how to use this extendable schema? > Should I be specifying the schema location? If so, what is the schema > location? > > I am new to Java and OpenJPA, and am running out of search terms to Google. > > Any information you can provide would be appreciated. > > Thanks! > > > Kate Tierney > GE Healthcare IT > Lead Software Engineer > > T: 802-859-6071 > E: kate.tier...@ge.com<mailto:kate.tier...@ge.com> > www.gehealthcare.com<http://www.gehealthcare.com> > > 40 IDX Drive > South Burlington, VT 05403 > General Electric Company, GE Healthcare > >