Bug 1040294 - Jython/JRuby does not work in ER7 - Remove from build
Summary: Jython/JRuby does not work in ER7 - Remove from build
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss Fuse Service Works 6
Classification: JBoss
Component: Build Process
Version: 6.0.0 GA
Hardware: Unspecified
OS: Unspecified
unspecified
urgent
Target Milestone: CR1
: 6.0.0
Assignee: Nick Cross
QA Contact: lvaskova
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-12-11 06:22 UTC by Jiri Pechanec
Modified: 2014-02-06 15:32 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: Bug


Attachments (Terms of Use)

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


Note You need to log in before you can comment on or make changes to this bug.