<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:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 12 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@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:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=NO-BOK link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Hi Ricardo,<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>First of all, you should fix the duplicate/redundant imports. (It’s probably not the cause, but let’s just rule it out.)<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Import either the package (once):<o:p></o:p></span></p><p class=MsoNormal style='text-indent:35.4pt'><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><%@ page import="org.opencms.frontend.templateone.*" %><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>... OR – if you want to be more specific – the class (once):<o:p></o:p></span></p><p class=MsoNormal style='text-indent:35.4pt'><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><%@ page import="org.opencms.frontend.templateone.CmsTemplateBean" %><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Same goes for the opencms taglib. Declare it once:<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>                <%@ taglib prefix="cms" uri="http://www.opencms.org/taglib/cms" %><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Then test to see if the error went away.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Now, assuming the error is still there: <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>The “cannot be resolved to a type” error means that the package/class is not “available” – the compiler doesn’t recognize it. A likely cause would be that templateone hasn’t been installed, or that Tomcat hasn’t been restarted after the install.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>You may be able to fix it by following these steps:<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>* On your server, list the folder {TOMCAT_HOME}/webapps/your-opencms-webapp/WEB-INF/lib<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>* Do you see the templateone .jar file in there?<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>  * If yes: make sure there’s only ONE version of it – remove any duplicates / outdated versions.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>  * If no: (re)install templateone. (Or, alternatively: manually place the .jar in the /lib folder.)<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>* Restart Tomcat.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>HTH. Good luck :)<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Cheers,<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Paul<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal><b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> opencms-dev-bounces@opencms.org [mailto:opencms-dev-bounces@opencms.org] <b>On Behalf Of </b>Ricardo Sanchez<br><b>Sent:</b> 9. september 2015 10:37<br><b>To:</b> opencms-dev@opencms.org<br><b>Subject:</b> Re: [opencms-dev] CmsTemplateBean cannot be resolved to a type<o:p></o:p></span></p></div><p class=MsoNormal><o:p> </o:p></p><div><div><p class=MsoNormal>Hello Paul-Inge:<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>First of all, thanks for your response.<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>I did everything you mentioned me, import templateone related modules and directives related to the jsp and now I get the following error:<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>Unable to compile class for JSP:<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>An error occurred at line: [18] in the generated java file: [C: \ SAE \ Tomcat 7.0.63\work\Catalina\localhost\opencms\org\apache\jsp\WEB_002dINF\jsp\offline\system\modules\org_opencms_module_acucyl\elements\copyright_jsp.java]<o:p></o:p></p></div><div><p class=MsoNormal>Only a type can be imported. Resolves to a package org.opencms.frontend.templateone.CmsTemplateBean<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>An error occurred at line 26 in the jsp file: /WEB-INF/jsp/offline/system/modules/org.opencms.module.acucyl/elements/copyright.jsp<o:p></o:p></p></div><div><p class=MsoNormal>CmsTemplateBean can not be resolved to a type<o:p></o:p></p></div><div><p class=MsoNormal>2. 3:<o:p></o:p></p></div><div><p class=MsoNormal>24:<o:p></o:p></p></div><div><p class=MsoNormal>25: <%<o:p></o:p></p></div><div><p class=MsoNormal>26: CmsTemplateBean cms = new CmsTemplateBean (pageContext, request, response);<o:p></o:p></p></div><div><p class=MsoNormal>27: cms.init (pageContext, request, response);<o:p></o:p></p></div><div><p class=MsoNormal>28: CmsMessages messages = cms.getMessages ("org / / opencms / module / acucyl / workplace" request.getLocale () + "");<o:p></o:p></p></div><div><p class=MsoNormal>29:%><o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>The head of my JSP is as follows:<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><div><p class=MsoNormal><%@ page pageEncoding="UTF-8" %><%@ taglib prefix="cms" uri="<a href="http://www.opencms.org/taglib/cms">http://www.opencms.org/taglib/cms</a>" %><o:p></o:p></p></div><div><p class=MsoNormal><%@ taglib prefix="c" uri="<a href="http://java.sun.com/jsp/jstl/core">http://java.sun.com/jsp/jstl/core</a>" %><o:p></o:p></p></div><div><p class=MsoNormal><%@ page import="org.opencms.jsp.*" %><o:p></o:p></p></div><div><p class=MsoNormal><%@ taglib prefix="cms" uri="<a href="http://www.opencms.org/taglib/cms">http://www.opencms.org/taglib/cms</a>" %><o:p></o:p></p></div><div><p class=MsoNormal><<a href="mailto:%25@page%20buffer=%22none%22%20session=%22true%22%20import=%22java.util.*,org.opencms.frontend.templateone.*%22%20%25">%@page buffer="none" session="true" import="java.util.*,org.opencms.frontend.templateone.*" %</a>><o:p></o:p></p></div><div><p class=MsoNormal><%@ page import="org.opencms.frontend.templateone.*" %><o:p></o:p></p></div><div><p class=MsoNormal><%@ page import="org.opencms.frontend.templateone.CmsTemplateBean" %><o:p></o:p></p></div><div><p class=MsoNormal><%@ page import="org.opencms.jsp.CmsJspXmlContentBean" %><o:p></o:p></p></div><div><p class=MsoNormal><%@ page import="org.opencms.jsp.CmsJspActionElement" %> <o:p></o:p></p></div><div><p class=MsoNormal><%@ page import="org.opencms.i18n.*" %><o:p></o:p></p></div><div><p class=MsoNormal><%@ page import="org.opencms.file.CmsUser" %><o:p></o:p></p></div><div><p class=MsoNormal><%@ page import="org.opencms.file.CmsGroup" %><o:p></o:p></p></div><div><p class=MsoNormal><%@ page import="org.opencms.file.CmsObject" %><o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>What can I do?<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>Best regards and thank you.<o:p></o:p></p></div></div><div><p class=MsoNormal><o:p> </o:p></p></div></div></div></body></html>