How to install Alfresco on Apache+Tomcat?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-11-2008 05:41 PM
Hi guys,
I have developed and deployed a few web applications successfully using Apache 2 + modjk + Tomcat 5.5.9 on a Windows XP box. The Tomcat root directory is c:\Tomcat.
I decided to give Alfresco a try and hence I downloaded Alfresco Community Tomcat 2.9.0B zip file and unzipped it. Found the alfresco.war and deployed it in c:\Tomcat\webapps directory. When I restarted Tomcat, the WAR file (alfresco.war) got extracted into a folder named alfresco (c:\Tomcat\webapps\alfresco) as expected. However, it also simultaneously crashes Tomcat! I get a bunch of errors in the log files…
I probably need to tweak some of the .properties or .xml files in c:\Tomcat\webapps\alfresco directory. I would like to try it out with HSQLDB that I presume Alfresco comes with. So I haven't installed MySQL on my Windows XP box. Can anyone please guide me in this pursuit?
Thanks,
Joe
I have developed and deployed a few web applications successfully using Apache 2 + modjk + Tomcat 5.5.9 on a Windows XP box. The Tomcat root directory is c:\Tomcat.
I decided to give Alfresco a try and hence I downloaded Alfresco Community Tomcat 2.9.0B zip file and unzipped it. Found the alfresco.war and deployed it in c:\Tomcat\webapps directory. When I restarted Tomcat, the WAR file (alfresco.war) got extracted into a folder named alfresco (c:\Tomcat\webapps\alfresco) as expected. However, it also simultaneously crashes Tomcat! I get a bunch of errors in the log files…
I probably need to tweak some of the .properties or .xml files in c:\Tomcat\webapps\alfresco directory. I would like to try it out with HSQLDB that I presume Alfresco comes with. So I haven't installed MySQL on my Windows XP box. Can anyone please guide me in this pursuit?
Thanks,
Joe
[org.apache.catalina.core.StandardContext] : Error listenerStart [org.apache.catalina.core.StandardContext] : Context [/alfresco] startup failed due to previous errors [localhost].[/alfresco]] Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListenerjava.net.SocketException: java.net.ConnectException: Connection refused: connect at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:156) at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:284)…org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'luceneFullTextSearchIndexer' defined in class path resource [alfresco/core-services-context.xml]: Cannot resolve reference to bean 'indexerAndSearcherFactory' while setting bean property 'indexerAndSearcherFactory';..
Labels:
- Labels:
-
Archive
5 REPLIES 5

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2008 07:01 AM
Hi,
It sounds like you have deployed the WAR into an existing tomcat instance - in which case the default DB it uses is MySQL and you don't have the MySQL jdbc driver (based on the error).
You can either get the JDBC driver from the MySQL website, or from the Alfresco Tomcat bundle you downloaded copy the ..tomcat/shared/classes/alfresco dir to your c:\tomcat\shared… dir to enable the 'extension' files to override the DB settings. The default 'override' for the trial is for HSQLDB.
Note, you should also delete your 'alf_data' dir and copy in it's place the one from the Alfresco Tomcat bundle (it contains a pre-setup HSQL database for Alfresco's use.
Hope this helps,
Steve
It sounds like you have deployed the WAR into an existing tomcat instance - in which case the default DB it uses is MySQL and you don't have the MySQL jdbc driver (based on the error).
You can either get the JDBC driver from the MySQL website, or from the Alfresco Tomcat bundle you downloaded copy the ..tomcat/shared/classes/alfresco dir to your c:\tomcat\shared… dir to enable the 'extension' files to override the DB settings. The default 'override' for the trial is for HSQLDB.
Note, you should also delete your 'alf_data' dir and copy in it's place the one from the Alfresco Tomcat bundle (it contains a pre-setup HSQL database for Alfresco's use.
Hope this helps,
Steve
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2008 05:58 PM
Thanks for that reply Steve. You have solved majority of my problems. I really appreciate your help! 
As you've noted, I had deployed the WAR into an existing Tomcat instance. I have followed your instructions and copied over the alf_data directory and also the tomcat\shared\classes\alfresco directory. I am almost there. Almost because, I got "OutOfMemoryError: PermGen space", which I resolved using "-Xms128m -Xmx1024m -XX:MaxPermSize=256m". Now, I am getting the following error messages…
Can anyone please tell me how to get these resolved?
Regards,
Joe

As you've noted, I had deployed the WAR into an existing Tomcat instance. I have followed your instructions and copied over the alf_data directory and also the tomcat\shared\classes\alfresco directory. I am almost there. Almost because, I got "OutOfMemoryError: PermGen space", which I resolved using "-Xms128m -Xmx1024m -XX:MaxPermSize=256m". Now, I am getting the following error messages…
Can anyone please tell me how to get these resolved?
Regards,
Joe
15:42:48,149 User:System ERROR [alfresco.smb.protocol] Error accessing Win32 NetBIOS, check DLL is on the path15:42:49,270 User:System WARN [alfresco.util.OpenOfficeConnectionTester] A connection to OpenOffice could not be established.User:System ERROR [transform.magick.AbstractImageMagickContentTransformer] ImageMagickContentTransformer not available: Failed to perform ImageMagick transformation: …User:System ERROR [web.context.ContextLoader] Context initialization failedorg.springframework.beans.factory.BeanCreationException: Error creating bean with name 'serverConnector' defined in class path resource [alfresco/core-services-context.xml]: Invocation of init method failed; nested exception is java.io.IOException: Cannot bind to URL [rmi://localhost:50500/alfresco/jmxrmi]: javax.naming.NameAlreadyBoundException: alfresco/jmxrmi [Root exception is java.rmi.AlreadyBoundException: alfresco/jmxrmi]Caused by: java.io.IOException: Cannot bind to URL [rmi://localhost:50500/alfresco/jmxrmi]: javax.naming.NameAlreadyBoundException: alfresco/jmxrmi [Root exception is java.rmi.AlreadyBoundException: alfresco/jmxrmi]…Caused by: javax.naming.NameAlreadyBoundException: alfresco/jmxrmi [Root exception is java.rmi.AlreadyBoundException: alfresco/jmxrmi]…Caused by: java.rmi.AlreadyBoundException: alfresco/jmxrmi
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2008 06:29 PM
I have seen similar other posts. They all seem to mention that
a) Either there is some other program listening on port 50500
or
b) There is a duplication instance of Tomcat/Alfresco running.
In my case I don't see either.
Ports open before starting Alfresco…
After starting Tomcat..
a) Either there is some other program listening on port 50500
or
b) There is a duplication instance of Tomcat/Alfresco running.
In my case I don't see either.
Ports open before starting Alfresco…
C:\>netstat -anActive Connections Proto Local Address Foreign Address State TCP 0.0.0.0:80 0.0.0.0:0 LISTENING TCP 0.0.0.0:135 0.0.0.0:0 LISTENING TCP 0.0.0.0:443 0.0.0.0:0 LISTENING TCP 0.0.0.0:445 0.0.0.0:0 LISTENING TCP 0.0.0.0:1723 0.0.0.0:0 LISTENING TCP 127.0.0.1:445 127.0.0.1:1031 ESTABLISHED TCP 127.0.0.1:1031 127.0.0.1:445 ESTABLISHED TCP 127.0.0.1:1033 0.0.0.0:0 LISTENING TCP 127.0.0.1:1052 0.0.0.0:0 LISTENING TCP 127.0.0.1:1059 127.0.0.1:1060 ESTABLISHED TCP 127.0.0.1:1060 127.0.0.1:1059 ESTABLISHED TCP 127.0.0.1:1066 127.0.0.1:1067 ESTABLISHED TCP 127.0.0.1:1067 127.0.0.1:1066 ESTABLISHED TCP 192.168.21.110:139 0.0.0.0:0 LISTENING TCP 192.168.21.110:1025 192.168.21.3:445 ESTABLISHED TCP 192.168.21.110:1026 192.168.21.4:445 ESTABLISHED TCP 192.168.21.110:1036 192.168.21.110:80 CLOSE_WAIT TCP 192.168.21.110:1053 192.168.21.3:23 ESTABLISHED TCP 192.168.21.110:1104 209.167.231.15:80 ESTABLISHED UDP 0.0.0.0:445 *:* UDP 0.0.0.0:500 *:* UDP 0.0.0.0:1032 *:* UDP 0.0.0.0:1061 *:* UDP 0.0.0.0:1063 *:* UDP 0.0.0.0:1065 *:* UDP 0.0.0.0:1701 *:* UDP 0.0.0.0:4500 *:* UDP 127.0.0.1:123 *:* UDP 127.0.0.1:1045 *:* UDP 127.0.0.1:1046 *:* UDP 127.0.0.1:1900 *:* UDP 192.168.21.110:123 *:* UDP 192.168.21.110:137 *:* UDP 192.168.21.110:138 *:* UDP 192.168.21.110:1900 *:*
After starting Tomcat..
C:\>netstat -anActive Connections Proto Local Address Foreign Address State TCP 0.0.0.0:21 0.0.0.0:0 LISTENING TCP 0.0.0.0:80 0.0.0.0:0 LISTENING TCP 0.0.0.0:135 0.0.0.0:0 LISTENING TCP 0.0.0.0:443 0.0.0.0:0 LISTENING TCP 0.0.0.0:445 0.0.0.0:0 LISTENING TCP 0.0.0.0:1131 0.0.0.0:0 LISTENING TCP 0.0.0.0:1723 0.0.0.0:0 LISTENING TCP 0.0.0.0:8080 0.0.0.0:0 LISTENING TCP 0.0.0.0:8443 0.0.0.0:0 LISTENING TCP 0.0.0.0:50500 0.0.0.0:0 LISTENING TCP 127.0.0.1:80 127.0.0.1:1124 TIME_WAIT TCP 127.0.0.1:80 127.0.0.1:1129 ESTABLISHED TCP 127.0.0.1:445 127.0.0.1:1031 ESTABLISHED TCP 127.0.0.1:1031 127.0.0.1:445 ESTABLISHED TCP 127.0.0.1:1033 0.0.0.0:0 LISTENING TCP 127.0.0.1:1052 0.0.0.0:0 LISTENING TCP 127.0.0.1:1059 127.0.0.1:1060 ESTABLISHED TCP 127.0.0.1:1060 127.0.0.1:1059 ESTABLISHED TCP 127.0.0.1:1066 127.0.0.1:1067 ESTABLISHED TCP 127.0.0.1:1067 127.0.0.1:1066 ESTABLISHED TCP 127.0.0.1:1129 127.0.0.1:80 ESTABLISHED TCP 127.0.0.1:1132 127.0.0.1:50500 ESTABLISHED TCP 127.0.0.1:50500 127.0.0.1:1132 ESTABLISHED TCP 192.168.21.110:139 0.0.0.0:0 LISTENING TCP 192.168.21.110:1025 192.168.21.3:445 ESTABLISHED TCP 192.168.21.110:1026 192.168.21.4:445 ESTABLISHED TCP 192.168.21.110:1036 192.168.21.110:80 CLOSE_WAIT TCP 192.168.21.110:1053 192.168.21.3:23 ESTABLISHED TCP 192.168.21.110:1131 192.168.21.110:1133 ESTABLISHED TCP 192.168.21.110:1133 192.168.21.110:1131 ESTABLISHED TCP 192.168.21.110:1137 192.168.21.110:50500 ESTABLISHED TCP 192.168.21.110:50500 192.168.21.110:1137 ESTABLISHED UDP 0.0.0.0:445 *:* UDP 0.0.0.0:500 *:* UDP 0.0.0.0:1032 *:* UDP 0.0.0.0:1061 *:* UDP 0.0.0.0:1063 *:* UDP 0.0.0.0:1065 *:* UDP 0.0.0.0:1701 *:* UDP 0.0.0.0:4500 *:* UDP 127.0.0.1:123 *:* UDP 127.0.0.1:1045 *:* UDP 127.0.0.1:1046 *:* UDP 127.0.0.1:1900 *:* UDP 192.168.21.110:123 *:* UDP 192.168.21.110:137 *:* UDP 192.168.21.110:138 *:* UDP 192.168.21.110:1900 *:*

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-13-2008 06:19 AM
Hi,
Sometimes the post can be left open if the Tomcat instance running Alfresco does not shut down properly.
If you get this issue, see if there are any tomcat processes still kicking around and kill them.
Steve
Sometimes the post can be left open if the Tomcat instance running Alfresco does not shut down properly.
If you get this issue, see if there are any tomcat processes still kicking around and kill them.
Steve
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-13-2008 11:49 AM
I don't think so Steve. I have checked the Task Manager. Restarting the Windows machine did not work either. Seems like one last thing that I need to get over to get Alfresco working for me. Anything else that you think might be going on?
Thanks!
joe.
Thanks!
joe.
