This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Java in General and the fly likes  The server encountered an internal error () that prevented it from fulfilling this reque: Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark " The server encountered an internal error () that prevented it from fulfilling this reque:" Watch " The server encountered an internal error () that prevented it from fulfilling this reque:" New topic
Author

The server encountered an internal error () that prevented it from fulfilling this reque:

Mohin Raffik
Greenhorn

Joined: Jun 18, 2011
Posts: 1
please help me, i'm getting this error while running code on localhost, i do no what to do, here i attached my code below.....




HTTP Status 500 -

type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

javax.servlet.ServletException: Filter execution threw an exception

root cause

java.lang.Error: Unresolved compilation problems:
The type javax.servlet.http.HttpServletRequest cannot be resolved. It is indirectly referenced from required .class files
The method getRequest() from the type ServletActionContext refers to the missing type HttpServletRequest
The method getRequest() from the type ServletActionContext refers to the missing type HttpServletRequest
The method getRequest() from the type ServletActionContext refers to the missing type HttpServletRequest
The method getRequest() from the type ServletActionContext refers to the missing type HttpServletRequest
The method getRequest() from the type ServletActionContext refers to the missing type HttpServletRequest
The method getRequest() from the type ServletActionContext refers to the missing type HttpServletRequest

cms.action.SignInAction.<init>(SignInAction.java:66)
sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
java.lang.reflect.Constructor.newInstance(Unknown Source)
java.lang.Class.newInstance0(Unknown Source)
java.lang.Class.newInstance(Unknown Source)
com.opensymphony.xwork2.ObjectFactory.buildBean(ObjectFactory.java:123)
com.opensymphony.xwork2.ObjectFactory.buildBean(ObjectFactory.java:154)
com.opensymphony.xwork2.ObjectFactory.buildBean(ObjectFactory.java:143)
com.opensymphony.xwork2.ObjectFactory.buildAction(ObjectFactory.java:113)
com.opensymphony.xwork2.DefaultActionInvocation.createAction(DefaultActionInvocation.java:275)
com.opensymphony.xwork2.DefaultActionInvocation.init(DefaultActionInvocation.java:365)
com.opensymphony.xwork2.DefaultActionInvocation.access$000(DefaultActionInvocation.java:38)
com.opensymphony.xwork2.DefaultActionInvocation$1.doProfiling(DefaultActionInvocation.java:83)
com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:455)
com.opensymphony.xwork2.DefaultActionInvocation.<init>(DefaultActionInvocation.java:74)
com.opensymphony.xwork2.DefaultActionProxy.prepare(DefaultActionProxy.java:189)
org.apache.struts2.impl.StrutsActionProxyFactory.createActionProxy(StrutsActionProxyFactory.java:41)
org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:494)
org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:422)

note The full stack trace of the root cause is available in the Apache Tomcat/6.0.14 logs.
Apache Tomcat/6.0.14
Henry Wong
author
Sheriff

Joined: Sep 28, 2004
Posts: 18488
    
  40

Mohin Raffik wrote:
java.lang.Error: Unresolved compilation problems:
The type javax.servlet.http.HttpServletRequest cannot be resolved. It is indirectly referenced from required .class files
The method getRequest() from the type ServletActionContext refers to the missing type HttpServletRequest


An unresolved compilation error, is exactly that... you have some compile errors in your code. No doubt that you used an IDE that generates class files even with errors, as the Sun java compiler doesn't allow that.

You need to go back to your build environment and fix all the compile errors first. Running code with compile errors lead to issues like this.

Henry

Books: Java Threads, 3rd Edition, Jini in a Nutshell, and Java Gems (contributor)
Henry Wong
author
Sheriff

Joined: Sep 28, 2004
Posts: 18488
    
  40


BTW, moving this topic to Java-in-General.
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 37874
    
  22
... and welcome to the Ranch
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: The server encountered an internal error () that prevented it from fulfilling this reque:
 
Similar Threads
Exception in Struts namespace
Capturing JSP Content Within My Strut Action Servlet
not able to display data using tiles2 in struts2 application
spring 2 & struts 2 doubt
The type javax.servlet.http.HttpServletRequest cannot be resolved. iIt is ndirectly referenced...