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] ------------------------------------------------------------------------

  (adkl)

Number of messages  5
Registration date
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