asm library conflict/artifact in addon-lib

View: New views
2 Messages — Rating Filter:   Alert me  

asm library conflict/artifact in addon-lib

by Timothy Stone-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Dev List,

During some recent development loaded fresh from source, I was having  
a problem editing user properties locally in a development deployment.

After some investigation, I was able to determine that it was  
conflicting asm libraries on the classpath.

     tstone@jagdpanther [/tmp/blojsom-3.2] % find . -name '*asm*'
     ./addon-lib/asm-1.4.1.jar
     ./war/WEB-INF/lib/asm-attrs.jar
     ./war/WEB-INF/lib/asm.jar

The `asm.jar' and `asm-attrs.jar' are in the 1.5.x series.

I could have possible solved this by moving the 1.5.x series sooner in  
the classpath, but chose to remove the `asm-1.4.1.jar' from the IDE  
after further determining in the addon source tree no ASM dependencies.

I also suspect Hibernate, CGLIB, etc. packages depend on the 1.5.x  
series. The ASM website has an FAQ on this topic:

     15. How to resolve conflicts between different ASM API versions  
available
         in a global classpath or within the same ClassLoader?
     Tools and frameworks that are using ASM for bytecode processing
     (e.g. Hibernate, CGLIB, AspectWerkz) should repackage ASM code  
within their own
     name space. This can be automated with Jar Jar Links tool.

Since I'm renewing some development efforts, I wanted to bring this up  
(while not expecting immediate response; the list has been quiet, far  
too quiet really) and determine if `asm-1.4.1.jar' should be removed  
from the addon-lib packages as a stale artifact.

Could be worthy of a minor/trivial bug...

Regards,

Tim

------------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It is the best place to buy or sell services for
just about anything Open Source.
http://p.sf.net/sfu/Xq1LFB
_______________________________________________
Blojsom-developers mailing list
Blojsom-developers@...
https://lists.sourceforge.net/lists/listinfo/blojsom-developers

Re: asm library conflict/artifact in addon-lib

by Timothy Stone-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


On Jan 11, 2009, at 9:05 AM, Timothy Stone wrote:

> Dev List,
>
> During some recent development loaded fresh from source, I was  
> having a problem editing user properties locally in a development  
> deployment.
>
> After some investigation, I was able to determine that it was  
> conflicting asm libraries on the classpath.
>

... snip

> ... and determine if `asm-1.4.1.jar' should be removed from the  
> addon-lib packages as a stale artifact.

>

... snip ...

The Quickstart package does not contain the `asm-1.4.1.jar' library,  
further strengthening the presented argument. It also suggests no one  
reports a problem with loading a blojsom instance in the Quickstart  
use-case because the conflict is not present.

Regards,
Tim


------------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It is the best place to buy or sell services for
just about anything Open Source.
http://p.sf.net/sfu/Xq1LFB
_______________________________________________
Blojsom-developers mailing list
Blojsom-developers@...
https://lists.sourceforge.net/lists/listinfo/blojsom-developers