cancel
Showing results for 
Search instead for 
Did you mean: 

Errors trying to install CE 3.3 on Debian Lenny

scottalexander
Champ in-the-making
Champ in-the-making
Hi -

I've been trying for a couple days to install 3.3 Community Edition on Debian 5.0 (Lenny). Tomcat starts when I enter:

/opt/alfresco/alfresco.sh start

But when I point the browser to:

http://myserver.com:8080/alfresco

I get Tomcat error messages, described in more detail below.

I tried installing Alfresco with Tomcat 6.0 bundled, from here:

http://dev.alfresco.com/downloads/nightly/dist/alfresco-community-tomcat-3.3.tar.gz

Then I followed the instructions in the PDF here:

http://wiki.alfresco.com/w/images/8/88/Installing_and_Configuring_Alfresco_Community_Edition_3_3.pdf

and also doing some of the steps on the website:

http://wiki.alfresco.com/wiki/Installing_Labs_3_Stable_on_Debian_Etch

(Step 4 from the wiki link above is not necessary when using Debian Lenny (5.0) instead of Debian Etch (4.0) because Java is now part of Debian Lenny (5.0).)

I ran used the db_setup.sql script to create the MySQL database, I've installed ImageMagick and OpenOffice and SWFTools, and I've modified the settings for these things in alfresco-global.properties (shown at the end of this post).

The MySQL database exists, but it doesn't contain any tables.

I wasn't too sure what to use for img.root in alfresco-global.properties. I ran the Linux 'find' command to look for ImageMagick on my server:

myserver ~: sudo find / -name imagemagick
/usr/lib/mime/packages/imagemagick
/usr/share/menu/imagemagick
/usr/share/doc/imagemagick
/usr/share/doc-base/imagemagick
/var/lib/doc-base/omf/imagemagick
/var/lib/doc-base/documents/imagemagick

And I used the first directory in the output above for the value of img.root.

Tomcat is running, because the browser gives the following different Tomcat error messages when pointing the browser to the following 4 different URLs:


(1) http://myserver.com:8080
Browser displays:

nothing, but the page title says "Apache Tomcat/6.0.18 - Error report


(2) http://myserver.com:8080/alfresco
Browser displays:

HTTP Status 404 -

type Status report

message

description The requested resource () is not available.

Apache Tomcat/6.0.18


(3) http://myserver.com:8080/manager
Browser displays:

HTTP Status 404 - /manager/

type Status report

message /manager/

description The requested resource (/manager/) is not available.

Apache Tomcat/6.0.18


(4) http://myserver.com:8080/share
Browser reroutes to:

http://myserver.com:8080/share/page/site-index

and displays:

HTTP Status 500 -

type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

org.springframework.web.util.NestedServletException: Request processing failed; nested exception is org.springframework.extensions.surf.exception.PlatformRuntimeException: 04020007 Unable to retrieve object: slingshot.site.configuration of type: configuration
   org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:659)
   org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:552)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
root cause

org.springframework.extensions.surf.exception.PlatformRuntimeException: 04020007 Unable to retrieve object: slingshot.site.configuration of type: configuration
   org.springframework.extensions.surf.ObjectPersistenceService.getObject(ObjectPersistenceService.java:130)
   org.springframework.extensions.surf.ModelObjectService.getObject(ModelObjectService.java:507)
   org.springframework.extensions.surf.ModelObjectService.getConfiguration(ModelObjectService.java:135)
   org.springframework.extensions.surf.site.SiteUtil.getSiteConfiguration(SiteUtil.java:99)
   org.springframework.extensions.surf.support.AbstractRequestContext.getSiteConfiguration(AbstractRequestContext.java:138)
   org.springframework.extensions.surf.mvc.ThemeInterceptor.preHandle(ThemeInterceptor.java:66)
   org.springframework.web.servlet.handler.WebRequestHandlerInterceptorAdapter.preHandle(WebRequestHandlerInterceptorAdapter.java:54)
   org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:761)
   org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:716)
   org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:647)
   org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:552)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
root cause

org.springframework.extensions.surf.exception.ModelObjectPersisterException: Error loading object id: slingshot.site.configuration from persister id: webframework.slingshot.persister.remote
   org.springframework.extensions.surf.persister.MultiObjectPersister.getObject(MultiObjectPersister.java:102)
   org.springframework.extensions.surf.ObjectPersistenceService.getObject(ObjectPersistenceService.java:126)
   org.springframework.extensions.surf.ModelObjectService.getObject(ModelObjectService.java:507)
   org.springframework.extensions.surf.ModelObjectService.getConfiguration(ModelObjectService.java:135)
   org.springframework.extensions.surf.site.SiteUtil.getSiteConfiguration(SiteUtil.java:99)
   org.springframework.extensions.surf.support.AbstractRequestContext.getSiteConfiguration(AbstractRequestContext.java:138)
   org.springframework.extensions.surf.mvc.ThemeInterceptor.preHandle(ThemeInterceptor.java:66)
   org.springframework.web.servlet.handler.WebRequestHandlerInterceptorAdapter.preHandle(WebRequestHandlerInterceptorAdapter.java:54)
   org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:761)
   org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:716)
   org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:647)
   org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:552)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
root cause

org.springframework.extensions.surf.exception.ModelObjectPersisterException: Failure to load model object for path: alfresco/site-data/configurations/slingshot.site.configuration.xml
   org.springframework.extensions.surf.persister.PathStoreObjectPersister.getObject(PathStoreObjectPersister.java:251)
   org.springframework.extensions.surf.persister.MultiObjectPersister.getObject(MultiObjectPersister.java:98)
   org.springframework.extensions.surf.ObjectPersistenceService.getObject(ObjectPersistenceService.java:126)
   org.springframework.extensions.surf.ModelObjectService.getObject(ModelObjectService.java:507)
   org.springframework.extensions.surf.ModelObjectService.getConfiguration(ModelObjectService.java:135)
   org.springframework.extensions.surf.site.SiteUtil.getSiteConfiguration(SiteUtil.java:99)
   org.springframework.extensions.surf.support.AbstractRequestContext.getSiteConfiguration(AbstractRequestContext.java:138)
   org.springframework.extensions.surf.mvc.ThemeInterceptor.preHandle(ThemeInterceptor.java:66)
   org.springframework.web.servlet.handler.WebRequestHandlerInterceptorAdapter.preHandle(WebRequestHandlerInterceptorAdapter.java:54)
   org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:761)
   org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:716)
   org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:647)
   org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:552)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
root cause

java.io.IOException: Unable to test document path: alfresco/site-data/configurations/slingshot.site.configuration.xml in remote store: alfresco due to error: 404
   org.springframework.extensions.webscripts.RemoteStore.hasDocument(RemoteStore.java:347)
   org.springframework.extensions.surf.persister.PathStoreObjectPersister.getObject(PathStoreObjectPersister.java:216)
   org.springframework.extensions.surf.persister.MultiObjectPersister.getObject(MultiObjectPersister.java:98)
   org.springframework.extensions.surf.ObjectPersistenceService.getObject(ObjectPersistenceService.java:126)
   org.springframework.extensions.surf.ModelObjectService.getObject(ModelObjectService.java:507)
   org.springframework.extensions.surf.ModelObjectService.getConfiguration(ModelObjectService.java:135)
   org.springframework.extensions.surf.site.SiteUtil.getSiteConfiguration(SiteUtil.java:99)
   org.springframework.extensions.surf.support.AbstractRequestContext.getSiteConfiguration(AbstractRequestContext.java:138)
   org.springframework.extensions.surf.mvc.ThemeInterceptor.preHandle(ThemeInterceptor.java:66)
   org.springframework.web.servlet.handler.WebRequestHandlerInterceptorAdapter.preHandle(WebRequestHandlerInterceptorAdapter.java:54)
   org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:761)
   org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:716)
   org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:647)
   org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:552)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
note The full stack trace of the root cause is available in the Apache Tomcat/6.0.18 logs.

Apache Tomcat/6.0.18

Here is the file alfresco-global.properties:

myserver /opt/alfresco: sudo cat tomcat/shared/classes/alfresco-global.properties
###############################
## Common Alfresco Properties #
###############################

#
# Sample custom content and index data location
#————-
dir.root=/opt/alfresco/alf_data

#
# Sample database connection properties
#————-
db.name=alfresco
db.username=alfresco
db.password=alfresco
db.host=localhost
db.port=3306

#
# External locations
#————-
ooo.exe=/usr/bin/soffice
ooo.enabled=true
img.root=/usr/lib/mime/packages/imagemagick
swf.exe=/usr/local/bin/pdf2swf

#
# MySQL connection
#————-
db.driver=org.gjt.mm.mysql.Driver
db.url=jdbc:mysql://${db.host}:${db.port}/${db.name}

#
# PostgreSQL connection (requires postgresql-8.2-504.jdbc3.jar or equivalent)
#
#db.driver=org.postgresql.Driver
#db.url=jdbc:postgresql://localhost:5432/alfresco

#
# Index Recovery Mode
#————-
#index.recovery.mode=AUTO

#
# Outbound Email Configuration
#————-
#mail.host=
#mail.port=25
#mail.username=anonymous
#mail.password=
#mail.encoding=UTF-8
#mail.from.default=alfresco@alfresco.org
#mail.smtp.auth=false

#
# Alfresco Email Service and Email Server
#————-

# Enable/Disable the inbound email service.  The service could be used by processes other than
# the Email Server (e.g. direct RMI access) so this flag is independent of the Email Service.
#————-
#email.inbound.enabled=true

# Email Server properties
#————-
#email.server.enabled=true
#email.server.port=25
#email.server.domain=alfresco.com
#email.inbound.unknownUser=anonymous

# A comma separated list of email REGEX patterns of allowed senders.
# If there are any values in the list then all sender email addresses
# must match. For example:
#   .*\@alfresco\.com, .*\@alfresco\.org
# Allow anyone:
#————-
#email.server.allowed.senders=.*

#
# The default authentication chain
# To configure external authentication subsystems see:
# http://wiki.alfresco.com/wiki/Alfresco_Authentication_Subsystems
#————-
#authentication.chain=alfrescoNtlm1:alfrescoNtlm

#
# URL Generation Parameters (The ${localname} token is replaced by the local server name)
#————-
#alfresco.context=alfresco
#alfresco.host=${localname}
#alfresco.port=8080
#alfresco.protocol=http
#
#share.context=share
#share.host=${localname}
#share.port=8080
#share.protocol=http
myserver /opt/alfresco:

Does anyone know what is wrong with my configuration here?

Thanks for any help!
6 REPLIES 6

scottalexander
Champ in-the-making
Champ in-the-making
Someone else has reported the same error message here a little over a week ago:

http://forums.alfresco.com/en/viewtopic.php?f=47&t=26381

occurring when they pointed their browser to:

when going to http://myserver.com:8080/share

Their question has not been answered yet.

scottalexander
Champ in-the-making
Champ in-the-making
Another posting here:

http://issues.alfresco.com/jira/browse/ALF-2451?page=com.atlassian.jira.plugin.system.issuetabpanels...

reports that the problem involving slingshot.site.configuration was "resolved" on 21 April 2010 by Paul Holmes-Higgin.

The version of Alfresco I was using in my original post:

http://dev.alfresco.com/downloads/nightly/dist/Alfresco-Community-3.3-Linux-x86-Install

was last updated 07 April 2010.

There is another version on that same page, with the letter "G" in its name, last updated 30 April 2010:

http://dev.alfresco.com/downloads/nightly/dist/Alfresco-Community-3.3G-Linux-x86-Install

I will try re-installing from this nightly build later, to see if it does resolve the error message involving "slingshot.site.configuration" when going to URL http://myserver.com:8080/share.

scottalexander
Champ in-the-making
Champ in-the-making
I have now re-installed using the following nightly build:

http://dev.alfresco.com/downloads/nightly/dist/alfresco-community-tomcat-3.3G.tar.gz

This changed the error message that was appearing when I pointed my browser to http://myserver.com:8080/share.

Previously it was the very long Tomcat error message quoted in my original post.

Now it is just a very short Tomcat error message:

HTTP Status 404 -

type Status report

message

description The requested resource () is not available.

Apache Tomcat/6.0.18

I still get only error messages after attempt to install Alfresco CE 3.3 no Debian 5.0 (Lenny).

As mentioned earlier, the MySQL database exists and the MySQL server is running (visible on http://myserver.com/myphpadmin), OpenOffice and SWFTools and ImageMagick are all installed in running (visible when I do the Linux command 'ps ax' for example), and the Tomcat server is listening on Port 8080 (visible when I run the Linux command 'netstat -aln' for example).

Something must be wrong with my configuration.

Thanks for any help.

scottalexander
Champ in-the-making
Champ in-the-making
Hi -

SUMMARY

I have installed Alfresco 3.3 Community Edition on Linux Debian Lenny (5.0) - but I still cannot log in via a web browser at http://myserver.com:8080/share using username 'admin' and password 'admin'.

It appears that MySQL, OpenOffice, ImageMagick and SWFTools have all been installed correctly and that the file /opt/Alfresco/tomcat/shared/classes/alfresco-global.properties has been modified correctly.

Am I using the wrong username & password - or is something wrong with my configuration?

Further details are shown below - including output for the following three commands:

sudo cat /opt/Alfresco/tomcat/shared/classes/alfresco-global.properties
sudo cat /opt/Alfresco/alfresco.log
sudo netstat -aln

The above three listings seem to indicate that Tomcat appears to be running on port 8080 and is able to reach MySQL running on port 3306.

However, I am unable to login at http://myserver.com:8080/share with username 'admin' and password 'admin'.

Thanks for any help.

+++ +++ +++

DETAILS

I have installed Alfresco Community Edition 3.3 on Debian Lenny (5.0), using the Alfresco distribution bundled with Tomcat, downloaded from here:

http://dev.alfresco.com/downloads/nightly/dist/Alfresco-Community-3.3G-Linux-x86-Install

To perform the installation, I first did a 'cd' to the directory where the above file was downloaded. Then I did 'chmod 777', and executed the above file, as follows:

sudo chmod 777 Alfresco-Community-3.3G-Linux-x86-Install
sudo ./Alfresco-Community-3.3G-Linux-x86-Install

I also modified some lines in file /opt/Alfresco/tomcat/shared/classses/alfredo-global.properties to read as follows:

ooo.exe=/usr/bin/soffice
ooo.enabled=true
img.root=/usr/lib/mime/packages/imagemagick
swf.exe=/usr/local/bin/pdf2swf

These correspond to the directories where OpenOffice, ImageMagick, and SWFTools were installed earlier. Before making the modifications above, I confirmed the installation directories for these programs by doing the following commands:

sudo find / -name soffice
sudo find / -name imagemagick
sudo find / -name pdf2swf

It appears that the MySQL database for Alfresco was correctly created, is running, and is accessible from Tomcat.

I checked the MySQL database by going here:

http://myserver.com/phpmyadmin

I see an 'alfresco' database containing 88 files. The directory /opt/Alfresco/tomcat/lib also contains the MySQL connector mysql-connector-java-5.1.7-bin.jar. So it appears that Alfresco has successfully created the MySQL database 'alfresco' and the MySQL user 'alfresco' and can connect to the database.


The output from 'netstat -aln' (see LISTINGS below) seems to indicate that MySQL (port 3306), Tomcat (port 8005), and Alfresco share (port 8080) are running, and that Alfresco is able to connect to MySQL.

So everything appears to be fine.

However, when I try to actually log in to Alfresco by pointing my browser to:

http://myserver.com:8080/share

I see the Alfresco login dialog, with fields 'User name' and 'Password'.

But when I enter "admin"/"admin" in these fields I get an error message saying:

"The remote server may be unavailable or your authentication details have not been recognized."


Should I be using a different username/password - or is there something still wrong with my configuration?

+++ +++ +++

To help diagnose this problem, the outputs for the following three commands:

sudo cat /opt/Alfresco/tomcat/shared/classes/alfresco-global.properties
sudo cat /opt/Alfresco/alfresco.log
sudo netstat -aln
are shown below.

LISTINGS

myserver /opt/Alfresco: sudo cat tomcat/shared/classes/alfresco-global.properties
[sudo] password for xxx:

###############################
## Common Alfresco Properties #
###############################

#
# Sample custom content and index data location
#————-
dir.root=./alf_data

#
# Sample database connection properties
#————-
db.name=alfresco
db.username=alfresco
db.password=alfresco
db.host=localhost
db.port=3306

#
# External locations
#————-
#ooo.exe=soffice
#ooo.enabled=false
#img.root=./ImageMagick
#swf.exe=./bin/pdf2swf

ooo.exe=/usr/bin/soffice
ooo.enabled=true
img.root=/usr/lib/mime/packages/imagemagick
swf.exe=/usr/local/bin/pdf2swf

#
# MySQL connection
#————-
db.driver=org.gjt.mm.mysql.Driver
db.url=jdbc:mysql://${db.host}:${db.port}/${db.name}

#
# PostgreSQL connection (requires postgresql-8.2-504.jdbc3.jar or equivalent)
#
#db.driver=org.postgresql.Driver
#db.url=jdbc:postgresql://localhost:5432/alfresco

#
# Index Recovery Mode
#————-
#index.recovery.mode=AUTO

#
# Outbound Email Configuration
#————-
#mail.host=
#mail.port=25
#mail.username=anonymous
#mail.password=
#mail.encoding=UTF-8
#mail.from.default=alfresco@alfresco.org
#mail.smtp.auth=false

#
# Alfresco Email Service and Email Server
#————-

# Enable/Disable the inbound email service.  The service could be used by processes other than
# the Email Server (e.g. direct RMI access) so this flag is independent of the Email Service.
#————-
#email.inbound.enabled=true

# Email Server properties
#————-
#email.server.enabled=true
#email.server.port=25
#email.server.domain=alfresco.com
#email.inbound.unknownUser=anonymous

# A comma separated list of email REGEX patterns of allowed senders.
# If there are any values in the list then all sender email addresses
# must match. For example:
#   .*\@alfresco\.com, .*\@alfresco\.org
# Allow anyone:
#————-
#email.server.allowed.senders=.*

#
# The default authentication chain
# To configure external authentication subsystems see:
# http://wiki.alfresco.com/wiki/Alfresco_Authentication_Subsystems
#————-
#authentication.chain=alfrescoNtlm1:alfrescoNtlm

#
# URL Generation Parameters (The ${localname} token is replaced by the local server name)
#————-
#alfresco.context=alfresco
#alfresco.host=${localname}
#alfresco.port=8080
#alfresco.protocol=http
#
#share.context=share
#share.host=${localname}
#share.port=8080
#share.protocol=http

#imap.server.enabled=true
#imap.server.port=143
#imap.server.host=localhost

myserver /opt/Alfresco: sudo cat alfresco.log
23:35:55,200 INFO  [org.alfresco.config.JndiPropertiesFactoryBean] Loading properties file from class path resource [alfresco/repository.properties]
23:35:55,212 INFO  [org.alfresco.config.JndiPropertiesFactoryBean] Loading properties file from class path resource [alfresco/domain/transaction.properties]
23:35:55,222 INFO  [org.alfresco.config.JndiPropertiesFactoryBean] Loading properties file from file [/opt/Alfresco/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/module/tests/alfresco-global.properties]
23:35:55,232 INFO  [org.alfresco.config.JndiPropertiesFactoryBean] Loading properties file from URL [file:/opt/Alfresco/tomcat/shared/classes/alfresco-global.properties]
23:35:55,345 INFO  [org.alfresco.config.JndiPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/alfresco-shared.properties]
23:36:19,476 ERROR [org.springframework.web.context.ContextLoader] Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'registry' defined in class path resource [alfresco/core-services-context.xml]: Invocation of init method failed; nested exception is java.rmi.server.ExportException: Port already in use: 50500; nested exception is:
        java.net.BindException: Address already in use
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1401)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:512)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:450)
        at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:290)
        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
        at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:287)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:189)
        at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:280)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:189)
        at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:557)
        at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:842)
        at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:416)
        at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:261)
        at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:192)
        at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)
        at org.alfresco.web.app.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:63)
        at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3972)
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:4467)
        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:546)
        at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:637)
        at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:563)
        at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:498)
        at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277)
        at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321)
        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
        at org.apache.catalina.core.StandardHost.start(StandardHost.java:785)
        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:519)
        at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:581)
        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:289)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
Caused by: java.rmi.server.ExportException: Port already in use: 50500; nested exception is:
        java.net.BindException: Address already in use
        at sun.rmi.transport.tcp.TCPTransport.listen(TCPTransport.java:310)
        at sun.rmi.transport.tcp.TCPTransport.exportObject(TCPTransport.java:218)
        at sun.rmi.transport.tcp.TCPEndpoint.exportObject(TCPEndpoint.java:393)
        at sun.rmi.transport.LiveRef.exportObject(LiveRef.java:129)
        at sun.rmi.server.UnicastServerRef.exportObject(UnicastServerRef.java:190)
        at sun.rmi.registry.RegistryImpl.setup(RegistryImpl.java:92)
        at sun.rmi.registry.RegistryImpl.<init>(RegistryImpl.java:78)
        at java.rmi.registry.LocateRegistry.createRegistry(LocateRegistry.java:186)
        at org.springframework.remoting.rmi.RmiRegistryFactoryBean.getRegistry(RmiRegistryFactoryBean.java:267)
        at org.springframework.remoting.rmi.RmiRegistryFactoryBean.getRegistry(RmiRegistryFactoryBean.java:236)
        at org.springframework.remoting.rmi.RmiRegistryFactoryBean.getRegistry(RmiRegistryFactoryBean.java:193)
        at org.springframework.remoting.rmi.RmiRegistryFactoryBean.afterPropertiesSet(RmiRegistryFactoryBean.java:164)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1460)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1398)
        … 39 more
Caused by: java.net.BindException: Address already in use
        at java.net.PlainSocketImpl.socketBind(Native Method)
        at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:359)
        at java.net.ServerSocket.bind(ServerSocket.java:319)
        at java.net.ServerSocket.<init>(ServerSocket.java:185)
        at java.net.ServerSocket.<init>(ServerSocket.java:97)
        at sun.rmi.transport.proxy.RMIDirectSocketFactory.createServerSocket(RMIDirectSocketFactory.java:27)
        at sun.rmi.transport.proxy.RMIMasterSocketFactory.createServerSocket(RMIMasterSocketFactory.java:333)
        at sun.rmi.transport.tcp.TCPEndpoint.newServerSocket(TCPEndpoint.java:649)
        at sun.rmi.transport.tcp.TCPTransport.listen(TCPTransport.java:299)
        … 52 more
23:36:36,203 INFO  [org.springframework.extensions.webscripts.DeclarativeRegistry] Registered 227 Web Scripts (+0 failed), 235 URLs
23:36:36,231 INFO  [org.springframework.extensions.webscripts.DeclarativeRegistry] Registered 8 Package Description Documents (+0 failed)
23:36:36,231 INFO  [org.springframework.extensions.webscripts.DeclarativeRegistry] Registered 0 Schema Description Documents (+0 failed)
23:36:36,372 INFO  [org.springframework.extensions.webscripts.AbstractRuntimeContainer] Initialised Spring Surf Container Web Script Container (in 2770.166ms)
23:36:36,916 INFO  [org.springframework.extensions.webscripts.TemplateProcessorRegistry] Registered template processor freemarker for extension ftl
23:36:37,051 INFO  [org.springframework.extensions.webscripts.ScriptProcessorRegistry] Registered script processor javascript for extension js
23:36:37,152 INFO  [org.springframework.extensions.webscripts.TemplateProcessorRegistry] Registered template processor freemarker for extension ftl
23:36:37,157 INFO  [org.springframework.extensions.webscripts.ScriptProcessorRegistry] Registered script processor javascript for extension js
23:36:37,260 INFO  [org.springframework.extensions.webscripts.TemplateProcessorRegistry] Registered template processor freemarker for extension ftl
23:36:37,265 INFO  [org.springframework.extensions.webscripts.ScriptProcessorRegistry] Registered script processor javascript for extension js
myserver /opt/Alfresco:

(The above listing of alfresco.log indicates that the port 50500 wasn't closed when ./alfresco.sh stop was run previously. This appears to be an error which was documented a couple of years ago:

https://issues.alfresco.com/jira/browse/ETHREEOH-512;jsessionid=4270CCC07E38742C325E11B0BBFBD967?pag...

I don't know if this error is important.)


Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address           Foreign Address         State

tcp        0      0 127.0.0.1:3306          127.0.0.1:48360         ESTABLISHED
tcp        0      0 127.0.0.1:3306          127.0.0.1:48361         ESTABLISHED
tcp        0      0 127.0.0.1:3306          127.0.0.1:48356         ESTABLISHED
tcp        0      0 127.0.0.1:3306          127.0.0.1:48357         ESTABLISHED
tcp        0      0 127.0.0.1:3306          127.0.0.1:48358         ESTABLISHED
tcp        0      0 127.0.0.1:3306          127.0.0.1:48359         ESTABLISHED
tcp6       0      0 :::50500                :::*                    LISTEN
tcp6       0      0 127.0.0.1:8005          :::*                    LISTEN
tcp6       0      0 :::50501                :::*                    LISTEN
tcp6       0      0 :::50502                :::*                    LISTEN
tcp6       0      0 :::50503                :::*                    LISTEN
tcp6       0      0 :::50504                :::*                    LISTEN
tcp6       0      0 :::50505                :::*                    LISTEN
tcp6       0      0 :::50506                :::*                    LISTEN
tcp6       0      0 :::59819                :::*                    LISTEN
tcp6       0      0 :::50508                :::*                    LISTEN
tcp6       0      0 :::32943                :::*                    LISTEN
tcp6       0      0 :::8080                 :::*                    LISTEN

tcp6       1      0 127.0.0.1:37468         127.0.0.1:8080          CLOSE_WAIT
tcp6       1      0 127.0.0.1:38129         127.0.0.1:8080          CLOSE_WAIT
tcp6       1      0 127.0.0.1:38278         127.0.0.1:8080          CLOSE_WAIT
tcp6       1      0 127.0.0.1:38513         127.0.0.1:8080          CLOSE_WAIT
tcp6       1      0 127.0.0.1:38746         127.0.0.1:8080          CLOSE_WAIT
tcp6       1      0 127.0.0.1:40302         127.0.0.1:8080          CLOSE_WAIT
tcp6       1      0 127.0.0.1:33436         127.0.0.1:8080          CLOSE_WAIT
tcp6       1      0 127.0.0.1:35656         127.0.0.1:8080          CLOSE_WAIT
tcp6       1      0 127.0.0.1:36132         127.0.0.1:8080          CLOSE_WAIT
tcp6       1      0 127.0.0.1:36369         127.0.0.1:8080          CLOSE_WAIT
tcp6       1      0 127.0.0.1:36837         127.0.0.1:8080          CLOSE_WAIT
tcp6       1      0 127.0.0.1:47415         127.0.0.1:8080          CLOSE_WAIT
tcp6       1      0 127.0.0.1:48628         127.0.0.1:8080          CLOSE_WAIT
tcp6       1      0 127.0.0.1:42692         127.0.0.1:8080          CLOSE_WAIT
tcp6       1      0 127.0.0.1:43069         127.0.0.1:8080          CLOSE_WAIT
tcp6       1      0 127.0.0.1:43854         127.0.0.1:8080          CLOSE_WAIT
tcp6       1      0 127.0.0.1:54048         127.0.0.1:8080          CLOSE_WAIT
tcp6       1      0 127.0.0.1:54241         127.0.0.1:8080          CLOSE_WAIT
tcp6       1      0 127.0.0.1:54768         127.0.0.1:8080          CLOSE_WAIT
tcp6       1      0 127.0.0.1:56289         127.0.0.1:8080          CLOSE_WAIT
tcp6       1      0 127.0.0.1:56886         127.0.0.1:8080          CLOSE_WAIT
tcp6       1      0 127.0.0.1:57050         127.0.0.1:8080          CLOSE_WAIT
tcp6       0      0 127.0.0.1:48360         127.0.0.1:3306          ESTABLISHED
tcp6       0      0 127.0.0.1:48361         127.0.0.1:3306          ESTABLISHED
tcp6       0      0 127.0.0.1:48358         127.0.0.1:3306          ESTABLISHED
tcp6       0      0 127.0.0.1:48359         127.0.0.1:3306          ESTABLISHED
tcp6       0      0 127.0.0.1:48356         127.0.0.1:3306          ESTABLISHED
tcp6       0      0 127.0.0.1:48357         127.0.0.1:3306          ESTABLISHED
tcp6       1      0 127.0.0.1:52645         127.0.0.1:8080          CLOSE_WAIT
tcp6       1      0 127.0.0.1:58224         127.0.0.1:8080          CLOSE_WAIT
tcp6       1      0 127.0.0.1:58297         127.0.0.1:8080          CLOSE_WAIT
tcp6       1      0 127.0.0.1:59640         127.0.0.1:8080          CLOSE_WAIT
tcp6       1      0 127.0.0.1:59835         127.0.0.1:8080          CLOSE_WAIT
tcp6       1      0 127.0.0.1:60837         127.0.0.1:8080          CLOSE_WAIT

Thanks for any help.

neil_benn
Champ in-the-making
Champ in-the-making
Hello,

        I have _exactly_ the same symptons as this poster.  I managed to install Alfresco on an Ubunut desktop runnign on a vm on my desktop and it worked fine.  However I am now trying to install on ubuntu server (our staging server) using the details listed by teh suer.  I have the same issue  on accessing share with :

org.springframework.web.util.NestedServletException: Request processing failed; nested exception is org.springframework.extensions.surf.exception.PlatformRuntimeException: 05070001 Unable to retrieve object: slingshot.site.configuration of type: configuration

   org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:659)
   org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:552)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:617)

   javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

   And acessing server:8080/alfresco does not work at all.  I'm totally stuck here and it is a real shame as I had the full blown alfresco runnign on my ubuntu desktop.  Any help would be greatly appreciated.

Regards,

Neil

mikeh
Star Contributor
Star Contributor
To the original poster: yes, it's vital that the "Address already in use" problem does not happen. Make sure the java processes have gone completely before restarting Alfresco.

To neil.benn: please ensure you have the /alfresco application running before trying Share. Please read this post for info: http://forums.alfresco.com/en/viewtopic.php?t=23538

Thanks,
Mike