简体   繁体   中英

Gradle - ear file with war file

It works with ear file we build with Maven. Using Gradle, I have an EAR (MyEnterpriseApp) file with a WAR (Myweb) and set of jar files in the root folder. When we deploy it is fine no problem. When the applicatin starts it throws a compound class loader for a class (com.test.mypackage.MyClass) that is available in the one of the jars. We are using Websphere 6.1 on windows.

Any suggestions.

I figured it out my self, using deploy and earlib together will cause this problem. Now I am using only deploy with runtime dependencies in war gradle file. For now it solved the problem. If any of you have better idea than this, always welcome.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM