Spring class loader issues in Jboss while using spring-ws client

前端 未结 2 764
小鲜肉
小鲜肉 2021-01-23 23:53

I have my application running properly in Jboss. To to write spring webservice client, i have generated classes using wsimport. I have written following in configur

2条回答
  •  刺人心
    刺人心 (楼主)
    2021-01-24 00:18

    You could create WEB-INF/jboss-web.xml file for your application with next content

    
    
    
        
            
                       myapp:loader=anyUniqueName
                java2ParentDelegation=false
            
        
    
    

    This should prevent classloader from looking for JBoss libs. As a downside you'll have to provide all your 3rd-party jars in a WAR/lib folder.

    This works for 4.2 you could lookup something similar for version you currently use.

提交回复
热议问题