[opencms-dev] CmsTemplateBean cannot be resolved to a type
Ricardo Sanchez
ricsanc1987 at gmail.com
Mon Sep 14 14:15:32 CEST 2015
Hello list:
I imported the templateone, I assure that within it is the class that needs
to function properly and still no go. I give you an example of the error
message shown me:
Stacktrace:
Motivo: Unable to compile class for JSP:
An error occurred at line: 16 in the jsp file:
/WEB-INF/jsp/offline/system/modules/org.opencms.frontend.templatetwo/templates/main.jsp
CmsTemplateLayout cannot be resolved to a type
13: // be found at the following VFS location:
14: //
/system/modules/org.opencms.frontend.templatetwo/java_src/CmsTemplateLayout.java
15:
16: CmsTemplateLayout cms = new CmsTemplateLayout(pageContext, request,
response);
17: pageContext.setAttribute("cms", cms);
18: %>
19: <cms:template element="head">
As I said before, the .java file is located in the appropriate folder. I'm
a little desperate because I am incapable of finding a solution.
Thank you. A greeting.
2015-09-10 13:06 GMT+02:00 Ricardo Sanchez <ricsanc1987 at gmail.com>:
> Thank you for your answer Paul.
>
> With the indications that you gave me the problem disappeared, in the
> WEB-INF lib the jar of templateone missed. But unfortunately after a
> problem always comes another, now I get the following:
>
> An unexpected Happened mistake, but no fault message has been provided.
> Please check the bug details or contact your system administrator.
>
> All I did was change the path of the original file because I am now in a
> context of testing. The route is well written, I know it can be due, or if
> it is related to the problem described in the previous message.
>
> Thank you very much for your collaboration. Regards.
>
> 2015-09-10 10:18 GMT+02:00 Ricardo Sanchez <ricsanc1987 at gmail.com>:
>
>> Hello list:
>>
>> I think I have already identified what the problem is. I imported in
>> OpenCms modules that had in the old version that were related to
>> templateone.
>>
>> Reviewing the queue, I saw for example when importing
>> org.opencms.frontend.templateone displayed the following message:
>>
>> Publicando ficheros ...
>>
>> ( 1 / 86 ) Publicando fichero
>> /system/galleries/pics/ocms-templateone/bg_nav.jpg ... o.k.
>>
>> ( 2 / 86 ) Publicando fichero
>> /system/galleries/pics/ocms-templateone/head_img.jpg ... o.k.
>>
>> ( 3 / 86 ) Publicando fichero
>> /system/galleries/pics/ocms-templateone/logo_alkacon_150.png ... o.k.
>>
>> ( 4 / 86 ) Publicando fichero
>> /system/galleries/pics/ocms-templateone/logo_opencms_150.png ... o.k.
>>
>> ( 5 / 86 ) Publicando fichero
>> /system/modules/org.opencms.frontend.templateone/classes/org/opencms/frontend/templateone/workplace.properties
>> ... fallo
>>
>> ( 6 / 86 ) Publicando fichero
>> /system/modules/org.opencms.frontend.templateone/classes/org/opencms/frontend/templateone/workplace_de.properties
>> ... o.k.
>>
>> ( 7 / 86 ) Publicando fichero
>> /system/modules/org.opencms.frontend.templateone/classes/org/opencms/frontend/templateone/workplace_en.properties
>> ... fallo
>>
>> ( 8 / 86 ) Publicando fichero
>> /system/modules/org.opencms.frontend.templateone/classes/templateone.properties
>> ... fallo
>>
>> ( 9 / 86 ) Publicando fichero
>> /system/modules/org.opencms.frontend.templateone/classes/templateone_de.properties
>> ... o.k.
>>
>> ( 10 / 86 ) Publicando fichero
>> /system/modules/org.opencms.frontend.templateone/classes/templateone_en.properties
>> ... fallo
>>
>> ( 11 / 86 ) Publicando fichero
>> /system/modules/org.opencms.frontend.templateone/classes/templateone_form.properties
>> ... fallo
>>
>> ( 12 / 86 ) Publicando fichero
>> /system/modules/org.opencms.frontend.templateone/classes/templateone_form_de.properties
>> ... o.k.
>>
>> ( 13 / 86 ) Publicando fichero
>> /system/modules/org.opencms.frontend.templateone/classes/templateone_form_en.properties
>> ... fallo( 56 / 86 ) Publicando fichero
>> /system/modules/org.opencms.frontend.templateone/resources/icons/ic_app_htm.gif
>> ... fallo
>>
>> ( 57 / 86 ) Publicando fichero
>> /system/modules/org.opencms.frontend.templateone/resources/icons/ic_app_html.gif
>> ... fallo( 65 / 86 ) Publicando fichero
>> /system/modules/org.opencms.frontend.templateone/resources/menu_over.js ...
>> fallo
>>
>> Failure = failure
>>
>> Similarly it works on other modules such as
>> org.opencms.frontend.templateone.form importé
>> org.opencms.frontend.layoutpage
>> org.opencms.frontend.templatetwo
>> org.opencms.frontend.templatetwo.demo
>>
>> When I import org.opencms.frontend.templateone.modules also displays the
>> following error:
>> (3/64) Publishing file
>> /system/modules/org.opencms.frontend.templateone.modules/classes/org/opencms/frontend/templateone/modules/workplace_en.properties
>> ... Failure (2) File Indexing failure
>> /system/modules/org.opencms.frontend.templateone.modules/copyresources/_configuration/layoutright
>> ...
>> org.opencms.main.CmsRuntimeException: Unable to unmarshal XML schema
>> definition content "opencms:
>> //system/modules/org.opencms.frontend.templateone.modules/schemas/layouts.xsd".
>>
>> What may be due? Do I have to change something in the modules that I
>> imported? Thanks for your answers.
>>
>> Best regards.
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20150914/3fcf1b4b/attachment.htm>
More information about the opencms-dev
mailing list