tag:blogger.com,1999:blog-6932005449976239416.post5298736099142825892..comments2019-02-26T02:03:40.540-08:00Comments on Marcelo Ochoa's personal blog: Is Oracle 11g REST ready?Marcelo Ochoahttp://www.blogger.com/profile/03410152050718914588noreply@blogger.comBlogger11125tag:blogger.com,1999:blog-6932005449976239416.post-27533809971454939552009-09-28T13:32:51.655-07:002009-09-28T13:32:51.655-07:00Hi, Marcello,
Thanks so much for your reply. I ap...Hi, Marcello,<br /><br />Thanks so much for your reply. I appreciated your time.<br /><br />After I modified the code (typo error)as you suggested and rebuild by ant, the following error generated:<br /><br />generate-classes:<br /> [javac] Compiling 249 source files to /opt/oracle/restletxmldb/restlet/build/temp/gae/temp/classes/org.restlet<br /> [javac] /opt/oracle/restletxmldb/restlet/build/temp/gae/modules/org.restlet/src/org/restlet/engine/io/ByteUtils.java:136: cannot find symbol<br /> [javac] symbol : method getTaskService()<br /> [javac] location: class org.restlet.Application<br /> [javac] application.getTaskService().execute(new Runnable() {<br /> [javac] ^<br /> [javac] /opt/oracle/restletxmldb/restlet/build/temp/gae/modules/org.restlet/src/org/restlet/engine/io/ByteUtils.java:189: cannot find symbol<br /> [javac] symbol : method getTaskService()<br /> [javac] location: class org.restlet.Application<br /> [javac] application.getTaskService().execute(new Runnable() {<br /> [javac] ^<br /> [javac] Note: Some input files use or override a deprecated API.<br /> [javac] Note: Recompile with -Xlint:deprecation for details.<br /> [javac] 2 errors<br /><br /><br />Could you give me more suggestions? Thanks a lot.<br /><br />TianAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-6932005449976239416.post-65893154684642452272009-09-25T03:16:44.797-07:002009-09-25T03:16:44.797-07:00Hi Tian:
There is typo on that code, I have repo...Hi Tian:<br /> There is typo on that code, I have reported the issue on restlet code list.<br /> Apply this patch to solve the compilation error:<br />Index: io/ByteUtils.java<br />===================================================================<br />--- io/ByteUtils.java (revision 5351)<br />+++ io/ByteUtils.java (working copy)<br />@@ -251,7 +251,7 @@<br /> */<br /> public static InputStream getStream(final Representation representation) {<br /> if (Edition.CURRENT != Edition.GAE) {<br />- // [ifndef gae] method<br />+ // [ifndef gae]<br /> if (representation == null) {<br /> return null;<br /> }<br /><br /> If you have other problem feel free to drop me an email at marcelo.ochoa -at- gmail<br /> Best regards, Marcelo.Marcelo Ochoahttps://www.blogger.com/profile/03410152050718914588noreply@blogger.comtag:blogger.com,1999:blog-6932005449976239416.post-10311680343086724192009-09-24T07:12:53.692-07:002009-09-24T07:12:53.692-07:00Marcelo,
Thanks for your quick message. I prepare...Marcelo,<br /><br />Thanks for your quick message. I prepared and downloaded based on the following requirement:<br /> * JDK 1.5 (included at your ORACLE_HOME/jdk directory)<br /> * Ant 1.7.0+<br /> * an 11g target database, tested with 11.1.0.6.0+<br /> * By now Oracle Restlet Adapter is only available through SVN access or using nightly builds, checkout SVN source or download an snapshop version.<br />svn checkout http://restlet.tigris.org/svn/restlet/trunk restlet --username guest<br /><br />If I set Java version as 1.6 above, and I run ant at build directory, I got:<br />generate-classes:<br /> [mkdir] Created dir: /opt/oracle/restletxmldb/restlet/build/temp/gae/temp/cl<br />asses<br /> [mkdir] Created dir: /opt/oracle/restletxmldb/restlet/build/temp/gae/temp/cl<br />asses/org.restlet<br /> [javac] Compiling 249 source files to /opt/oracle/restletxmldb/restlet/build<br />/temp/gae/temp/classes/org.restlet<br /> [javac] /opt/oracle/restletxmldb/restlet/build/temp/gae/modules/org.restlet/<br />src/org/restlet/engine/io/ByteUtils.java:262: illegal start of expression<br /> [javac] public static OutputStream getStream(WritableByteChannel writabl<br />eChannel) {<br /> [javac] ^<br /> [javac] 1 error<br /><br />BUILD FAILED at 4 minutes.<br /><br /><br /><br />If I use java version 1.5.0-04 version, I got:<br /><br /> [javadoc] Copying file /opt/oracle/restletxmldb/restlet/build/tmpl/javadocs/stylesheet.css to file /opt/oracle/restletxmldb/restlet/build/temp/jse/temp/docs/ext/stylesheet.css...<br /> [javadoc] Building index for all the packages and classes...<br /> [javadoc] Building index for all classes...<br /> [javadoc] Generating /opt/oracle/restletxmldb/restlet/build/temp/jse/temp/docs/ext/help-doc.html...<br /> [javadoc] 1 warning<br /><br />generate:<br /><br />verify-ant:<br /><br />verify-tests:<br /> [junit] Running org.restlet.test.RestletTestSuite<br /> [junit] Tests run: 125, Failures: 1, Errors: 0, Time elapsed: 26.212 sec<br /><br />BUILD FAILED<br />/opt/oracle/restletxmldb/restlet/build/build.xml:203: The following error occurred while executing this line:<br />/opt/oracle/restletxmldb/restlet/build/build.xml:142: The following error occurred while executing this line:<br />/opt/oracle/restletxmldb/restlet/build/build.xml:144: The following error occurred while executing this line:<br />/opt/oracle/restletxmldb/restlet/build/temp/jse/build.xml:1727: Test org.restlet.test.RestletTestSuite failed<br /> at 2 minute 41 second.<br /><br /><br /><br />So I am really looking forward to have it pass ant build and I can use it.<br /><br />Please give me some suggestions how to successfully build it.<br /><br />Thanks a lot<br /><br />TianAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-6932005449976239416.post-74492634426559726052009-09-24T05:30:24.668-07:002009-09-24T05:30:24.668-07:00Hi XT:
If you checkout latest SVN trunk version ...Hi XT:<br /> If you checkout latest SVN trunk version you can compile and generate all maven's artifact which are updated to latest Restlet refactoring.<br /> I had tested latest SVN code and compile fine, I'll update Restlet wiki entry:<br />http://wiki.restlet.org/docs_2.0/13-restlet/28-restlet/84-restlet/132-restlet.html<br /> with updated instruction for compiling and installing from SVN sources.<br /> In the meantime if you checkout the SVN code going to build directory and running ant without argument will do the job.<br /> Best regards, Marcelo.Marcelo Ochoahttps://www.blogger.com/profile/03410152050718914588noreply@blogger.comtag:blogger.com,1999:blog-6932005449976239416.post-69956956646360905612009-09-23T14:35:36.677-07:002009-09-23T14:35:36.677-07:00Marcelo,
It has been a while since the last post....Marcelo,<br /><br />It has been a while since the last post. I am still waiting for your fix of version conflict. I still can not build it up. The exception is something like:<br /><br />[INFO] Compilation failure<br /><br />/opt/oracle/restletxmldb/ojvm-restlet/src/main/java/com/noelios/restlet/ext/xdb/ServerServlet.java:[21,38] cannot find symbol<br />symbol : class ApplicationContext<br />location: package com.noelios.restlet.application<br /><br /><br />Could you please send me an updated document to try it out.<br /><br />Thanks a lot!Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-6932005449976239416.post-20559472021187463792009-08-21T07:07:51.832-07:002009-08-21T07:07:51.832-07:00Hi Marcelo,
Thanks for your reply. Yeah, I guess ...Hi Marcelo,<br /><br />Thanks for your reply. Yeah, I guess the problem is in the api version. Could you please let me know when the version is compatible I can go ahead to install the adapter on our oracle db 11 environment.<br /><br />I appreciate your help and time.<br /><br />Thanks again.<br /><br />TianAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-6932005449976239416.post-65801254481426150802009-08-19T06:33:42.970-07:002009-08-19T06:33:42.970-07:00Hi Tian:
Are you using latest CVS code of Lucene...Hi Tian:<br /> Are you using latest CVS code of Lucene Restlet integration?<br /> I didn't check the code with latest Restlet code (trunk) it seem be an error of using Restlet's deprecated API.<br /> I'll check the code ASAP with latest Restlet SVN versión.<br /> Best regards, Marcelo.Marcelo Ochoahttps://www.blogger.com/profile/03410152050718914588noreply@blogger.comtag:blogger.com,1999:blog-6932005449976239416.post-16681905696660800772009-08-18T08:00:12.631-07:002009-08-18T08:00:12.631-07:00Marcelo,
Thanks for your step by step information...Marcelo,<br /><br />Thanks for your step by step information. However, when I followed the instruction and doing mvn install, I got this compile exception. Could you please give me some help.<br /><br />Thanks.<br /><br />[INFO] Compiling 28 source files to /opt/oracle/restletxmldb/ojvm-restlet/target/classes<br />[INFO] ------------------------------------------------------------------------<br />[ERROR] BUILD FAILURE<br />[INFO] ------------------------------------------------------------------------<br />[INFO] Compilation failure<br /><br />/opt/oracle/restletxmldb/ojvm-restlet/src/main/java/com/noelios/restlet/ext/xdb/ServletWarClientHelper.java:[21,33] cannot find symbol<br />symbol : class WarClientHelper<br />location: package com.noelios.restlet.local<br /><br />/opt/oracle/restletxmldb/ojvm-restlet/src/main/java/com/noelios/restlet/ext/xdb/ServletWarClientHelper.java:[50,44] cannot find symbol<br />symbol: class WarClientHelper<br />public class ServletWarClientHelper extends WarClientHelper {<br /><br />/opt/oracle/restletxmldb/ojvm-restlet/src/main/java/com/noelios/restlet/ext/xdb/ServletCall.java:[23,32] cannot find symbol<br />symbol : class ChunkedInputStream<br />location: package com.noelios.restlet.util<br />..................<br />[INFO] ------------------------------------------------------------------------<br />[INFO] For more information, run Maven with the -e switch<br />[INFO] ------------------------------------------------------------------------<br />[INFO] Total time: 5 seconds<br />[INFO] Finished at: Tue Aug 18 10:54:51 EDT 2009<br />[INFO] Final Memory: 11M/128M<br />[INFO] ------------------------------------------------------------------------Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-6932005449976239416.post-49835561269727870862008-03-18T00:57:00.000-07:002008-03-18T00:57:00.000-07:00This comment has been removed by a blog administrator.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-6932005449976239416.post-17110404107796476972008-02-24T15:38:00.000-08:002008-02-24T15:38:00.000-08:00Hi Kuassi: Thanks for your comment. IMO Java in th...Hi Kuassi:<BR/> Thanks for your comment.<BR/> IMO Java in the database lets Oracle a competitive value against other database vendors to quickly implement and get ready new technologies like RESTful WS.<BR/> Users do not need to wait for the technology implemented into the next release, only need to choose the framework adapt them and start using it, reducing the time to market a lot.<BR/> Best regards, Marcelo.Marcelo Ochoahttps://www.blogger.com/profile/03410152050718914588noreply@blogger.comtag:blogger.com,1999:blog-6932005449976239416.post-68479119497864784592008-02-22T14:27:00.000-08:002008-02-22T14:27:00.000-08:00Marcelo, this is fabulous.You have once again prov...Marcelo, this is fabulous.<BR/>You have once again proven that the sky is the limit for the possibilities that Java in the database permits.<BR/><BR/>Kuassi http://db360.blogspot.comKuassi Mensahhttps://www.blogger.com/profile/17181349306854451284noreply@blogger.com