cancel
Showing results for 
Search instead for 
Did you mean: 

404 Error After Install

howardjacobson
Champ in-the-making
Champ in-the-making
I have installed Alfresco Labs 3 Stable on Ubuntu 8.10.  I am using Alfresco with the MySQL connector.  When I try to access the Web Client, I get:

HTTP Status 404 -

type Status report

message

description The requested resource () is not available.
Apache Tomcat/6.0.18

My alfresco.log file contains:

01:37:40,816 INFO  [org.alfresco.web.scripts.DeclarativeRegistry] Registered 67 Web Scripts (+0 failed), 71 URLs
01:37:40,823 INFO  [org.alfresco.web.scripts.AbstractRuntimeContainer] Initialised Presentation Web Script Container (in 602.7314ms)
01:38:41,754 INFO  [org.alfresco.web.scripts.DeclarativeRegistry] Registered 101 Web Scripts (+0 failed), 105 URLs
01:38:41,754 INFO  [org.alfresco.web.scripts.AbstractRuntimeContainer] Initialised WebFramework Web Script Container (in 60913.13ms)
01:38:41,920 INFO  [org.alfresco.web.site.FrameworkHelper] Successfully Initialized Web Framework
01:39:00,752 ERROR [org.alfresco.repo.content.transform.magick.AbstractImageMagickContentTransformer] ImageMagickContentTransformer not available: Failed to perform ImageMagick transformation:
Execution result:
   os:         Linux
   command:    [./ImageMagick/bin/convert, /opt/Alfresco/tomcat/temp/Alfresco/ImageMagickContentTransformer_init_source_53624.gif, /opt/Alfresco/tomcat/temp/Alfresco/ImageMagickContentTransformer_init_target_53625.png]
   succeeded:  false
   exit code:  1
   out:
   err:        Cannot run program "./ImageMagick/bin/convert": java.io.IOException: error=2, No such file or directory
01:39:03,148 INFO  [org.alfresco.config.xml.XMLConfigService$PropertyConfigurer] Loading properties file from class path resource [alfresco/file-servers.properties]
01:39:07,696 ERROR [org.alfresco.repo.content.transform.RuntimeExecutableContentTransformer] Failed to start a runtime executable content transformer:
Execution result:
   os:         Linux
   command:    [./bin/pdf2swf, -V]
   succeeded:  false
   exit code:  1
   out:
   err:        Cannot run program "./bin/pdf2swf": java.io.IOException: error=2, No such file or directory
01:39:15,004 INFO  [org.alfresco.repo.domain.schema.SchemaBootstrap] Schema managed by database dialect org.hibernate.dialect.MySQLInnoDBDialect.
01:41:15,695 ERROR [org.alfresco.repo.domain.schema.SchemaBootstrap] Schema auto-update failed
org.alfresco.error.AlfrescoRuntimeException: A previous schema upgrade failed or was not completed.  Revert to the original database before attempting the upgrade again.
        at org.alfresco.repo.domain.schema.SchemaBootstrap.onBootstrap(SchemaBootstrap.java:1136)
        at org.alfresco.util.AbstractLifecycleBean.onApplicationEvent(AbstractLifecycleBean.java:62)
        at org.springframework.context.event.SimpleApplicationEventMulticaster$1.run(SimpleApplicationEventMulticaster.java:77)
        at org.springframework.core.task.SyncTaskExecutor.execute(SyncTaskExecutor.java:49)
        at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:75)
        at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:246)
        at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:355)
        at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:244)
        at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:187)
        at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:49)
        at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3843)
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:4342)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
        at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:830)
        at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:719)
        at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:490)
        at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1149)
        at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
        at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
        at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
        at org.apache.catalina.core.StandardService.start(StandardService.java:516)
        at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
        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.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
01:41:15,697 ERROR [org.springframework.web.context.ContextLoader] Context initialization failed
org.alfresco.error.AlfrescoRuntimeException: Schema auto-update failed
        at org.alfresco.repo.domain.schema.SchemaBootstrap.onBootstrap(SchemaBootstrap.java:1192)
        at org.alfresco.util.AbstractLifecycleBean.onApplicationEvent(AbstractLifecycleBean.java:62)
        at org.springframework.context.event.SimpleApplicationEventMulticaster$1.run(SimpleApplicationEventMulticaster.java:77)
        at org.springframework.core.task.SyncTaskExecutor.execute(SyncTaskExecutor.java:49)
        at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:75)
        at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:246)
        at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:355)
        at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:244)
        at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:187)
        at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:49)
        at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3843)
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:4342)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
        at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:830)
        at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:719)
        at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:490)
        at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1149)
        at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
        at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
        at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
        at org.apache.catalina.core.StandardService.start(StandardService.java:516)
        at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
        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.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Caused by: org.alfresco.error.AlfrescoRuntimeException: A previous schema upgrade failed or was not completed.  Revert to the original database before attempting the upgrade again.
        at org.alfresco.repo.domain.schema.SchemaBootstrap.onBootstrap(SchemaBootstrap.java:1136)
        … 33 more
01:41:20,859 INFO  [org.alfresco.web.site.FrameworkHelper] Successfully Initialized Web Framework

I am new to Alfresco and do not understand most of what is in the log file.  Any help appreciated.  Thanks.
14 REPLIES 14

abhishek385
Champ in-the-making
Champ in-the-making
Drop the database and create it again, also delete the alf_data folder from the bin folder of tomcat..

roeldircks
Champ in-the-making
Champ in-the-making
I am having the same problem.
I followed the pdf file with the installation guide in it. I did it exactly the way they mentioned there.
But I am using CentOS 5.2.

I dropped the database and recreated it, and deleted the alf_data file.
But still the same error when trying to access alfresco, the webinterface won't load at all, when I try to access the alfresco share interface that loads but when you log in you get an error.

HTTP Status 404 -

type Status report

message

description The requested resource () is not available.
Apache Tomcat/6.0.18
When using: http://localhost:8080/alfresco

[img]http://www.eetpunt.eu/alfrescoshare-error.jpg[/img]
When using: http://localhost:8080/share

When I uncomment all the MySQL lines in the custom-hibernate-dialect.properties and custom-repository.properties file and put them back to Derby then Alfresco works. So maybe I am doing something wrong there, anyone have a working Alfresco using MySQL and willing to post the custom-hibernate-dialect.properties and custom-repository.properties they used.
I am using MySQL 5.1.31. According to the helpfile I need 5.0.67 or higher, so my version of MySQL should be ok.

I am really hoping anyone knows how to solve this problem that Alfresco will work with MySQL.

abhishek385
Champ in-the-making
Champ in-the-making
Please check the Tomcat log to find the exact error……

mikeh
Star Contributor
Star Contributor
Also please see the Centos notes here: http://wiki.alfresco.com/wiki/Installing_Alfresco_Community_WAR_on_Centos_5

Thanks,
Mike

howardjacobson
Champ in-the-making
Champ in-the-making
For what it's worth, I solved this problem by reinstalling Ubuntu WITHOUT Tomcat.  It seems that the installation of Alfresco on a machine that already has Tomcat installed requires some Tomcat configuration changes (e.g., to CATALINA related environment variables).

mikeh
Star Contributor
Star Contributor
For what it's worth, I solved this problem by reinstalling Ubuntu WITHOUT Tomcat.  It seems that the installation of Alfresco on a machine that already has Tomcat installed requires some Tomcat configuration changes (e.g., to CATALINA related environment variables).
No, shouldn't do - but glad you got sorted out in the end.

Mike

roeldircks
Champ in-the-making
Champ in-the-making
Also please see the Centos notes here: http://wiki.alfresco.com/wiki/Installing_Alfresco_Community_WAR_on_Centos_5

Thanks,
Mike

Thank you Mike.
The link you provided there works.
It seems there is some sort of problem with the full install package.
When I installed tomcat5 via yum and only installed the alfrescolabs.war package like it says in that guide my alfresco works fine with MySQL.

So I think CentOS just as Ubuntu has a default installed tomcat service, and when you want to install the full install package you get a few problems with configuration. Like howardjacobson already found out.
Because he posted about the Tomcat which is default in Ubuntu I went searching in my default CentOS install to find out my CentOS also has the same problem that it has a default installed tomcat service.

http://wiki.alfresco.com/wiki/Installing_Alfresco_Community_WAR_on_Centos_5#Install_tomcat5.2C_MySQL...
So this link works also for the latest Alfresco release, just change some names to the newer version and the guide is perfect to use.

I am happy that my Alfresco Labs Final now works with MySQL database.


But now comes the problem that I need to install the Share Extension apart, I can't seem to find it and the http://localhost:8080/share doesn't work now.
Some help how to fix this will be appreciated. It appears I don't have a share.war file anywhere, where can I get the share.war file?

Edit:
Managed to deploy share.war. After some errors with PermGen space errors when opening both Alfresco and Share together I managed to got it all working by adding some extra parameters to the tomcat5 startup config.


Thanks alot.

Kind Regards,
Roel Dircks

noesje
Champ in-the-making
Champ in-the-making
Hi

I am having the same problem only with RedHat Linux.

I have tried almost everything but still I receive this error:
HTTP Status 404 -

type Status report

message

description The requested resource () is not available.
Apache Tomcat/6.0.18


Yesterday I installed Alfresco, everything was fine. I could login etc. Today i startup my laptop and I cannot even login.

Alfresco.log

10:49:09,875 INFO  [org.alfresco.web.site.FrameworkHelper] Successfully Initialized Web
Framework



Can somebody help me please? It is really urgent.

Thanks!

gronfelt
Champ in-the-making
Champ in-the-making
Can somebody help me please? It is really urgent.

Thanks!

Could you post your alfresco.log file?