atos1990 / orika

Automatically exported from code.google.com/p/orika
0 stars 0 forks source link

require Orika support Jboss4.3 #40

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. use orika 1.1.5 execute a maven ear task to make a ejb ear build. 
2. Deoploy it to Jboss 4.3 GA
3. restart Jboss

What is the expected output? What do you see instead?
Jboss start without error
Jboss detect javassist conflict issue and stop launching. 

What version of the product are you using? On what operating system?
orika 1.1.5
Jboss 4.3 GA

Please provide any additional information below.
  Jboss4.3 is using javassit-3.8.0.GA.jar while rika 1.1.5 is using javassit-3.12.0.GA.jar. We need to downgrade it to javassit-3.8.0.GA and also to  change classPool.getCtClass() to classPool.get() in JavassistCompilerStrategy.

Original issue reported on code.google.com by wangbt5...@gmail.com on 22 Aug 2012 at 7:43

GoogleCodeExporter commented 9 years ago

Original comment by elaat...@gmail.com on 22 Aug 2012 at 10:51

GoogleCodeExporter commented 9 years ago
In the most current release (1.3.0), the getCtClass() method call has been 
replaced with get(); 
note that we've migrated to using the 'org.javassist' maven groupId now, since 
that seems to be the more accepted coordinates used by JBoss going forward
(so your exclusion/overrides might change)

If possible, can you test with this version and see how it affects your 
deployment to Jboss 4.3?

Original comment by matt.deb...@gmail.com on 5 Oct 2012 at 6:47

GoogleCodeExporter commented 9 years ago
Hi Mat,

This issue has been fixed. As long as we introduce orika into our project
like this as bellow it works fine on jboss4.3.
However I'd like to suggest you to config on orika-core pom file to make it
depend on javassist 3.8.0.ga version directly. You know when we add
features we probably use the new features in javassist that not occurs
before 3.8.0.ga version and introduce version confliction issue again.

Thanks

- Bruce

    <dependency>
        <groupId>ma.glasnost.orika</groupId>
        <artifactId>orika-core</artifactId>
        <version>1.3.0</version>
        <exclusions>
            <exclusion>
                <groupId>javassist</groupId>
                <artifactId>javassist</artifactId>
            </exclusion>
        </exclusions>
    </dependency>
    <dependency>
        <groupId>javassist</groupId>
        <artifactId>javassist</artifactId>
        <version>3.8.0.ga</version>
        <scope>provided</scope>
    </dependency>

Original comment by wangbt5...@gmail.com on 9 Oct 2012 at 12:54

GoogleCodeExporter commented 9 years ago
Hi Bruce,
unfortunately, 3.8.0.ga is a very old version of javassist, and we'd rather 
stick with more current versions, as it's more likely to line up with most 
users of Orika. Anyway, with maven, it's easy enough to replace it with the 
version you desire.

Original comment by matt.deb...@gmail.com on 27 Nov 2012 at 4:11