<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi!<div><br></div><div>Thank you for your reply! Let me describe my setup:</div><div>I use Eclipse and added a clean (original) Tomcat 6.0.32 as Server Runtime.</div><div>My project is a dynamic web project. i added it as resource to the server.</div><div><br></div><div>In my persistence.xml i removed all configuration (openjpa.RuntimeUnenhancedClasses, openjpa.DynamicEnhancementAgent) to force the default-configuration.</div><div><br></div><div>When i start the server from eclipse successfully log in, switch to the administration-point that uses the JPA-Entities, i get the following warning in my log:</div><div><br></div><div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; ">120 VoestalpineUnit INFO [http-8080-12] openjpa.Runtime - Starting OpenJPA 2.1.0</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; ">420 VoestalpineUnit INFO [http-8080-12] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.MySQLDictionary" (MySQL 5.1.44 ,MySQL-AB JDBC Driver mysql-connector-java-5.0.7 ( $Date: 2007-03-09 22:13:57 +0100 (Fri, 09 Mar 2007) $, $Revision: 6341 $ )).</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; ">1043 VoestalpineUnit WARN [http-8080-12] openjpa.Enhance - Creating subclass for "[class com.voestalpine.model.DownloadCategory, class com.voestalpine.model.Resource]". This means that your application will be less efficient and will consume more memory than it would if you ran the OpenJPA enhancer. Additionally, lazy loading will not be available for one-to-one and many-to-one persistent attributes in types using field access; they will be loaded eagerly instead.</div></div><div><br></div><div><br></div><div>Am i wrong in thinking that this means OpenJPA uses Runtime-Enhancement here?</div><div><br></div><div>When i add </div><div>-javaagent:/absolute_path/trunk/web/WEB-INF/lib/openjpa-all-2.1.0.jar</div><div>to my run-configuration the server starts with a bunch of error messages (attached).</div><div><br></div><div>maybe you can give me some hints? what am i doing wrong?</div><div><br></div><div>thanks in advance,</div><div>matthias</div><div><br><div><div><div>Am 15.07.2011 um 11:34 schrieb Georgi Naplatanov:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>Hi Matthias.<br><br>I didn't understand why enhancement does not work for you.<br><br>For build time enhancement you can see OpenCms' build.xml as example <br>(task openjpac, openjpac tag).<br><br>For runtime enhancement you have to add <br>"-javaagent:/pat_to_openjpa/openjpa-version.jar" to command line that <br>starts JSP/Servlet container.<br><br>In case of application server you have to do nothing, it enhance <br>entities automatically.<br><br>Best regards<br>Georgi<br><br>On 07/15/2011 11:56 AM, � wrote:<br><blockquote type="cite">Hi!<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">I already had the book, but in fact didn't read it carefully enough to<br></blockquote><blockquote type="cite">find what i needed. Finally my Resource-Taging-Extension works like a<br></blockquote><blockquote type="cite">charm. To save the tags i use OpenJPA which in fact also works nicely<br></blockquote><blockquote type="cite">beside one fact: OpenJPA needs build-time enhancement to support lazy<br></blockquote><blockquote type="cite">loading. I simply don't get it to work. Runtime-enhancement does not<br></blockquote><blockquote type="cite">work as expected.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Although they say that they support on-deploy-enhancement it does not<br></blockquote><blockquote type="cite">really seem to work. The relevant chapter in the OpenJPA-Documentation:<br></blockquote><blockquote type="cite"><a href="http://openjpa.apache.org/builds/2.1.0/apache-openjpa-2.1.0/docs/manual/ref_guide_pc_enhance.html">http://openjpa.apache.org/builds/2.1.0/apache-openjpa-2.1.0/docs/manual/ref_guide_pc_enhance.html</a><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Maybe there is somebody who already worked with openjpa?<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">thanks in advance,<br></blockquote><blockquote type="cite">ma<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Am 08.07.2011 um 08:22 schrieb Schliemann, Kai:<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><blockquote type="cite">Hi Matthias,<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">welcome to the mailinglist.<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">There is a whole chapter about this subject in the OpenCms 7 book<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">written by Dan Liliedahl<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">(<a href="http://www.packtpub.com/opencms-7-development/book">http://www.packtpub.com/opencms-7-development/book</a>)<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">HTH<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">Best regards<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">Kai<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">-----Urspr�ngliche Nachricht-----<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">Von: <a href="mailto:opencms-dev-bounces@opencms.org">opencms-dev-bounces@opencms.org</a><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><<a href="mailto:opencms-dev-bounces@opencms.org">mailto:opencms-dev-bounces@opencms.org</a>><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">[mailto:opencms-dev-bounces@opencms.org] Im Auftrag von Matthias Steinb�ck<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">Gesendet: Donnerstag, 7. Juli 2011 10:24<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">An: <a href="mailto:opencms-dev@opencms.org">opencms-dev@opencms.org</a> <<a href="mailto:opencms-dev@opencms.org">mailto:opencms-dev@opencms.org</a>><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">Betreff: [opencms-dev] OpenCms Administrative Point Documentation<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">Hi!<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">I'm new on this mailinglist, so: hi there! :)<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">I'm not a newbie to OpenCms, but do not have much experience in<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">creating new administrative points in the administrative view.<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">Since I have to write a new administrative point, i'd like to ask, if<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">there are any examples or if there is documentation on this topic. In<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">the moment I'm hurdling with overwriting<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">CmsListDialog.executeListMultiActions and forwarding the list of<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">selected items to the next dialog...<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">any help, links or examples?<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">thanks a lot!<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">Matthias<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">_______________________________________________<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">This mail is sent to you from the opencms-dev mailing list<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">To change your list options, or to unsubscribe from the list, please visit<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><a href="http://lists.opencms.org/mailman/listinfo/opencms-dev">http://lists.opencms.org/mailman/listinfo/opencms-dev</a><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">_______________________________________________<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">This mail is sent to you from the opencms-dev mailing list<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">To change your list options, or to unsubscribe from the list, please visit<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><a href="http://lists.opencms.org/mailman/listinfo/opencms-dev">http://lists.opencms.org/mailman/listinfo/opencms-dev</a><br></blockquote></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">--<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Matthias Steinb�ck<br></blockquote><blockquote type="cite">Development<br></blockquote><blockquote type="cite">----------------------------------------------------<br></blockquote><blockquote type="cite">vi knallgrau GmbH<br></blockquote><blockquote type="cite">Pezzlgasse 7/1<br></blockquote><blockquote type="cite">A-1170 Wien<br></blockquote><blockquote type="cite">fon: 0043.1.5227637 (- 145)<br></blockquote><blockquote type="cite">fax: 0043.1.5227638<br></blockquote><blockquote type="cite"><a href="http://www.knallgrau.at">http://www.knallgrau.at</a><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Knallgrau Corporate Blog: <a href="http://www.knallgrau.at/company/weblog">http://www.knallgrau.at/company/weblog</a><br></blockquote><blockquote type="cite">Die besten Videos zu Web 2.0 und Social Media: <a href="http://www.knallgrau.tv">http://www.knallgrau.tv</a><br></blockquote><blockquote type="cite">----------------------------------------------------<br></blockquote><blockquote type="cite">*Wir erweitern unser Team:<br></blockquote><blockquote type="cite"><a href="mailto:*jobs@knallgrau.at">*jobs@knallgrau.at</a> <<a href="mailto:jobs@knallgrau.at">mailto:jobs@knallgrau.at</a>> Infos auf:<br></blockquote><blockquote type="cite"><a href="http://www.knallgrau.at/company/jobs">http://www.knallgrau.at/company/jobs</a><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">_______________________________________________<br></blockquote><blockquote type="cite">This mail is sent to you from the opencms-dev mailing list<br></blockquote><blockquote type="cite">To change your list options, or to unsubscribe from the list, please visit<br></blockquote><blockquote type="cite"><a href="http://lists.opencms.org/mailman/listinfo/opencms-dev">http://lists.opencms.org/mailman/listinfo/opencms-dev</a><br></blockquote><br>_______________________________________________<br>This mail is sent to you from the opencms-dev mailing list<br>To change your list options, or to unsubscribe from the list, please visit<br><a href="http://lists.opencms.org/mailman/listinfo/opencms-dev">http://lists.opencms.org/mailman/listinfo/opencms-dev</a></div></blockquote></div><br><div>
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div>-- </div><div><br></div><div>Matthias Steinböck</div><div>Development</div><div>----------------------------------------------------</div><div>vi knallgrau GmbH</div><div>Pezzlgasse 7/1</div><div>A-1170 Wien</div><div>fon: 0043.1.5227637 (- 145)</div><div>fax: 0043.1.5227638</div><div><a href="http://www.knallgrau.at">http://www.knallgrau.at</a></div><div><br></div><div>Knallgrau Corporate Blog: <a href="http://www.knallgrau.at/company/weblog">http://www.knallgrau.at/company/weblog</a></div><div>Die besten Videos zu Web 2.0 und Social Media: <a href="http://www.knallgrau.tv">http://www.knallgrau.tv</a></div></div><div><div><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div><div><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div>----------------------------------------------------<br></div></span><b>Wir erweitern unser Team: <br></b><a href="mailto:jobs@knallgrau.at">jobs@knallgrau.at</a> Infos auf: <a href="http://www.knallgrau.at/company/jobs" target="_blank">http://www.knallgrau.at/company/jobs</a> </div></div><div><br></div></span></div></div></div></div><br class="Apple-interchange-newline">
</div>
<br></div></div></body></html>