Last week, we had the author of TDD for a Shopping Website LiveProject. Friday at 11am Ranch time, Steven Solomon will be hosting a live TDD session just for us. See for the agenda and registration link

Micra Micron

Greenhorn
+ Follow
since Feb 24, 2010
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Micra Micron

Hello I'm new in JPA, and trying to run a simple example.
Eclipse is telling me that something is wrong with <provider> element. Please help me to understand what exactly is wrong there.

ERROR: "Description Resource Path Location Type
cvc-complex-type.2.4.a: Invalid content was found starting with element 'provider'. One of '{"http://java.sun.com/xml/ns/persistence":class, "http://java.sun.com/xml/ns/persistence":exclude-unlisted-classes, "http://java.sun.com/xml/ns/persistence":properties}' is expected. persistence.xml /SimpleJPATest/src/META-INF line 5 XML Problem"


persistence.xml
=============
<?xml version="1.0" encoding="UTF-8"?>
<persistence version="1.0" xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd">
<persistence-unit name="SimpleJPATest" transaction-type="RESOURCE_LOCAL">
<class>model.User</class>
<provider>oracle.toplink.essentials.PersistenceProvider</provider>
<properties>
<property name="toplink.logging.level" value="FINEST"/>
<property name="toplink.jdbc.driver" value="org.apache.derby.jdbc.ClientDriver"/>
<property name="toplink.jdbc.url" value="jdbc:derby://localhost:1527/sample;create=true"/>
<property name="toplink.jdbc.user" value="dali"/>
<property name="toplink.jdbc.password" value="dali"/>
</properties>
</persistence-unit>
</persistence>


Thank you in advance,
Micra.