java - Jahia6.6 deployment error in maven-built module -


i trying develop template-set module jahia site.

i used step-by-step procedure described in official documentation available here : http://www.jahia.com/cms/home/download/jahia-academy/documentation.default.html?displaytab=technical-documentation "templating , integration guide".

basically, implies use maven archetype initialize, build , deploy project on server. 2 first steps correctly done. generates module's skeleton , mandatory files. then, can build create .war file.

mvn archetype:generate -darchetypecatalog=http://maven.jahia.org/maven2     >> [info] project generated  mvn clean install >> [info] build success 

but error occurs during deployment.

mvn jahia:deploy >> [info] build failure >> [error] failed execute goal org.jahia.server:maven-jahia-plugin:2.81:deploy (default-cli) on project test-template-set:  >> error while validating deployers:factory not initialized properly,  >> must set targetserverdirectory variable before calling getinstance ! -> [help 1] >> [error] [help 1] http://cwiki.apache.org/confluence/display/maven/mojoexecutionexception 

the provided link gives me self explanatory conclusion :

unlike many other errors, exception not generated maven core plugin. concrete meaning of exception depends on plugin please have @ documentation.

so after using standard procedure described in jahia documentation, piece of advice find have closer @ it. welcome catch-22 side of life.

i using jahia6.6.1.0 community distribution. found no further clues in jahia fora.

i know step did miss. common maven error ? or jahia mandatory file missing ? clue find "helloworld working module" great well.

here complete trace of error :

[info] error stacktraces turned on. [info] scanning projects... [info] [info] ------------------------------------------------------------------------ [info] building test cooptation template set 1.0-snapshot [info] ------------------------------------------------------------------------ [info] [info] --- maven-jahia-plugin:2.81:deploy (default-cli) @ test-template-set --- [info] jahia project structure version 2 [info] ------------------------------------------------------------------------ [info] build failure [info] ------------------------------------------------------------------------ [info] total time: 2.456s [info] finished at: thu apr 25 14:39:19 cest 2013 [info] final memory: 12m/220m [info] ------------------------------------------------------------------------ [error] failed execute goal org.jahia.server:maven-jahia-plugin:2.81:deploy (default-cli) on project test-template-set: error while validating deployers: factory not initialized properly, must set targetserverdirectory variabl e before calling getinstance ! -> [help 1] org.apache.maven.lifecycle.lifecycleexecutionexception: failed execute goal org.jahia.server:maven-jahia-plugin:2.81:deploy (default-cli) on project test-template-set: error while validating deployers         @ org.apache.maven.lifecycle.internal.mojoexecutor.execute(mojoexecutor.java:217)         @ org.apache.maven.lifecycle.internal.mojoexecutor.execute(mojoexecutor.java:153)         @ org.apache.maven.lifecycle.internal.mojoexecutor.execute(mojoexecutor.java:145)         @ org.apache.maven.lifecycle.internal.lifecyclemodulebuilder.buildproject(lifecyclemodulebuilder.java:84)         @ org.apache.maven.lifecycle.internal.lifecyclemodulebuilder.buildproject(lifecyclemodulebuilder.java:59)         @ org.apache.maven.lifecycle.internal.lifecyclestarter.singlethreadedbuild(lifecyclestarter.java:183)         @ org.apache.maven.lifecycle.internal.lifecyclestarter.execute(lifecyclestarter.java:161)         @ org.apache.maven.defaultmaven.doexecute(defaultmaven.java:320)         @ org.apache.maven.defaultmaven.execute(defaultmaven.java:156)         @ org.apache.maven.cli.mavencli.execute(mavencli.java:537)         @ org.apache.maven.cli.mavencli.domain(mavencli.java:196)         @ org.apache.maven.cli.mavencli.main(mavencli.java:141)         @ sun.reflect.nativemethodaccessorimpl.invoke0(native method)         @ sun.reflect.nativemethodaccessorimpl.invoke(nativemethodaccessorimpl.java:39)         @ sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl.java:25)         @ java.lang.reflect.method.invoke(method.java:597)         @ org.codehaus.plexus.classworlds.launcher.launcher.launchenhanced(launcher.java:290)         @ org.codehaus.plexus.classworlds.launcher.launcher.launch(launcher.java:230)         @ org.codehaus.plexus.classworlds.launcher.launcher.mainwithexitcode(launcher.java:409)         @ org.codehaus.plexus.classworlds.launcher.launcher.main(launcher.java:352) caused by: org.apache.maven.plugin.mojoexecutionexception: error while validating deployers         @ org.jahia.utils.maven.plugin.deploymojo.dovalidate(deploymojo.java:129)         @ org.jahia.utils.maven.plugin.abstractmanagementmojo.execute(abstractmanagementmojo.java:129)         @ org.apache.maven.plugin.defaultbuildpluginmanager.executemojo(defaultbuildpluginmanager.java:101)         @ org.apache.maven.lifecycle.internal.mojoexecutor.execute(mojoexecutor.java:209)         ... 19 more caused by: java.lang.runtimeexception: factory not initialized properly, must set targetserverdirectory variable before calling getinstance !         @ org.jahia.configuration.deployers.serverdeploymentfactory.getinstance(serverdeploymentfactory.java:74)         @ org.jahia.utils.maven.plugin.deploymojo.dovalidate(deploymojo.java:127)         ... 22 more [error] [error] re-run maven using -x switch enable full debug logging. [error] [error] more information errors , possible solutions, please rea d following articles: [error] [help 1] http://cwiki.apache.org/confluence/display/maven/mojoexecutionexception 

the prerequisites - jahia mentions should @ least adjust target path our apache tomcat application server and, in case build jahia sources code , deploy it, db connection settings.

the minimal settings.xml file deploying jahia on tomcat , using mysql dbms is:

<?xml version="1.0" encoding="iso-8859-1"?> <settings xmlns="http://maven.apache.org/settings/1.0.0"     xmlns:xsi="http://www.w3.org/2001/xmlschema-instance"     xsi:schemalocation="http://maven.apache.org/settings/1.0.0                       http://maven.apache.org/xsd/settings-1.0.0.xsd">      <localrepository>c:/development/m2repository</localrepository>      <servers>         <server>             <id>jahiarepository</id>             <username>maven</username>             <privatekey>c:/putty/maven.jahia.org.private</privatekey>         </server>     </servers>     <profiles>         <profile>             <id>jahia-mysql</id>             <properties>                 <jahia.configure.databasetype>mysql</jahia.configure.databasetype>                 <jahia.configure.databaseurl>jdbc:mysql://localhost/jahia?useunicode=true&amp;characterencoding=utf-8&amp;useserverprepstmts=false</jahia.configure.databaseurl>                 <jahia.configure.databaseusername>root</jahia.configure.databaseusername>                 <jahia.configure.databasepassword>password</jahia.configure.databasepassword>             </properties>         </profile>         <profile>             <id>jahia-tomcat</id>             <properties>                 <jahia.deploy.targetservertype>tomcat</jahia.deploy.targetservertype>                 <jahia.deploy.targetserverdirectory>c:/development/apache-tomcat-6.0.32</jahia.deploy.targetserverdirectory>                 <jahia.deploy.targetserverversion>6</jahia.deploy.targetserverversion>             </properties>         </profile>     </profiles>      <activeprofiles>         <activeprofile>jahia-mysql</activeprofile>         <activeprofile>jahia-tomcat</activeprofile>     </activeprofiles>      <plugingroups>         <plugingroup>org.jahia.server</plugingroup>     </plugingroups> </settings> 

i hope may help.


Popular posts from this blog

How to calculate SNR of signals in MATLAB? -

c# - Attempting to upload to FTP: System.Net.WebException: System error -

ios - UISlider customization: how to properly add shadow to custom knob image -