02-02-2009 02:25 PM
ant build-jbossIt seems that the jboss targets where removed with SVN v8881. That commit's comment was:r8881 | gavinc | 2008-04-24 17:08:54 -0400 (Thu, 24 Apr 2008) | 8 linesThe jboss targets are excluded as of SVN v13002.
Improved build scripts
- Cleaned up spaghetti dependencies
- More stable build process for WAR files
- Added consistent top level targets for building and deploying all WAR files
- Improved clean targets
- Improved -projecthelp/-p output (now only shows top level useful targets)
- Fixed issue in continuous build for Paul where tomcat instance was required
- Continuous build now packages slingshot.war in relevant bundles
02-03-2009 02:56 PM
02-03-2009 03:50 PM
02-03-2009 06:33 PM
diff -u -r jboss-org/bin/run.sh jboss/bin/run.sh
— jboss-org/bin/run.sh 2008-07-18 14:18:48.000000000 -0400
+++ jboss/bin/run.sh 2009-02-03 15:48:33.000000000 -0500
@@ -5,6 +5,9 @@
## ##
### ====================================================================== ###
+JAVA_HOME="/home/ed/local/jdk1.6.0_11"
+JAVA_OPTS="-Xms512m -Xmx1G -XX:MaxPermSize=128m -server -Dorg.apache.catalina.STRICT_SERVLET_COMPLIANCE=false"
+
### $Id: run.sh 75849 2008-07-15 18:43:17Z dimitris@jboss.org $ ###
DIRNAME=`dirname $0`
Only in jboss/server/default/deploy: alfresco.war
diff -u -r jboss-org/server/default/deploy/ejb3.deployer/META-INF/persistence.properties jboss/server/default/deploy/ejb3.deployer/META-INF/persistence.properties
— jboss-org/server/default/deploy/ejb3.deployer/META-INF/persistence.properties 2008-07-18 14:21:02.000000000 -0400
+++ jboss/server/default/deploy/ejb3.deployer/META-INF/persistence.properties 2009-02-03 15:29:30.000000000 -0500
@@ -14,4 +14,4 @@
hibernate.jndi.java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces
hibernate.bytecode.use_reflection_optimizer=false
# I don't think this is honored, but EJB3Deployer uses it
-hibernate.bytecode.provider=javassist
\ No newline at end of file
+hibernate.bytecode.provider=cglib
diff -u -r jboss-org/server/default/deploy/jboss-web.deployer/conf/web.xml jboss/server/default/deploy/jboss-web.deployer/conf/web.xml
— jboss-org/server/default/deploy/jboss-web.deployer/conf/web.xml 2008-07-18 14:21:02.000000000 -0400
+++ jboss/server/default/deploy/jboss-web.deployer/conf/web.xml 2009-02-03 15:29:30.000000000 -0500
@@ -59,16 +59,20 @@
<!– Configures JSF for a web application if the javax.faces.webapp.FacesServlet is declared –>
<!– in web.xml. –>
+ <!–
<listener>
<listener-class>org.jboss.web.jsf.integration.config.JBossJSFConfigureListener</listener-class>
</listener>
+ –>
<!– Listens to all web app lifecycle events so that @PreDestroy can be called on –>
<!– JSF managed beans that go out of scope. You can comment this out if you –>
<!– don't use JSF or you don't use annotations on your managed beans. –>
+ <!–
<listener>
<listener-class>com.sun.faces.application.WebappLifecycleListener</listener-class>
</listener>
+ –>
<!– ================== Built In Servlet Definitions ==================== –>
Only in jboss/server/default/deploy: share.war
Only in jboss/server/default/lib: mysql-connector-java-5.1.6-bin.jar
diff -u -r -N jboss-org/server/default/conf/alfresco/extension/custom-repository.properties jboss/server/default/conf/alfresco/extension/custom-repository.properties
— jboss-org/server/default/conf/alfresco/extension/custom-repository.properties 1969-12-31 19:00:00.000000000 -0500
+++ jboss/server/default/conf/alfresco/extension/custom-repository.properties 2009-02-03 21:01:23.000000000 -0500
@@ -0,0 +1,58 @@
+###############################
+## Common Alfresco Properties #
+###############################
+
+#
+# Sample custom content and index data location
+#
+#dir.root=/home/ed/Alfresco-Labs/alf_data
+#dir.indexes=/home/ed/Alfresco-Labs/alf_data/lucene-indexes
+
+#
+# Sample database connection properties
+#
+db.name=alfresco
+db.username=alfresco
+db.password=alfresco
+#db.pool.initial=10
+#db.pool.max=100
+
+#
+# External locations
+#
+ooo.exe=/usr/lib/openoffice.org3/program/soffice
+ooo.user=${dir.root}/oouser
+img.root=/usr/local
+swf.exe=/home/ed/local/swftools-2009-01-06-2243/bin/pdf2swf
+
+#
+# Property to control whether schema updates are performed automatically.
+# Updates must be enabled during upgrades as, apart from the static upgrade scripts,
+# there are also auto-generated update scripts that will need to be executed. After
+# upgrading to a new version, this can be disabled.
+#
+#db.schema.update=true
+
+#
+# Derby connection
+#
+#db.driver=org.apache.derby.jdbc.EmbeddedDriver
+#db.url=jdbc:derby:/home/ed/Alfresco-Labs/alf_data/derby_data/alfresco;create=true
+
+#
+# HSQL connection
+#
+#hsql#db.driver=org.hsqldb.jdbcDriver
+#hsql#db.url=jdbc:hsqldb:file:/home/ed/Alfresco-Labs/alf_data/hsql_data/alfresco;ifexists=true;shutdown=true;
+
+#
+# MySQL connection (This is default and requires mysql-connector-java-5.0.3-bin.jar, which ships with the Alfresco server)
+#
+mysql#db.driver=org.gjt.mm.mysql.Driver
+mysql#db.url=jdbc:mysql://localhost:3306/alfresco
+
+#
+# PostgreSQL connection (requires postgresql-8.2-504.jdbc3.jar or equivalent)
+#
+#postgresql#db.driver=org.postgresql.Driver
+#postgresql#db.url=jdbc:postgresql://localhost:3306/alfresco
04-20-2009 11:21 AM
I don't want to blog here, but I hope that someone listening will point me in the correct direction - or report that they are getting the same errors.This error happened because specific features of JBoss Classloading. org.apache.commons.logging.impl.SLF4FLogFactory is located in jcl104-over-slf4j-1.3.0.jar which is at jboss\server\default\deploy\jboss-portal.sar\portal-cms.sar\lib. Because Apache Commons Logging designed to provide implementation-independent logging API application code has only references to interfaces and implementation selected by Apache Commons Logging in runtime. And it usually works fine, but here we have a conflict in Axis which is included into Alfresco.war distribution. The problem has happened because on new org.apache.commons.discovery included into Axis - it use it is own algorithm to verify interface classes for compatibility with implementation.
I get the fewest errors following this procedure:This test is done with an empty alfresco database and no alf_data directory.
- Download jboss-portal-2.7.1-bundled.zip
- Apply patch
- Move files into proper locations (alfresco.war mysql-connector-java-5.1.6-bin.jar share.war)
- Execute ./jboss/bin/run.sh
The errors are:09:33:09,716 ERROR [STDERR] Feb 3, 2009 9:33:09 AM javax.faces.webapp.FacesServlet init
SEVERE: Initialization of the JSF runtime either failed or did not occurr. Review the server''s log for details.
java.lang.InstantiationException: org.jboss.portletbridge.context.FacesContextFactoryImpl
…
09:33:09,717 ERROR [STDERR] g.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:109)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
…
09:35:36,460 ERROR [[/alfresco]] Servlet /alfresco threw load() exception
org.apache.commons.discovery.DiscoveryException: Class org.apache.commons.logging.impl.SLF4FLogFactory does not implement org.apache.commons.logging.LogFactory
at org.apache.commons.discovery.tools.ClassUtils.verifyAncestory(ClassUtils.java:180)
at org.apache.commons.discovery.tools.SPInterface.verifyAncestory(SPInterface.java:201)
…
Complete logs and patches can be found at : http://www.atl.org/~ed/alfresco-logs.zip
Is there something else to do? Can someone verify the errors on their system?
Patch File
diff -r -u jboss-org/bin/run.sh jboss/bin/run.sh
— jboss-org/bin/run.sh 2009-01-20 12:46:36.000000000 -0500
+++ jboss/bin/run.sh 2009-02-02 23:14:59.000000000 -0500
@@ -5,6 +5,9 @@
## ##
### ====================================================================== ###
+JAVA_HOME="/home/ed/local/jdk1.6.0_11"
+JAVA_OPTS="-Xms512m -Xmx1G -XX:MaxPermSize=128m -server"
+
### $Id: run.sh 75849 2008-07-15 18:43:17Z dimitris@jboss.org $ ###
DIRNAME=`dirname $0`
Only in jboss/server/default/deploy: alfresco.war
diff -r -u jboss-org/server/default/deploy/ejb3.deployer/META-INF/persistence.properties jboss/server/default/deploy/ejb3.deployer/META-INF/persistence.properties
— jboss-org/server/default/deploy/ejb3.deployer/META-INF/persistence.properties 2009-01-20 12:46:38.000000000 -0500
+++ jboss/server/default/deploy/ejb3.deployer/META-INF/persistence.properties 2009-02-02 23:16:33.000000000 -0500
@@ -14,4 +14,4 @@
hibernate.jndi.java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces
hibernate.bytecode.use_reflection_optimizer=false
# I don't think this is honored, but EJB3Deployer uses it
-hibernate.bytecode.provider=javassist
\ No newline at end of file
+hibernate.bytecode.provider=cglib
diff -r -u jboss-org/server/default/deploy/jboss-web.deployer/conf/web.xml jboss/server/default/deploy/jboss-web.deployer/conf/web.xml
— jboss-org/server/default/deploy/jboss-web.deployer/conf/web.xml 2009-01-20 12:46:40.000000000 -0500
+++ jboss/server/default/deploy/jboss-web.deployer/conf/web.xml 2009-02-02 23:18:27.000000000 -0500
@@ -59,16 +59,20 @@
<!– Configures JSF for a web application if the javax.faces.webapp.FacesServlet is declared –>
<!– in web.xml. –>
+ <!–
<listener>
<listener-class>org.jboss.web.jsf.integration.config.JBossJSFConfigureListener</listener-class>
</listener>
+ –>
<!– Listens to all web app lifecycle events so that @PreDestroy can be called on –>
<!– JSF managed beans that go out of scope. You can comment this out if you –>
<!– don't use JSF or you don't use annotations on your managed beans. –>
+ <!–
<listener>
<listener-class>com.sun.faces.application.WebappLifecycleListener</listener-class>
</listener>
+ –>
<!– ================== Built In Servlet Definitions ==================== –>
@@ -293,11 +297,13 @@
be scanned for common tag lib descriptors to include in every war
deployment.
–>
+ <!–
<init-param>
<description>JSF standard tlds</description>
<param-name>tagLibJar0</param-name>
<param-value>jsf-libs/jsf-impl.jar</param-value>
</init-param>
+ –>
<init-param>
<description>JSTL standard tlds</description>
<param-name>tagLibJar1</param-name>
Only in jboss/server/default/deploy: share.war
Only in jboss/server/default/lib: mysql-connector-java-5.1.6-bin.jar
org.apache.commons.discovery.DiscoveryException: Class org.apache.commons.logging.impl.SLF4FLogFactory does not implement org.apache.commons.logging.LogFactory
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.