Jahia Dev Forum > Errors starting...

0 (0 Good)
0 (0 Bad)

Errors starting Tomcat when building Jahia from sources

by  new_to_jahia »  2011/06/07 20:37

Hello to all!

I am trying to install Jahia from the sources. I extracted the sources from SVN and run
[code:2b8dqbbp]mvn install jahia#58;deploy[/code:2b8dqbbp]
with the [b:2b8dqbbp]settings.xml.example[/b:2b8dqbbp] all configured and set-up in Maven. After an hour of compile time it ended with BUILD SUCCESFULL.

But, when I run Tomcat 6 I got errors because Spring?��s Context was not loaded. Debugged the sources and saw that the [b:2b8dqbbp]jahia.properties[/b:2b8dqbbp] was missing. Added this file from the Jahia Demo and tried again. This time I have errors like:

[code:2b8dqbbp]Error creating bean with name 'sessionFactory' defined in ServletContext resource
  • Errors starting Tomcat when building Jahia from sources
    2011/06/07 20:37

    new_to_jahia Hello to all!<br/><br/>I am trying to install Jahia from the sources. I extracted the sources from SVN and run <br/>[code:2b8dqbbp]mvn install jahia#58;deploy[/code:2b8dqbbp] <br/>with the [b:2b8dqbbp]settings.xml.example[/b:2b8dqbbp] all configured and set-up in Maven. After an hour of compile time it ended with BUILD SUCCESFULL.<br/><br/>But, when I run Tomcat 6 I got errors because Spring?��s Context was not loaded. Debugged the sources and saw that the [b:2b8dqbbp]jahia.properties[/b:2b8dqbbp] was missing. Added this file from the Jahia Demo and tried again. This time I have errors like:<br/><br/>[code:2b8dqbbp]Error creating bean with name 'sessionFactory' defined in ServletContext resource

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

    Re: Errors starting Tomcat when building Jahia from sources

    by  shyrkov »  2011/06/07 20:37

    Hello,

    the command:
    [code:3m45ty79]mvn install jahia#58;deploy[/code:3m45ty79]
    does the compilation of Jahia and copies the artifacts to the target server (configured in the settings.xml file), but does not do the initial setup (DB datasource configuration etc.).
    This initial configuration is done by the Jahia Configuration Wizard (screens, you see, when you install Jahia from the distributed package).
    There are two options, when you build the Jahia from source.
    [list:3m45ty79]
    [*:3m45ty79]You also build and deploy the configuration wizard by going into configwizard-webapp/war folder, executing there
  • Re: Errors starting Tomcat when building Jahia from sources
    2011/06/07 20:37

    shyrkov Hello,<br/><br/>the command:<br/>[code:3m45ty79]mvn install jahia#58;deploy[/code:3m45ty79]<br/>does the compilation of Jahia and copies the artifacts to the target server (configured in the settings.xml file), but does not do the initial setup (DB datasource configuration etc.).<br/>This initial configuration is done by the Jahia Configuration Wizard (screens, you see, when you install Jahia from the distributed package).<br/>There are two options, when you build the Jahia from source.<br/>[list:3m45ty79]<br/>[*:3m45ty79]You also build and deploy the configuration wizard by going into configwizard-webapp/war folder, executing there

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

    Re: Errors starting Tomcat when building Jahia from sources

    by  new_to_jahia »  2011/06/07 20:37

    Hello Sergiy,

    I followed your instructions and everything worked; database was created, Tomcat started without errors and I could access the Jahia administration page. I am fairly new to this Maven thing so I did not fully understand the instructions on the site, but now it's clear.

    I will start playing with some templates now :D.

    Thank you!
  • Re: Errors starting Tomcat when building Jahia from sources
    2011/06/07 20:37

    new_to_jahia Hello Sergiy,<br/><br/>I followed your instructions and everything worked; database was created, Tomcat started without errors and I could access the Jahia administration page. I am fairly new to this Maven thing so I did not fully understand the instructions on the site, but now it's clear. <br/><br/>I will start playing with some templates now <!-- s:D --><img src="{SMILIES_PATH}/icon_e_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->.<br/><br/>Thank you!

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

    Re: Errors starting Tomcat when building Jahia from sources

    by  new_to_jahia »  2011/06/07 20:37

    Hello again,

    I?��ve been reading [url=http#58;//www
  • Re: Errors starting Tomcat when building Jahia from sources
    2011/06/07 20:37

    new_to_jahia Hello again,<br/><br/>I?��ve been reading [url=http#58;//www

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

    Re: Errors starting Tomcat when building Jahia from sources

    by  pap@commaro.com »  2011/06/07 20:37

    Hello,

    here is a blog entry of one of our partners, which shows a nice overview: [url:1rv3g2xq]http#58;//oshyn

    Benjamin Papez (pap@commaro.com)

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

    Re: Errors starting Tomcat when building Jahia from sources

    by  new_to_jahia »  2011/06/07 20:37

    Hello,

    I developed some simple templates from scratch, deployed them to the server and added some content to the page (I even started to like that CND stuff :geek:).

    But now I want to style up my templates and add some CSS to it. I followed the structure indicated [url=http#58;//www
  • Re: Errors starting Tomcat when building Jahia from sources
    2011/06/07 20:37

    new_to_jahia Hello,<br/><br/>I developed some simple templates from scratch, deployed them to the server and added some content to the page (I even started to like that CND stuff <!-- s:geek: --><img src="{SMILIES_PATH}/icon_e_geek.gif" alt=":geek:" title="Geek" /><!-- s:geek: -->). <br/><br/>But now I want to style up my templates and add some CSS to it. I followed the structure indicated [url=http#58;//www

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

    Re: Errors starting Tomcat when building Jahia from sources

    by  new_to_jahia »  2011/06/07 20:37

    I finally resolved this by adding another theme then going to the quot;administration
  • Re: Errors starting Tomcat when building Jahia from sources
    2011/06/07 20:37

    new_to_jahia I finally resolved this by adding another theme then going to the quot;administration

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

    Re: Errors starting Tomcat when building Jahia from sources

    by  shyrkov »  2011/06/07 20:37

    Hello,

    normally, updating a theme for a virtual site (even if only one is available) should be accomplished by using quot;Save changes
  • Re: Errors starting Tomcat when building Jahia from sources
    2011/06/07 20:37

    shyrkov Hello,<br/><br/>normally, updating a theme for a virtual site (even if only one is available) should be accomplished by using quot;Save changes

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

    Re: Errors starting Tomcat when building Jahia from sources

    by  new_to_jahia »  2011/06/07 20:37

    Hello,

    I am using the JAHIA-6-0-COMMUNITY-BRANCH.

    In the SVN repository view I see:

    JAHIA-6-0-BRANCH
    JAHIA-6-0-SP1-BRANCH
    JAHIA_6_0_0_EA-BRANCH
    JAHIA-6-1-BRANCH
    JAHIA-6-0-COMMUNITY-BRANCH

    What's the difference between them?

    To select the theme for my site, I used Administration gt; Choose site default theme
  • Re: Errors starting Tomcat when building Jahia from sources
    2011/06/07 20:37

    new_to_jahia Hello,<br/><br/>I am using the JAHIA-6-0-COMMUNITY-BRANCH.<br/><br/>In the SVN repository view I see:<br/><br/>JAHIA-6-0-BRANCH<br/>JAHIA-6-0-SP1-BRANCH<br/>JAHIA_6_0_0_EA-BRANCH<br/>JAHIA-6-1-BRANCH<br/>JAHIA-6-0-COMMUNITY-BRANCH<br/><br/>What's the difference between them?<br/><br/>To select the theme for my site, I used Administration gt; Choose site default theme

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

    Re: Errors starting Tomcat when building Jahia from sources

    by  trenaud »  2011/06/07 20:37

    Hello new_to_jahia,

    It seems to me you are asking questions about different issues. I recommend creating different posts! Let me create one specific to your branch question for example.

    Tristan
  • Re: Errors starting Tomcat when building Jahia from sources
    2011/06/07 20:37

    trenaud Hello new_to_jahia,<br/><br/>It seems to me you are asking questions about different issues. I recommend creating different posts! Let me create one specific to your branch question for example.<br/><br/>Tristan

  • Number of messages  71
    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