cancel
Showing results for 
Search instead for 
Did you mean: 

Alfresco 3.2 / Tomcat 6 Bundle on FreeBSD 7.2

simonsays42
Champ in-the-making
Champ in-the-making
Hi

My first attempt getting alfreso running on FreeBSD failed a few months ago. Anyway since Alfresco 3.2 has been released and I decided to start with a bundled installation next time I just gave it another shot. Thus I installed Apache 2.0, MySQL 5.1, JDK6 and extracted "alfresco-community-tomcat-3.2.tar.gz". When I then launched tomcat/alfresco by running "alfreco.sh start" I could connect to my server (8080) but nothing happens…

alfresco.log:

23:55:32,442 INFO  [org.alfresco.config.JndiPropertiesFactoryBean] Loading properties file from class path resource [alfresco/repository.properties]
23:55:32,446 INFO  [org.alfresco.config.JndiPropertiesFactoryBean] Loading properties file from class path resource [alfresco/domain/transaction.properties]
23:55:32,446 INFO  [org.alfresco.config.JndiPropertiesFactoryBean] Loading properties file from URL [file:/usr/local/www/data-dist/alfresco/tomcat/shared/classes/alfresco-global.properties]
23:55:32,881 INFO  [org.alfresco.config.JndiPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/alfresco-shared.properties]
23:56:13,831 ERROR [org.springframework.web.context.ContextLoader] Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.remoting.rmi.RmiServiceExporter' defined in class path resource [alfresco/emailserver/email-service-context.xml]: Invocation of init method failed; nested exception is java.rmi.server.ExportException: internal error: ObjID already in use
Caused by: java.rmi.server.ExportException: internal error: ObjID already in use
   at sun.rmi.transport.ObjectTable.putTarget(ObjectTable.java:169)
   at sun.rmi.transport.Transport.exportObject(Transport.java:74)
   at sun.rmi.transport.tcp.TCPTransport.exportObject(TCPTransport.java:229)
   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.RmiServiceExporter.getRegistry(RmiServiceExporter.java:398)
   at org.springframework.remoting.rmi.RmiServiceExporter.getRegistry(RmiServiceExporter.java:370)
   at org.springframework.remoting.rmi.RmiServiceExporter.getRegistry(RmiServiceExporter.java:331)
   at org.springframework.remoting.rmi.RmiServiceExporter.prepare(RmiServiceExporter.java:263)
   at org.springframework.remoting.rmi.RmiServiceExporter.afterPropertiesSet(RmiServiceExporter.java:227)
   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1203)
   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1172)
   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:427)
   at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:249)
   at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:155)
   at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:246)
   at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160)
   at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:291)
   at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:352)
   at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:246)
   at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:189)
   at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:49)
   at org.alfresco.web.app.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:69)
   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.deployDescriptor(HostConfig.java:627)
   at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:553)
   at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:488)
   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)
23:56:19,255 INFO  [org.alfresco.config.JBossEnabledWebApplicationContext] Refreshing org.alfresco.config.JBossEnabledWebApplicationContext@5ad035: display name [Root WebApplicationContext]; startup date [Tue Aug 25 23:56:19 CEST 2009]; root of context hierarchy
23:56:21,074 INFO  [org.alfresco.config.JBossEnabledWebApplicationContext] Bean factory for application context [org.alfresco.config.JBossEnabledWebApplicationContext@5ad035]: org.springframework.beans.factory.support.DefaultListableBeanFactory@178c581
23:56:23,963 INFO  [org.alfresco.web.scripts.DeclarativeRegistry] Registered 24 Web Scripts (+0 failed), 26 URLs
23:56:24,009 INFO  [org.alfresco.web.scripts.AbstractRuntimeContainer] Initialised Presentation Web Script Container (in 903.0805ms)
23:56:24,493 INFO  [org.alfresco.web.scripts.DeclarativeRegistry] Registered 42 Web Scripts (+0 failed), 44 URLs
23:56:24,520 INFO  [org.alfresco.web.scripts.AbstractRuntimeContainer] Initialised WebFramework Web Script Container (in 501.91693ms)
23:56:24,651 INFO  [org.alfresco.web.site.FrameworkHelper] Successfully Initialized Web Framework
23:56:33,206 INFO  [org.alfresco.web.site.FrameworkHelper] Successfully Initialized Web Framework

So again I'm stuck. I appreciate any help. Thank you.

rgds
Simon
3 REPLIES 3

norgan
Champ in-the-making
Champ in-the-making
Hmm … the real meat is the message "ObjID already in use", I would guess.  My first try would be to make sure no other service is in the way. Do the apache and tomcat work  ok ? (e.g. Access to DOCS or Examples folder)

simonsays42
Champ in-the-making
Champ in-the-making
Hello first of all thank you for your quick response. You're absolutely right about the "ObjID" issue which I already came across a few month ago (it seems to be an issue that most users have to deal with at some point). Last time I fixed it by reconfiguring my firewall so that access to localhost was possible and I also disabled the sendmail server running on port 25. Anyway this time there is no mail service running and even if the pf (firewall) is disabled the "ObjID" problem still shows up. So after spending quite some time with "google" and browsing this forum I'm kinda lost and don't know what to do next. Thus any hint/help is again very much appreciated …

Thank you!
Best regards
Simon

By the way: I provided you with sockstat output and current catalina/alfresco logs …. hope that helps to track down the problem.

Output (sockstat):

USER     COMMAND    PID   FD PROTO  LOCAL ADDRESS         FOREIGN ADDRESS
root     ntpd       1566  3  dgram  -> /var/run/logpriv
root     ntpd       1566  20 udp4   *:123                 *:*
root     ntpd       1566  21 udp6   *:123                 *:*
root     ntpd       1566  22 udp4   10.10.20.1:123        *:*
root     ntpd       1566  23 udp4   10.10.10.2:123        *:*
root     ntpd       1566  24 udp6   fe80:6::1:123         *:*
root     ntpd       1566  25 udp6   ::1:123               *:*
root     ntpd       1566  26 udp4   127.0.0.1:123         *:*
psimon   sshd       1327  3  tcp4   10.10.20.1:22         10.10.20.21:2959
psimon   sshd       1327  4  stream -> ??
root     sshd       1325  3  tcp4   10.10.20.1:22         10.10.20.21:2959
root     sshd       1325  5  stream -> ??
root     racoon     1264  3  dgram  -> /var/run/logpriv
root     racoon     1264  5  udp4   10.10.20.1:4500       *:*
root     racoon     1264  6  udp4   10.10.20.1:500        *:*
root     login      1045  3  dgram  -> /var/run/logpriv
root     login      1044  3  dgram  -> /var/run/logpriv
root     dhcpd      1021  3  dgram  -> /var/run/logpriv
root     dhcpd      1021  5  udp4   *:67                  *:*
root     sshd       993   3  tcp4   10.10.20.1:22         *:*
www      httpd      961   3  tcp46  *:80                  *:*
www      httpd      960   3  tcp46  *:80                  *:*
www      httpd      959   3  tcp46  *:80                  *:*
www      httpd      957   3  tcp46  *:80                  *:*
www      httpd      956   3  tcp46  *:80                  *:*
root     httpd      952   3  tcp46  *:80                  *:*
mysql    mysqld     938   10 tcp4   *:3306                *:*
mysql    mysqld     938   12 stream /tmp/mysql.sock
root     syslogd    726   4  dgram  /var/run/log
root     syslogd    726   5  dgram  /var/run/logpriv
root     devd       679   4  stream /var/run/devd.pipe
_pflogd  pflogd     477   5  stream -> ??
root     pflogd     472   4  stream -> ??

alfresco.log.2009-09-01:

16:14:51,527 INFO  [org.alfresco.config.JndiPropertiesFactoryBean] Loading properties file from class path resource [alfresco/repository.properties]
16:14:51,535 INFO  [org.alfresco.config.JndiPropertiesFactoryBean] Loading properties file from class path resource [alfresco/domain/transaction.properties]
16:14:51,535 INFO  [org.alfresco.config.JndiPropertiesFactoryBean] Loading properties file from URL [file:/usr/local/www/data-dist/alfresco/tomcat/shared/classes/alfresco-global.properties]
16:14:51,729 INFO  [org.alfresco.config.JndiPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/alfresco-shared.properties]
16:15:31,961 ERROR [org.springframework.web.context.ContextLoader] Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.remoting.rmi.RmiServiceExporter' defined in class path resource [alfresco/emailserver/email-service-context.xml]: Invocation of init method failed; nested exception is java.rmi.server.ExportException: internal error: ObjID already in use
Caused by: java.rmi.server.ExportException: internal error: ObjID already in use
        at sun.rmi.transport.ObjectTable.putTarget(ObjectTable.java:169)
        at sun.rmi.transport.Transport.exportObject(Transport.java:74)
        at sun.rmi.transport.tcp.TCPTransport.exportObject(TCPTransport.java:229)
        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.RmiServiceExporter.getRegistry(RmiServiceExporter.java:398)
        at org.springframework.remoting.rmi.RmiServiceExporter.getRegistry(RmiServiceExporter.java:370)
        at org.springframework.remoting.rmi.RmiServiceExporter.getRegistry(RmiServiceExporter.java:331)
        at org.springframework.remoting.rmi.RmiServiceExporter.prepare(RmiServiceExporter.java:263)
        at org.springframework.remoting.rmi.RmiServiceExporter.afterPropertiesSet(RmiServiceExporter.java:227)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1203)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1172)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:427)
        at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:249)
        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:155)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:246)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160)
        at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:291)
        at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:352)
        at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:246)
        at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:189)
        at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:49)
        at org.alfresco.web.app.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:69)
        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.deployDescriptor(HostConfig.java:627)
        at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:553)
        at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:488)
        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)
16:15:37,629 INFO  [org.alfresco.config.JBossEnabledWebApplicationContext] Refreshing org.alfresco.config.JBossEnabledWebApplicationContext@f92ab0: display name [Root WebApplicationContext]; startup date [Tue Sep 01 16:15:37 CEST 2009]; root of context hierarchy
16:15:39,509 INFO  [org.alfresco.config.JBossEnabledWebApplicationContext] Bean factory for application context [org.alfresco.config.JBossEnabledWebApplicationContext@f92ab0]: org.springframework.beans.factory.support.DefaultListableBeanFactory@dc28b2
16:15:42,342 INFO  [org.alfresco.web.scripts.DeclarativeRegistry] Registered 24 Web Scripts (+0 failed), 26 URLs
16:15:42,389 INFO  [org.alfresco.web.scripts.AbstractRuntimeContainer] Initialised Presentation Web Script Container (in 831.37506ms)
16:15:42,930 INFO  [org.alfresco.web.scripts.DeclarativeRegistry] Registered 42 Web Scripts (+0 failed), 44 URLs
16:15:42,956 INFO  [org.alfresco.web.scripts.AbstractRuntimeContainer] Initialised WebFramework Web Script Container (in 559.1652ms)
16:15:43,088 INFO  [org.alfresco.web.site.FrameworkHelper] Successfully Initialized Web Framework
16:15:55,020 INFO  [org.alfresco.web.site.FrameworkHelper] Successfully Initialized Web Framework
16:20:02,395 INFO  [org.alfresco.config.JBossEnabledWebApplicationContext] Closing org.alfresco.config.JBossEnabledWebApplicationContext@f92ab0: display name [Root WebApplicationContext]; startup date [Tue Sep 01 16:15:37 CEST 2009]; root of context hierarchy

catalina.2009-09-02.log:

Sep 2, 2009 12:55:36 AM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Sep 2, 2009 12:55:36 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1665 ms
Sep 2, 2009 12:55:36 AM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Sep 2, 2009 12:55:36 AM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.18
Sep 2, 2009 12:55:45 AM 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.
Sep 2, 2009 12:56:52 AM org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart
Sep 2, 2009 12:56:52 AM org.apache.catalina.core.StandardContext start
SEVERE: Context [/alfresco] startup failed due to previous errors
Sep 2, 2009 12:56:56 AM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive mobile.war
Sep 2, 2009 12:57:05 AM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive share.war
Sep 2, 2009 12:57:14 AM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Sep 2, 2009 12:57:14 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 97673 ms

gronfelt
Champ in-the-making
Champ in-the-making
Alfresco needs to be able to connect to the server using its hostname rather than "localhost", so you might wan't to check that the server can resolve itself using the hostname.