Bug 1040294

Summary: Jython/JRuby does not work in ER7 - Remove from build
Product: [JBoss] JBoss Fuse Service Works 6 Reporter: Jiri Pechanec <jpechane>
Component: Build ProcessAssignee: Nick Cross <ncross>
Status: CLOSED CURRENTRELEASE QA Contact: lvaskova
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 6.0.0 GACC: atangrin, kbabo, ncross, soa-p-jira
Target Milestone: CR1   
Target Release: 6.0.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Jiri Pechanec 2013-12-11 06:22:54 UTC
Jython and JRuby does not work when used in Camel routes.

JRuby jar file does not contain any classes.
Jython is missing dependencies - at least
 - Guava
 - Jython
 - antlr-runtime

There are three solutions to this situation

1) We do not support it - REMOVE the libs
2) We do not support it but want it as TP - FIX and mark in release notes as TP
3) We do support it - FIX

Comment 1 Julian Coleman 2013-12-16 16:11:16 UTC
This is probably caused by a GAV change for the JRuby classes in question.  Can we find the correct GAV for newer JRuby?

Comment 2 Keith Babo 2013-12-18 16:11:19 UTC
Which version is the "newer" JRuby we want?  The IP BOM has it at 1.7.2 and based on the empty jar name in FSW, it looks like we want 1.7.5?  If so, that version appears to be available in Central:
http://repo1.maven.org/maven2/org/jruby/jruby/1.7.5/

Comment 6 Nick Cross 2014-01-13 11:20:17 UTC
Fixed by SHA 54a2f06988890d5f3baa5d67b3f7006f5d2d3541 in build

Comment 7 Keith Babo 2014-01-13 14:17:09 UTC
In addition to removing the jython and jruby modules, the camel-script module.xml needs to be updated to remove dependencies on those modules:

        <module name="org.python" export="true">
            <imports>
                <include path="META-INF/services" />
            </imports>
            <exports>
                <include path="META-INF/services" />
            </exports>
        </module>
        <module name="org.jruby" export="true">
            <imports>
                <include path="META-INF/services" />
            </imports>
            <exports>
                <include path="META-INF/services" />
            </exports>
        </module>

Comment 8 Keith Babo 2014-01-13 14:17:26 UTC
In addition to removing the jython and jruby modules, the camel-script module.xml needs to be updated to remove dependencies on those modules:

        <module name="org.python" export="true">
            <imports>
                <include path="META-INF/services" />
            </imports>
            <exports>
                <include path="META-INF/services" />
            </exports>
        </module>
        <module name="org.jruby" export="true">
            <imports>
                <include path="META-INF/services" />
            </imports>
            <exports>
                <include path="META-INF/services" />
            </exports>
        </module>

Comment 9 Nick Cross 2014-01-13 16:59:41 UTC
Further fixes under SHA b35849ff24c13648a7280c2e801bf86c05ad911b

Comment 10 Jiri Pechanec 2014-01-15 09:20:43 UTC
Verified in CR1