<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">And which exception?<br>
<br>
Am 19.09.2012 13:37, schrieb Yves Glodt:<br>
</div>
<blockquote
cite="mid:CAAPhX7dG59PV-3VfCq4fzs7vmFjjuoyY-f_LDGikhz3zjO8fSw@mail.gmail.com"
type="cite">In fact when I say "it does not work as expected" I
mean:<br>
<br>
There is an exception without a message (null) happening on
calling <span style="font-family:courier new,monospace">cmsPublish.publishResource.<br>
<br>
<br>
</span><br>
<div class="gmail_quote">On 19 September 2012 10:59, Yves Glodt <span
dir="ltr"><<a moz-do-not-send="true"
href="mailto:yg@mind.lu" target="_blank">yg@mind.lu</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello,<br>
<br>
In OpenCms 8 there is no longer CmsObject.publishResource().
So I tried to use the CmsPublishManager, but it does not work
as expected.<br>
<br>
Here is my code:<br>
<br>
<span style="font-family:courier new,monospace">CmsObject cms
= OpenCms.initCmsObject("Guest");<br>
cms.loginUser("user", "password");<br>
CmsProject project = cms.readProject("Offline");<br>
cms.getRequestContext().setCurrentProject(project);<br>
cms.getRequestContext().setSiteRoot("/sites/<a
moz-do-not-send="true" href="http://mysite.lu/"
target="_blank">mysite.lu/</a>");<br>
<br>
CmsPublishManager cmsPublish = new CmsPublishManager();<br>
cmsPublish.initialize(cms);<br>
cmsPublish.publishResource(cms,"/images/articles/"+no_article);<br>
</span><br>
What's wrong with it?<br>
<br>
Best regards,<br>
Yves<br>
<br>
</blockquote>
</div>
<br>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
This mail is sent to you from the opencms-dev mailing list
To change your list options, or to unsubscribe from the list, please visit
<a class="moz-txt-link-freetext" href="http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev">http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev</a>
</pre>
</blockquote>
<br>
</body>
</html>