I added the spring-web dependency back into the modular top level pom.xml in
the main dependencies list at the very end but I am still getting these
compile errors for asm and cglib so I think I hosed the exclusions and / or
depedencies for those. Here's the errors I'm getting when compiling
(abbrev.):
nested exception is java.lang.NoSuchMethodError:
org.objectweb.asm.ClassWriter.<init>(I)V
[stack trace removed]
nested exception is java.lang.NoClassDefFoundError: Could not initialize
class net.sf.cglib.proxy.Enhancer
[stack trace removed]
I tried flipping the CXF version to 2.2.3 instead of 2.1.3 but it made no
difference... Can anyone se what I'm doing wrong with the asm and cglib
stuff? tia...
--j
jackalista wrote:
>
> Hi Nils,
>
> I'm tryingto follow along these directions and am having trouble
> understanding part of your guide. I'm using appfuse 2.0.2 with the
> modular struts2 archetype, in case it matters.
>
> I'm getting errors from both asm and cglib so I'm better I didn't put the
> <exclusion></exclusion> & <dependency></dependency> stuff in the right
> place.
>
> For the "exclude also asm and the cglib from the hibernate dependency"
> part, I tried putting these exclusion blocks in the core/pom.xml right
> under the exclusion block with <groiupId>org.appfuse</groupId> and
> <artifactId>appfuse-hibernate</artifactId>:
>
> [code]
> <exclusion>
> <groupId>asm</groupId>
> <artifactId>asm</artifactId>
> </exclusion>
> <exclusion>
> <groupId>asm</groupId>
> <artifactId>asm-attrs</artifactId>
> </exclusion>
> <exclusion>
> <groupId>cglib</groupId>
> <artifactId>cglib</artifactId>
> </exclusion>
> [/code]
>
> I performed this step "add the asm-all and cglib dependencies to the top
> level <dependencies>:" by putting the following dependency blocks in the
> top level pom.xml (it's a modular archetype) in the main dependencies list
> at the end of the list:
>
> <dependency>
> <groupId>asm</groupId>
> <artifactId>asm-all</artifactId>
> <version>3.1</version>
> </dependency>
> <dependency>
> <groupId>cglib</groupId>
> <artifactId>cglib</artifactId>
> <version>2.2</version>
> </dependency>
>
>
>
> I also put the CXF dependencies (cxf-api, cxf-rt-frontend-jaxws &
> cxf-rt-transports-http) in that same list in that same top level pom.xml
> file, just before the asm and cglib stuff. Right after the asm and cglib
> dependencies I put this spring-core dependency:
>
> <dependency>
> <groupId>org.springframework</groupId>
> <artifactId>spring-core</artifactId>
> <version>${spring.version}</version>
> </dependency>
>
> I didn't put the spring-web dependency in as I'm using struts2, but I'm
> not sure if that's correct, since I'm hitting build errors related to asm
> and cglib it's kind of hard to tell.
>
> Sorry for the newbie questions but am I putting these dependencies and
> exclusions in the right place? I suspect one or more are not correct, any
> help would be appreciated, thanks...
>
>
>
>
> agathon wrote:
>>
>> i made a litte guide for migrating appfuse from xfire to cxf :
>> http://snackycracky.wordpress.com/2009/01/06/migrate-appfuse-from-xfire-to-cxf/
>>
>>
>
>
--
View this message in context:
http://www.nabble.com/CXF-and-AppFuse-2.0.1-tp14282383s2369p25628864.html
Sent from the AppFuse - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]