GWT Compilation Error - IncompatibleClassChangeError

前端 未结 8 2525
暗喜
暗喜 2021-02-14 10:07

When compiling the project, I get this obscure Exception

Looking for precompiled archives.  To disable, use -Dgwt.usearchives=false
Loading archived module: jar:         


        
8条回答
  •  闹比i
    闹比i (楼主)
    2021-02-14 10:09

    In my case I had to remove the asm 3.1 from my classpath and there are few jars which has internal dependency on asm 3.1. Which i had to exclude from the dependency in my pom. example:

    
            org.apache.cxf
            cxf-rt-frontend-jaxws
            2.7.18
            
               
                asm
                asm
              
    
            
          
    

    There were other jars which has such internal dependency, use maven dependency tree to identify. and exclude asm dependency.

    Note: you can even upgrade these jars to higher versions which in fact support higher versions of ASM(>4.0), which should be fine with GWT 2.7 or 2.8

提交回复
热议问题