Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Internal Server Error

 
Ambika Jain
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am getting the following error, when I am trying to access the servlet.
Servlet: ChatApp.ChatClasses.servlet.LoginServlet
Content in web.xml:
----------------------------------------------------
<servlet>
<servlet-name>LoginServlet</servlet-name>
<servlet-class>ChatApp.ChatClasses.servlet.LoginServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>LoginServlet</servlet-name>
<url-pattern>/ChatApp/ChatClasses/servlet/LoginServlet</url-pattern>
</servlet-mapping>
---------------------------------------------------

I am unable to find the reason for this error.

-----------ERROR-----------------------
Error 500--Internal Server Error

javax.servlet.ServletException: Servlet class: 'ChatApp.ChatClasses.servlet.LoginServlet' couldn't be instantiated
at weblogic.servlet.internal.StubSecurityHelper$ServletInitAction.run(StubSecurityHelper.java:224)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
at weblogic.servlet.internal.StubSecurityHelper.createServlet(StubSecurityHelper.java:59)
at weblogic.servlet.internal.StubLifecycleHelper.createOneInstance(StubLifecycleHelper.java:58)
at weblogic.servlet.internal.StubLifecycleHelper.(StubLifecycleHelper.java:48)
at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:487)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:234)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:2970)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:1888)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:1810)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1274)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:167)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:139)
--------------------------------------------------------
 
Ernest Friedman-Hill
author and iconoclast
Marshal
Pie
Posts: 24208
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What theories have you investigated already?

Does the servlet class exist? Is it installed in the right place?

Does the servlet class depend on any libraries that aren't installed?

Does the servlet class have a default constructor?
 
Jeroen Wenting
Ranch Hand
Posts: 5093
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sounds to me like a security issue rather than a pure classloading problem, considering the names of the internal BEA classes where the error is reported.

Maybe someone on the WebLogic forum can shed more light.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic