Jahia Template Forum > Template deployment...

0 (0 Good)
0 (0 Bad)

Template deployment problem and schema error

by  admin »  2011/06/07 19:53

Hi,

I have tried to deploy my templates via the maven deploy action
(described in jahiapedia), but it does not work anymore.

In the Eclipse console, there is this output :

[WARNING] Attempting to build MavenProject instance for Artifact
(org.jahia.server:maven-jahia-plugin:1.0-20090312.152348-8) of type:
maven-plugin; constructing POM artifact instead.
[INFO] [jahia:deploy]
[INFO] Updated template war resources for tomcat v6 in directory
C:\jahia_v6_CommunityEdition_r25203\webapps\ROOT\templates\my_templates
[INFO] Copied 0 files.

I don't if my problem is link to this error in the template.xml file :

Referenced file contains errors (http://www.jahia.net/shemas/templates_2_0.xsd).
For more information, right click on the message and select quot;Show Details...

  (admin)

Number of messages  61
Registration date
0 (0 Good)
0 (0 Bad)

Re: Template deployment problem and schema error

by  admin »  2011/06/07 19:53

Hello Mesdocs,

yes, you need to change the reference in templates.xml to
http://www.jahia.org as http://www.jahia.net is not available anymore.
We will update the archetype since launching the new Jahia websites.

Regards,
Benjamin

  (admin)

Number of messages  61
Registration date
0 (0 Good)
0 (0 Bad)

Re: Template deployment problem and schema error

by  admin »  2011/06/07 19:53

Hello,

due to our domain server reorganization, please, update the header of
you templates deployment descriptor (templates.xml) to reference schema
from the jahia.org Community site, i.e.:

lt;template-set xmlns:xsi=

  (admin)

Number of messages  61
Registration date
0 (0 Good)
0 (0 Bad)

Re: Template deployment problem and schema error

by  admin »  2011/06/07 19:53

Thank you. I have modified my templates.xml file.

Till now, I was using the community r25203 edition.

The template deployment action from eclipse does not work anymore for
this edition since the templates are deployed under
webapps/ROOT/templates

I will pick the last build version.

Regards,

Mesdocs.

  (admin)

Number of messages  61
Registration date
0 (0 Good)
0 (0 Bad)

Re: Template deployment problem and schema error

by  admin »  2011/06/07 19:53

Hello Mesdocs,

there was a problem with the maven-jahia-plugin snapshot uploaded yesterday as it was not compatible with the community edition. Due to your mail we have uploaded a new version right now. So could you please try again?

Regards,
Benjamin

  (admin)

Number of messages  61
Registration date
0 (0 Good)
0 (0 Bad)

Re: Template deployment problem and schema error

by  admin »  2011/06/07 19:53

Hi Benjamin,

I've just tried again the deployment. It works well.

I had to recode some files in my template as there was jahia tag and
web_templates changes (utility:resourceBundle).

Regards,
Mesdocs

  (admin)

Number of messages  61
Registration date
0 (0 Good)
0 (0 Bad)

Re: Template deployment problem and schema error

by  admin »  2011/06/07 19:53

Hi all,

It seems my precedent message was too quickly sent.

I've downloaded the last nightly build (r25860) and tried to deploy my
templates in this version.

During the maven deployment, I noticed downloads from maven-jahia (I
suppose the updated files you were talking about).

My templates are deployed to Root/jsp/jahia/templates but the version
uses the Root/templates folder.

Is there a parameter to modify in order to deploy in the folder i want ?

Regards,

Mesdocs.

  (admin)

Number of messages  61
Registration date
0 (0 Good)
0 (0 Bad)

Re: Template deployment problem and schema error

by  admin »  2011/06/07 19:53

Hello,

could you please check and modify the following entries in the
WEB-INF/etc/config/jahia.properties file to be:
jahiaJspDiskPath = /
jahiaEnginesDiskPath = /engines/
jahiaTemplatesDiskPath = /templates/
jahiaHtmlEditorsDiskPath = /htmleditors/
jahiaJavaScriptDiskPath = /javascript/

...
siteServerNameTestURLExpr =
${request.scheme}://${siteServerName}:${request.serverPort}${request.contextPath}/isjahia.jsp

Kind regards
Sergiy

  (admin)

Number of messages  61
Registration date
Contact
Share
Feedback

Get in touch

Whether you are a current user or if you are just evaluating Jahia, we are here to help.

Contact us

Share this page