This week's book giveaway is in the Reactive Progamming forum.
We're giving away four copies of Reactive Streams in Java: Concurrency with RxJava, Reactor, and Akka Streams and have Adam Davis on-line!
See this thread for details.
Win a copy of Reactive Streams in Java: Concurrency with RxJava, Reactor, and Akka Streams this week in the Reactive Progamming forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Ganesh Patekar

HTML5, OData4J, JPA EclipseLink and MySQL

 
Ranch Hand
Posts: 34
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear All,

I am very new to the technologies HTML5 and OData4j. Currently I am in the project where we are using HTML5, OData4J, JPA EclipseLink and MySql. I had just developed the sample code in HTML5 and created JPA persistence with Mysql DB fields which have JPAproducer in a separate java file. I have done the servlet configuration in web.xml and assigned the Jpaproducer class in it. Now I want to know how to expose Odata URI, from which I need to view the DB fields in XML format. I had referred many forums and tried it in my application. But it all went in vein and it shows the error status code as 404 and 500 internal error stating that it could not find the proper classes which is configured in web.xml.

Kindly guide me how to configure web.xml to generate URI by exposing OData4j services and access that uri to GET and POST data's from HTML5?

please let me know the libraries to be installed in eclipse to achieve the above tasks.

Thanks in advance for sharing your knowledge.

Server: Apache Tomcat. I am Jersey services.

References : https://code.google.com/p/odata4j/
https://code.google.com/p/odata4j/wiki/Tomcat
http://stackoverflow.com/questions/16990252/how-to-expose-a-mysql-database-as-odata
https://code.google.com/r/samuelvetsch-actions/source/browse/odata4j-examples/
http://scn.sap.com/community/developer-center/cloud-platform/blog/2013/11/13/exposing-jpa-entity-as-odata-service-with-odata4j
https://github.com/anilallewar/OData-JPA-Example


Thanks and Regards,
Vignesh Karthick.
 
Time flies like an arrow. Fruit flies like a banana. Steve flies like a tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!