Jahia Dev Forum > Error Building Jahia...

0 (0 Good)
0 (0 Bad)

Error Building Jahia 6.5 from Sources

by  adkl »  2011/06/07 20:47

I'm having a problem building Jahia 6.5 from svn sources. Following the
README in the source directory with small adaptations
(context-root set to /jahia; apache tomcat7).

Problem: NullPointerException in DeployMojo (validateInstallationDirectory).

Not sure which installation directory it attempts to validate.
The directory 'targetServerDirectory' is set and writable (settings.xml):

<profile>
<id>jahia-tomcat</id>
<properties>
<jahia.deploy.targetServerType>tomcat</jahia.deploy.targetServerType>
<jahia.deploy.targetServerDirectory>/srv/servers/apache-tomcat-7.0.5</jahia.deploy.targetServerDirectory>
<jahia.deploy.targetServerVersion>7</jahia.deploy.targetServerVersion>
<jahia.deploy.war.dirName>jahia</jahia.deploy.war.dirName>
<jahia.deploy.war.contextPath>/jahia</jahia.deploy.war.contextPath>
</properties>
</profile>

Any help is much appreciated.

Kind Regards

===============================================
Command: 
$ mvn install jahia:deploy -P jahia-tomcat

[...]

[INFO] [jahia:deploy {execution: default-cli}]
[INFO] Jahia project structure version is 2
[INFO] ------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO] ------------------------------------------------------------------------
[INFO] null
[INFO] ------------------------------------------------------------------------
[INFO] Trace
java.lang.NullPointerException
at org.jahia.utils.maven.plugin.ServerDeployer.validateInstallationDirectory(ServerDeployer.java:94)
at org.jahia.utils.maven.plugin.DeployMojo.doValidate(DeployMojo.java:130)
at org.jahia.utils.maven.plugin.AbstractManagementMojo.execute(AbstractManagementMojo.java:129)
at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:569)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:539)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
[INFO] ------------------------------------------------------------------------

  • Error Building Jahia 6.5 from Sources
    2011/07/08 11:58

    adkl <p> I&#39;m having a problem building Jahia 6.5 from svn sources. Following the<br /> README in the source directory with small adaptations<br /> (context-root set to /jahia; apache tomcat7).</p> <p> Problem: NullPointerException in DeployMojo (validateInstallationDirectory).</p> <p> Not sure which installation directory it attempts to validate.<br /> The directory &#39;targetServerDirectory&#39; is set and writable (settings.xml):</p> <p> &lt;profile&gt;<br /> &lt;id&gt;jahia-tomcat&lt;/id&gt;<br /> &lt;properties&gt;<br /> &lt;jahia.deploy.targetServerType&gt;tomcat&lt;/jahia.deploy.targetServerType&gt;<br /> &lt;jahia.deploy.targetServerDirectory&gt;/srv/servers/apache-tomcat-7.0.5&lt;/jahia.deploy.targetServerDirectory&gt;<br /> &lt;jahia.deploy.targetServerVersion&gt;7&lt;/jahia.deploy.targetServerVersion&gt;<br /> &lt;jahia.deploy.war.dirName&gt;jahia&lt;/jahia.deploy.war.dirName&gt;<br /> &lt;jahia.deploy.war.contextPath&gt;/jahia&lt;/jahia.deploy.war.contextPath&gt;<br /> &lt;/properties&gt;<br /> &lt;/profile&gt;</p> <p> Any help is much appreciated.</p> <p> Kind Regards</p> <p> ===============================================<br /> Command:&nbsp;<br /> $ mvn install jahia:deploy -P jahia-tomcat<br /> <br /> [...]<br /> <br /> [INFO] [jahia:deploy {execution: default-cli}]<br /> [INFO] Jahia project structure version is 2<br /> [INFO] ------------------------------------------------------------------------<br /> [ERROR] FATAL ERROR<br /> [INFO] ------------------------------------------------------------------------<br /> [INFO] null<br /> [INFO] ------------------------------------------------------------------------<br /> [INFO] Trace<br /> java.lang.NullPointerException<br /> at org.jahia.utils.maven.plugin.ServerDeployer.validateInstallationDirectory(ServerDeployer.java:94)<br /> at org.jahia.utils.maven.plugin.DeployMojo.doValidate(DeployMojo.java:130)<br /> at org.jahia.utils.maven.plugin.AbstractManagementMojo.execute(AbstractManagementMojo.java:129)<br /> at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)<br /> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)<br /> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:569)<br /> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:539)<br /> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)<br /> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)<br /> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)<br /> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)<br /> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)<br /> at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)<br /> at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)<br /> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<br /> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)<br /> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)<br /> at java.lang.reflect.Method.invoke(Method.java:597)<br /> at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)<br /> at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)<br /> at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)<br /> at org.codehaus.classworlds.Launcher.main(Launcher.java:375)<br /> [INFO] ------------------------------------------------------------------------</p>

  • Number of messages  5
    Registration date Jun 7, 2011
    0 (0 Good)
    0 (0 Bad)

    Re: Error Building Jahia 6.5 from Sources

    by  shyrkov »  2011/06/07 20:47

    Hello,

    please, try removing the following element from your profile:

    
    <jahia.deploy.targetServerVersion>7</jahia.deploy.targetServerVersion>

    The plugin is unable to find a deployer for Tomcat "7", so it fails.

     

    Kind regards

    Sergiy

  • Re: Error Building Jahia 6.5 from Sources
    2011/07/08 11:58

    shyrkov <p> Hello,<br /> <br /> please, try removing the following element from your profile:</p> <pre> &lt;jahia.deploy.targetServerVersion&gt;7&lt;/jahia.deploy.targetServerVersion&gt;</pre> <p> The plugin is unable to find a deployer for Tomcat &quot;7&quot;, so it fails.</p> <p> &nbsp;</p> <p> Kind regards</p> <p> Sergiy</p>

  • Number of messages  407
    Registration date Jun 7, 2011
    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