AnsweredAssumed Answered

Running Activiti Explorer (5.13) with JBoss5.1 EAP

Question asked by jeisen on Jul 9, 2013
Latest reply on Oct 7, 2013 by debaprakashbiswal
Hello,

to have the latest activiti explorer (from activiti version 5.13) running on your jboss5.1EAP, you have to do following:

1. copy 'activity-explorer.war' to deploy folder
2. add new file: 'jboss-classloading.xml' into the 'WEB-INF' folder inside the war. The content of jboss-classloading is:
<classloading xmlns="urn:jboss:classloading:1.0"
  name="activiti-explorer.war"
  import-all="true"
  export-all="NON_EMPTY"
  domain="activiti-explorer-domain"
  parent-first="false"
>
</classloading>
4. Delete file 'xml-apis-1.3.04.jar' inside 'WEB-INF\lib'
5. Copy database driver into 'WEB-INF\lib', adjust 'WEB-INF\classes\db.properties' and prepare your database witht the SQL scripts that can be found inside folder: '\activiti-5.13\database\create\'

Now you can start the server and you will have activit-explorer running on a Jboss5.1EAP, using a Oracle-Database.

This article will prevent you from errors like:

2013-07-09 09:13:00,861 INFO  [main] org.slf4j.impl.Log4jLoggerAdapter.log:601 - 09:13:00,858 [main] ERROR org.springframework.web.context.ContextLoader  - Context initialization failed
org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from ServletContext resource [/WEB-INF/applicationContext.xml]; nested exception is java.lang.ClassCastException: org.apache.xerces.jaxp.DocumentBuilderFactoryImpl cannot be cast to javax.xml.parsers.DocumentBuilderFactory
   at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:412)

See also: <url>https://community.jboss.org/thread/152151</url>

2013-07-09 09:23:08,674 ERROR [main] org.apache.catalina.core.StandardContext.listenerStart:3914 - Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
java.lang.NoSuchMethodError: org.slf4j.spi.LocationAwareLogger.log(Lorg/slf4j/Marker;Ljava/lang/String;ILjava/lang/String;[Ljava/lang/Object;Ljava/lang/Throwable;)V
   at org.apache.commons.logging.impl.SLF4JLocationAwareLog.info(SLF4JLocationAwareLog.java:159)
   at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:272)

See also: <url>http://stackoverflow.com/questions/3519978/logging-framework-incompatibility</url>.  …something about SLF4j from JBoss ('\jboss-eap-5.1.0\jboss-as\common\lib') against SLF4j from activiti-explorer.jar.

Regards
Jörg


Outcomes