Enforcer
11 years agoNew Contributor
mock war containing old buggy log4j
Hi All!
I created mock war from UI and deployed it to tomcat 7/8. It's working fine but when I tried to redeploy/undeploy, tomcat reported error because hermes-1.14.jar was locked
After couple of days research I restored chain of problems
1. hermes-1.14.jar is the only jar in mock war WEB-INF/lib containing file log4j.properties. Without hermes-1.14.jar or with hermes-1.14.jar without log4j.properties bug is not reproducing
2. mock war uses outdated log4j-1.2.14.jar which contains unavoidable bug that locks log4j.properties or containing jar (hermes-1.14.jar in our case)
3. replacing log4j-1.2.14.jar to log4j-1.2.17.jar (latest version) did the work
So I'm humbly asking to update mock war generation (and SoapUI artifact dependency) - refresh log4j version to 1.2.17
Also I would like to report couple more small issues preventing manual build of mock war from gradle:
1. http://www.soapui.org/repository/maven2 ... -1.142.pom has incorrect groupId in pom file (cajo instead of gnu.cajo). please correct
2. http://www.soapui.org/repository/maven2 ... -jdk15.pom has incorrect groupId in pom file (r872 instead of r872-jdk15). please correct
3. please exclude dependency javax.jms from com.smartbear.soapui:soapui:5.0.0 or replace it with up to date javaee-api with scope provided
4. change scope of javax.servlet:servlet-api to provided
5. exclude dependency jetty:servlet-api from com.smartbear.soapui:soapui:5.0.0 because mock war doesn't contain such jar
6. same as above for l2fprod:l2fprod-common-directorychooser, l2fprod:l2fprod-common-fontchooser
and a general suggestion: please update all dependencies to their updated versions. Hopefully it'll fix most of existing bugs not presenting new ones
I created mock war from UI and deployed it to tomcat 7/8. It's working fine but when I tried to redeploy/undeploy, tomcat reported error because hermes-1.14.jar was locked
After couple of days research I restored chain of problems
1. hermes-1.14.jar is the only jar in mock war WEB-INF/lib containing file log4j.properties. Without hermes-1.14.jar or with hermes-1.14.jar without log4j.properties bug is not reproducing
2. mock war uses outdated log4j-1.2.14.jar which contains unavoidable bug that locks log4j.properties or containing jar (hermes-1.14.jar in our case)
3. replacing log4j-1.2.14.jar to log4j-1.2.17.jar (latest version) did the work
So I'm humbly asking to update mock war generation (and SoapUI artifact dependency) - refresh log4j version to 1.2.17
Also I would like to report couple more small issues preventing manual build of mock war from gradle:
1. http://www.soapui.org/repository/maven2 ... -1.142.pom has incorrect groupId in pom file (cajo instead of gnu.cajo). please correct
2. http://www.soapui.org/repository/maven2 ... -jdk15.pom has incorrect groupId in pom file (r872 instead of r872-jdk15). please correct
3. please exclude dependency javax.jms from com.smartbear.soapui:soapui:5.0.0 or replace it with up to date javaee-api with scope provided
4. change scope of javax.servlet:servlet-api to provided
5. exclude dependency jetty:servlet-api from com.smartbear.soapui:soapui:5.0.0 because mock war doesn't contain such jar
6. same as above for l2fprod:l2fprod-common-directorychooser, l2fprod:l2fprod-common-fontchooser
and a general suggestion: please update all dependencies to their updated versions. Hopefully it'll fix most of existing bugs not presenting new ones