<div dir="ltr">Hi again, <br><br>(Sorry for swithing email account, but the mailing list doesn't work at work.)<div><br></div><div>I did this mistake when I lighted my code before sending it. (there is client's name in package name ^^')</div>
<div>Before reuploading "myCore", modules worked well. So xsd configuration might be correct. </div><div>It seems to be the moment when "commonElements.xsd" is missing, a test sends a null pointer exception. </div>
<div><br></div><div>Regards, </div><div>Matthias Griselle<br><div><br></div><div><br></div>
</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/9/26 Filip Kratochvil <span dir="ltr"><<a href="mailto:filip.kratochvil@nelasoft.cz" target="_blank">filip.kratochvil@nelasoft.cz</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div lang="CS" link="blue" vlink="purple"><div><p class="MsoNormal"><span style="color:#1f497d">Hi Matthias,</span></p><p class="MsoNormal"><span style="color:#1f497d"> </span></p>
<p class="MsoNormal"><span style="color:#1f497d">at first sight mistake can be in the file myModule.xsd at the line 18:</span></p><p class="MsoNormal"><span style="color:#1f497d"> </span></p><p class="MsoNormal"><span style="color:#1f497d"><xsd:element name="commonElements" type="OpenCmscommonElements" /></span></p>
<p class="MsoNormal"><span style="color:#1f497d"> </span></p><p class="MsoNormal"><span style="color:#1f497d">You are trying to insert element with the bad name. Try to repair it:</span></p><p class="MsoNormal"><span style="color:#1f497d"><xsd:element name="commonElements" type="<b>OpenCmsCommonElements</b>" /></span></p>
<p class="MsoNormal"><span style="color:#1f497d"> </span></p><p class="MsoNormal"><span style="color:#1f497d">But i´m not sure, i haven´t tried it.</span></p><p class="MsoNormal"><span style="color:#1f497d"> </span></p><div>
<p class="MsoNormal"><span style="color:#1f497d">--<br>Regards<br>Filip Kratochvil<br>------------------------------------------------<br>NELASOFT Technologies, s.r.o.<br>Mob: </span><a href="tel:%2B420%20777%20366%20998" target="_blank">+420 777 366 998</a><span style="color:#1f497d"><br>
E-mail: </span><a href="mailto:filip.kratochvil@nelasoft.cz" target="_blank">filip.kratochvil@nelasoft.cz</a><span style="color:#1f497d"><br>Web: </span><a href="http://www.nelasoft.cz" target="_blank">www.nelasoft.cz</a><span style="color:#1f497d"></span></p>
</div><p class="MsoNormal"><span style="color:#1f497d"> </span></p><div><div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0cm 0cm 0cm"><p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> <a href="mailto:opencms-dev-bounces@opencms.org" target="_blank">opencms-dev-bounces@opencms.org</a> [<a href="mailto:opencms-dev-bounces@opencms.org" target="_blank">mailto:opencms-dev-bounces@opencms.org</a>] <b>On Behalf Of </b>Griselle Matthias<br>
<b>Sent:</b> Thursday, September 26, 2013 3:31 PM<br><b>To:</b> <a href="mailto:opencms-dev@opencms.org" target="_blank">opencms-dev@opencms.org</a><br><b>Subject:</b> [opencms-dev] How to kill OpenCms 8.5.2 ! (Bug ?)</span></p>
</div></div><div><div class="h5">
<p class="MsoNormal"> </p><p class="MsoNormal"><span lang="EN-US">Hi everyone, </span></p><p class="MsoNormal"><span lang="EN-US"> </span></p><p class="MsoNormal"><span lang="EN-US">If you want to totally destroy OpenCMS, here is how to do : </span></p>
<p><span lang="EN-US"><span>-<span style="font:7.0pt "Times New Roman""> </span></span></span><span lang="EN-US">Create a module “myCore”, with a file “schemas/commonElements.xsd”</span></p>
<p><span lang="EN-US"><span>-<span style="font:7.0pt "Times New Roman""> </span></span></span><span lang="EN-US">Create a module “myNewModule”, width an entity “schemas/myModule.xsd”</span></p>
<p><span lang="EN-US"><span>-<span style="font:7.0pt "Times New Roman""> </span></span></span><span lang="EN-US">In “myModule.xsd”, create an element of type “commonElements”, by adding the file “commonElements.xsd” in the xsd code. </span></p>
<p><span lang="EN-US"><span>-<span style="font:7.0pt "Times New Roman""> </span></span></span><span lang="EN-US">Upload your modules on OpenCMS. You can check : this is working well. When editing an instance of “myModule”, nested elements are well represented. </span></p>
<p><span lang="EN-US"><span>-<span style="font:7.0pt "Times New Roman""> </span></span></span><span lang="EN-US">Re-Upload “myCore” (including the nested xsd file). You should have red lines, on your screen. </span></p>
<p class="MsoNormal"><span lang="EN-US">Congrats, OpenCMS is dead. ^^’</span></p><p class="MsoNormal"><span lang="EN-US"> </span></p><p class="MsoNormal"><span lang="EN-US">I’m I doing something I should not, or is it a bug ? </span></p>
<p class="MsoNormal"><span lang="EN-US"> </span></p><p class="MsoNormal"><span lang="EN-US">You can find, attached, light version of used files. </span></p><p class="MsoNormal"><span lang="EN-US">Feel free to contact me for more details. </span></p>
<p class="MsoNormal"><span lang="EN-US"> </span></p><p class="MsoNormal"><span lang="EN-US">Regards, </span></p><p class="MsoNormal"><span lang="EN-US">Matthias Griselle</span></p><p class="MsoNormal"><span lang="EN-US"> </span></p>
</div></div></div></div>
<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/cgi-bin/mailman/listinfo/opencms-dev" target="_blank">http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev</a><br>
<br>
<br>
<br>
<br></blockquote></div><br></div>