Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » Problem in developing WebApplication
Problem in developing WebApplication [message #227165] Sat, 24 January 2009 14:46 Go to next message
aum is currently offline aumFriend
Messages: 1
Registered: July 2009
Junior Member
Hi All,

i imported an existin project from myEclipse to eclipse platform

i am usinh STruts2 along with hibernate in here in my application
but on importing it to Eclipse platform i am facing a problem

here is what my Eclipse is showing the error
Description Resource Path Location Type
The project was not built since its build path is incomplete. Cannot find
the class file for javax.servlet.http.HttpServletResponse. Fix the build
path then try building this project BillSmart Unknown Java Problem
The type javax.servlet.http.HttpServletResponse cannot be resolved. It is
indirectly referenced from required .class files

This is the code which is causing me the problem in Eclipse
ServletActionContext.getResponse().setContentType(contentTyp e);

setContentType is not defined
Can any one point me the problem where is going wrong??

Thanks in advance
Umesh
Re: Problem in developing WebApplication [message #227222 is a reply to message #227165] Mon, 26 January 2009 14:24 Go to previous message
Eclipse UserFriend
Originally posted by: wknauf_NO_._INSIDE_hg-online.de

Hi,

this sounds as if your project is missing the JARs provided by your target
server runtime.

What server do you use? Did you create the corresponding server runtime
definition in the preferences?

How did you migrate the project from myEclipse to Eclipse? Simple directory
copy? WAR import? Project import?
I suggest that you create a new Dynamic Web Project (here it will ask you to
specify the server runtime) and copy all files from your MyEclipse project to
the corresponding directories of the new Eclipse project (the directory
structure might differ).

Hope this helps

Wolfgang

aum schrieb:
> Hi All,
>
> i imported an existin project from myEclipse to eclipse platform
>
> i am usinh STruts2 along with hibernate in here in my application
> but on importing it to Eclipse platform i am facing a problem
> here is what my Eclipse is showing the error
> Description Resource Path Location Type
> The project was not built since its build path is incomplete. Cannot
> find the class file for javax.servlet.http.HttpServletResponse. Fix the
> build path then try building this project BillSmart Unknown
> Java Problem
> The type javax.servlet.http.HttpServletResponse cannot be resolved. It
> is indirectly referenced from required .class files
>
> This is the code which is causing me the problem in Eclipse
> ServletActionContext.getResponse().setContentType(contentTyp e);
>
> setContentType is not defined
> Can any one point me the problem where is going wrong??
>
> Thanks in advance
> Umesh
>
Previous Topic:Dependent projects not deploying
Next Topic:Re: How to let Eclipse deploy 1 (!) *.war file instead of expanded war directory tree?
Goto Forum:
  


Current Time: Tue Mar 19 09:05:57 GMT 2024

Powered by FUDForum. Page generated in 0.02337 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top