06-29-2008 04:13 PM
sudo ./alfresco.sh start from /opt/alfresco. But when I try and access alfresco from my browser at "http:\\<serverIpAddress>:8080\alfresco" the browser times out.INFO: Deploying web application archive alfresco.war
13:33:48,498 User:System WARN [remoting.rmi.RmiRegistryFactoryBean] Could not detect RMI registry - creating new one
13:33:55,923 User:System ERROR [web.context.ContextLoader] Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'usageQuotaProtector' defined in
class path resource [alfresco/usage-services-context.xml]: Invocation of init method failed; nested exception is
org.springframework.transaction.CannotCreateTransactionException: Could not open Hibernate Session for transaction;
nested exception is org.hibernate.exception.GenericJDBCException: Cannot open connection
Caused by: org.springframework.transaction.CannotCreateTransactionException: Could not open Hibernate Session for
transaction; nested exception is org.hibernate.exception.GenericJDBCException: Cannot open connection
. . .
… 57 more
13:33:55,950 User:System ERROR [[Catalina].[localhost].[/alfresco]] Exception sending context initialized event to
listener instance of class org.springframework.web.context.ContextLoaderListener
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'usageQuotaProtector' defined in
class path resource [alfresco/usage-services-context.xml]: Invocation of init method failed; nested exception is
org.springframework.transaction.CannotCreateTransactionException: Could not open Hibernate Session for transaction;
nested exception is org.hibernate.exception.GenericJDBCException: Cannot open connection
Caused by: org.springframework.transaction.CannotCreateTransactionException: Could not open Hibernate Session for
transaction; nested exception is org.hibernate.exception.GenericJDBCException: Cannot open connection
. . .
… 57 more
13:33:55,959 User:System ERROR [[Catalina].[localhost].[/alfresco]] Exception sending context initialized event to
listener instance of class org.alfresco.web.app.ContextListener
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'usageQuotaProtector' defined in
class path resource [alfresco/usage-services-context.xml]: Invocation of init method failed; nested exception is
org.springframework.transaction.CannotCreateTransactionException: Could not open Hibernate Session for transaction;
nested exception is org.hibernate.exception.GenericJDBCException: Cannot open connection
Caused by: org.springframework.transaction.CannotCreateTransactionException: Could not open Hibernate Session for
transaction; nested exception is org.hibernate.exception.GenericJDBCException: Cannot open connection
. . .
… 57 more
29-Jun-2008 13:33:55 org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart
29-Jun-2008 13:33:55 org.apache.catalina.core.StandardContext start
SEVERE: Context [/alfresco] startup failed due to previous errors
log4j:ERROR LogMananger.repositorySelector was null likely due to error in class reloading, using NOPLoggerRepository.
29-Jun-2008 13:34:01 org.apache.coyote.http11.Http11BaseProtocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
29-Jun-2008 13:34:02 org.apache.catalina.storeconfig.StoreLoader load
INFO: Find registry server-registry.xml at classpath resource
29-Jun-2008 13:34:02 org.apache.catalina.startup.Catalina start
INFO: Server startup in 63292 ms
I'd be very grateful if anyone could suggest a solution to get alfresco working on my system.08-19-2008 10:48 AM
08-19-2008 11:25 AM
nested exception is org.hibernate.exception.GenericJDBCException: Cannot open connection08-19-2008 11:40 AM
Mike,
Just out of curiosity, which Tomcat / Java / Alfresco versions are you running?
Thanks!
08-19-2008 11:50 AM
08-19-2008 12:45 PM
16:55:17,810 User:System ERROR [web.context.ContextLoader] Context initialization failed
org.alfresco.error.AlfrescoRuntimeException: Bootstrap failed
at org.alfresco.repo.importer.ImporterBootstrap.bootstrap(ImporterBootstrap.java:441)
at org.alfresco.repo.importer.ImporterBootstrap.onBootstrap(ImporterBootstrap.java:663)
… lots of at blah, blah …
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
Caused by: java.lang.OutOfMemoryError: Java heap spaceSo I have tried to increaqse the heap space, by changing /etc/init.d/alfresco as follows #
# Alfresco init script for Ubuntu
# 2 nov 2007 Joost Horward
#
export ALFRESCO_HOME=/opt/alfresco
export CATALINA_BASE=/opt/alfresco/tomcat
export CATALINA_HOME=/opt/alfresco/tomcat
export PIDFILE=/var/run/alfresco
export LOGFILE=/var/log/alfresco/alfresco.log
# Set any default JVM values
export JAVA_OPTS='-Xms512m -Xmx512m -Xss64k -server -Djava.io.tmpdir=/var/lib/alfresco/tmp'
… etc …
But I still get same out of heap errors in the log, and the server timeout error message on localhost:8080/alfresco08-19-2008 01:12 PM
# —– Change memory settings ———————-
JAVA_OPTS="$JAVA_OPTS "-Xmx256M" "-Xms384M
08-19-2008 01:43 PM
Error occurred during initialization of VM
Incompatible minimum and maximum heap sizes specified
Kind regards, Nigel
08-19-2008 01:49 PM
08-19-2008 02:01 PM
Hi Matthew
Thanks for your suggestion. I tried it. Now I get (only) the following entry in catalina.outKind regards, NigelError occurred during initialization of VM
Incompatible minimum and maximum heap sizes specified
08-19-2008 04:06 PM
19-Aug-220:46:30,191 User:System INFO [repo.admin.ConfigurationChecker] The Alfresco root data directory ('dir.root') is: /var/lib/alfresco/alf_data
20:46:30,296 User:System INFO [admin.patch.PatchExecuter] Checking for patches to apply …
20:46:31,750 User:System INFO [repo.module.ModuleServiceImpl] Found 0 module(s).
20:46:32,753 ERROR [smb.protocol.mailslot] HostAnnouncer error
java.io.IOException: Operation not permitted
at java.net.PlainDatagramSocketImpl.send(Native Method)
at java.net.DatagramSocket.send(DatagramSocket.java:612)
at org.alfresco.filesys.netbios.NetBIOSDatagramSocket.sendDatagram(NetBIOSDatagramSocket.java:160)
at org.alfresco.filesys.netbios.NetBIOSDatagram.SendDatagram(NetBIOSDatagram.java:396)
at org.alfresco.filesys.smb.mailslot.TcpipNetBIOSHostAnnouncer.sendAnnouncement(TcpipNetBIOSHostAnnouncer.java:215)
at org.alfresco.filesys.smb.mailslot.HostAnnouncer.run(HostAnnouncer.java:313)
20:46:32,803 ERROR [smb.protocol.mailslot] Check <broadcast> setting in file-servers.xml
20:46:33,241 User:System WARN [alfresco.util.OpenOfficeConnectionTester] A connection to OpenOffice could not be established.
20:46:32,803 ERROR [smb.protocol.mailslot] Check <broadcast> setting in file-servers.xml
20:46:33,241 User:System WARN [alfresco.util.OpenOfficeConnectionTester] A connection to OpenOffice could not be established.
20:46:33,278 User:System INFO [service.descriptor.DescriptorService] Alfresco JVM - v1.6.0_06-b02; maximum heap size 381.063MB
20:46:33,279 User:System WARN [service.descriptor.DescriptorService] Alfresco JVM - WARNING - maximum heap size 381.063MB is less than recommended 512MB
20:46:33,280 User:System INFO [service.descriptor.DescriptorService] Alfresco started (Community Network): Current version 2.9.0 (B 683) schema 116 - Installed version 2.9.0 (B 683) schema 116
19-Aug-2008 20:46:46 org.apache.coyote.http11.Http11BaseProtocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
19-Aug-2008 20:46:46 org.apache.catalina.storeconfig.StoreLoader load
INFO: Find registry server-registry.xml at classpath resource
19-Aug-2008 20:46:46 org.apache.catalina.startup.Catalina start
INFO: Server startup in 88461 ms
008 20:45:18 org.apache.coyote.http11.Http11BaseProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
19-Aug-2008 20:45:18 org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 2727 ms
19-Aug-2008 20:45:18 org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
19-Aug-2008 20:45:18 org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.23
19-Aug-2008 20:45:18 org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
19-Aug-2008 20:45:20 org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive alfresco.war
20:46:09,787 User:System WARN [remoting.rmi.RmiRegistryFactoryBean] Could not detect RMI registry - creating new one
20:46:20,639 User:System INFO [domain.schema.SchemaBootstrap] Schema managed by database dialect org.hibernate.dialect.MySQLInnoDBDialect.
20:46:22,748 User:System INFO [domain.schema.SchemaBootstrap] No changes were made to the schema.
20:46:30,191 User:System INFO [repo.admin.ConfigurationChecker] The Alfresco root data directory ('dir.root') is: /var/lib/alfresco/alf_data
20:46:30,296 User:System INFO [admin.patch.PatchExecuter] Checking for patches to apply …
Any suggestions?Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.