cancel
Showing results for 
Search instead for 
Did you mean: 

Install problems with Alfresco.war

aadhikari
Champ on-the-rise
Champ on-the-rise
I am a newbie to Alfresco. I already have Tomcat installed, so I am trying to intall Alfresco by alfresco.war file in the webapps subdirectory of Tomcat. I have already followed all the steps given in the readme except the configure database connections part, because it said the default should work for testing purposes.
When I go to http://localhost:8080/alfresco, I get the error "The requested resource (/alfresco) is not available."
What am I missing?
14 REPLIES 14

seanradford
Confirmed Champ
Confirmed Champ
Does the JBoss log give any indication as the why Alfresco is not deploying (one would presume that it is not if the context is not available)?

aadhikari
Champ on-the-rise
Champ on-the-rise
These are the steps I followed:
Downloaded & Installed J2EE SDK 5.0.1 for Windows
Downloaded & Installed MySQL 5.0.27 for Windows
   Checked that it worked by typing mysql –u root –p at c prompt
Physically copied the alfresco.war file to CATALINA_HOME\webapps\alfresco\
Downloaded and Installed the MySQL Java Database Connector
Physically copied the mysql-connector-java-5.0.4-bin.jar file to CATALINA_HOME\common\lib
Created the alfresco database in MySQL by running the db_setup.sql file
Did not install OpenOffice
Did not configure the Database Connections and Data Locations since it says in the wiki (http://wiki.alfresco.com/wiki/Repository_Configuration#New_Installations) that the default will work for quick previews and tests.

Environment Variables:
APACHE_HOME: C:\Progra~1\Apache~1;
JAVA_HOME: C:\Sun\SDK;
CATALINA_HOME: %APACHE_HOME%\Tomcat~1;
ClassPath:C:\Program Files\Documentum\dctm.jar;C:\Documentum\config;C:\Program Files\Java\j2re1.4.2_05\lib\ext\QTJava.zip;C:\Program Files\Apache Software Foundation\xerces-1_4_4;C:\Program Files\Apache Software Foundation\junit4.1;%AXISCLASSPATH%;

I dont have JBoss installed. Do I need it if I have Java SDK and Tomcat?

kevinr
Star Contributor
Star Contributor
Physically copied the alfresco.war file to CATALINA_HOME\webapps\alfresco\

Do you mean you copied the alfresco.war into the folder "CATALINA_HOME\webapps\alfresco"? If so that is incorrect - the WAR should be copied into "CATALINA_HOME\webapps" and it will self extract in an "alfresco" when you start tomcat for the first time.

If you try this, do you get any other errors on the log/console?

Thanks,

Kevin

aadhikari
Champ on-the-rise
Champ on-the-rise
I copied the alfresco.war file in the CATALINA_HOME\webapps folder, deleted the previous CATALINA_HOME\webapps\alfresco folder, then restarted Tomcat. I still get the same error when i go to http://localhost:8080/alfresco.
The following folders and files are in the CATALINA_HOME\webapps\alfresco folder:
css
images
jsp
META-INF
scripts
WEB-INF
wsdl
index.jsp

The localhost log in CATALINA_HOME\logs has the following errors:

2007-01-11 12:24:08 StandardContext[/alfresco]Error configuring application listener of class org.apache.myfaces.webapp.StartupServletContextListener
java.lang.UnsupportedClassVersionError: org/apache/myfaces/webapp/StartupServletContextListener (Unsupported major.minor version 49.0)
   at java.lang.ClassLoader.defineClass0(Native Method)
   at java.lang.ClassLoader.defineClass(ClassLoader.java:539)
   at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
   at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1634)
   at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:860)
   at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1307)
   at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1189)
   at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3775)
   at org.apache.catalina.core.StandardContext.start(StandardContext.java:4343)
   at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:823)
   at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
   at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595)
   at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:277)
   at org.apache.catalina.core.StandardHost.install(StandardHost.java:832)
   at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:625)
   at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:431)
   at org.apache.catalina.startup.HostConfig.start(HostConfig.java:983)
   at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:349)
   at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
   at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1091)
   at org.apache.catalina.core.StandardHost.start(StandardHost.java:789)
   at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083)
   at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:478)
   at org.apache.catalina.core.StandardService.start(StandardService.java:480)
   at org.apache.catalina.core.StandardServer.start(StandardServer.java:2313)
   at org.apache.catalina.startup.Catalina.start(Catalina.java:556)
   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:324)
   at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:287)
   at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425)

2007-01-11 12:24:08 StandardContext[/alfresco]Error configuring application listener of class org.alfresco.web.app.ContextListener
java.lang.UnsupportedClassVersionError: org/alfresco/web/app/ContextListener (Unsupported major.minor version 49.0)
   at java.lang.ClassLoader.defineClass0(Native Method)
   at java.lang.ClassLoader.defineClass(ClassLoader.java:539)
   at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
   at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1634)
   at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:860)
   at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1307)
   at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1189)
   at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3775)
   at org.apache.catalina.core.StandardContext.start(StandardContext.java:4343)
   at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:823)
   at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
   at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595)
   at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:277)
   at org.apache.catalina.core.StandardHost.install(StandardHost.java:832)
   at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:625)
   at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:431)
   at org.apache.catalina.startup.HostConfig.start(HostConfig.java:983)
   at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:349)
   at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
   at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1091)
   at org.apache.catalina.core.StandardHost.start(StandardHost.java:789)
   at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083)
   at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:478)
   at org.apache.catalina.core.StandardService.start(StandardService.java:480)
   at org.apache.catalina.core.StandardServer.start(StandardServer.java:2313)
   at org.apache.catalina.startup.Catalina.start(Catalina.java:556)
   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:324)
   at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:287)
   at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425)

2007-01-11 12:24:14 StandardContext[/jsp-examples]ContextListener: contextInitialized()
2007-01-11 12:24:14 StandardContext[/jsp-examples]SessionListener: contextInitialized()
2007-01-11 12:24:14 StandardContext[/servlets-examples]ContextListener: contextInitialized()
2007-01-11 12:24:14 StandardContext[/servlets-examples]SessionListener: contextInitialized()

kevinr
Star Contributor
Star Contributor
Are you sure TomCat is using JDK1.5? As you have JRE1.4.2 on your classpath - can you check with:
java -version
As the error you are seeing suggests that you are running Alfresco with JDK1.4.

The other possibility is that you have different versions of the MyFaces JAR installed in TomCat? Can you look for jsf*.jar and update them to the same ones as inside the alfresco.war or remove them.

Thanks,

Kevin

aadhikari
Champ on-the-rise
Champ on-the-rise
the java -version command gives:
java version "1.5.0_09"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_09-b03)
Java HotSpot(TM) Client VM (build 1.5.0_09-b03, mixed mode)

I have JRE 1.4.2 installed earlier on my machine for running Tomcat+Documentum Webtop.

A search for jsf*.jar files throught the hard drive found the following:
jsf-impl.jar in C:\Sun\SDK\lib
jsf-facelets.jar in jboss/server/default/deploy/jboss-portal.sar/lib

aadhikari
Champ on-the-rise
Champ on-the-rise
sorry, the jsf-facelets.jar file is actually in the alfresco-community-jboss-1.4.0.zip file that I had downloaded. A search for jsf*.jar in the CATALINA_HOME directory comes up with nothing.

kevinr
Star Contributor
Star Contributor
the java -version command gives:
java version "1.5.0_09"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_09-b03)
Java HotSpot(TM) Client VM (build 1.5.0_09-b03, mixed mode)
Good that sounds ok then.

A search for jsf*.jar files throught the hard drive found the following:
jsf-impl.jar in C:\Sun\SDK\lib

This may be your problem - can you try removing this JAR from the lib folder and starting tomcat again? Is this a standard installation of the Java JDK or something else from Sun? I'm wondering as it looks like your JAVA_HOME is pointing to this Sun dir - maybe you could try running with the standard JDK1.5 download and using that as your JAVA_HOME dir?

Thanks,

Kevin

aadhikari
Champ on-the-rise
Champ on-the-rise
Is this a standard installation of the Java JDK or something else from Sun?
I had the 1.4.2 version of JRE installed on my machine earlier for Tomcat and Documentum Webtop. When I tried to install Alfresco + Tomcat bundle, and tried running the alf_start.bat file, I got the error that the JAVA_HOME should be pointing to a JDK installation. On the sun site, I found the J2EE application server seemed to be the only one which had JDK, plus it is needed for development of web services it said, which is what I would like to do at a later date.


I'm wondering as it looks like your JAVA_HOME is pointing to this Sun dir
I changed it myself from the jre directory that I had earlier. should I point it back to the jre install at C:\j2sdk1.4.2_05 ?