cancel
Showing results for 
Search instead for 
Did you mean: 

activiti 5.2 on weblogic and oracle

heymjo
Champ on-the-rise
Champ on-the-rise
Hi,

Just spent a bit of time getting the distribution to run on WLS and Oracle. Here is what i did to get things working

  • configure the standard 5.2 distribution to use Oracle, using the instructions as provided in the user manual (adding jdbc driver etc). Ensure that everything still works first before continuing.

  • create a new vanilla weblogic domain using WLS 10.3 or higher. 9.2 won't work because for some reason Activiti requires a servlet 2.5 compatible container.

  • copy the war files from apps\apache-tomcat-6.0.29\webapps\ to the autodeploy directory in the domain

  • adapt surf.xml and change <endpoint-url> to the new host and port locations for each webapp

  • because of classloader issues with org.mozilla classes, you need to deploy each war as an EAR. Basically wrap each webapp in another directory and add in META-INF an application.xml like this

  • <?xml version="1.0" encoding="UTF-8"?>
    <application xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="5">
      <module>
        <web>
          <web-uri>cycle-5.2.war</web-uri>
          <context-root>/activiti-cycle</context-root>
        </web>
      </module>
    </application>
    and also a weblogic-application.xml like this

    <weblogic-application xmlns="http://xmlns.oracle.com/weblogic/weblogic-application" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://xmlns.oracle.com/weblogic/weblogic-application
    http://xmlns.oracle.com/weblogic/weblogic-application/1.0/weblogic-application.xsd">
      <prefer-application-packages>
        <package-name>org.mozilla.*</package-name>
      </prefer-application-packages>
    </weblogic-application>

  • lastly, you need to disable weblogic handling of basic authentication. by default it will intercept all basic auth requests and reject them unless the domain is correctly configured for the basic auth. This doesn't make sense for activiti because it needs to handle the auth itself. So edit config.xml and add this just before the closing tag </security-configuration>

  •   <enforce-valid-basic-auth-credentials>false</enforce-valid-basic-auth-credentials>
That's pretty much it and things should work now.

The only thing that doesn't work is the modeler, upon deployment it throws a classnotfoundexception which is very strange:


<04-Feb-2011 15:18:45 o'clock CET> <Warning> <Deployer> <BEA-149078> <Stack trace for message 149004
weblogic.application.ModuleException: Failed to load webapp: '/activiti-modeler'
        at weblogic.servlet.internal.WebAppModule.prepare(WebAppModule.java:378)
        at weblogic.application.internal.flow.ScopedModuleDriver.prepare(ScopedModuleDriver.java:176)
        at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:199)
        at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(DeploymentCallbackFlow.java:391)
        at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:83)
        Truncated. see log file for complete stacktrace

Caused By: java.lang.ClassNotFoundException: org.oryxeditor.server.BPMNLayouterServlet
        at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:296)
        at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:269)
        at weblogic.utils.classloaders.ChangeAwareClassLoader.findClass(ChangeAwareClassLoader.java:56)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
        Truncated. see log file for complete stacktrace

I looked through the complete distribution for this class but cannot find it. Anyone have an idea what is going on ? I have found a reference to signavio.war in jboss-classloading.xml but where does signavio.war come from ?

HTH,
Jorg
12 REPLIES 12

hawkeyeerik
Champ in-the-making
Champ in-the-making
Hey heymjo,

I don't use weblogic but thought I would mention Activiti Modeler is based on Signavio Process Editor.  The war file created in Activiti is called activiti-modeler.war, should be the same thing.  Might just need to change jboss-classloading.xml ??

Good luck,
Erik

heymjo
Champ on-the-rise
Champ on-the-rise
well i did a search in a vanilla activit distribution, including all jar archives, and it came up empty. I am probably missing something obvious, i don't know why the tomcat version works fine even without this class. Can anyone point me to the supposed location of org.oryxeditor.server.BPMNLayouterServlet in the distribution ?

Thanks
Jorg

mil84
Champ in-the-making
Champ in-the-making
I've similar problem. I tried to run activity under jboss - activiti-explorer, probe, and everything else is ok, except activiti-modeler. I got errors like:

2011-02-09 11:55:40,611 WARN  [org.jboss.wsf.container.jboss42.JAXWSDeployerHookPreJSE] Cannot load servlet class: org.oryxeditor.server.BPMNLayouterServlet
2011-02-09 11:55:40,611 WARN  [org.jboss.wsf.container.jboss42.JAXWSDeployerHookPreJSE] Cannot load servlet class: org.oryxeditor.server.XFormsImportServlet
2011-02-09 11:55:40,612 WARN  [org.jboss.wsf.container.jboss42.JAXWSDeployerHookPreJSE] Cannot load servlet class: org.oryxeditor.server.AlternativesRenderer
2011-02-09 11:55:40,612 WARN  [org.jboss.wsf.container.jboss42.JAXWSDeployerHookPreJSE] Cannot load servlet class: org.oryxeditor.server.SyntaxCheckerServlet
2011-02-09 11:55:40,613 WARN  [org.jboss.wsf.container.jboss42.JAXWSDeployerHookPreJSE] Cannot load servlet class: org.oryxeditor.server.RDF2JSONServlet
2011-02-09 11:55:40,613 WARN  [org.jboss.wsf.container.jboss42.JAXWSDeployerHookPreJSE] Cannot load servlet class: org.oryxeditor.server.ValidatorServlet
2011-02-09 11:55:40,614 WARN  [org.jboss.wsf.container.jboss42.JAXWSDeployerHookPreJSE] Cannot load servlet class: org.oryxeditor.server.XFormsExportServlet
2011-02-09 11:55:40,614 WARN  [org.jboss.wsf.container.jboss42.JAXWSDeployerHookPreJSE] Cannot load servlet class: org.oryxeditor.server.MultiDownloader
2011-02-09 11:55:40,614 WARN  [org.jboss.wsf.container.jboss42.JAXWSDeployerHookPreJSE] Cannot load servlet class: de.hpi.diagram.stepthrough.StepThroughServlet
2011-02-09 11:55:40,615 WARN  [org.jboss.wsf.container.jboss42.JAXWSDeployerHookPreJSE] Cannot load servlet class: org.oryxeditor.server.BPMN2BPELServlet
2011-02-09 11:55:40,618 INFO  [org.jboss.web.tomcat.service.TomcatDeployer] deploy, ctxPath=/activiti-modeler, warUrl=…/tmp/deploy/tmp6443331796835996910activiti-modeler-exp.war/
2011-02-09 11:55:40,929 INFO  [STDOUT] ROOT: ../../../workspace/activiti-modeler-examples
2011-02-09 11:55:40,940 INFO  [STDOUT] [INFO] Initializing Root Directory…
2011-02-09 11:55:40,945 ERROR [STDERR] java.lang.IllegalStateException: Path does not point to a directory.
2011-02-09 11:55:40,945 ERROR [STDERR]  at com.signavio.warehouse.directory.business.FsDirectory.<init>(FsDirectory.java:71)


2011-02-09 11:55:40,961 INFO  [STDOUT] 2011-02-09 11:55:40,957 FATAL (LoggedRuntimeException.java:39) - Platform boot failed!
com.signavio.platform.exceptions.InitializationException: Platform boot failed!

mil84
Champ in-the-making
Champ in-the-making
nobody?

heymjo
Champ on-the-rise
Champ on-the-rise
I guess not Smiley Indifferent

sirfrancisdrake
Champ in-the-making
Champ in-the-making
Have you tried to adjust webapps/activiti-modeler/WEB-INF/classes/configuration.properties?
It needs to point to an existing folder.

heymjo
Champ on-the-rise
Champ on-the-rise
we switched to using the eclipse designer plugin, it seems that this is where most of the development is going.

todd
Champ in-the-making
Champ in-the-making
hi,heymjo

I have successfully deployed the activiti 5.6 weblogic11g and oracle10g on. Your last question, where you can find your desired CLASS file.
http://signavio-oryx-initiative.googlecode.com/files/jbpmeditor.war

You also need to catalina-5.5.15.jar.

Good luck.
todd  Smiley Happy

ananthk
Champ in-the-making
Champ in-the-making
You have successfully integrated activity 5.0 with WeblOgic 10.3. Could you please post the detailed instructions and that will be of great help and idrection to me. I am also integrating activity with WebLogic 10.3.5

Kalpana


hi,tood

I have successfully deployed the activiti 5.6 weblogic11g and oracle10g on. Your last question, where you can find your desired CLASS file.
http://signavio-oryx-initiative.googlec … editor.war

You also need to catalina-5.5.15.jar.

Good luck.
todd
Getting started

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.