<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 10 (filtered)">
<title>Nachricht</title>
<style>
<!--
/* Font Definitions */
@font-face
{font-family:Wingdings;
panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman";}
h1
{margin-top:12.0pt;
margin-right:0in;
margin-bottom:3.0pt;
margin-left:0in;
page-break-after:avoid;
font-size:16.0pt;
font-family:Arial;
font-weight:bold;}
h2
{margin-top:12.0pt;
margin-right:0in;
margin-bottom:3.0pt;
margin-left:0in;
page-break-after:avoid;
font-size:14.0pt;
font-family:Arial;
font-weight:bold;
font-style:italic;}
h3
{margin-top:12.0pt;
margin-right:0in;
margin-bottom:3.0pt;
margin-left:0in;
page-break-after:avoid;
font-size:13.0pt;
font-family:Arial;
font-weight:bold;}
a:link, span.MsoHyperlink
{color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{color:purple;
text-decoration:underline;}
p
{margin-right:0in;
margin-left:0in;
font-size:12.0pt;
font-family:"Times New Roman";}
span.emailstyle17
{font-family:Arial;
color:windowtext;}
span.emailstyle19
{font-family:Arial;
color:navy;}
span.emailstyle20
{font-family:Arial;
color:navy;}
span.EmailStyle21
{font-family:Arial;
color:navy;}
@page Section1
{size:595.3pt 841.9pt;
margin:70.85pt 85.05pt 70.85pt 85.05pt;}
div.Section1
{page:Section1;}
-->
</style>
</head>
<body lang=EN-US link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Hello, I am just wondering whether open cms
does provides some in built portlets like JSR 168 compliant, which we can
directly host on the portal server, instead of building custom portlets utilizing
the open CMS APIs?</span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'> </span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Thanks,</span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Arshad</span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'> </span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'> </span></font></p>
<p class=MsoNormal style='margin-left:.5in'><font size=2 face=Tahoma><span
style='font-size:10.0pt;font-family:Tahoma'>-----Original Message-----<br>
<b><span style='font-weight:bold'>From:</span></b>
opencms-dev-admin@opencms.org [mailto:opencms-dev-admin@opencms.org] <b><span
style='font-weight:bold'>On Behalf Of </span></b>Ivo Esteves<br>
<b><span style='font-weight:bold'>Sent:</span></b> </span></font><font size=2 face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'>Wednesday, July
28, 2004</span></font><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma'> </span></font><font size=2 face=Tahoma><span
style='font-size:10.0pt;font-family:Tahoma'>6:51 PM</span></font><font size=2
face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'><br>
<b><span style='font-weight:bold'>To:</span></b> opencms-dev@opencms.org<br>
<b><span style='font-weight:bold'>Subject:</span></b> RE: [opencms-dev] OpenCMS
and portlets.</span></font></p>
<p class=MsoNormal style='margin-left:.5in'><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'> </span></font></p>
<p class=MsoNormal style='margin-left:.5in'><font size=2 color=navy face=Arial><span
lang=EN-GB style='font-size:10.0pt;font-family:Arial;color:navy'>Alex</span></font></p>
<p class=MsoNormal style='margin-left:.5in'><font size=2 color=navy face=Arial><span
lang=EN-GB style='font-size:10.0pt;font-family:Arial;color:navy'>Once again,
thanks allot for your help and time.</span></font></p>
<p class=MsoNormal style='margin-left:.5in'><font size=2 color=navy face=Arial><span
lang=EN-GB style='font-size:10.0pt;font-family:Arial;color:navy'> </span></font></p>
<p class=MsoNormal style='margin-left:.5in'><font size=2 color=navy face=Arial><span
lang=EN-GB style='font-size:10.0pt;font-family:Arial;color:navy'>You gave me
good news, because I make deploy of my application (in this case portlet) in
"webapps" directory, so the problems isn't the application context.
So I assume that the problem is in my code.</span></font></p>
<p class=MsoNormal style='margin-left:.5in'><font size=2 color=navy face=Arial><span
lang=EN-GB style='font-size:10.0pt;font-family:Arial;color:navy'> </span></font></p>
<p class=MsoNormal style='margin-left:.5in'><font size=2 color=navy face=Arial><span
lang=EN-GB style='font-size:10.0pt;font-family:Arial;color:navy'>My problem, is
that I get a java.lang.NullPointerException, when I call
OpenCms.initCmsObject("Admin").</span></font></p>
<p class=MsoNormal style='margin-left:.5in'><font size=2 color=navy face=Arial><span
lang=EN-GB style='font-size:10.0pt;font-family:Arial;color:navy'> </span></font></p>
<p class=MsoNormal style='margin-left:.5in'><font size=2 color=navy face=Arial><span
lang=EN-GB style='font-size:10.0pt;font-family:Arial;color:navy'>The exception
occurs in "</span></font><font size=2 face="Courier New"><span lang=EN-GB
style='font-size:10.0pt;font-family:"Courier New"'>org.opencms.main.OpenCmsCore.initCmsObject(OpenCmsCore.java:935</span></font><font
size=2 color=navy face=Arial><span lang=EN-GB style='font-size:10.0pt;
font-family:Arial;color:navy'>)", like</span></font><font size=2
face="Courier New"><span lang=EN-GB style='font-size:10.0pt;font-family:"Courier New"'>
</span></font></p>
<p class=MsoNormal style='margin-left:.5in'><font size=2 color=navy face=Arial><span
lang=EN-GB style='font-size:10.0pt;font-family:Arial;color:navy'>I don't have
the source of version 5.3.5, I can't go to source to see what's happening
wrong...</span></font></p>
<p class=MsoNormal style='margin-left:.5in'><font size=2 color=navy face=Arial><span
lang=EN-GB style='font-size:10.0pt;font-family:Arial;color:navy'> </span></font></p>
<p class=MsoNormal style='margin-left:.5in'><font size=2 color=navy face=Arial><span
lang=EN-GB style='font-size:10.0pt;font-family:Arial;color:navy'>Do you have
any idea about what's happening???</span></font></p>
<p class=MsoNormal style='margin-left:.5in'><font size=2 color=navy face=Arial><span
lang=EN-GB style='font-size:10.0pt;font-family:Arial;color:navy'> </span></font></p>
<p class=MsoNormal style='margin-left:.5in'><font size=2 color=navy face=Arial><span
lang=EN-GB style='font-size:10.0pt;font-family:Arial;color:navy'>Best Regards.</span></font></p>
<p class=MsoNormal style='margin-left:.5in'><font size=2 color=navy face=Arial><span
lang=EN-GB style='font-size:10.0pt;font-family:Arial;color:navy'>Ivo</span></font></p>
<p class=MsoNormal style='margin-left:.5in'><font size=2 color=navy face=Arial><span
lang=EN-GB style='font-size:10.0pt;font-family:Arial;color:navy'> </span></font></p>
<p class=MsoNormal style='margin-left:.5in'><font size=2 color=navy face=Arial><span
lang=EN-GB style='font-size:10.0pt;font-family:Arial;color:navy'> </span></font></p>
<p class=MsoNormal style='margin-left:71.4pt'><font size=2 face=Tahoma><span
style='font-size:10.0pt;font-family:Tahoma'>-----Original Message-----<br>
<b><span style='font-weight:bold'>From:</span></b>
opencms-dev-admin@opencms.org [mailto:opencms-dev-admin@opencms.org] <b><span
style='font-weight:bold'>On Behalf Of </span></b>Alexander Kandzior<br>
<b><span style='font-weight:bold'>Sent:</span></b> quarta-feira, 28 de Julho de
2004 9:13<br>
<b><span style='font-weight:bold'>To:</span></b> opencms-dev@opencms.org<br>
<b><span style='font-weight:bold'>Subject:</span></b> RE: [opencms-dev] OpenCMS
and portlets.</span></font></p>
<p class=MsoNormal style='margin-left:71.4pt'><font size=3
face="Times New Roman"><span lang=EN-GB style='font-size:12.0pt'> </span></font></p>
<div>
<p class=MsoNormal style='margin-left:71.4pt'><font size=2 color=blue
face=Arial><span lang=PT style='font-size:10.0pt;font-family:Arial;color:blue'>Ivo,</span></font></p>
</div>
<div>
<p class=MsoNormal style='margin-left:71.4pt'><font size=3
face="Times New Roman"><span lang=PT style='font-size:12.0pt'> </span></font></p>
</div>
<div>
<p class=MsoNormal style='margin-left:71.4pt'><font size=2 color=blue
face=Arial><span lang=PT style='font-size:10.0pt;font-family:Arial;color:blue'>an
application context is a web application deployed in the "webapps"
folder in the ${CATALINA_HOME} directory. OpenCms usually is installed in the
"opencms" directory / application context. In case you want to share
an instance of the OpenCms object, your application must be deployed in the
same directory in "webapps" as OpenCms. Of course, you can rename the
directory name. </span></font></p>
</div>
<div>
<p class=MsoNormal style='margin-left:71.4pt'><font size=3
face="Times New Roman"><span lang=PT style='font-size:12.0pt'> </span></font></p>
</div>
<div>
<p class=MsoNormal style='margin-left:71.4pt'><font size=2 color=blue
face=Arial><span lang=PT style='font-size:10.0pt;font-family:Arial;color:blue'>I
think there is also a way to access one application context from another in a
Servlet, like this:</span></font></p>
</div>
<div>
<p style='margin-left:71.4pt'><font size=3 face="Times New Roman"><span
lang=PT style='font-size:12.0pt'>ServletContext otherContext = <b><font
color=gray><span style='color:gray;font-weight:bold'>getServletContext</span></font></b>().<b><span
style='font-weight:bold'>getContext</span></b>(<font color="#8000ff"><span
style='color:#8000FF'>"name"</span></font>);</span></font></p>
<p style='margin-left:71.4pt'><font size=2 color=blue face=Arial><span lang=PT
style='font-size:10.0pt;font-family:Arial;color:blue'>but I did not try using
this myself so far.</span></font></p>
<!-- Converted from text/plain format -->
<p style='margin-left:71.4pt'><font size=2 face="Times New Roman"><span
lang=PT style='font-size:10.0pt'>Best Regards,<br>
Alex.<br>
<br>
Alexander Kandzior<br>
Alkacon Software - The OpenCms Experts<br>
<a href="http://www.alkacon.com/">http://www.alkacon.com</a></span></font><span
lang=PT> </span></p>
</div>
<div>
<p class=MsoNormal style='margin-left:71.4pt'><font size=3
face="Times New Roman"><span lang=PT style='font-size:12.0pt'> </span></font></p>
</div>
<blockquote style='border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt;
margin-left:3.75pt;margin-top:5.0pt;margin-right:0in;margin-bottom:5.0pt'>
<p class=MsoNormal style='margin-right:0in;margin-bottom:12.0pt;margin-left:
71.4pt'><font size=2 face=Tahoma><span lang=DE style='font-size:10.0pt;
font-family:Tahoma'>-----Original Message-----<br>
<b><span style='font-weight:bold'>From:</span></b>
opencms-dev-admin@opencms.org [mailto:opencms-dev-admin@opencms.org] <b><span
style='font-weight:bold'>On Behalf Of </span></b>Ivo Esteves<br>
<b><span style='font-weight:bold'>Sent:</span></b> Tuesday, July 27, 2004 7:40
PM<br>
<b><span style='font-weight:bold'>To:</span></b> opencms-dev@opencms.org<br>
<b><span style='font-weight:bold'>Subject:</span></b> RE: [opencms-dev] OpenCMS
and portlets.</span></font></p>
<p class=MsoNormal style='margin-left:71.4pt'><font size=3
face="Times New Roman"><span lang=EN-GB style='font-size:12.0pt'>Hi, again...</span></font></p>
<p class=MsoNormal style='margin-left:71.4pt'><font size=3
face="Times New Roman"><span lang=PT style='font-size:12.0pt'> </span></font></p>
<p class=MsoNormal style='margin-left:71.4pt'><font size=3
face="Times New Roman"><span lang=EN-GB style='font-size:12.0pt'>In advance,
thanks for your quick response. </span></font><font face=Wingdings><span
lang=EN-GB style='font-family:Wingdings'>J</span></font></p>
<p class=MsoNormal style='margin-left:71.4pt'><font size=3
face="Times New Roman"><span lang=PT style='font-size:12.0pt'> </span></font></p>
<p class=MsoNormal style='margin-left:71.4pt'><font size=3
face="Times New Roman"><span lang=EN-GB style='font-size:12.0pt'>The version
that I'm using is the 5.3.5, so I can use the solution you give me. But I have
a problem and I think that is the application context...</span></font></p>
<p class=MsoNormal style='margin-left:71.4pt'><font size=3
face="Times New Roman"><span lang=PT style='font-size:12.0pt'> </span></font></p>
<p class=MsoNormal style='margin-left:71.4pt'><font size=3
face="Times New Roman"><span lang=EN-GB style='font-size:12.0pt'>I've OpenCms and
portles(eXo platform) running under TomCat 5.0.25. Can you tell me if the
solution should work in this environment?? I already tried but don't work,
maybe TomCat isn't an application context, or maybe I've done something
wrong???</span></font></p>
<p class=MsoNormal style='margin-left:71.4pt'><font size=3
face="Times New Roman"><span lang=PT style='font-size:12.0pt'> </span></font></p>
<p class=MsoNormal style='margin-left:71.4pt'><font size=3
face="Times New Roman"><span lang=EN-GB style='font-size:12.0pt'>Someone have
an idea???</span></font></p>
<p class=MsoNormal style='margin-left:71.4pt'><font size=3
face="Times New Roman"><span lang=PT style='font-size:12.0pt'> </span></font></p>
<p class=MsoNormal style='margin-left:71.4pt'><font size=3
face="Times New Roman"><span lang=EN-GB style='font-size:12.0pt'>Thanks </span></font></p>
<p class=MsoNormal style='margin-left:71.4pt'><font size=3
face="Times New Roman"><span lang=EN-GB style='font-size:12.0pt'>Ivo Esteves</span></font></p>
<div>
<p class=MsoNormal style='margin-left:71.4pt'><font size=3
face="Times New Roman"><span lang=PT style='font-size:12.0pt'> </span></font></p>
</div>
<p class=MsoNormal style='margin-left:106.8pt'><font size=2 face=Tahoma><span
style='font-size:10.0pt;font-family:Tahoma'>-----Original Message-----<br>
<b><span style='font-weight:bold'>From:</span></b>
opencms-dev-admin@opencms.org [mailto:opencms-dev-admin@opencms.org] <b><span
style='font-weight:bold'>On Behalf Of </span></b>Alexander Kandzior<br>
<b><span style='font-weight:bold'>Sent:</span></b> sexta-feira, 23 de Julho de
2004 15:52<br>
<b><span style='font-weight:bold'>To:</span></b> opencms-dev@opencms.org<br>
<b><span style='font-weight:bold'>Subject:</span></b> RE: [opencms-dev] OpenCMS
and portlets.</span></font></p>
<p class=MsoNormal style='margin-left:106.8pt'><font size=3
face="Times New Roman"><span lang=PT style='font-size:12.0pt'> </span></font></p>
<div>
<p class=MsoNormal style='margin-left:106.8pt'><font size=2 color=blue
face=Arial><span lang=PT style='font-size:10.0pt;font-family:Arial;color:blue'>What
version do you use? </span></font></p>
</div>
<div>
<p class=MsoNormal style='margin-left:106.8pt'><font size=3
face="Times New Roman"><span lang=PT style='font-size:12.0pt'> </span></font></p>
</div>
<div>
<p class=MsoNormal style='margin-left:106.8pt'><font size=2 color=blue
face=Arial><span lang=PT style='font-size:10.0pt;font-family:Arial;color:blue'>If
you use the current "stable" release, there is no easy way (without
core code modifications) to get a CmsObject.</span></font></p>
</div>
<div>
<p class=MsoNormal style='margin-left:106.8pt'><font size=3
face="Times New Roman"><span lang=PT style='font-size:12.0pt'> </span></font></p>
</div>
<div>
<p class=MsoNormal style='margin-left:106.8pt'><font size=2 color=blue
face=Arial><span lang=PT style='font-size:10.0pt;font-family:Arial;color:blue'>This
has changed in the current development version (CVS HEAD). In this version you
can get access to a CmsObject using the OpenCms singleton Object (e.g. using
method OpenCms.initCmsObject(String unsername). This just requires that OpenCms
shares an application context with your application.</span></font></p>
</div>
<div>
<p style='margin-left:106.8pt'><font size=2 color=blue face=Arial><span
lang=PT style='font-size:10.0pt;font-family:Arial;color:blue'>Best Regards,<br>
Alex.<br>
<br>
Alexander Kandzior<br>
Alkacon Software - The OpenCms Experts<br>
<a href="http://www.alkacon.com/">http://www.alkacon.com</a> </span></font></p>
</div>
<div>
<p class=MsoNormal style='margin-left:106.8pt'><font size=3
face="Times New Roman"><span lang=PT style='font-size:12.0pt'> </span></font></p>
</div>
<div>
<p class=MsoNormal style='margin-right:0in;margin-bottom:12.0pt;margin-left:
106.8pt'><font size=2 color=blue face=Arial><span lang=PT style='font-size:
10.0pt;font-family:Arial;color:blue'> </span></font><font size=2
face=Tahoma><span lang=PT style='font-size:10.0pt;font-family:Tahoma'>-----Original
Message-----<br>
<b><span style='font-weight:bold'>From:</span></b>
opencms-dev-admin@opencms.org [mailto:opencms-dev-admin@opencms.org] <b><span
style='font-weight:bold'>On Behalf Of </span></b>Ivo Esteves<br>
<b><span style='font-weight:bold'>Sent:</span></b> Friday, July 23, 2004 4:25
PM<br>
<b><span style='font-weight:bold'>To:</span></b> opencms-dev@opencms.org<br>
<b><span style='font-weight:bold'>Subject:</span></b> [opencms-dev] OpenCMS and
portlets.</span></font></p>
</div>
<blockquote style='border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt;
margin-left:3.75pt;margin-top:5.0pt;margin-right:0in;margin-bottom:5.0pt'>
<p class=MsoNormal style='margin-left:106.8pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>Hi, </span></font></p>
<p class=MsoNormal style='margin-left:106.8pt'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>I'm newbie in OpenCMS. </span></font></p>
<p class=MsoNormal style='margin-left:106.8pt'><font size=3
face="Times New Roman"><span lang=PT style='font-size:12.0pt'> </span></font></p>
<p class=MsoNormal style='margin-left:106.8pt'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>I'm developing a portal
using portlets and we decide to use OpenCMS only to be the Content Management
Service. </span></font></p>
<p class=MsoNormal style='margin-left:106.8pt'><font size=3
face="Times New Roman"><span lang=PT style='font-size:12.0pt'> </span></font></p>
<p class=MsoNormal style='margin-left:106.8pt'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>To access resources I've got
to use the OpenCMS API, so far so good, but I don't know how to get the
CMSObject.</span></font></p>
<p class=MsoNormal style='margin-left:106.8pt'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>So far I only see examples
in JSP, that use </span></font><span lang=EN-GB>CmsJspActionElement class to
get it</span><font size=2 face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New"'>, but I'm using portlets (Java) and I don't how to
get the CMSObject to access resources,</span></font></p>
<p class=MsoNormal style='margin-left:106.8pt'><font size=3
face="Times New Roman"><span lang=PT style='font-size:12.0pt'> </span></font></p>
<p class=MsoNormal style='margin-left:106.8pt'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>If anyone has an idea... </span></font></p>
<p class=MsoNormal style='margin-left:106.8pt'><font size=3
face="Times New Roman"><span lang=PT style='font-size:12.0pt'> </span></font></p>
<p class=MsoNormal style='margin-left:106.8pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>Thanks in advance.</span></font></p>
<p class=MsoNormal style='margin-left:106.8pt'><font size=3
face="Times New Roman"><span lang=PT style='font-size:12.0pt'> </span></font></p>
<p class=MsoNormal style='margin-left:106.8pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>Ivo Esteves</span></font></p>
</blockquote>
</blockquote>
</div>
</body>
</html>