Discussions

Web tier: servlets, JSP, Web frameworks: Not able to run Servlet in Weblogic Server 5.01

  1. Hi... When I run my servlet thru weblogic server it shows me following error: Error loading servlets: examples.servlets.SessionCounter

    Java.lang.NoClassDefFoundError : examples/servlets/SessionCounter (wrong name : SessionCounter)

    I have posted SessionCounter.class file in C:\weblogic\myserver\servletclasses\examples\servlets\ folder and also registerd with weblogic.httpd.register.ServletCount in weblogic.properties file

    Please help me to solve this error

    Thanks in advance

    Regards
    Chintan
  2. Hi,
    make sure the package is correct and weblogic.httpd.servlet.classpath is set properly to find your "SessionCounter" as follows.

    weblogic.httpd.servlet.classpath=C:/weblogic/myserver/servletclasses
  3. Hi,make sure the package is correct and weblogic.httpd.servlet.classpath is set properly to find your "SessionCounter" as weblogic.httpd.servlet.classpath=C:/weblogic/myserver/servletclasses
    I have chked path is properly set weblogic.httpd.servlet.classpath=D:/weblogic/myserver/servletclasses but still it is not working while other servlets in the same folder are working properly .

    Please reply me as early as possible

    Thanks

    chintan