cancel
Showing results for 
Search instead for 
Did you mean: 

Deploying Alfresco 4 WAR file in Tomcat 6 - Troubles

miguel81
Champ in-the-making
Champ in-the-making
Hello Everybody,

I want to deploy the alfresco repository manually on my Debian 6.0.3 (32 bit) and did the following so far:

- installed mysql 5.5 server started it and and created an empty database : "alfresco"
- installed tomcat 6
- installed jdk 1.6

- donwloaded alfresco-community-4.0.b.zip extracted it and put everything in my tomcat directories (excepti share.war, since I do not want it for the beginning)

- placed the mysql-java-connector into my tomcat lib directory

- adapted the alfresco-global properties to use the "alfresco" database and also set db.schema.update=true

Now when I try to start tomcat it just hangs at some point with NOT a single error in the logs (however some WARNINGS).
Since im very new to tomcat AND alfresco, I hope to get some valuable hints here.

This are ALL my logs (I do not know which are crucial, so I post them ALL here):

alfresco.log:

12:13:39,197 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Starting 'sysAdmin' subsystem, ID: [sysAdmin, default]
12:13:39,307 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Startup of 'sysAdmin' subsystem, ID: [sysAdmin, default] complete
12:13:57,401 WARN  [org.alfresco.util.AbstractTriggerBean] Job ehCacheTracerJob is not active/enabled
12:14:03,887 INFO  [org.springframework.extensions.webscripts.TemplateProcessorRegistry] Registered template processor Repository Template Processor for extension ftl
12:14:03,900 INFO  [org.springframework.extensions.webscripts.ScriptProcessorRegistry] Registered script processor Repository Script Processor for extension js

localhost.2011…log

Nov 25, 2011 12:13:20 PM org.apache.catalina.core.ApplicationContext log
INFO: Initializing Spring root WebApplicationContext

catalina.2011…log

Nov 25, 2011 12:13:14 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Nov 25, 2011 12:13:14 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1160 ms
Nov 25, 2011 12:13:14 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Nov 25, 2011 12:13:14 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.28
Nov 25, 2011 12:13:14 PM org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor ROOT.xml
Nov 25, 2011 12:13:14 PM org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor alfresco.xml
Nov 25, 2011 12:13:16 PM org.apache.catalina.core.StandardContext addApplicationListener
INFO: The listener "org.apache.myfaces.webapp.StartupServletContextListener" is already configured for this context. The duplicate definition has been ignored.
Nov 25, 2011 12:13:55 PM org.activiti.engine.impl.ProcessEngineImpl <init>
INFO: ProcessEngine default created

catalina.out

Nov 25, 2011 12:13:14 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Nov 25, 2011 12:13:14 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1160 ms
Nov 25, 2011 12:13:14 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Nov 25, 2011 12:13:14 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.28
Nov 25, 2011 12:13:14 PM org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor ROOT.xml
Nov 25, 2011 12:13:14 PM org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor alfresco.xml
Nov 25, 2011 12:13:16 PM org.apache.catalina.core.StandardContext addApplicationListener
INFO: The listener "org.apache.myfaces.webapp.StartupServletContextListener" is already configured for this context. The duplicate definition has been ignored.
2011-11-25 12:13:39,197  INFO  [management.subsystems.ChildApplicationContextFactory] [main] Starting 'sysAdmin' subsystem, ID: [sysAdmin, default]
2011-11-25 12:13:39,307  INFO  [management.subsystems.ChildApplicationContextFactory] [main] Startup of 'sysAdmin' subsystem, ID: [sysAdmin, default] complete
Nov 25, 2011 12:13:55 PM org.activiti.engine.impl.ProcessEngineImpl <init>
INFO: ProcessEngine default created
2011-11-25 12:13:57,401  WARN  [alfresco.util.AbstractTriggerBean] [main] Job ehCacheTracerJob is not active/enabled
2011-11-25 12:14:03,887  INFO  [extensions.webscripts.TemplateProcessorRegistry] [main] Registered template processor Repository Template Processor for extension ftl
2011-11-25 12:14:03,900  INFO  [extensions.webscripts.ScriptProcessorRegistry] [main] Registered script processor Repository Script Processor for extension js
java.lang.reflect.InvocationTargetException

Any Ideas/suggestions how I can find out, whats wrong with my setup?

Thank You in Advance,

Michal
5 REPLIES 5

mrogers
Star Contributor
Star Contributor
Your logs seem to be incomplete.

I suggest you use the installer so that you become familiar with a working instance first.

You also need to configure the shared class loader.   And set up the accounts for alfresco to use.
You will also need to configure the memory settings to increase the PermGen.

That should get alfresco up and running.

miguel81
Champ in-the-making
Champ in-the-making
Thank You for the prompt answer

1. As far as I know there is no linux installer for 32 bit systems

2. The logs are not complete because at this point Tomcat seems to hang forever,…

regards
michal

miguel81
Champ in-the-making
Champ in-the-making
UPDATE:

Restarting my Virtual Box and setting PermSize to 1024m and a little patience solved the problems stated above.
My logfiles where incomplete indeed, I've just been to unpatient.

Now I'm struggling with some other ERRORS and will update you here on them sooner or later Smiley Happy

regards.
michal

miguel81
Champ in-the-making
Champ in-the-making
UPDATE:

Hooray It works now!

What solved my problems in the end was:

- add this flags to tomcat invocation: -XXSmiley TongueermSize=512m -Xmx256m
- delete all temporary direcotries
- delete alf_data dir
- drop and recreate the "alfresco" DB
- set my alfresco-global properties to this:



db.username=root
db.password=
ooo.enabled=false
jodconverter.enabled=false
img.root=
swf.exe=
db.schema.update=true
db.driver=org.gjt.mm.mysql.Driver
db.url=jdbc:mysql://localhost/alfresco
index.recovery.mode=AUTO


Of course it is not recommended to use an unprotected root account for the database access.
another minor issue im still facing, is that Im not sure how to turn off the img & swf subsystems.

regards.
michal

sasquatch58
Champ in-the-making
Champ in-the-making
Im not sure how to turn off the img & swf subsystems.
Don't turn them off, ensure that they are installed and provisioned as they are used for a/ image manipulation and b/ bulk uploads, swf generation for Share etc
Looks like you have a few things disable (not configured in alfresco-global properties) that will limit your experience of Alfresco.

Cheers, Sasquatch