aspose file tools*
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
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: 18896
    
  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: 18896
    
  40


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

Joined: Oct 13, 2005
Posts: 39436
    
  28
... and welcome to the Ranch
 
Consider Paul's rocket mass heater.
 
subject: The server encountered an internal error () that prevented it from fulfilling this reque: