cancel
Showing results for 
Search instead for 
Did you mean: 

installing using non-dedicated tomcat

deniszy
Champ in-the-making
Champ in-the-making
Is it possible to install Alfresco not on dedicated Tomcat but on other servlet container?

currently i am trying to deploy it on JBoss with Tomcat under Mac OS X and getting exceptions like:

13:27:40,516 ERROR [[/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 'luceneIndexBackupComponent' defined in class path resource [alfresco/core-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
Caused by:
org.hibernate.exception.GenericJDBCException: Cannot open connection

is there smth I should do additionally to make it run properly? I assume by default Alfresco should use internal database but it seems like it's trying to make a connection to smth external to it.
4 REPLIES 4

mrogers
Star Contributor
Star Contributor
Yes Alfresco runs on other application servers including JBOSS.

There's information about running on JBOSS in the wiki, for example:
http://wiki.alfresco.com/wiki/Deploying_WAR_JBoss

However from your exception message it looks like there is a problem with your database configuration.
 
You need to install and configure a database for alfresco to use, have you done that?

deniszy
Champ in-the-making
Champ in-the-making
Thank you for you reply.
no, i have not installed a DB for Alfresco.
however i do have MySQL instance running so, as far as i understand, this DB configuration is stored inside Alfresco WAR file, isn't it?

i read this document http://wiki.alfresco.com/wiki/Installing_on_MacOS_X and assumed that internal DB is used by default.
it says that configuration for MySQL is optional. However it does not say that any other DB should be configured.

mrogers
Star Contributor
Star Contributor
Yes you are right that there will be some configuration in the WAR file.

The file that has your database settings is called repository.properties.

The steps to configure the database are
1) create an alfresco schema
2) create a user for alfresco to access the database
3) add the jdbc driver to the classpath (it may already be there)
4) configure alfresco to use your database.

deniszy
Champ in-the-making
Champ in-the-making
Still having a problem with deploying the app.

there is no error in the log but it says:

HTTP Status 404 - /alfresco/

type Status report

message /alfresco/

description The requested resource (/alfresco/) is not available.
I did do changes described in here: http://wiki.alfresco.com/wiki/Install_On_Jboss_4.2.0 and here: http://wiki.alfresco.com/wiki/Deploying_WAR_JBoss
but still receiving the error above.
Could it be the problem with Alfresco 3, as all documentation for JBoss deployment is written for version 2.1?