Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to get Eclipselink samples to work: "student" and "mysports" samples
    text
    copied!<p>I've been trying to get the following Eclipselink samples to work, with less than 0% success:</p> <p>A) <a href="http://wiki.eclipse.org/EclipseLink/Examples/JPARS/Simple" rel="nofollow">http://wiki.eclipse.org/EclipseLink/Examples/JPARS/Simple</a></p> <p>B) git://git.eclipse.org/gitroot/eclipselink/examples/mysports.git</p> <p>Both samples are quite recent and should work "out of the box". My results: A) starts and deploys on glassfish, but application is totally unresponsive B) does not deploy, since glassfish does not find the data-source mentioned in the persistence xml's: java:global/mysports</p> <p>For both I tried to get information on how they are supposed to work, but after two days of searching for documentation, I can safely state: there is literally NOTHING documented.</p> <p>For A) I am totally clueless, there is nothing to configure for this sample, but the provided URLs for interacting with the REST service always return with 404 and no log or error message whatsoever.</p> <p>For B) Beside the broken data source (I guess my fault), I tried setting default JDBC data-sources, to see if at least the REST service itself works: it looks dead, I get exceptions when opening the sample JSF pages (the reference variables inside the pages all resolve to NULL).</p> <p>Anybody ever tried to actually run these samples? I am totally frustrated after many hours of being far away to anything testable... </p> <p>Maybe some questions as a starting point: - How does the JPA-RS get registered in the appserver? how do I tell if it was at all? And which URL it maps to? - How does this magic "java:global/mysports" data source work? - The maven configuration acts funny, I couldn't get any of the two samples to properly debug (no breakpoints were hit at any point in time). Any ideas?</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload