Flowable 6.4.0 on Weblogic 12c

Hi, I’m on 6.4.0 version, I’ve installed with no pain all distribution wars on oracle weblogic 12c.
I properly changed every configuration file (flowable-default.properties) inside each war, pointing to mysql as database and then i made some changes to redirection parameters, which their default values pointed to localhost on port 8080 instead of <my_remote_ip>:7001 (weblogic server default port).
So database is generated and filled up correctly, tables which refer to user access are filled correctly.
When I try to access to remote resource
<my_remote_server_ip>:7001/flowable-modeler
I get a redirection like this:
<my_remote_server_ip>:7001/flowable-idm/#/login?redirectOnAuthSuccess=true&redirectUrl=http://<my_remote_serve>_ip>:7001/flowable-modeler
with login prompt, then entering correct credentials server comes back again to login page.
Have I mess something during configuration step? Or is simply uncompliant with oracle Weblogic Server?
Any help would by grately appreciated.

Many thanks in advance!

Hi ,
I am on 6.4.0 version & using Tomcat application server. Our services has a requirement moving to Oracle weblogic 12c platform. When the containers (flowable-admin,flowable-idm,flowable-modeler,flowable-rest & flowable-task) are deployed in weblogic (after changing to weblogic port in each properties files) I am running into below exception

org.springframework.context.ApplicationContextException: Unable to start web server; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘httpPutFormContentFilter’ defined in class path resource [org/springframework/boot/autoconfigure/web/servlet/WebMvcAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.boot.web.servlet.filter.OrderedHttpPutFormContentFilter]: Factory method ‘httpPutFormContentFilter’ threw exception; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.fasterxml.jackson.datatype.jsr310.JavaTimeModule]: Constructor threw exception; nested exception is java.lang.IllegalAccessError: tried to access method com.fasterxml.jackson.databind.ser.std.StdSerializer.(Ljava/lang/Class;)V from class com.fasterxml.jackson.datatype.jsr310.JavaTimeModule
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.onRefresh(ServletWebServerApplicationContext.java:155)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:544)
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:140)
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:780)
at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:412)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:333)
at org.springframework.boot.web.servlet.support.SpringBootServletInitializer.run(SpringBootServletInitializer.java:157)
at org.springframework.boot.web.servlet.support.SpringBootServletInitializer.createRootApplicationContext(SpringBootServletInitializer.java:137)

Any pointers on how to resolve this exception ?.

Regards

Arun

It seems like this is a general spring boot + weblogic issue. Stackoverflow gave me this: https://stackoverflow.com/questions/38811072/spring-boot-rest-service-deploy-on-weblogic12c, maybe you can try and see if it solves the problem?

Thanks Joram that really helped, Exception cleared & admin /modeler/task pages are Up after adding weblogic.xml in web-inf folder

<wls:weblogic-web-app xsi:schemaLocation=“http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd http://xmlns.oracle.com/weblogic/weblogic-web-app http://xmlns.oracle.com/weblogic/weblogic-web-app/1.7/weblogic-web-app.xsd” xmlns:wls=“http://xmlns.oracle.com/weblogic/weblogic-web-app” xmlns:xsi=“http://www.w3.org/2001/XMLSchema-instance”>
wls:context-rootflowable-idm</wls:context-root>
wls:container-descriptor
wls:prefer-web-inf-classesfalse</wls:prefer-web-inf-classes>
wls:prefer-application-packages
wls:package-namecom.fasterxml.jackson.*</wls:package-name>
</wls:prefer-application-packages>
</wls:container-descriptor>
</wls:weblogic-web-app>

But now i get redirected to login page after credetial validation :frowning: Is there any configuration needs to be checked

Regards

Arun

Hi,

After a few trial & error i could find the list of packages / classes that are in conflict with weblogic libraries & jars. Solution to overcome these exceptions would to explicitly mention weblogic class cloader where the classes should be loaded from in wls:prefer-application-packages ( weblogic.xml)

com.fasterxml.jackson.*
com.google.common.*
com.google.thirdparty.*
javax.annotation.*
javax.annotation.security.*
javax.annotation.sql.*
org.aopalliance.aop.*
org.aopalliance.intercept.*
org.apache.commons.*
org.apache.xerces.*
org.joda.time.*
org.slf4j.*
org.slf4j.helpers.*
org.slf4j.impl.*
org.slf4j.spi.*
org.w3c.dom.ls.DOMImplementationLS
org.w3c.dom.ls.LSLoadEvent
org.w3c.dom.ls.LSProgressEvent
org.w3c.dom.ranges.DocumentRange
org.w3c.dom.ranges.Range
org.w3c.dom.ranges.RangeException

But my login works only for flowable-idm , if i use flowable-admin,modelere or task i get directed back to idm login page

Similar redirect problems has been reported like below

I coundn’t find the solution yet for redirect , could you please guide on how to fix it

Regards

Arun

Hi !

I am also facing same issue while deploying our custom flowable Application in Weblogic 12c.

I’m using Flowable 6.4.0 IDM and Modeler in a Weblogic server

But after I login successfully with admin/test, it sends me back to: http://localhost:8080/flowable-idm/#/login?redirectOnAuthSuccess=true&redirectUrl=http:%2F%2Flocalhost:8080%2Fflowable-modeler%2F

This is using a fresh flowable database on oracle database. Is weblogic not supported for flowable ?

i have gone through with below video that describes Flowable Integration with Weblogic

Could you please help me to solve this issue.

Any suggestion/feedback will be highly appreciated.

Let me know, if any more information required to help with this issue.

Regards
Ashok

I was running into same issue where every time I logged on it kept sending me back to login when deployed to weblogic (tomcat worked fine:. Spent good amount of time trying to debug and figured I’d share what I did to fix since I had trouble finding any help.I needed the following added to weblogics config.xml security-configuration:

`<enforce-valid-basic-auth-credentials>false</enforce-valid-basic-auth-credentials>`

Without it flowables http basic authentication is blocked

1 Like