Hibernate NoSuchFieldError INSTANCE but only with Struts 1?

前端 未结 3 871
野性不改
野性不改 2021-01-07 19:10

I\'m new to Java and Hibernate (being a Rails and C# developer). Anyway, I have a test program that works fine with Hibernate but my actual web app (Struts 1) crashes with:

3条回答
  •  醉话见心
    2021-01-07 19:39

    Removing these two dependency worked for me.

       
            org.hibernate
            hibernate-commons-annotations
            3.0.0.ga
            runtime
        
         
            org.hibernate
            hibernate-annotations
            3.3.0.ga
         
    

    These are my hibernate dependencies.

    
        org.hibernate
        hibernate-core
        3.6.3.Final
    
    
        org.javassist
        javassist
        3.17.1-GA
    
    
        asm
        asm-all
        2.2
    
    
        antlr
        antlr
        2.7.7
    
    
    org.hibernate
        hibernate-entitymanager
        3.6.3.Final
    
    

提交回复
热议问题