File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes Internal Server Error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Internal Server Error" Watch "Internal Server Error" New topic
Author

Internal Server Error

Ambika Jain
Ranch Hand

Joined: Jan 27, 2005
Posts: 48
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)
--------------------------------------------------------


Ambika Jain
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24183
    
  34

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?


[Jess in Action][AskingGoodQuestions]
Jeroen Wenting
Ranch Hand

Joined: Oct 12, 2000
Posts: 5093
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.


42
 
 
subject: Internal Server Error
 
Similar Threads
Too Many Files open error in web application
Parsing error processing resource path Exception
InstantiationException:
error in jsp when using tags to loop.
java.lang.ClassCastException: Model.Employee cannot be cast to Model.Employee