cancel
Showing results for 
Search instead for 
Did you mean: 

New install, tomcat 404, no logfile

u1001
Champ in-the-making
Champ in-the-making
Hello,

I've installed alfresco on a fresh debian7 system using the command line.

sudo alfresco-community-4.2.f-installer-linux-x64.bin –optionfile alfresco_installer.conf


<b>.conf-file:</b>


unattendedmodeui=none
debuglevel=0
mode=unattended
debugtrace=alfresco-debugtrace.log
enable-components=javaalfresco,libreofficecomponent,alfrescogoogledocs
disable-components=alfrescowcmqs,postgres,alfrescosharepoint
installer-language=en
prefix=/home/user/alfresco

# database
#mysql_installation_type=existing
#mysql_password=
jdbc_url=jdbc:mysql://localhost:3306/alfresco?useUnicode=yes&characterEncoding=UTF-8
jdbc_driver=org.gjt.mm.mysql.Driver
jdbc_database=alfresco
jdbc_username=alfresco
jdbc_password=alfresco

# tomcat
tomcat_installation_type=existing
tomcat_server_directory=/var/lib/tomcat7
tomcat_server_domain=127.0.0.1
tomcat_server_port=8080
tomcat_server_shutdown_port=8005
tomcat_server_ssl_port=8443
tomcat_server_ajp_port=8009

# misc
alfresco_ftp_port=21
alfresco_rmi_port=50500
alfresco_admin_password=alfresco
alfresco_sharepoint_port=7070
baseunixservice_install_as_service=1
baseunixservice_script_name=alfresco
libreoffice_port=8100
alfrescocustomstack_services_startup=demand


When I try to access http://localhost:8080/share Tomcat returns "404 - not found".
Tomcat is runing fine (netstat -ntulpen)

Starting alfresco with ./alfresco start
returns nothing.
./alfresco stop / status returns nothing too.

Next step was to look for the alfresco-logfile.
=> no luck.
There is <b>no</b> logfile under /var/lib/tomcat7/webapps/alfresco/
or /home/user/alfresco/

Can someone help me please?

Thanks in advance
3 REPLIES 3

mlagneaux
Champ on-the-rise
Champ on-the-rise
Hello,

If you don't have Alfresco log file, it seems that you have a problem before Alfresco is launched, that is to say with Tomcat.
Do you have errors in Tomcat log files ? You should find them under /var/lib/tomcat7/logs or /var/log/tomcat7.

u1001
Champ in-the-making
Champ in-the-making
Thanks for your reply.
It seems we're getting closer.


INFO: Deploying web application archive /var/lib/tomcat7/webapps/alfresco.war
May 19, 2014 10:37:35 AM org.apache.catalina.startup.ContextConfig init
SEVERE: Exception fixing docBase for context [/alfresco]
java.util.zip.ZipException: error in opening zip file
        at java.util.zip.ZipFile.open(Native Method)
        at java.util.zip.ZipFile.<init>(ZipFile.java:132)
        at java.util.jar.JarFile.<init>(JarFile.java:153)
        at java.util.jar.JarFile.<init>(JarFile.java:90)
        at sun.net.www.protocol.jar.URLJarFile.<init>(URLJarFile.java:90)
        at sun.net.www.protocol.jar.URLJarFile.getJarFile(URLJarFile.java:66)
        at sun.net.www.protocol.jar.JarFileFactory.get(JarFileFactory.java:86)
        at sun.net.www.protocol.jar.JarURLConnection.connect(JarURLConnection.java:122)
        at sun.net.www.protocol.jar.JarURLConnection.getJarFile(JarURLConnection.java:89)
        at org.apache.catalina.startup.ExpandWar.expand(ExpandWar.java:112)
        at org.apache.catalina.startup.ContextConfig.fixDocBase(ContextConfig.java:697)
        at org.apache.catalina.startup.ContextConfig.init(ContextConfig.java:820)
        at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:364)
        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
        at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
        at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:401)
        at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:110)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:139)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:899)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:875)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:618)
        at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:963)
        at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1600)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
        at java.util.concurrent.FutureTask.run(FutureTask.java:166)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
        at java.lang.Thread.run(Thread.java:701)
May 19, 2014 10:37:35 AM org.apache.catalina.core.StandardContext resourcesStart
SEVERE: Error starting static Resources
java.lang.IllegalArgumentException: Invalid or unreadable WAR file : /var/lib/tomcat7/webapps/alfresco.war
        at org.apache.naming.resources.WARDirContext.setDocBase(WARDirContext.java:136)
        at org.apache.catalina.core.StandardContext.resourcesStart(StandardContext.java:4905)
        at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5085)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:899)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:875)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:618)
        at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:963)
        at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1600)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
        at java.util.concurrent.FutureTask.run(FutureTask.java:166)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
        at java.lang.Thread.run(Thread.java:701)
May 19, 2014 10:37:35 AM org.apache.catalina.core.StandardContext startInternal
SEVERE: Error in resourceStart()


Same error for share.war.

But those 2 files are definitely there:


root@debian:/var/lib/tomcat7/logs# ls -l /var/lib/tomcat7/webapps/
total 188028
-rw——- 1 root root 146249828 May 19 10:29 alfresco.war
drwxr-xr-x 3 root root      4096 Apr 28 23:59 ROOT
-rw——- 1 root root  46284171 May 19 10:29 share.war


Best regards

mlagneaux
Champ on-the-rise
Champ on-the-rise
Tomcat seems to have problem to unzip your alfresco.war file. This file should be corrupted.
Does it work when you try to unzip manually this file (with 7zip for example)?