Jahia Install Forum > Jahia Installation...

0 (0 Good)
0 (0 Bad)

Jahia Installation Stage 7 / 10

by  supevents »  2011/06/07 20:51

Hello,

I try for several days to install Jahia locally using tomcat-5.5.27.
I declared the variable JAVA_HOME and installation starts without any hassle.

the problem is that when I go to Step 7 / 10 I:

Jahia is restarting. Be patient because the initialisation Jahia may take some time.

when I click on the button "Next Step" I come back automatically on the page http://localhost:8080

and I have the following message:


Etat HTTP 404 - 

--------------------------------------------------------------------------------

type Rapport d'état

message 

description La ressource demandée () n'est pas disponible.


--------------------------------------------------------------------------------

Apache Tomcat/5.5.27



Can you help me please

thank you

  (supevents)

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

Re: Jahia Installation Stage 7 / 10

by  tmayo »  2011/06/07 20:51

I had a very similar problem when first attempting to install. After multiple unsuccessful attempts (completely deleting everything and re-downloading, etc.) I tried using a different computer. Surprisingly, everything worked on the very first try, without me doing anything differently! 

I only have a one idea of what might have caused my problem (and hopefully yours too), and that is the default installation folder was wrong. On the first computer, the default install directory was "My Documents > Ted". When I tried installing Jahia again on the second computer, the default was "jahia_v6_CommunityEdition_r25203", which is also the extractable folder that I downloaded to install Jahia in the first place.
 

So, my advice is: try installing Jahia to where all of the other files are. Hope this works.I had a very similar problem when first attempting to install. After multiple unsuccessful attempts (completely deleting everything and re-downloading, etc.) I tried using a different computer. Surprisingly, everything worked on the very first try, without me doing anything differently!

I only have a one idea of what might have caused my problem (and hopefully yours too), and that is the default installation folder was wrong. On the first computer, the default install directory was quot;My Documents

  (tmayo)

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

Re: Jahia Installation Stage 7 / 10

by  conceptrat »  2011/06/07 20:52

I've noticed this happen for two reasons so far.

The first is if you followed the installation instructions and ran "./bin/startup.sh" without setting the JAVA_HOME environment variable.

And second if there's spaces present in the path that Jahia is installed in (I think this is only relevant to the Windows platform).

I personally encountered the first one as I just followed the instructions when installing Jahia in a Linux VM under VirtualBox. So if you just make sure to set the JAVA_HOME environment variable to the directory for your JDK before starting the server then all should work according to plan. My JAVA_HOME was "/usr/lib/jvm/java-6-sun" as that was the JDK I had installed in Ubuntu Linux.

If you've already run the install and hit this snag then restarting the server with JAVA_HOME set correctly should solve the issue and opening URL http://localhost:8080/ should continue on at step 8 of the install. The URL could be different for your install but the default port used is 8080.

  (conceptrat)

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

Re: Jahia Installation Stage 7 / 10

by  rula »  2011/06/07 20:52

Hi, i have similar problems by the installation step 7/10. Here is the jahia.log-file under the bin-directory.

2009-10-20 14:19:42,016: ERROR [main] ContextLoader, org.springframework.web.context.ContextLoader: Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'JahiaToolbarService' defined in ServletContext resource [/WEB-INF/etc/spring/applicationcontext-services.xml]: Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: org/jaxen/NamespaceContext

Please, can anybody help me with installation of jahia_v6_CommunityEdition_r25203 under win xp?

  (rula)

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

Re: Jahia Installation Stage 7 / 10

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

hello rula,

can you check in the folder:

..\jahia_v6_CommunityEdition_r25203\webapps\ROOT\WEB-INF\lib\

if you can see the following files there:

dom4j-1.6.1.jar
jaxen-1.1.1.jar
jdom-1.0.jar
xercesImpl-2.9.1.jar
xmlParserAPIs-2.9.1.jar
xom-1.0.jar

If all are there (and uncorrupted), which JDK version are you using ?

Regards,
Benjamin

Benjamin Papez (pap@commaro.com)

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

Re: Jahia Installation Stage 7 / 10

by  rula »  2011/06/07 20:52

Hi Benjamin,

all jars exists with the according versions, 

and I use:
java version "1.6.0_10"
Java(TM) SE Runtime Environment (build 1.6.0_10-b33)
Java HotSpot(TM) Client VM (build 11.0-b15, mixed mode, sharing)

on:
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

I think the jars are uncorrupted, but I am not really sure.

regards,
rula

  (rula)

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

Re: Jahia Installation Stage 7 / 10

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

Hello,

this is a strange one, I have never seen that issue and I am using nearly the same environment as you Win XP and JDK 1.6.0_11. Could you perhaps delete everything again and start installing from scratch, perhaps the issue will be gone. Please watch in the console for any ERROR logs while you do the installation and post all these logs here.

Regards,
Benjamin

Benjamin Papez (pap@commaro.com)

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

Re: Jahia Installation Stage 7 / 10

by  locutus »  2011/06/07 20:52

Hi,

I had the same error and in my case was due to some corrupted files, the last letter of the file extension was lost, for exemple .ja instead of .jar

  (locutus)

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

Re: Jahia Installation Stage 7 / 10

by  rula »  2011/06/07 20:52

Hi Benjamin,

in the attachments there are a localhost-log-file and a console-output-file of my last failed jahia-installation.

Regards,
rula

  (rula)

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

Re: Jahia Installation Stage 7 / 10

by  gregor »  2011/06/07 20:52

 

Hi,

I do have exatcly the same problems.

My environment:

- Windows XP SP 3

- Sun JDK 1.6._06

- MySQL 5.0

 

We face the same problem when we're installing Jahia on Debian Lenny.

Extract from the Jahia log:

Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.jahia.services.mail.MailServiceImpl#f04dae' defined in ServletContext resource [/WEB-INF/etc/spring/applicationcontext-notification.xml]: Cannot resolve reference to bean 'settingsBean' while setting bean property 'settingsBean'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'settingsBean' defined in ServletContext resource [/WEB-INF/etc/spring/applicationcontext-basejahiaconfig.xml]: Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: org/apache/commons/httpclient/HttpConnectionManager

   at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:275)

   at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:104)

   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1245)

   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1010)

   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:472)

   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)

   at java.security.AccessController.doPrivileged(Native Method)

   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)

   at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:219)

   ... 30 more

Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'settingsBean' defined in ServletContext resource [/WEB-INF/etc/spring/applicationcontext-basejahiaconfig.xml]: Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: org/apache/commons/httpclient/HttpConnectionManager

   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1337)

   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:473)

   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)

   at java.security.AccessController.doPrivileged(Native Method)

   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)

   at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)

   at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:221)

   at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)

   at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)

   at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)

   at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:269)

   ... 38 more

Caused by: java.lang.NoClassDefFoundError: org/apache/commons/httpclient/HttpConnectionManager

   at org.jahia.settings.SettingsBean.load(SettingsBean.java:419)

   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.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1413)

   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1374)

   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1334)

What I've found out:

I figure that the first exception can be overlooked since we do not have a MTU installed - AFAIK this is optional for Jahia.

However, it's different with the ClassNotFoundException for org/apache/commons/httpclient/HttpConnectionManager:

I'm using the download jahia_v6_CommunityEdition_r25203.tar.gz.

When unzipping it, everything looks fine so far.

Now I'm starting the installation-process. 

First question:

What to start? jahiaInstallation.bat? jahiaServer.bat? bin/startup.bat and then call the URL manually?

The README.txt and the online-docs are contradicting each other, which I personally think should be worth for a kick into somebody's a...

Anyhow, I tried all variants, and the result is always the same:

Jahia installation stops after Step 7, and then gives a 404, throwing the above listed exceptions.

So I wondered if the archives are corrupted and I checked.

When I looked at [JahiaInstallationDirectory]/webapps/ROOT/WEB-INF/lib, I ordered the files by type and I stumbled across the following files:

commons-httpclient-3.1.jar0000644

compass-1.2.2-jahia6.0.jar0000644

jahia-api-6.0-SNAPSHOT.jar0000644

jahia-gwt-6.0-SNAPSHOT.jar0000644

lucene-analyzers-2.2.0.jar0000644

urlrewritefilter-3.1.0.jar0000644

 

WTF?!?!?

Those files, obviously, where created by the Jahia-installer. However, due to their weird endings (I figure it's something with the user-rights), Tomcat's classloader (or any other Java-classloader) is not able to find those archives and load the classes.

Same goes for the file [JahiaInstallationDirectory]/webapps/ROOT/WEB-INF/pluto-portal-driver-config.xml0000644 - anothe WTF²?!?

Also [JahiaInstallationDirectory]/webapps/ROOT/WEB-INF/mbeans-descriptors.xml0000644 - WTF³?!?

I'll cut the story short here by telling you, that if you search the Jahia-Instalation-directory recursively for "*0000644", you'll end up with 96 files of any type - jar, gif, png, xml, js and so on - ooops?!?!?

Obviously, I've tried to rename all those files, again, to no avail. I've even restarted Tomcat and entered "http://localhost:8080/cms", again, the only thing I got was a HTTP404.

So guys, if I'm not completely mistaken, the current installer is rotten.

I'll try with the latest snapshot from svn and see what gives.

 

Will keep you guys posted...

 

Cheers

 

Gregor

  • Re: Jahia Installation Stage 7 / 10
    2011/07/04 14:13

    gregor <p> &nbsp;</p> <p> <title></title> </p> <p> Hi,</p> <p> I do have exatcly the same problems.</p> <p> My environment:</p> <p> - Windows XP SP 3</p> <p> - Sun JDK 1.6._06</p> <p> - MySQL 5.0</p> <p> &nbsp;</p> <p> We face the same problem when we&#39;re installing Jahia on Debian Lenny.</p> <p> Extract from the Jahia log:</p> <pre> Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name &#39;org.jahia.services.mail.MailServiceImpl#f04dae&#39; defined in ServletContext resource [/WEB-INF/etc/spring/applicationcontext-notification.xml]: Cannot resolve reference to bean &#39;settingsBean&#39; while setting bean property &#39;settingsBean&#39;; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name &#39;settingsBean&#39; defined in ServletContext resource [/WEB-INF/etc/spring/applicationcontext-basejahiaconfig.xml]: Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: org/apache/commons/httpclient/HttpConnectionManager at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:275) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:104) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1245) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1010) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:472) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409) at java.security.AccessController.doPrivileged(Native Method) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:219) ... 30 more Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name &#39;settingsBean&#39; defined in ServletContext resource [/WEB-INF/etc/spring/applicationcontext-basejahiaconfig.xml]: Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: org/apache/commons/httpclient/HttpConnectionManager at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1337) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:473) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409) at java.security.AccessController.doPrivileged(Native Method) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:221) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:269) ... 38 more Caused by: java.lang.NoClassDefFoundError: org/apache/commons/httpclient/HttpConnectionManager at org.jahia.settings.SettingsBean.load(SettingsBean.java:419) 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.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1413) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1374) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1334)</pre> <p> What I&#39;ve found out:</p> <p> I figure that the first exception can be overlooked since we do not have a MTU installed - AFAIK this is optional for Jahia.</p> <p> However, it&#39;s different with the ClassNotFoundException for org/apache/commons/httpclient/HttpConnectionManager:</p> <p> I&#39;m using the download jahia_v6_CommunityEdition_r25203.tar.gz.</p> <p> When unzipping it, everything looks fine so far.</p> <p> Now I&#39;m starting the installation-process.&nbsp;</p> <p> First question:</p> <p> What to start? jahiaInstallation.bat? jahiaServer.bat? bin/startup.bat and then call the URL manually?</p> <p> The README.txt and the online-docs are contradicting each other, which I personally think should be worth for a kick into somebody&#39;s a...</p> <p> Anyhow, I tried all variants, and the result is always the same:</p> <p> Jahia installation stops after Step 7, and then gives a 404, throwing the above listed exceptions.</p> <p> So I wondered if the archives are corrupted and I checked.</p> <p> When I looked at [JahiaInstallationDirectory]/webapps/ROOT/WEB-INF/lib, I ordered the files by type and I stumbled across the following files:</p> <p> commons-httpclient-3.1.jar0000644</p> <p> compass-1.2.2-jahia6.0.jar0000644</p> <p> jahia-api-6.0-SNAPSHOT.jar0000644</p> <p> jahia-gwt-6.0-SNAPSHOT.jar0000644</p> <p> lucene-analyzers-2.2.0.jar0000644</p> <p> urlrewritefilter-3.1.0.jar0000644</p> <p> &nbsp;</p> <p> WTF?!?!?</p> <p> Those files, obviously, where created by the Jahia-installer. However, due to their weird endings (I figure it&#39;s something with the user-rights), Tomcat&#39;s classloader (or any other Java-classloader) is not able to find those archives and load the classes.</p> <p> Same goes for the file [JahiaInstallationDirectory]/webapps/ROOT/WEB-INF/pluto-portal-driver-config.xml0000644 - anothe WTF&sup2;?!?</p> <p> Also [JahiaInstallationDirectory]/webapps/ROOT/WEB-INF/mbeans-descriptors.xml0000644 - WTF&sup3;?!?</p> <p> I&#39;ll cut the story short here by telling you, that if you search the Jahia-Instalation-directory recursively for &quot;*0000644&quot;, you&#39;ll end up with 96 files of any type - jar, gif, png, xml, js and so on - ooops?!?!?</p> <p> Obviously, I&#39;ve tried to rename all those files, again, to no avail. I&#39;ve even restarted Tomcat and entered &quot;http://localhost:8080/cms&quot;, again, the only thing I got was a HTTP404.</p> <p> So guys, if I&#39;m not completely mistaken, the current installer is rotten.</p> <p> I&#39;ll try with the latest snapshot from svn and see what gives.</p> <p> &nbsp;</p> <p> Will keep you guys posted...</p> <p> &nbsp;</p> <p> Cheers</p> <p> &nbsp;</p> <p> Gregor</p>

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