Jump to content
We've recently updated our Privacy Statement, available here ×
  • Server won't start after applying hotfix: Caused by: java.lang.IllegalArgumentException: More than one fragment with the name spring_web was found


    bshrikan
    • Version: v8, v7.9 Product: JasperReports® Server

    Issue: After applying hotfix getting below error and application server won't start:

    Caused by: java.lang.IllegalArgumentException: More than one fragment with the name [spring_web] was found. This is not legal with relative ordering. See section 8.2.2 2c of the Servlet specification for details. Consider using absolute ordering.

    Cause: 

    This error is caused due to Spring Web Libraries that are required for the JasperReports Server but due to duplicate/multiple versions of same JARs present in the library creates a conflict for application server/tomcat.

    Resolution:

    To address this you can:
    1. Go to the following path
    <jasper-home-dir>WEB-INFlib 

    2. Look for the following jar files and see if they are not duplicated[check for spring jars]:
    spring......[x.y.z]......jar

    3.You may encounter different versions of the files: for e.g. spring-web-5.2.20.RELEASE.jar & spring-web-5.2.22.RELEASE.jar

    4. Remove all the older versions and leave the newest release.

    5. Now, clear tomcat/temp and tomcat/work and restart it.

    NOTE: Please make sure to follow all instructions specified in the readme.txt when applying the Hotfix and make sure you have deleted all the files specified in the '
    Deleted files:' section.


    User Feedback

    Recommended Comments

    There are no comments to display.



    Create an account or sign in to comment

    You need to be a member in order to leave a comment

    Create an account

    Sign up for a new account in our community. It's easy!

    Register a new account

    Sign in

    Already have an account? Sign in here.

    Sign In Now

×
×
  • Create New...