I am running into the same problem of trying to deploy Alfresco 2.0 on JBoss 4.2.GA. I had previously installed Alfresco 2.0 with Tomcat and HSQL and that seems to work fine. I am trying to get it work under JBoss 4.2.GA with its own HSQL database and running into deployment issues. This is what I did:
- Unzipped alfresco-community-war-2.0.0 into a folder C:\AlfrescoJBoss. This creates the alf_data and other folders underneath it
- Copied alf_start, alf_stop, alfreso batch files from the Tomcat installation into C:\AlfrescoJBoss folder and modifed so that it starts JBoss instead of Tomcat
- Copied alfresco.war to C:\jboss-4.2.0.GA\server\default\deploy folder
- Followed the rest of instructions for deploying Alfreso on JBoss from the WIKI page (including turning down the logs and deleting the log4j.jar file)
- Started JBoss, but failed to deploy with following errors:
'C:\jboss-4.2.0.GA\server\default\.\tmp\deploy\tmp42468alfresco-exp.war\' initialized.
2007-06-07 10:18:20,555 WARN [org.jboss.web.jsf.integration.config.JBossJSFConfigureListener] MyFaces JSF implementation found! This version of JBoss AS ships with the java.net implementation of JSF. There are known issues when mixing JSF implementations. This warning does not apply to MyFaces component libraries such as Tomahawk. However, myfaces-impl.jar and myfaces-api.jar should not be used without disabling the built-in JSF implementation. See the JBoss wiki for more details.
2007-06-07 10:18:28,837 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/alfresco]] Exception sending context initialized event to listener instance of class org.jboss.web.jsf.integration.config.JBossJSFConfigureListener
javax.faces.FacesException: java.net.MalformedURLException: Path WEB-INF/faces-config-custom.xml does not start with a "/" character
Next error is about missing MySQL driver. However I needed it to work with HSQL just as it did with Tomcat, not sure where to configure this:
2007-06-07 10:19:15,875 INFO [org.hibernate.connection.ConnectionProviderFactory] Initializing connection provider: org.springframework.orm.hibernate3.LocalDataSourceConnectionProvider
2007-06-07 10:19:15,905 WARN [org.hibernate.util.JDBCExceptionReporter] SQL Error: 0, SQLState: null
2007-06-07 10:19:15,905 ERROR [org.hibernate.util.JDBCExceptionReporter] Cannot load JDBC driver class 'org.gjt.mm.mysql.Driver'
2007-06-07 10:19:15,905 WARN [org.hibernate.cfg.SettingsFactory] Could not obtain connection metadata
org.apache.commons.dbcp.SQLNestedException: Cannot load JDBC driver class 'org.gjt.mm.mysql.Driver'
at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:766)
at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:540)
at org.springframework.orm.hibernate3.LocalDataSourceConnectionProvider.getConnection(LocalDataSourceConnectionProvider.java:80)
at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:72)
at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:1881)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1174)
at org.springframework.orm.hibernate3.LocalSessionFactoryBean.newSessionFactory(LocalSessionFactoryBean.java:800)
at org.springframework.orm.hibernate3.LocalSessionFactoryBean.afterPropertiesSet(LocalSessionFactoryBean.java:726)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1059)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:363)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:226)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:147)
at ….
Could someone provide detailed instructions on how they successfully deployed Alfresco 2.0 on JBoss 4.2.GA using HSQL database. Also not sure if Alfresco is planning a 2.0 release with the JBoss bundle.
Thanks.