<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:st1="urn:schemas-microsoft-com:office:smarttags" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]--><o:SmartTagType
namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="City"
downloadurl="http://www.5iamas-microsoft-com:office:smarttags"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
name="place" downloadurl="http://www.5iantlavalamp.com/"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
name="State"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
name="PersonName"/>
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
/* Font Definitions */
@font-face
{font-family:Courier;
panose-1:2 7 4 9 2 2 5 2 4 4;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
{font-family:Verdana;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman";}
h3
{mso-margin-top-alt:auto;
margin-right:0cm;
mso-margin-bottom-alt:auto;
margin-left:0cm;
font-size:13.5pt;
font-family:"Times New Roman";
font-weight:bold;}
h4
{mso-margin-top-alt:auto;
margin-right:0cm;
mso-margin-bottom-alt:auto;
margin-left:0cm;
font-size:12.0pt;
font-family:"Times New Roman";
font-weight:bold;}
a:link, span.MsoHyperlink
{color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{color:purple;
text-decoration:underline;}
p
{mso-margin-top-alt:auto;
margin-right:0cm;
mso-margin-bottom-alt:auto;
margin-left:0cm;
font-size:12.0pt;
font-family:"Times New Roman";}
span.E-postmall18
{mso-style-type:personal;
font-family:Arial;
color:windowtext;}
span.E-postmall19
{mso-style-type:personal-reply;
font-family:Arial;
color:navy;}
@page Section1
{size:612.0pt 792.0pt;
margin:72.0pt 90.0pt 72.0pt 90.0pt;}
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'>Thanks for the quick reply, Jon. <o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Publishing the entire website was the
first thing I tried. I even installed openCMS (6.2.2) from scratch on another
server, imported my project files and got the same error message. <o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>What do you exactly mean by “doing
something which explicitly relies on the identity”? My jsp ( the
template) uses some scriptlet methods such as getContent on the CmsJspActionElement
object, which I initialize like this:<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=black face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New";color:black'>CmsJspActionElement
cms = </span></font><b><font size=2 color="#7f0055" face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New";color:#7F0055;font-weight:
bold'>new</span></font></b><font size=2 color=black face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New";color:black'>
CmsJspActionElement(pageContext, request, response);<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=black face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New";color:black'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>However, you seem to be right with your
guess, because I tried to invoke a test html file at <a
href="http://localhost:8080/opencms/opencms/mypage/test.html">http://localhost:8080/opencms/opencms/mypage/test.html</a>
(using templateOne) and it worked. So obviously I am doing something strangein
my template, but how do I know what I can do and what not?<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></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,<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Felix<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<div>
<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span lang=SV style='font-size:12.0pt'>
<hr size=3 width="100%" align=center tabindex=-1>
</span></font></div>
<p class=MsoNormal><b><font size=2 face=Tahoma><span lang=SV style='font-size:
10.0pt;font-family:Tahoma;font-weight:bold'>Från:</span></font></b><font
size=2 face=Tahoma><span lang=SV style='font-size:10.0pt;font-family:Tahoma'>
opencms-dev-bounces@opencms.org [mailto:opencms-dev-bounces@opencms.org] <b><span
style='font-weight:bold'>För </span></b>Jonathan Woods<br>
<b><span style='font-weight:bold'>Skickat:</span></b> den 23 oktober 2006 16:53<br>
<b><span style='font-weight:bold'>Till:</span></b> '<st1:PersonName w:st="on">The
OpenCms mailing list</st1:PersonName>'<br>
<b><span style='font-weight:bold'>Ämne:</span></b> RE: [opencms-dev] 500 -
internal server error</span></font><span lang=SV><o:p></o:p></span></p>
</div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=blue face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:blue'>Felix -</span></font><o:p></o:p></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'> <o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=blue face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:blue'>Unless your JSP is doing something which
explicitly relies on the identity of the project the user is 'in', it sounds
like index.jsp, or resources on which it relies, are not the same in your
online project as in your offline project. If you publish everything, you
shouldn't see this error.</span></font><o:p></o:p></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'> <o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=blue face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:blue'>Jon</span></font><o:p></o:p></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>
<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>
<hr size=3 width="100%" align=center tabIndex=-1>
</span></font></div>
<p class=MsoNormal style='margin-bottom:12.0pt'><b><font size=2 face=Tahoma><span
style='font-size:10.0pt;font-family:Tahoma;font-weight:bold'>From:</span></font></b><font
size=2 face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'>
opencms-dev-bounces@opencms.org [mailto:opencms-dev-bounces@opencms.org] <b><span
style='font-weight:bold'>On Behalf Of </span></b>Felix Sprick<br>
<b><span style='font-weight:bold'>Sent:</span></b> 23 October 2006 15:48<br>
<b><span style='font-weight:bold'>To:</span></b> '<st1:PersonName w:st="on">The
OpenCms mailing list</st1:PersonName>'<br>
<b><span style='font-weight:bold'>Subject:</span></b> [opencms-dev] 500 -
internal server error</span></font><o:p></o:p></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Hi all,<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>I encounter a very strange behavior of openCMS. When I try
to access my page at <a
href="http://localhost:8080/opencms/opencms/mypage/index.html">http://localhost:8080/opencms/opencms/mypage/index.html</a>
I get a 500 internal server error message like this:<o:p></o:p></span></font></p>
<h3><b><font size=2 face=Courier><span style='font-size:10.0pt;font-family:
Courier'>A server error occured!<o:p></o:p></span></font></b></h3>
<!-- Status error messages start -->
<h4><b><font size=2 face=Courier><span style='font-size:10.0pt;font-family:
Courier'>Server error 500<o:p></o:p></span></font></b></h4>
<h3><b><font size=2 face=Courier><span style='font-size:10.0pt;font-family:
Courier'>Internal Server Error<o:p></o:p></span></font></b></h3>
<p><font size=2 face=Courier><span style='font-size:10.0pt;font-family:Courier'>The
server encountered an unexpected condition which prevented it from fulfilling
the request.<o:p></o:p></span></font></p>
<!-- Status error messages end -->
<p><font size=2 face=Courier><span style='font-size:10.0pt;font-family:Courier'>The
server cannot complete the request because it encountered an error.<o:p></o:p></span></font></p>
<p><font size=2 face=Courier><span style='font-size:10.0pt;font-family:Courier'>Please
try it again in a few minutes, or contact the server administrator. <o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>The weird thing about that is, this index.html works fine
when I look at the preview from within the openCMS explorer. And even weirder:
when I invoke the openCMS default page at <a
href="http://localhost:8080/opencms/opencms">http://localhost:8080/opencms/opencms</a>
and retry to invoke <a
href="http://localhost:8080/opencms/opencms/mypage/index.html">http://localhost:8080/opencms/opencms/mypage/index.html</a>
again, it works fine. I can call every page of my website without any problems.
But when I close the browser-window (i.e. close the session), and try again, I
am getting the 500 error code again. So what is happening? Does the default
index.jsp page at <font color=blue><span style='color:blue'><a
href="http://localhost:8080/opencms/opencms/index.jsp">http://localhost:8080/opencms/opencms/index.jsp</a>
</span></font>initialize some kind of session? How can I avoid that, since I
can’t ask all visitors of the website to open the openCMS default page
first in order to view my website…!?<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Any ideas?<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Thanks,<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Felix<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><b><font
size=2 face=Verdana><span lang=EN-GB style='font-size:10.0pt;font-family:Verdana;
font-weight:bold'>Felix Sprick</span></font></b><span lang=EN-GB><o:p></o:p></span></p>
<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><b><font
size=2 face=Verdana><span lang=EN-GB style='font-size:10.0pt;font-family:Verdana;
font-weight:bold'>----------------------------------------------</span></font></b><span
lang=EN-GB><o:p></o:p></span></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span lang=EN-GB
style='font-size:12.0pt'> <o:p></o:p></span></font></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span lang=EN-GB
style='font-size:12.0pt'>NetLight <st1:place w:st="on"><st1:City w:st="on">Consulting</st1:City>
<st1:State w:st="on">AB</st1:State></st1:place><br>
</span></font><font size=2 face=Verdana><span style='font-size:10.0pt;
font-family:Verdana'><a href="http://www.netlight.se/"
title="http://www.netlight.se/"></a></span></font><font size=2 face=Verdana><span
lang=EN-GB style='font-size:10.0pt;font-family:Verdana'><span
title="http://www.netlight.se/"><a href="http://www.netlight.se/"><span
title="http://www.netlight.se/"><span title="http://www.netlight.se/">www.netlight.se</span></span></a></span><o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Verdana><span lang=EN-GB style='font-size:
10.0pt;font-family:Verdana'>Södermälarstrand 27B</span></font><font size=2
face=Verdana><span style='font-size:10.0pt;font-family:Verdana'><o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Verdana><span lang=EN-GB style='font-size:
10.0pt;font-family:Verdana'>118 25 <st1:City w:st="on"><st1:place w:st="on">Stockholm</st1:place></st1:City><o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Verdana><span lang=EN-GB style='font-size:
10.0pt;font-family:Verdana'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Verdana><span lang=EN-GB style='font-size:
10.0pt;font-family:Verdana'>Mobil:
+46(0)735-418125<br>
Tel: +46(0)8-616 99 40<br>
Fax: +46(0)8-616 66 50<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Email: </span></font><font
size=2 face=Verdana><span style='font-size:10.0pt;font-family:Verdana'><a
href="mailto:felix.sprick@netlight.se">felix.sprick</a><a
href="mailto:felix.sprick@netlight.se"
title="mailto:johan.berggren@netlight.se
mailto:mandus.engman@netlight.se"><font
color=black><span lang=EN-GB style='color:windowtext;text-decoration:none'><span
title="mailto:johan.berggren@netlight.se"><span
title="mailto:johan.berggren@netlight.se"><span
title="mailto:johan.berggren@netlight.se
mailto:mandus.engman@netlight.se">@netlight.se</span></span></span></font></span></a><o:p></o:p></span></font></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>
</div>
</body>
</html>