WebSphere Application Server & Liberty

WebSphere Application Server & Liberty

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
Expand all | Collapse all

Error 500 HttpServletRequest on Websphere Application Server 7

  • 1.  Error 500 HttpServletRequest on Websphere Application Server 7

    Posted Mon January 28, 2013 08:46 AM
    Hello everyone,

    I have an EAR file deployed on Websphere Application Server Network Deployment 7.0.0.21.

    My OS is SOLARIS 10.

    I'm getting the following exception when I try to connect to the application:

    [1/28/13 12:34:10:110 GMT+00:00] 00000028 webapp        E com.ibm.ws.webcontainer.webapp.WebApp logServletError SRVE0293E:
    [Servlet Error]-[ServiceServlet]: java.lang.NoClassDefFoundError:
    HttpServletRequest
            at java.lang.Class.getDeclaredMethods0(Native Method)
            at java.lang.Class.privateGetDeclaredMethods(Class.java:2427)
            at java.lang.Class.getDeclaredMethod(Class.java:1935)
            at com.ibm.ws.webcontainer.servlet.ServletWrapper.check
    ForDefaultImplementation(ServletWrapper.java:2466)
            at
    com.ibm.ws.webcontainer.servlet.ServletWrapper.access$400
    (ServletWrapper.java:139)
            at com.ibm.ws.webcontainer.servlet.ServletWrapper$2.run
    (ServletWrapper.java:2437)
            at com.ibm.ws.security.util.AccessController.doPrivileged
    (AccessController.java:118)
            at com.ibm.ws.webcontainer.servlet.ServletWrapper.checkForDefaultMethods
    (ServletWrapper.java:2424)
            at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest
    (ServletWrapper.java:642)
            at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest
    (ServletWrapper.java:502)
            at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest
    (ServletWrapperImpl.java:179)
            at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest
    (WebApp.java:3935)
            at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest
    (WebGroup.java:276)
            at com.ibm.ws.webcontainer.WebContainer.handleRequest
    (WebContainer.java:931)
            at com.ibm.ws.webcontainer.WSWebContainer.handleRequest
    (WSWebContainer.java:1592)
            at com.ibm.ws.webcontainer.channel.WCChannelLink.ready
    (WCChannelLink.java:186)
            at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.
    handleDiscrimination
    (HttpInboundLink.java:452)
            at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.
    handleNewRequest
    (HttpInboundLink.java:511)
            at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.processRequest
    (HttpInboundLink.java:305)
            at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready
    (HttpInboundLink.java:276)
            at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback
    .sendToDiscriminators
    (NewConnectionInitialReadCallback.java:214)
            at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback
    .complete
    (NewConnectionInitialReadCallback.java:113)
            at com.ibm.ws.tcp.channel.impl.WorkQueueManager.
    requestComplete
    (WorkQueueManager.java:557)
            at com.ibm.ws.tcp.channel.impl.WorkQueueManager.attemptIO
    (WorkQueueManager.java:607)
            at com.ibm.ws.tcp.channel.impl.WorkQueueManager.workerRun
    (WorkQueueManager.java:984)
            at com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worker.run
    (WorkQueueManager.java:1069)
            at com.ibm.ws.util.ThreadPool$Worker.run
    (ThreadPool.java:1604)
    Caused by: java.lang.ClassNotFoundException:
    HttpServletRequest
            at java.net.URLClassLoader$1.run
    (URLClassLoader.java:202)
            at java.security.AccessController.doPrivileged
    (Native Method)
            at java.net.URLClassLoader.findClass
    (URLClassLoader.java:190)
            at com.ibm.ws.bootstrap.ExtClassLoader.findClass
    (ExtClassLoader.java:191)
            at java.lang.ClassLoader.loadClass
    (ClassLoader.java:306)
            at com.ibm.ws.bootstrap.ExtClassLoader.loadClass
    (ExtClassLoader.java:111)
            at java.lang.ClassLoader.loadClass
    (ClassLoader.java:247)
            at com.ibm.ws.classloader.ProtectionClassLoader.loadClass
    (ProtectionClassLoader.java:62)
            at com.ibm.ws.classloader.ProtectionClassLoader.loadClass
    (ProtectionClassLoader.java:58)
            at com.ibm.ws.classloader.CompoundClassLoader.loadClass
    (CompoundClassLoader.java:510)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
            ... 27 more

    Any ideas ?

    thank you


  • 2.  Error 500 HttpServletRequest on Websphere Application Server 7

    Posted Mon January 28, 2013 04:50 PM
    Well it is a class loading issue. you can do a couple of simple and themore complex things.


    1. Change class loader from parent first to parent last may help identify the class loading conflict.

    2. Check the class loader viewer in console

    3. Put on tracing to see more information

    4. Check stdError.log

    5. Make sure that the EAR has been verified for that JDK vesion.