{"id":41,"date":"2012-03-25T22:26:38","date_gmt":"2012-03-25T21:26:38","guid":{"rendered":"http:\/\/www.voldrich.net\/?p=41"},"modified":"2020-03-27T17:00:21","modified_gmt":"2020-03-27T15:00:21","slug":"how-to-enable-jpa-2-0-on-weblogic","status":"publish","type":"post","link":"https:\/\/www.voldrich.net\/index.php\/2012\/03\/25\/how-to-enable-jpa-2-0-on-weblogic\/","title":{"rendered":"How to enable JPA 2.0 on Weblogic"},"content":{"rendered":"<p>I am experimenting with JPA 2.0 using eclipselink. When I tried to call my webservice, weblogic thrown a nasty error reporting &#8220;unknown method&#8221; when trying to call EntityManager method.<\/p>\n<p>Well I asked google &#8230; it seems that Weblogic is shipped with JPA 1.0 by default. The official doccumentation on weblogic is confusing and provides code which is too complicated for what it really does. All you really to do is modify startWebLogic.cmd\u00a0file:<\/p>\n<p>[sourcecode]<br \/>\nc:\\Oracle\\Middleware\\user_projects\\domains\\base_domain\\bin\\startWebLogic.cmd<br \/>\n[\/sourcecode]<\/p>\n<p>and add to\u00a0beginning:<\/p>\n<p>[sourcecode]<br \/>\nSET wls_modules=c:\\Oracle\\Middleware\\modules\\<br \/>\nset PRE_CLASSPATH=%wls_modules%javax.persistence_1.0.0.0_2-0-0.jar;%wls_modules%com.oracle.jpa2support_1.0.0.0_2-0.jar<br \/>\necho PRE_CLASSPATH=%PRE_CLASSPATH%<br \/>\n[\/sourcecode]<br \/>\nBe sure to use your paths. Restart weblogic and you are good to go.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I am experimenting with JPA 2.0 using eclipselink. When I tried to call my webservice, weblogic thrown a nasty error reporting &#8220;unknown method&#8221; when trying to call EntityManager method. Well I asked google &#8230; it seems that Weblogic is shipped with JPA 1.0 by default. The official doccumentation on weblogic is confusing and provides code [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"templates\/template-full-width.php","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[8],"class_list":["post-41","post","type-post","status-publish","format-standard","hentry","category-development","tag-weblogic-jpa"],"_links":{"self":[{"href":"https:\/\/www.voldrich.net\/index.php\/wp-json\/wp\/v2\/posts\/41","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.voldrich.net\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.voldrich.net\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.voldrich.net\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.voldrich.net\/index.php\/wp-json\/wp\/v2\/comments?post=41"}],"version-history":[{"count":1,"href":"https:\/\/www.voldrich.net\/index.php\/wp-json\/wp\/v2\/posts\/41\/revisions"}],"predecessor-version":[{"id":711,"href":"https:\/\/www.voldrich.net\/index.php\/wp-json\/wp\/v2\/posts\/41\/revisions\/711"}],"wp:attachment":[{"href":"https:\/\/www.voldrich.net\/index.php\/wp-json\/wp\/v2\/media?parent=41"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.voldrich.net\/index.php\/wp-json\/wp\/v2\/categories?post=41"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.voldrich.net\/index.php\/wp-json\/wp\/v2\/tags?post=41"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}