java.lang.NoClassDefFoundError: javax/servlet/http/HttpServletRequest

Jenkins JIRA | David Light | 2 years ago
tip
Do you find the tips below useful? Click on the to mark them and say thanks to Rafael Fischer Viola . Or join the community to write better ones.
  1. 0

    After upgrading to 1.597 from 1.588 on Windows when a user clicks on a job they get: {code} 500 - Internal server error. There is a problem with the resource you are looking for, and it cannot be displayed. {code} * If you create a new job it shows correctly until the first job runs and then it shows the 500 error. * You can select the drop-down from the Job instead and go to Configure, etc. and it shows correctly. * Last Success, Failure, Duration show N/A * I cannot downgrade because trying to run the unmigrate script fails with: {code} Exception in thread "main" java.lang.NoClassDefFoundError: javax/servlet/http/HttpServletRequest at hudson.Util.createSymlinkJava7(Util.java:1224) at hudson.Util.createSymlink(Util.java:1118) at jenkins.model.RunIdMigrator.unmigrateBuildsDir(RunIdMigrator.java:371 ) at jenkins.model.RunIdMigrator.unmigrateJobsDir(RunIdMigrator.java:320) at jenkins.model.RunIdMigrator.main(RunIdMigrator.java:307) Caused by: java.lang.ClassNotFoundException: javax.servlet.http.HttpServletRequest at java.net.URLClassLoader$1.run(Unknown Source) at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) ... 5 more {code}

    Jenkins JIRA | 2 years ago | David Light
    java.lang.NoClassDefFoundError: javax/servlet/http/HttpServletRequest
  2. 0

    After upgrading to 1.597 from 1.588 on Windows when a user clicks on a job they get: {code} 500 - Internal server error. There is a problem with the resource you are looking for, and it cannot be displayed. {code} * If you create a new job it shows correctly until the first job runs and then it shows the 500 error. * You can select the drop-down from the Job instead and go to Configure, etc. and it shows correctly. * Last Success, Failure, Duration show N/A * I cannot downgrade because trying to run the unmigrate script fails with: {code} Exception in thread "main" java.lang.NoClassDefFoundError: javax/servlet/http/HttpServletRequest at hudson.Util.createSymlinkJava7(Util.java:1224) at hudson.Util.createSymlink(Util.java:1118) at jenkins.model.RunIdMigrator.unmigrateBuildsDir(RunIdMigrator.java:371 ) at jenkins.model.RunIdMigrator.unmigrateJobsDir(RunIdMigrator.java:320) at jenkins.model.RunIdMigrator.main(RunIdMigrator.java:307) Caused by: java.lang.ClassNotFoundException: javax.servlet.http.HttpServletRequest at java.net.URLClassLoader$1.run(Unknown Source) at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) ... 5 more {code}

    Jenkins JIRA | 2 years ago | David Light
    java.lang.NoClassDefFoundError: javax/servlet/http/HttpServletRequest
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0
    samebug tip
    This exception normally means you either have to add the said class to your dependencies or you miswrote it. Look in the documentation of your library how to add it as a dependency.

  1. rsprangemeijer 6 times, last 3 days ago
  2. marcbouvierdav 26 times, last 5 days ago
  3. batwalrus76 12 times, last 6 days ago
  4. musketyr 1 times, last 6 days ago
  5. SteVio1989 4 times, last 7 days ago
69 more registered users
26 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.ClassNotFoundException

    javax.servlet.http.HttpServletRequest

    at java.net.URLClassLoader$1.run()
  2. Java RT
    ClassLoader.loadClass
    1. java.net.URLClassLoader$1.run(Unknown Source)
    2. java.net.URLClassLoader$1.run(Unknown Source)
    3. java.security.AccessController.doPrivileged(Native Method)
    4. java.net.URLClassLoader.findClass(Unknown Source)
    5. java.lang.ClassLoader.loadClass(Unknown Source)
    6. sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    7. java.lang.ClassLoader.loadClass(Unknown Source)
    7 frames
  3. Hudson
    Util.createSymlink
    1. hudson.Util.createSymlinkJava7(Util.java:1224)
    2. hudson.Util.createSymlink(Util.java:1118)
    2 frames
  4. jenkins.model
    RunIdMigrator.main
    1. jenkins.model.RunIdMigrator.unmigrateBuildsDir(RunIdMigrator.java:371)
    2. jenkins.model.RunIdMigrator.unmigrateJobsDir(RunIdMigrator.java:320)
    3. jenkins.model.RunIdMigrator.main(RunIdMigrator.java:307)
    3 frames