Welcome Guest  |  Register  |  Login
Login Name Password
  Search  
  Index  | Recent Threads  | Unanswered Threads  | Who's Online  | Help


Quick Go »

No member browsing this thread
Thread Status: Active
Total posts in this thread: 1
[ Jump to Last Post ]
Post new Thread
Author
Previous Thread This topic has been viewed 1862 times and has 0 replies Next Thread
Male jpboudreault
Newbie




Joined: Feb 16, 2009
Post Count: 7
Status: Offline
Reply to this Post  Reply with Quote 
Cannot find the declaration of element 'jdo' from a fresh copy of datanucleus-samples-jdo-tutorial-1.0.0

I just got a fresh copy of the datanucleus-sample from the web site ,added the needed jars and I get an unexpected warning.

You can see my classpath in the log, all the needed jar are present.

This is happening on both Linux, OSX and Windows.

I am using ant, and calling the target 'enhance' to get this error. The package.jdo from sourceforge was not altered

[enhancer] DataNucleus Enhancer (version 1.1.0) : Enhancement of classes
[enhancer]
[enhancer] DataNucleus Enhancer : Classpath
[enhancer] >> /home/leconcombre/downloads/datanucleus-samples-jdo-tutorial-1.0.0/target/classes
[enhancer] >> /home/leconcombre/downloads/datanucleus-samples-jdo-tutorial-1.0.0/lib/com.springsource.org.objectweb.asm-3.1.0.jar
[enhancer] >> /home/leconcombre/downloads/datanucleus-samples-jdo-tutorial-1.0.0/lib/com.springsource.org.objectweb.asm.commons-3.1.0.jar
[enhancer] >> /home/leconcombre/downloads/datanucleus-samples-jdo-tutorial-1.0.0/lib/datanucleus-core-1.1.0.jar
[enhancer] >> /home/leconcombre/downloads/datanucleus-samples-jdo-tutorial-1.0.0/lib/datanucleus-enhancer-1.1.0.jar
[enhancer] >> /home/leconcombre/downloads/datanucleus-samples-jdo-tutorial-1.0.0/lib/jdo2-api-2.3-SNAPSHOT.jar
[enhancer] >> /home/leconcombre/downloads/datanucleus-samples-jdo-tutorial-1.0.0
[enhancer]
[enhancer] 26-Feb-2009 8:47:41 AM org.datanucleus.metadata.xml.AbstractMetaDataHandler error
[enhancer] WARNING: MetaData Parser encountered an error in file "file:/home/leconcombre/downloads/datanucleus-samples-jdo-tutorial-1.0.0/target/classes/org/datanucleus/samples/jdo/tutorial/package.jdo" at line 5, column 6 : cvc-elt.1: Cannot find the declaration of element 'jdo'. - Please check your specification of DTD and the validity of the MetaData XML that you have specified.

I also tried to remove the dtd validation performed by datanucleus in order to get rid of the warning by adding
datanucleus.metadata.validate=false to datanucleus.properties but the warning still shows up.

Any ideas?
[Feb 26, 2009 3:34:27 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
[ Jump to Last Post ]
Show Printable Version of Thread  Post new Thread